Commit Graph

1628 Commits

Author SHA1 Message Date
amaitland bbf7795d80 WPF/OffScreen - Add OnAcceleratedPaint
Exposes the CEF API for Shared D3D11 Texture support. This should be considered experimental as there are quite a few known bugs in the CEF implementation
(PDF Viewer not working correctly)

OffScreen.ChromiumWebBrowser.CreateBrowser API changed (breaking change) now pass in `WindowInfo` to customise settings
Refactor CreateBrowser to support windowed and OSR rendering (now accepts IWindowInfo)

Resolves #2527
2018-12-16 19:37:12 +10:00
amaitland c618dc155b RenderClientAdapter.h - GetViewRect must return a CefRect
CEF API Change see https://bitbucket.org/chromiumembedded/cef/commits/09afa3a843531a1768896bed3f64fb49ed81b525?at=3578
2018-12-16 10:48:52 +10:00
amaitland 8d3eb356a1 Upgrade to CEF 3.3578.1860.g36610bd / Chromium 71.0.3578.80 2018-12-16 05:13:32 +10:00
Chris 98d7262987 Refactoring - Move CefCookie conversion to TypeConversion (#2597) 2018-12-13 10:59:05 +01:00
Chris 4846471d0f Added SourcePath to CefSharp.Core and CefSharp.BrowserSubprocess.Core (#2595)
* Added include path to CefSharp.Core and CefSharp.BrowserSubprocess.Core

* Changed from IncludePath to SourcePath
2018-12-12 08:39:14 +10:00
amaitland 66919cf170 AbstractCefSettings - Remove stray forward slash from xml doc 2018-12-10 12:15:44 +10:00
amaitland f938b24964 CefRequestContextHandlerAdapter - Remove stray double quote 2018-12-10 09:46:04 +10:00
Chris d5aeb20fda Enabled MultiProcessorCompilation for CefSharp.Core and CefSharp.BrowserSubprocess.Core (#2596) 2018-12-09 13:10:55 +01:00
amaitland 485297bb7f Fix some xml doc encoding issues 2018-11-19 13:22:45 +10:00
amaitland cbd87dc7ce OnContextCreated/OnContextDestroyed - only continue if valid frame ptr
Follow up to #2563
2018-11-09 07:13:34 +10:00
Mitch Capper 921929484a Make sure frame is not null before accessing it (#2563)
closes #256
2018-11-09 07:09:39 +10:00
amaitland 958df1dc1d CefSettings.BrowserSubProcessPath - Change default absolute path to be relative to CefSharp.Core assembly location. 2018-11-07 12:01:37 +10:00
Alex Sukhovy 304a300b0c Call OnContextCreated and OnContextReleased for each frame (#2373)
* ContextEvents for each frame

* set CanExecuteJavascriptOnMainFrame

* example and comments

* whitespace fix

* comments

* whitespace

* update comments
2018-10-28 16:48:50 +10:00
amaitland ce93352345 Upgrade version numbers to 70.0.0 2018-10-28 10:53:26 +10:00
amaitland 4e50ad8a95 Upgrade to CEF 3.3538.1849.g458cc98 / Chromium 70.0.3538.77 2018-10-28 10:46:02 +10:00
amaitland f146a00b1f Cef.Initialize - Only validate browsersubprocesspath file exists specifically if dependency check is false 2018-10-26 13:22:08 +10:00
amaitland 30ba596db7 CefSettings/Cef.Initialize - Improve BrowserSubprocessPath checks
Change to using an absolute path for the BrowserSubprcessPath and validate the file exists in Cef.Intialize
2018-10-26 13:18:33 +10:00
amaitland 23b905dbda Upgrade to CEF 3.3497.1841.g7f37a0a / Chromium 69.0.3497.100 2018-10-23 12:58:37 +10:00
amaitland 8282482758 Upgrade to CEF 3.3497.1840.gcd24143 / Chromium 69.0.3497.100 2018-10-16 12:24:07 +10:00
amaitland 35414cac7a Scheme Handling - Don't attempt to register http or https schemes
http and https are built in schemes and don't need to be registered
Convert scheme name to lowercase
2018-10-09 20:26:15 +10:00
João Neves 8025139382 ManagedCefBrowserAdapter disposes methodRunnerQueue before destroying browser to prevent crash (#2529)
* Close cefsharp subprocess if main process dies

* Fixed crash when disposing browser and there's a pending method invocation

* Fixed crash when disposing browser and there's a pending method invocation
2018-10-05 12:40:58 +10:00
amaitland 529a463613 Upgrade to CEF 3.3497.1834.g0a87d5f / Chromium 69.0.3497.100 2018-09-30 15:22:53 +10:00
amaitland dcff3d0094 IJsDialogHandler - Rename OnJSBeforeUnload to OnBeforeUnloadDialog
Also fix xml doc

Resolves #2523
2018-09-25 20:56:31 +10:00
amaitland 557b279093 Upgrade to CEF 3.3497.1833.g13f506f / Chromium 69.0.3497.100 2018-09-23 21:05:06 +10:00
amaitland d136830443 CefApp::OnBeforeCommandLineProcessing - When value empty call AppendSwitch
Previously called AppendSwitchWithValue which fails now as it checks for a value

Resolves #2341
2018-09-23 20:30:22 +10:00
amaitland d8611436b3 V8Serialization - Combine if/else branches for enum serialization
Follow up to #2502
2018-09-23 20:02:39 +10:00
Wolfgang Kurz 0121b1c457 Enum serialization added to V8Serialization.cpp (#2502)
* Enum serialization added

* Revert codepage to 1252
2018-09-23 19:58:27 +10:00
amaitland 732f5851de Upgrade to CEF 3.3497.1829.g004ef91 / Chromium 69.0.3497.81 2018-09-16 13:01:45 +10:00
amaitland 05b37ab615 ClientAdapter::OnBeforePopup - throw exception if return true and newBrowser != null
Hopefully this reduces the number of support requests
2018-09-15 19:46:54 +10:00
amaitland 1a37c63182 Cef.Initialize - Improve xml doc 2018-09-15 19:33:49 +10:00
amaitland 6602977496 Upgrade version number to 69 2018-09-10 13:27:10 +10:00
amaitland b24286d591 Upgrade to CEF 3.3497.1827.ga4f7e36 / Chromium 69.0.3497.81 2018-09-10 12:13:39 +10:00
Chris bef5dd37c4 Maintenance - Fixed formatting, file encoding, and copyright year (#2504)
* Applied formatting

* Fixed file encoding + Updated copyright year

* Updated License

* Fixed more file encoding

* Copyright notice now shows the year the file was created
2018-09-10 10:41:13 +10:00
amaitland 28f43261b6 Xml Doc - Add more comments and fixes 2018-09-05 13:02:43 +10:00
amaitland 8ed2681619 Xml Doc - Add some more xml doc
Some of it's just placeholder doc to keep sandcastle happy
2018-09-05 13:01:41 +10:00
amaitland fe1d542b54 RenderClientAdapter - Add missing OVERRIDE statements 2018-08-16 19:38:17 +10:00
Igor 0ede12e7ba Add OSR AccessiblityHandler. (#2480)
* Add AccessibilityHander.

Implement CefAccessibilityHandler. Add IAccessibilityHandler interface. Add AccessibilityHandler field to IWebBrowser.

* Pull request fixes.

Replaces tabs with spaces; move CefAccessibilityHandler implementation to RenderClientAdapter; add missing comments.

* Add CefValueWrapper.

Add ICefValue interface; pass ICefValue to IAccessibilityHandler.

* Pull request fixes.

Rename CefValue to Value and CefValueType to ValueType; add CefValueWrapper::GetObject() method; remove stub code in AccessibilityHandler; fix comment on IAccessibilityHandler.

* Pull request fixes.

Fix comments for IValue; remove redundant global namespace reference for CefValueType.
2018-08-16 19:33:02 +10:00
amaitland e901c05581 Untabify ClientAdapter.cpp 2018-08-07 20:30:03 +10:00
amaitland bb67b6e9c3 Untabify RenderClientAdapter 2018-08-07 19:48:05 +10:00
amaitland d14c26a892 IResponse.ResponseHeaders - Make obsolete
Use IResponse.Headers instead
2018-08-07 19:33:51 +10:00
amaitland e5a7ed75ec Upgrade version numbers to 68.0.0 2018-08-07 19:15:00 +10:00
amaitland a9f249e835 ClientAdapter::OnSetFocus - When DevTools is opened, OnSetFocus is called before OnAfterCreated
The causes GetBrowserWrapper to return null when DevTools is opened, for now we'll just create the wrapper
and pass it directly (wrapper is disposed when it goes out of scope).
2018-08-07 19:10:58 +10:00
amaitland 9f2f1365c9 Cef.Initialize - Add more detail to exception through
Hopefully this reduces the support requests
2018-08-06 12:52:02 +10:00
amaitland a7c738456c WPF/OffScreen - Add missing ScreenInfo values
Change to using Rect struct

Follow up to #2474
2018-08-02 13:22:41 +10:00
alfein 391fe825d4 GetScreenInfo - Allow setting of Rect/AvaliableRect (#2474)
* added some code to send monitor information back to the cef

* reverted framework target change

* small cleanup.  Handling location changed of the window to force refresh screeninfo

* Fixed formatting of C++ code, added comments, removed code from samples

* removed extra white space
2018-08-02 13:21:02 +10:00
amaitland d87e795000 WinForms/Wpf/OffScreen - Create specific CefSettings class for each version
- This is a breaking change as there is no common `CefSharp.CefSettings`, there is no `CefSharp.Wpf.CefSettings`, `CefSharp.WinForms.CefSettings` and `CefSharp.OffScreen.CefSettings`
 - Cef.Initialize has been removed, the `ChromiumWebBrowser` constructor will call the `Cef.Initialize` with the defaults for your flavour
 - CefSettings.FocusedNodeChangedEnabled has been moved to CefSharpSettings.FocusedNodeChangedEnabled

Resolves #2477
2018-08-02 10:47:12 +10:00
amaitland 161e1ae0cc Upgrade to CEF 3.3440.1803.gde363ee / Chromium 68.0.3440.75 2018-08-02 10:03:10 +10:00
amaitland 1d94885d75 Upgrade to CEF 3.3396.1786.gd3e36d0 / Chromium 67.0.3396.79 2018-07-31 19:20:56 +10:00
amaitland 0f789fb09b Cef.Shutdown - Improve Thread Check error message 2018-07-25 21:58:08 +10:00
amaitland 9d4504db99 IDownloadHandler - Add IWebBrowser param to methods
Resolves #2470
2018-07-24 12:38:45 +10:00