Commit Graph

665 Commits

Author SHA1 Message Date
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
amaitland c81d73c587 Split CefTaskWrapper out into it's own .h file 2015-04-24 12:02:15 +10:00
amaitland 99000a4940 Remove CefTaskScheduler.cpp from CefSharp.BrowserSubprocess.Core.vcxproj - was missed during the rebase 2015-04-09 11:35:50 +10:00
amaitland 484a2de0a2 Move CefTaskScheduler from CefSharp.BrowserSubprocess.Core to CefSharp.Core
Add ITaskScheduler interface to simplify the code
2015-04-09 11:25:37 +10:00
amaitland 9f67f6c525 Update to 3.2272.25 (new git based naming) 2015-03-31 12:37:57 +10:00
amaitland 171abe8ee7 Upgrade to 3.2171.2069 2015-03-27 11:54:44 +10:00
amaitland 6c60da63c8 Merge remote-tracking branch 'remotes/upstream/master' into cef/2272 2015-03-23 08:49:45 +10:00
amaitland 2df2a05be7 Update to 2272 nuget packages
Updated OnCertificateError and OnFileDialog as API changed - build now compiles
2015-03-18 11:13:49 +10:00
amaitland 1e7e2210ad Rename JavascriptCallbackDto to JavascriptCallback 2015-03-12 11:29:14 +10:00
amaitland a5688b4510 Revert "Remove WCF Surrogate and inject browser host"
This reverts commit 746e51432a.
2015-03-12 11:08:01 +10:00
amaitland 746e51432a Remove WCF Surrogate and inject browser host 2015-03-11 14:46:36 +10:00
amaitland c2b1f48c7c Start to make method naming contestant - methods are now Register and Deregister for javascript callback 2015-03-11 13:52:32 +10:00
amaitland 6f5875a7b0 Convert to using ConcurrentDictionary 2015-03-11 13:23:00 +10:00
amaitland 15f0a20b6d Add ConvertFromCef to else statement so it's only called when not using a function 2015-03-11 12:09:52 +10:00