Commit Graph

6179 Commits

Author SHA1 Message Date
amaitland 88b02ba904 Add ResourceHandlerType to deal with Files differently, use the underlying CefStreamReader::CreateForFile implementation 2015-07-29 20:49:29 +10: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
amaitland 2b34f80e7c Quick fix to make sure the correct IBrowser instance is used 2015-07-28 18:23:53 +10:00
Alex Maitland 42fe9f7977 Merge pull request #1150 from amaitland/feature/parentpopup
Support for Custom Popup
2015-07-28 17:29:56 +10:00
amaitland 39bc589991 Add w3school url to WPF example 2015-07-28 17:26:34 +10:00
amaitland 4ce9bc5463 Add IBrowser param to ILifeSpanHandler.OnAfterCreated 2015-07-28 17:19:50 +10:00
amaitland 9a0d7688a0 Merge branch 'cef/2272' 2015-07-28 17:17:12 +10:00
amaitland 19f0d61896 Add extra check for HasParent otherwise the browser window won't be closed accordingly - need to investigate why handles don't match 2015-07-28 17:07:25 +10:00
amaitland 9b09a9bd34 Basic LifespanHandler implementation can open the new window - has problems closing it through javascript 2015-07-28 17:01:29 +10:00
amaitland ce2521c986 Add IWebBrowserInternal.HasParent property so we know when there is a parent - OnAfterCreated is handled different for popup with a parent 2015-07-28 16:59:59 +10:00
amaitland d7edc64b13 Remove IsOffScreen param - will use the IPopupHandler events instead 2015-07-28 16:18:54 +10:00
amaitland a04082118f Change LifespanHandler to use explicit interface implementation 2015-07-28 16:07:17 +10:00
amaitland a8e038ac6d Simplify LifespanHandler 2015-07-28 16:05:09 +10:00
amaitland 6ccf8afbad Add BrowserAdapter to IWebBrowserInternal (was previously removed as it was no longer required) 2015-07-28 16:03:27 +10:00
amaitland d843e96407 Merge branch 'cef/2272' of https://github.com/jamespearce2006/CefSharp into cef/2272 2015-07-28 15:59:30 +10:00
amaitland bc8e2e6429 Fix minor mistake in OnResourceRedirect - was attempting to get the popup browser instance - still need to rewrite this at some point so it's cleaner 2015-07-28 13:50:28 +10:00
Alex Maitland a672d239eb Merge pull request #1137 from amaitland/features/add2357
Add Features related to 2357 Update
2015-07-28 11:17:35 +10:00
amaitland 93529cc845 Untabify 2015-07-28 11:16:02 +10:00
amaitland 03fa6e52c2 Add target_disposition and user_gesture params to ILifeSpanHandler.OnBeforePopup 2015-07-28 11:14:06 +10:00
amaitland 370832cd94 Remove unused references from CefSharp.OffScreen 2015-07-28 08:06:41 +10:00
amaitland f90ee3ea9c Remove the WPF SendKeyEvent and use the IBrowser.SendKeyEvent function instead 2015-07-27 13:32:34 +10:00
amaitland 4a70afeca3 WPF control - move some of the mapping methods into extensions, they could potentially be reused 2015-07-27 11:58:14 +10:00
amaitland 580faf9d90 Fix bug in OnFaviconURLChange - incorrectly passes in true for IsPopup when it's the main window
Should probably rewrite the function to simplify
2015-07-24 14:50:09 +10:00
amaitland 118182f537 Add modifiers param to SendMouseWheelEvent
Add SendKeyEvent to IBrowserHost including mapping struct classes
2015-07-24 12:23:29 +10:00
amaitland 92694e1852 Fix compiler warning when casting from int to bool - simply check if == 0 2015-07-24 12:16:56 +10:00
amaitland dbf16a4973 Add IBrowserHost.SetFocus
Add IBrowserHost.SendFocusEvent
Add ThrowIfDisposed for each method call in CefBrowserHostWrapper
2015-07-24 11:20:42 +10:00
cefsharp-ms bf08e671ff MethodRunnerQueue made a bit smarter 2015-07-23 15:13:12 +02: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 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
amaitland 0edb5534bf Add example of how to explicitly load a Pepper Flash version 2015-07-23 19:21:33 +10:00
amaitland 7a940a9617 Add Open Plugins tab in the WPF example
Add system-enable-flash example to enable PPAPI otherwise it's disabled
2015-07-23 19:18:07 +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
Jan Kurianski 44a13c3ac8 Merge pull request #1138 from NumbersInternational/example/menu-closer
Add ChromeWidgetMessageInterceptor to WinForms Example
2015-07-23 17:34:50 +10:00
jankurianski 786cf354bc ChromeWidgetMessageInterceptor made generic; added mouse event example. 2015-07-23 16:45:02 +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 94c686ffe8 Remove HandleDestroyed event handler after destroyed. 2015-07-23 14:09:42 +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
Jan Kurianski 0d8c9397ff Merge pull request #1141 from NumbersInternational/fixes/ongotfocus-init-crash
OnGotFocus no longer calls SetFocus if browser not initialized.
2015-07-23 13:25:26 +10:00
jankurianski 695b444ce4 OnGotFocus no longer calls SetFocus if browser not initialized.
Fixes following crash:

Exception: System.Exception
Message: 'Browser Is Not yet initialized. Use the
IsBrowserInitializedChanged event and checkthe IsBrowserInitialized
property to determine when the browser has been intialized.'
Source: CefSharp
Stacktrace:
at
CefSharp.WebBrowserExtensions.ThrowExceptionIfBrowserNotInitialized(IWebBrowser
browser)
at CefSharp.WinForms.ChromiumWebBrowser.SetFocus(Boolean isFocused)
at CefSharp.WinForms.ChromiumWebBrowser.OnGotFocus(EventArgs e)
at System.Windows.Forms.Control.WmSetFocus(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg,
IntPtr wparam, IntPtr lparam)
2015-07-23 12:19:08 +10:00
jankurianski 5aff906643 Release Chrome widget handle when browser destroyed; fix formatting; added comments. 2015-07-23 12:11:01 +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