Commit Graph

805 Commits

Author SHA1 Message Date
cefsharp-ms a8db666642 added async bound method result callback on browser process side 2015-07-23 15:12:28 +02:00
cefsharp-ms 7744b7197f async bindings are dispatched to a background thread for each browser 2015-07-23 15:12:05 +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 a99e020138 added option to register async js objects with only method bindings 2015-07-23 15:10:28 +02:00
cefsharp-ms 3bc3a6137b added serialization utils for JavascriptRootObject 2015-07-23 15:10:00 +02:00
amaitland 1ca9d90bd8 By default enable system wide PPAPI support
Can be overridden by modifying CefCommandLineArgs and setting the value of `enable-system-flash` to `0`
2015-07-23 19:30:42 +10:00
Alex Maitland 8a1eb320bd Merge pull request #1142 from NumbersInternational/fixes/callback-use-after-dispose
Ignore callback usage after dispose
2015-07-23 18:59:10 +10:00
amaitland 0379632c3b Add CefGitHash property - useful for determining which git commit the build is based on 2015-07-23 15:52:24 +10:00
jankurianski 338133a98d Change 'if' style for null _callback check 2015-07-23 15:52:08 +10:00
jankurianski 2fcf5b345b Use MCefRefPtr::get() to check for null reference 2015-07-23 15:48:43 +10:00
jankurianski de1a46766f Ignore callback usage after dispose rather than crashing with NullReferenceException
Users have no way to determine whether a callback has been disposed.
Resulting in the following crash if the callback is fired.  This change
silently ignores the methods.  Another approach would have been to add
an IsDisposed flag that users must check but this seems error-prone.

Exception: System.NullReferenceException
Message: 'Object reference not set to an instance of an object.'
Source: CefSharp.Core
Stacktrace:
at CefSharp.CefCallbackWrapper.Continue()
at ...
2015-07-23 13:50:12 +10:00
amaitland 8afb090f06 Add Timeout to Cef.GetPlugins
Made TaskExtensions public otherwise the c++ code cannot access it
Add try catch to CefExample to handle task being cancelled
2015-07-23 09:57:24 +10:00
amaitland 2a0b7a9ed6 Add AcceptLanguageList to BrowserSettings and CefSettings
Resolves #1055
2015-07-22 14:32:28 +10:00
Alex Maitland 3735150cdc Merge pull request #1135 from amaitland/feature/requestcontext2
Add basic RequestContext Implementation
2015-07-22 14:27:07 +10:00
amaitland 42d51980ef Add nullptr check and return NULL for implicitor operator when object is not initialized 2015-07-22 14:19:50 +10:00
amaitland 50af1575cc Dispose of the RequestContextSettings when the RequestContext is disposed of 2015-07-22 14:11:44 +10:00
amaitland 4ce93ba555 Add RequestContextSettings wrapper 2015-07-22 14:09:20 +10:00
amaitland 0c031a1a3b Split RequestContext out from BrowserSettings 2015-07-22 13:51:16 +10:00
jankurianski d8891c7f50 ManagedCefBrowserAdapter can now be disposed before initialization
This fixes a crash when disposing a ChromiumWebBrowser prior to
initialization.
2015-07-22 13:16:59 +10:00
amaitland 265ab37620 Assign cachePath
TODO create a wrapper around CefRequestContextSettings
2015-07-21 23:57:24 +10:00
Tommaso Ercole a3e869b542 Add basic CefRequestContext wrapper 2015-07-21 23:51:49 +10: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 c88952a9fa Merge remote-tracking branch 'remotes/upstream/master' into feature/postdata 2015-07-10 16:55:46 +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 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 7ec1d78205 Don't send message if browser->IsDisposed - shouldn't be throwing exceptions in destructor/finalizer blocks 2015-07-09 11:14:58 +10:00
amaitland 60f98cb55d Fix formatting 2015-07-09 11:06:42 +10:00
amaitland 7053eebae3 Reduce nesting for if statement 2015-07-09 11:06:36 +10:00
amaitland 9192bdfb4b Convert BrowserWrapper into a basic property - simpler 2015-07-09 11:05:00 +10:00
David Serfozo 5c9681e62e renamed javascriptcallbackimpl 2015-07-08 18:41:04 +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 33cd908fdd dded explicit accessors 2015-07-08 18:21:47 +02:00
David Serfozo 2feeac690a changed jscallback implementation to use cefsharpbrowserwrapper 2015-07-07 19:30:47 +02:00
David Serfozo 7c9a449158 added new IJavascriptCallback implementation into the pipeline 2015-07-07 19:30:43 +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
amaitland 17df6f8153 Add PostDataElementType enum 2015-07-07 20:37:09 +10:00
amaitland 9d1b9e16f5 Remove Body
Read in byte array
Add some extensions to access the Body data
2015-07-07 20:27:41 +10:00
amaitland 597b48b7da Add CefPostDataElementWrapper implementation 2015-07-07 19:56:52 +10:00
amaitland 6005fd3f2c Add outline of IPostData implementation 2015-07-07 19:35:39 +10:00
amaitland c86d24a177 Change to Object::ReferenceEquals for gcroot nullptr comparison - seemed a little nicer than a static_cast
Use direct cast of CefErrorCode
2015-07-07 16:51:45 +10:00
amaitland 3ab612a44a Rename Oninitialized to OnAfterBrowserCreated (more closely matches the underlying CEF API) 2015-07-07 16:48:45 +10:00
amaitland 23455de261 Add targetFrameName param to OnBeforePopup 2015-07-07 12:28:29 +10:00
Alex Maitland ff6d53ecff Merge pull request #1102 from amaitland/cleanup/browsersettings
BrowserSettings map to Enabled/Disabled/Default Enum
2015-07-07 10:37:07 +10:00
amaitland df29944016 Implement SendMouseMoveEvent in IBrowserHost
Can now be used by offscreen
2015-07-06 12:47:29 +10:00
amaitland 5c27b7befa Set toolTip to null after mouse leaves 2015-07-06 12:42:50 +10:00
amaitland 98d186c33c Move OnMouseButton into IBrowserHost (rename to SendMouseClickEvent) 2015-07-06 12:39:33 +10:00