Commit Graph

35 Commits

Author SHA1 Message Date
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
David Serfozo 6f53c61b88 readded try-finally for renderprocess side messaging handling 2015-07-08 18:46:28 +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
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 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
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
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
BinSys 5af020afcc change c++ file copyright symbol (©) from 0xa9(cp1252) to 0xc2 0xa9(cp65001 with bom) ,
now work on non-english system().
2015-01-10 02:40:23 +08:00
BinSys 3f954dfb0b Revert "change c++ file copyright symbol (©) from 0xa9(cp1252) to 0xc2 0xa9(cp65001 without bom) ,"
This reverts commit defd040dcc.
2015-01-10 02:22:19 +08:00
BinSys defd040dcc change c++ file copyright symbol (©) from 0xa9(cp1252) to 0xc2 0xa9(cp65001 without bom) ,
now work on non-english system().
2015-01-06 22:23:30 +08:00
amaitland b893d9ad00 Merge branch 'memleak' of https://github.com/Octopus-ITSM/CefSharp into fix/jsb-memoryleak 2014-12-04 13:34:53 +10:00
amaitland ab79aa8ca6 Remove redundant #include statements
Fix incorrect #include statements
2014-11-27 23:24:00 +10:00
Sylvain Hamel fe63ff340e memleak : show problem 2014-11-25 09:34:15 -05:00
Sylvain Hamel 678f45835c CefRenderProcess process creates too many channels (and does not close them) 2014-11-11 09:06:52 -05:00
Sylvain Hamel 29e5e61160 Fix: js bindings must be kept by browser, not by process 2014-10-29 08:10:40 -04:00
amaitland 00b6fc683b Pass a delegate to Create the WCF proxy through the layers of JS binding objects 2014-09-16 13:21:04 +10:00
amaitland 047cac5fbf Store reference to JavascriptRootObject and create a new JavascriptRootObjectWrapper every time - in future can dispose of the root wrapper 2014-09-15 16:38:35 +10:00
amaitland 9db69fa555 Move browser wrapper Dictionary into CefAppUnmanagedWrapper 2014-09-15 12:05:01 +10:00
amaitland e937c33d2d Change from List to Dictionary to simplify code (key on the browser id) 2014-09-15 12:02:58 +10:00
amaitland d84d7689f8 Revert previous change when code to manage cleanup of multiple CefBrowserWrapper classes was removed - it appears multiple can be created when using popups (and potentially other circumstances) 2014-09-15 00:21:22 +10:00
amaitland c923286431 Improve cleanup of CefAppUnmanagedWrapper 2014-09-12 16:38:46 +10:00
amaitland ee45819cc5 Remove redundant nullptr check and just call delete 2014-09-12 16:35:56 +10:00
amaitland cd8b1d8100 Add OnContextReleased and reorder methods to group together 2014-09-12 16:27:47 +10:00
amaitland dc2ce6c998 Add OnBrowserDestroyed Action and invoke when Cef triggers OnBrowserDestroyed 2014-09-12 14:52:01 +10:00
amaitland 058e21fce5 No need to keep list of CefBrowserWrapper's as new RenderProcess is created every time, hence only one browser wrapper 2014-09-12 13:03:25 +10:00
amaitland ee565757a4 Reorder methods - logical grouping (cef methods kept together) 2014-09-12 12:48:10 +10:00
amaitland 8acec46f64 Rename CefSubprocessWrapper.h to CefBrowserWrapper.h 2014-09-12 00:45:29 +10:00
amaitland 085c6d5531 Move CefAppUnmanagedWrapper into it's own class (.cpp and .h) 2014-08-29 10:53:50 +10:00