amaitland
18c19edc86
kJavascriptCallbackDestroyRequest jscallbackId is located at Index 0
2015-07-10 10:35:51 +10:00
amaitland
c74dc29b57
Add TODO about throwing exception in CefAppUnmanagedWrapper
2015-07-10 10:26:21 +10:00
amaitland
a945e3f4dc
Always create response message so that errors can be returned
2015-07-10 10:24:48 +10:00
amaitland
4784a0122e
Return error message when unable to enter context or find matching frame
2015-07-10 10:22:12 +10:00
amaitland
ca836c50af
Reapply change to move try finally block inside context->Enter() - otherwise we could potentially Exit a context we never entered
2015-07-10 10:18:01 +10:00
amaitland
d0f316379c
Add more detail to NOTE
...
Call GetIdentifier() directly rather than allocating browserId
2015-07-10 10:15:27 +10:00
amaitland
c201454905
Merge branch 'cefipcjscallbacks' of https://github.com/arsher/CefSharp into feature/replacewcf2
2015-07-10 10:12:53 +10:00
David Serfozo
e0d5dcd283
added error handling when browser id has no match in render process
2015-07-09 23:36:31 +02:00
amaitland
2eaebcc715
Remove stray line
2015-07-09 12:04:21 +10:00
amaitland
d766cc826e
The Message should be sent on the corresponding browser, not just the first browser - handle popups
...
Remove browserId from the message as it shouldn't be required now
2015-07-09 12:01:44 +10:00
amaitland
0f4570bba4
If BrowserId doesn't match then return an error message rather than throw exception
2015-07-09 11:35:10 +10:00
amaitland
582df0d0ad
Only Exit context if we actually entered it - calls need to be paired up
...
Always create response message and return a message if unsuccessful
2015-07-09 11:23:11 +10:00
amaitland
7b49b479d0
Remove TODO - the field is still used
2015-07-09 11:02:59 +10:00
amaitland
1f74357e40
Going forward constructors/destructors/finalizers all go in the headers
2015-07-09 10:55:12 +10:00
amaitland
e3881aa9f5
In cpp local variables prefixed with _
2015-07-09 10:46:37 +10:00
David Serfozo
6f53c61b88
readded try-finally for renderprocess side messaging handling
2015-07-08 18:46:28 +02:00
David Serfozo
a1fda63425
removed unused execute method from javsacriptcallbackregistry and javascrptcallbackwrapper
2015-07-08 18:30:57 +02:00
David Serfozo
798d90ade2
constructors/destructors moved to .h;;little changes to make code more consistent
2015-07-08 18:29:46 +02:00
David Serfozo
d6661df344
removed unnecessary code from previous js callback implementation
2015-07-07 19:30:50 +02:00
David Serfozo
c7db48ae7a
created new implementation of ijavascriptcallback to handle cef ipc solution
2015-07-07 19:30:33 +02:00
David Serfozo
5f573c8563
message handling added for js callback execution through cef ipc
2015-07-07 19:28:49 +02:00
David Serfozo
e270455352
added serialization of .net objects and deserialization on render process side
2015-07-07 19:28:43 +02:00
David Serfozo
463f3ba2bd
added simple cycle detection to serialization to avoid stackoverflows
2015-07-07 19:28:38 +02:00
amaitland
676ddc394e
Remove redundant TypeUtils prefix
2015-07-01 12:29:09 +10:00
amaitland
81a2202753
Throw exception if browser Id's don't match
...
Use the provided browser object rather than get the wrapped one - should be the same
2015-06-29 15:35:30 +10:00
amaitland
7090ac9cda
For now simplify message handing - remove delegates
...
Will look at implementing a managed class to handle/route messages later
2015-06-29 15:24:40 +10:00
amaitland
02ddbd702b
Change GetWrapped to Browser - consistent with other code e.g. cefframewrapper
2015-06-29 14:08:24 +10:00
amaitland
192f6e7783
Make FindBrowserWrapper public - preferable to using friend which
2015-06-29 14:04:08 +10:00
amaitland
833db43a1d
FrameId is actually a 64bit int
2015-06-29 13:13:06 +10:00
amaitland
ccbc97ffc4
Minor code formatting
2015-06-29 12:03:01 +10:00
amaitland
a40590405a
Remove AddProcessMessageDelegate method from CefAppUnmanagedWrapper - not required
2015-06-29 12:01:41 +10:00
amaitland
af39be37bb
Remove FindBrowserWrapper overload - not really required
2015-06-29 12:00:33 +10:00
amaitland
d21808b582
Rename variable to be more .net like
2015-06-29 11:58:42 +10:00
amaitland
0a220f2f96
Inline most of the methods in EvaluateScriptDelegate - much easier to step through now (with the CefRefPtrs, it's a lot harder to step into a function than normal)
2015-06-29 11:57:16 +10:00
amaitland
f8954dcffe
Rename messaging keys to include Request/Response suffix
...
Would be nice to move them into a class so they're not just out there on their own - whilst it's valid c++, it's not very .net
2015-06-29 11:49:12 +10:00
David Serfozo
93a61c1442
removed unneeded eval script related methods
2015-06-27 19:01:52 +02:00
David Serfozo
cc8a07c21f
added evaluatescriptasync message handlers and rerouted evalscript to cef ipc
2015-06-27 19:01:21 +02:00
David Serfozo
7588259964
added process message handlers and code to call them on both sides
2015-06-27 17:20:09 +02:00
David Serfozo
bf33f0bc7c
V8 serialization utils added
2015-06-27 16:52:08 +02:00
amaitland
6520379558
Guard against null reference exception when cleaning up JavascriptCallbackRegistry
2015-06-15 21:47:55 +10:00
amaitland
8c849036b1
CefBrowserWrapper was still implementing DisposableResource
2015-06-15 21:45:26 +10:00
rassilon
431cb511c3
* Move unmanged objects into finalizer and call finalizer from Dispose.
...
* Remove DisposableResources from ManagedCefBrowserAdapter
* Improve disposing of CefRequestWrapper
* Have callbacks dispose themselves.
* Allow the Application exit handler shutdown CEF from the Winforms example application.
2015-06-13 10:42:33 -04:00
rassilon
eab58306c1
Merge remote-tracking branch 'origin/master' into development
...
Merges master into the formerly cef/2272 branch.
Conflicts:
CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.vcxproj
CefSharp.BrowserSubprocess.Core/packages.config
CefSharp.Core/CefSharp.Core.vcxproj
CefSharp.Core/Internals/ClientAdapter.cpp
CefSharp.Core/Internals/ClientAdapter.h
CefSharp.Core/packages.config
CefSharp.Example/RequestHandler.cs
CefSharp.Example/TempFileDialogHandler.cs
CefSharp.OffScreen.Example/packages.config
CefSharp.Test/packages.config
CefSharp.WinForms.Example/packages.config
CefSharp.Wpf.Example/packages.config
CefSharp/IDialogHandler.cs
CefSharp/IKeyboardHandler.cs
CefSharp/IRequestHandler.cs
build.ps1
2015-06-10 11:31:16 -04:00
amaitland
ba0f49a313
Upgrade to 2272.30
2015-06-09 14:18:31 +10:00
Bill Tutt
86f65c12ca
Merge pull request #988 from rassilon/CefFrameWrapper
...
CefFrameWrapper implementation
2015-05-02 23:01:35 -04:00
Bill Tutt
dcd56c27eb
Add some descriptive comments about what some of the subprocess classes do.
2015-05-02 02:36:10 -04:00
Bill Tutt
4195b8a2d6
Adding browse info seemed to help Core intellisense, so add it here too.
2015-05-02 00:09:47 -04:00
amaitland
83f3a697bc
Upgrade to 3.2272.30 - API changed so build is broken, more changes to follow
...
(Use the `2272` nuget feed as that's where the new packages were uploaded to)
2015-04-28 13:45:02 +10:00
rassilon
9f3832d06c
Make utility class for reporting unhandled exceptions.
2015-04-25 17:54:31 -04:00
rassilon
7128e40fd1
It's time for copyright updates again. Yay!
...
Throw in a couple of tab containing files for good measure.
Evil tabs, evil I say.
2015-04-25 02:45:21 -04:00