Commit Graph

272 Commits

Author SHA1 Message Date
amaitland 015855a653 Make js callbacks and async methods Frame aware - add FrameId so they can be executed on a specific frame
Resolves a problem where multiple contexts are created and only the first one is dealt with properly (each frame has it's own V8 context)

Conflicts:
	CefSharp.Core/Internals/JavascriptCallbackProxy.cpp
	CefSharp.Core/Internals/JavascriptCallbackProxy.h
2015-10-17 12:29:41 +10:00
amaitland dbc1671af5 Change CefBrowserWrapper Dictionary to ConcurrentDictionary 2015-10-17 12:27:34 +10:00
amaitland e0c8284507 Fix up some of the vc++ include mess that we had going
Cleanup using namespace statements as well

Conflicts:
	CefSharp.Core/Cef.h
	CefSharp.Core/CefSharp.Core.vcxproj
	CefSharp.Core/Internals/CefGetGeolocationCallbackWrapper.h
	CefSharp.Core/Internals/CefPdfPrintCallbackWrapper.h
2015-10-17 12:26:16 +10:00
amaitland 81ce8d265a Only keep reference to the property/method objects long enough to bind the object
No need to store a reference to them long term
2015-10-17 12:20:32 +10:00
amaitland 42dd4d9cef Remove JavascriptCallbackWrapper.cpp - move methods into header (super simple class doesn't need the extra overhead of a cpp file) 2015-10-17 12:20:32 +10:00
amaitland 2d49fcf085 Restructure code so JavascriptRootObject's are stored and can be used across multiple CefBrowserWrapper instances (popups in this context)
Code is now very much dependant on using --process-per-tab for this structure to work
2015-10-17 12:20:30 +10:00
amaitland d2ed4afa7a Pass JavascriptObject in as param rather than keeping reference when calling Bind 2015-10-17 12:20:29 +10:00
amaitland 12b31a7782 Fixes #1263
Pass in CefCustomScheme as command line argument, as they're registered correctly in all processes
2015-09-16 09:12:31 +10:00
amaitland 0f55e1cbfd Cleanup project references - removed some unused ones 2015-09-16 09:12:30 +10:00
illfang 010a7f326d detailed exception string generation for exceptions in injected native functions / properties
Conflicts:
	CefSharp/Internals/JavascriptObjectRepository.cs
2015-09-08 16:27:02 +10:00
amaitland 2e75ae32b1 Add some missing override statements (general cleanup) 2015-08-19 13:05:59 +10:00
amaitland 350d96ac82 Upgrade to CEF 3.2357.1287 2015-08-11 11:09:35 +10:00
amaitland b4e6d6262b Make const and pass by ref 2015-08-07 13:45:12 +10:00
amaitland 826aa4fcbf Make JavascriptRootObjectWrapper internal to resolve compiler warning 2015-08-07 13:27:13 +10:00
amaitland fc58a7db32 Cleanup some compiler warnings by making classes private
Remove unused using statements
2015-08-07 13:21:09 +10:00
amaitland 3d1cd667ab Add missing braces 2015-08-07 12:56:16 +10:00
David Serfozo 437cf20160 normal bound objects transfered with cef ipc as well 2015-08-06 10:25:33 +02:00
amaitland 22fa4c3b10 Register custom schemes in render process
Fixes #1014
2015-08-03 12:30:58 +10:00
amaitland bec6fe4618 Formatting and naming fixups 2015-08-03 12:16:20 +10:00
amaitland 5a09a5ef35 Merge branch 'cefextensions' of https://github.com/arsher/CefSharp 2015-08-03 12:12:51 +10:00
amaitland e274340438 Make params const and pass by ref 2015-08-03 10:43:35 +10:00
amaitland 52f5ac5302 Formatting, make class private 2015-08-03 10:37:09 +10:00
David Serfozo 4fdca242d0 CefExtension modified to null-check JavascriptCode in constructor 2015-08-02 16:07:43 +02:00
David Serfozo c8c100025a whitespace diffs redone 2015-08-01 20:37:55 +02:00
David Serfozo c9b7366786 Extensions transmitted in OnRenderThreadCreated and registered after webkit initialization 2015-08-01 20:25:12 +02:00
cefsharp-ms 0b300d5dda Merged master 2015-07-31 17:41:00 +02:00
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