Commit Graph

1628 Commits

Author SHA1 Message Date
amaitland 41b3da004f Cleanup CefTime handling - make consistent across all projects
# Conflicts:
#	CefSharp.Core/ResourceHandlerWrapper.cpp
2018-01-18 10:25:54 +10:00
amaitland c9000dc0de Add Cef.ShutdownWithoutChecks method - basically allows you to call the underlying CefShutdown method with minimal checks (just IsInitialized and a simple lock) 2018-01-18 10:25:52 +10:00
amaitland 85e32974ae WinForms - If the ChromiumWebBrowser has it's handle recreated then in OnHandleCreated we will now attempt to reparent a existing instance rather than creating a new browser
# Conflicts:
#	CefSharp.WinForms/ChromiumWebBrowser.cs
2018-01-18 10:25:51 +10:00
amaitland 5dfd24bddb Upgrade to CEF 3.3239.1723.g071d1c1 / Chromium 63.0.3239.132 2018-01-12 15:45:50 +10:00
amaitland c303e1ca0f JSB - Add support for async methods to return classes
Structs and classes can now be returned from an async method
Properties and fields are supported now. The returned class/struct is readonly effectively, no updates will be sent to the bound object.

Just to clarify this is only for objects bound using RegisterAsyncJsObject
2018-01-08 15:12:52 +10:00
amaitland ea4cafed18 Upgrade to CEF 3.3239.1716.g735b746 / Chromium 63.0.3239.109 2017-12-29 22:10:13 +10:00
amaitland 1ae29bdb78 Upgrade to CEF 3.3239.1709.g093cae4 / Chromium 63.0.3239.109 2017-12-26 09:17:52 +10:00
amaitland 7a0b06ad0b JSB Add support for dynamic keyword (using ExpandoObject)
As ExpandoObject implements IDictionary we can use it interchangeable with only minor breaking changes.
Those expecting Dictionary<string, object> should change to IDictionary<string, object> or ExpandoObject for their param types
This will also impact anyone who has implemented their own custom IBinder
I'd suggest changing the type checking from explicitly checking Dictionary<string, object> to use Type.IsAssignableFrom or another method of comparison
DefaultBinder binder has been updated to accommodate ExpandoObject (now being returned by ObjectsSerialization.cpp)
Add new async binding for testing new assignment method
Rewrite some of the async bound object tests to use await and let - modernize them
2017-12-21 13:00:36 +10:00
amaitland a6f20e82bc Upgrade to CEF 3.3239.1705.gf6d6dfc / Chromium 63.0.3239.109 2017-12-21 11:13:02 +10:00
amaitland 7b48980611 Remove CefDirtyRect
Replace with Rect as the structs were identical
2017-12-21 08:56:02 +10:00
amaitland 921ea55fff Add IDisplayHandler.OnAutoResize, IBrowserHost.SetAccessibilityState, IBrowserHost.SetAutoResizeEnabled
Wrappers for new methods/callback added
2017-12-21 08:53:56 +10:00
amaitland da898cc93b RequestContextHandler - Add CookieManager type checking
Type check that ICookieManager is of type CookieManager, not currently possible to provide a custom implementation.
Changes in response to #2189
2017-12-20 09:52:01 +10:00
amaitland 2c935268e6 Upgrade to CEF 3.3239.1700
Update version numbers to 63.x
Remove EnsureNuGetPackageBuildImports targets (newer nuget restore method should always be used)
cef.redist targets updated as package structure changed with commit https://github.com/cefsharp/cef-binary/commit/982a6330e70a75860bc6ecb6f84d55456b847d68
(Swiftshader should now be supported)
2017-12-19 11:44:34 +10:00
amaitland c4c14b4ae3 IRequest - Remove SetFlags and replace with Flags property (get and set) 2017-12-14 15:23:16 +10:00
Per Lundberg a15986979e Upgraded to CEF 62 (#2203)
* Upgraded to CEF 62.
* Upgraded CEF version in README.md
* Bumped appveyor etc versions to 62.0.0.
2017-11-30 21:43:11 +02:00
AgapovAlexsey ff749d0f13 Add copyright 2017-11-30 10:12:11 +11:00
AgapovAlexsey 7876b42288 Add support UrlRequestFlags 2017-11-30 10:12:11 +11:00
GrabzIt 93b08f1c12 Upgraded CEF to version 60 (#2159)
* Fixed pointer problem.

* Upgrade to CEF version 60

* Fix for invalid cookie date time

Error and stacktrace:

Year, Month, and Day parameters describe an un-representable DateTime.
   at System.DateTime.DateToTicks(Int32 year, Int32 month, Int32 day)
   at System.DateTime..ctor(Int32 year, Int32 month, Int32 day, Int32 hour, Int32 minute, Int32 second, Int32 millisecond)
   at CefSharp.ResourceHandlerWrapper.GetCookie(ResourceHandlerWrapper* , CefStructBase<CefCookieTraits>* cookie)
   at CefSharp.ResourceHandlerWrapper.CanGetCookie(ResourceHandlerWrapper* , CefStructBase<CefCookieTraits>* cookie)

Fixed by copying the same solution found here:

https://github.com/cefsharp/CefSharp/blob/cd934267c65f494ceb9ee75995cd2a1ca0954543/CefSharp.Core/Internals/CookieVisitor.cpp
2017-11-08 13:08:59 +02:00
GrabzIt 653896a5b3 Merge pull request #2114 from GrabzIt/master
Update to Cef Version 59.0.0
2017-10-07 08:16:54 +01:00
GrabzIt f76f4d9436 Updated pointer 2017-10-06 09:04:33 +01:00
GrabzIt 62ae9ed36f Fixed pointer 2017-10-06 08:26:59 +01:00
GrabzIt ea7d2c8082 Removed EnsureNuGetPackageBuildImports 2017-10-06 08:03:19 +01:00
Chris 7e2594d2e3 Added CefCustomScheme.IsCspBypassing
Resolves #2038
2017-08-29 18:00:36 +02:00
Oscar.One b82ce0787d Prevent merging of header values when using custom handlers (#2099) 2017-08-28 11:10:20 +02:00
GrabzIt 2f680f01b7 Updated version 59.0.0 to latest build 3.3071.1649 2017-08-18 20:37:41 +01:00
GrabzIt 08444fe035 Updated to version 59.0.0 2017-08-18 16:07:03 +01:00
GrabzIt 35f9cc3377 Update to Cef Version 59.0.0
Note that there is one breaking change as offscreen windows are now automatically transparent due to this cef change: https://bitbucket.org/chromiumembedded/cef/commits/3f71138d64586d774f645a6db5283b5205ea9df4

To make a offscreen window non-transparent you need to set the background colour as shown below were it is set to white:

browserSettings.BackgroundColor = 0255255255;
2017-08-18 15:45:52 +01:00
amaitland b78208b505 Untabify ClientAdapter.cpp 2017-06-02 11:34:26 +10:00
amaitland c2891c5d1e Add protected virtual methods for the most common IRenderWebBrowser methods that users would need to override.
Still maintain the explicit interface methods - prefer the additional compiler checks and readability
Rename IRenderWebBrowser.InvokeRenderAsync to OnPaint - keeps inline with CEF naming
Added better comments to IRenderWebBrowser.OnPaint
2017-05-29 13:33:50 +10:00
amaitland f93a387593 Use fully qualified cli::array as it appears VS2015 gets confused with the generic std::array (must be in the newer C++ library as code builds fine in VS2013)
Resolves #2049
2017-05-16 23:14:02 +10:00
Chris 2b7bdf863f Updated OnTooltipChanged to allow for modifying text (#1953)
* Updated OnTooltipChanged to allow for modifying text

* Updated examples
2017-05-15 02:52:02 +02:00
amaitland 79b5a8e5a6 Add error logging for CefApp::OnRegisterCustomSchemes 2017-05-08 13:27:42 +10:00
amaitland c8d0127f31 In rare cases CefStreamReader::CreateForFile returns null - rather than causing a hard crash, log the error and return NULL 2017-05-08 13:22:57 +10:00
amaitland 6691d0080a Refactor ResourceHandler, split FileResourceHandler out into it's own class, rather than relaying on ResourceHandlerType - this allows us to add more underlying CEF type wrappers without a huge amount of effort now.
Add new ByteArrayResourceHandler - uses CefStreamReader::CreateForData to load the byte array, for use with CefStreamResourceHandler
Add ResourceHandler.FromByteArray method for ease of use
Change ResourceHandler.FromString to use the new ByteArrayResourceHandler class
2017-05-05 12:55:44 +10:00
amaitland 5b472f7258 Upgrade version numbers to 58 - this is for development purposes only, there is no planned 58 version, next version is 59
Upgrade to CEF 3.3029.1611.g44e39a8 / Chromium 58.0.3029.81
2017-05-05 10:46:54 +10:00
amaitland ef27fb5cf0 Enable implementation of GetScreenPoint (was commented out)
Looks like the Point returned from PointToScreen is pre-scaled, so no need to perform a Transform
2017-04-19 12:23:13 +10:00
Chris 96d583c361 Used an array rather then creating a list then calling ToArray 2017-04-13 15:52:49 +02:00
Chris 8df4ec5342 Expanded proxy support, made it easier to set proxy settings (#2007)
- Added a ProxyOptions class
- Added a CefSharpSettings.Proxy property
- Made ClientAdapter::GetAuthCredentials take care of the authentication for the proxy
2017-04-12 02:43:11 +02:00
amaitland 9801cc55fc Untabify 2017-04-10 11:12:45 +10:00
amaitland c953bb5675 Merge branch 'master' of https://github.com/GrabzIt/CefSharp 2017-04-10 11:12:08 +10:00
amaitland 858bfd3cf6 Upgrade to CEF 3.2987.1601 2017-04-10 11:11:41 +10:00
GrabzIt 2526c818fc Added support for PDF scaling 2017-04-08 10:48:43 +01:00
amaitland 9bbe75f287 Upgrade to CEF 3.2987.1599 2017-04-06 12:20:59 +10:00
Chris 41b038a6b5 Fixed NullReferenceException in DoClose (#1980)
* Fixed NullReferenceException in DoClose
2017-03-31 07:29:32 +10:00
amaitland 6d88927be8 Upgrade to CEF 3.2987.1597 2017-03-29 16:12:49 +10:00
amaitland d60d1b73c8 SetCanExecuteJavascriptOnMainFrame was only being set when there was a RenderProcessMessageHandler assigned, change so it's always set
Improve the formatting of the exception thrown
2017-03-28 10:03:21 +10:00
amaitland eecf3aded9 Add IWebBrowser.CanExecuteJavascriptInMainFrame property, set to true/false when V8Context is created/released
Added checks in the execute/eval javscript methods in WebBrowserExtensions
Made possibly by the addition of OnContextReleased IPC message being added
2017-03-28 09:43:59 +10:00
amaitland b432d5aa38 Change IBrowserHost.SendMouse* to use the MouseEvent struct (added some extension methods to maintain API compatibility)
Review classes and structs
Added constructor to structs where all fields were required
Made some classes sealed, mostly those that are passed into the framework where subclassing and adding methods/properties wouldn't make sense
2017-03-27 15:46:34 +10:00
amaitland aba002a8d7 Start of class/struct cleanup - classes like WebPluginInfo should really have private setters, make it clearer than the values provided are readonly
Remove Plugin and replace with WebPluginInfo - resolves #1991
Still need to revisit the class/struct debate
2017-03-21 12:26:35 +10:00
amaitland 3bc9ca1898 Move Enums into their own folder (again not changing the namespace as to avoid breaking the public API, at least for now)
Add copyright disclaimer to JavascriptResponse
Remove Kernel32.OutputDebugString calls and replace with Debug.WriteLine
Removed ScriptException and ResponseAction - unused classes
Rename CefCursorType to CursorType - wasn't exposed as part of the public API so can rename
2017-03-21 10:05:38 +10:00