Commit Graph

646 Commits

Author SHA1 Message Date
cefsharp-ms 0333437917 fixed tabs again 2015-07-31 17:30:07 +02:00
cefsharp-ms 0a66e90f24 added destructor for JavascriptAsyncMethodHandler 2015-07-31 17:27:10 +02:00
cefsharp-ms c395f03ba2 jscallbackregistry lifecycle is managed by javascriptrootobjectwrapper, async methods too bound by javascriptrootobjectwrapper 2015-07-31 17:26:59 +02:00
cefsharp-ms dbf5e94293 updated kPromisCreatorScript field to be static const 2015-07-31 17:17:55 +02:00
cefsharp-ms c9451f160e async binding handler cleanup 2015-07-31 17:17:42 +02:00
cefsharp-ms 561c2de020 RootObject message renamed to include async 2015-07-31 17:17:35 +02:00
cefsharp-ms d6c72c6433 CefBrowserWrapper forward declarations removed 2015-07-31 17:17:29 +02:00
cefsharp-ms 43acbbe3fc CefAppUnmanagedWrapper wrapped up a little bit 2015-07-31 17:17:22 +02:00
cefsharp-ms 4523ddfaab method call message names include Async now 2015-07-31 17:17:16 +02:00
amaitland 2a6e42f2f8 Remove RenderThreadTaskFactory - no longer used now that we use native IPC for Eval js 2015-07-29 11:13:29 +10:00
amaitland 3d19b3a587 Cleanup Binding, rather than keep references to the V8 objects, just use them and then let them be released
Code should be a little easier to debug now.
2015-07-28 22:22:30 +10:00
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