Commit Graph

235 Commits

Author SHA1 Message Date
cefsharp-ms fc85d90877 added callback capability for async bound method with promises 2015-07-23 15:12:50 +02:00
cefsharp-ms a8db666642 added async bound method result callback on browser process side 2015-07-23 15:12:28 +02:00
cefsharp-ms 4ec6d1ca6e async method bindings added 2015-07-23 15:11:27 +02:00
cefsharp-ms 0e073bcd0a added message to transmit async bound jsrootobject to render process 2015-07-23 15:10:52 +02:00
cefsharp-ms 3bc3a6137b added serialization utils for JavascriptRootObject 2015-07-23 15:10:00 +02:00
jankurianski 5e658fccb5 Upgraded to use local 3.2357.1274 NuGet packages and fixed breaking changes 2015-07-21 15:16:25 +10:00
amaitland a695cc9801 Explicitly Delete(dispose) CallbackRegistry so that it's unmanaged resources are freed ASAP 2015-07-16 13:44:03 +10:00
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