amaitland
ab4e513693
Improve ByteArrayResourceHandler and FileResourceHandler comments
...
They should probably be renamed before the next version is branched, give a better indication
they're classes that represent unmanaged CEF implementations
2017-05-11 13:02:13 +10:00
amaitland
16dbb10c61
Add ThrowExceptionIfCanExecuteJavascriptInMainFrameFalse method to reduce duplication.
...
Improve error message, add info about V8Context not being created for pages with no javascript
2017-05-08 13:16:24 +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
767b478dc6
Add Experimental option where bound async methods are queued on TaskScheduler.Default.
...
Set `CefSharpSettings.ConcurrentTaskExecution = true;` to enable this feature, should be set before the first ChromiumWebBrowser instance is created.
2017-05-04 12:53:48 +10:00
amaitland
3015bc31de
Fix typo on IRenderProcessMessageHandler.OnContextCreated
2017-05-03 09:50:30 +10: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
a683eade99
Follow up to #2010
...
ResourceFactoryItem renamed to DefaultResourceHandlerFactory - it's only used in the context of that class
Change persist to OneTimeUse and invert logic (false is the default)
Remove unnecessary RegisterHandler overload - user default value instead
2017-04-10 12:08:05 +10:00
amaitland
955867dfc1
Merge branch 'pr30' of https://github.com/merceyz/CefSharp
2017-04-10 11:34:30 +10:00
amaitland
c953bb5675
Merge branch 'master' of https://github.com/GrabzIt/CefSharp
2017-04-10 11:12:08 +10:00
GrabzIt
2526c818fc
Added support for PDF scaling
2017-04-08 10:48:43 +01:00
Chris
d03e4a44bd
Made LoadHtml register a "one-time use" handler
2017-04-07 14:22:47 +02:00
Chris
563505c3c6
Made it possible to register a "one-time use" ResourceHandler
2017-04-07 14:18:05 +02:00
amaitland
b357b736bb
Set ResponseLength when Stream.CanSeek
...
Don't attempt to write bytes when the bytesRead count is 0
2017-04-06 17:25:34 +10:00
amaitland
440cc7a67c
Remove ResourceHandler.FromFileName - was marked as Obsolete a while back
2017-04-06 16:05:18 +10:00
Chris
25be728b74
Moved structs into a Structs folder ( #2006 )
2017-04-05 21:55:54 +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
0a2693fa9b
IsCorsEnabled should be true in most cases where IsStandard is true (we default IsStandard to true)
...
Default IsSecure = true - seems like a logical default
2017-03-27 15:46:35 +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
Chris
5132883d9e
Changed from Uri.ToString to Uri.AbsoluteUri ( #1994 )
2017-03-27 09:27:54 +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
amaitland
910df4877a
Make callback ids unique within the render process to avoid overlay between different contexts - was possible to dispose of a callback on a different context to which it was created as the Ids were the same
...
Add IJavascriptCallback.Id - mostly for debugging purposes
2017-03-16 15:32:38 +10:00
João Neves
bc83d6c247
Allow calling managed methods from objects bound with RegisterAsyncJsObject that return arrays of structs ( #1981 )
...
* Fixed problem when calling CefV8Value::CreateArray. Needs prior call to V8 context enter
* Call callback dispose in case of failure
* Support serialization of struct arrays to JS side
* Fixed formatting
2017-03-13 21:37:55 +10:00
amaitland
e5ecfde20f
Upgrade version number to 57.0.0
...
Upgrade to cef.redist.x86.3.2987.1591
CefSchemeRegistrar::AddCustomScheme has new params - IsSecure and IsCorsEnabled
Also new CefRawPtr type is used for Scheme registra
2017-03-13 10:58:03 +10:00
amaitland
789888f4c9
Merge branch 'remove-caretbrowsing-setting' of https://github.com/mtschoen/CefSharp
2017-03-13 10:26:52 +10:00
amaitland
6173f4db43
Change PluginVisitor to accept the newly added IWebPluginInfoVisitor
...
Extract PluginVisitor TaskCompletionSource out into TaskWebPluginInfoVisitor
2017-03-10 15:31:25 +10:00
amaitland
43aa8a35ea
Remove IBrowserHost.PrintToPdfAsync - code is now implemented in the PrintToPdfAsync extension method
2017-03-10 14:43:35 +10:00
amaitland
85f80471bb
IFrame - Add additional xml comment, the underlying CEF framework will return a invalid frame with a identifier < 0
...
CefSharpBrowserWrapper::GetFrame - Only return frame if a valid reference is obtained
2017-03-07 11:05:31 +10:00
amaitland
5d459a5d32
Add IRenderProcessMessageHandler.OnContextReleased - native IPC message sent from render process
2017-03-07 09:23:10 +10:00
amaitland
7bf33f4a36
Expose ResourceH.GetMemoryStream - turns a string into a memory stream and optionally appends a BOM to the beginning
2017-03-06 08:55:07 +10:00
Chris
cd934267c6
Updated copyright year and made sure it used same format everywhere ( #1966 )
2017-03-06 08:44:37 +10:00
Matt Schoen
24841e73b4
Remove CaretBrowsing from IBrowserSettings to match latest CEF master cdcdfa99913a01f3617a0d25a2e2f2ed145987bd
2017-02-26 19:28:06 -08:00
Chris
55f2c82ac7
Fixed LoadHtml loading the Url even if RegisterHandler returns false ( #1943 )
2017-02-15 10:01:35 +10:00
Mike Bragg
74be8c8edf
Remove SuppressOpen enum value to line up with CEF ( #1942 )
2017-02-15 07:27:28 +10:00
amaitland
e6bcbe4111
Finish cookie manager rewrite, resolves #1936
2017-02-14 13:15:12 +10:00
amaitland
ff836fdb98
Start spilitting out the Task based callbacks that are implemented in VC++ and implement them in C# with an interface - allow direct access to underlying CEF API
2017-02-14 12:27:07 +10:00
amaitland
960c5953ba
Continue with CefSharp.csproj restructure - move more classes into subfolders (again no namespace change for backwards compatibility)
2017-02-14 12:08:58 +10:00
amaitland
f4814c4abb
Rename Task callbacks for consistency - will move them into a new folder shortly
2017-02-14 11:59:41 +10:00
amaitland
33416b009b
Move callback interfaces into Callback folder - leave in the CefSharp namespace to maintain backwards compatibility
2017-02-14 11:52:57 +10:00
amaitland
6e443ca091
CookieManager Rewrite - remove all the async wrappers and expose the underlying CEF API
...
Remove CookieAsyncWrapper as it's no longer required to perform the operations directly on the CEF IO thread.
Async extension methods will be added to maintain existing functionality
2017-02-14 11:40:12 +10:00
amaitland
ee5fd34ee6
Comment out Cef example - none of the CefSharp examples have the relevant directory present.
...
Update xml comments on Cef.RegisterWidevineCdm
Add braces to if check - even single line if statements have braces for consistency
2017-02-13 15:55:44 +10:00
Justin Stenning
2298ea0a93
Implementation of Cef.RegisterWidevineCdm ( #1935 )
...
* Added Cef.RegisterWidevineCdm for CEF Widevine CDM registration #1934
* Added test page for WidevineCdm registration and example registration #1934
* Noted additional steps for Widevine and proprietary codecs to CdmSupportTest.html
* Link for more information changed to issue #1934 in CefExample.cs
* replaced Cef.RegisterCdmCallback's async result with IRegisterCdmCallback parameter
* RegisterCdmCallback now uses taskCompletionSource
2017-02-13 15:37:55 +10:00
amaitland
4d697e00c8
ICompletionCallback now implements IDisposable and the CefCompletionCallbackAdapter disposes of the instance when it itself is disposed of.
2017-02-09 13:16:49 +10:00
amaitland
84930b0784
Update sandcastle help file version numbers to 55.0.0
...
Fix some other xml comments and remove some unused fields - still lots of comments that could be added
2017-02-06 15:00:45 +10:00
amaitland
e515cc0bfa
background_color should be BackgroundColor
2017-02-02 11:21:15 +10:00
amaitland
01e7e6f3d7
Add LoadHtml extensions method - use data uri to load the html
2017-02-02 11:21:14 +10:00
amaitland
8a9b0deb60
Upgrade to 3.2883.1552
...
Add isMainFrame to IRequestContextHandler.OnBeforePluginLoad (CEF API changed)
2017-02-01 13:58:51 +10:00
amaitland
314b3a00c7
IGeolocationHandler.OnRequestGeolocationPermission - improve comment
...
GeolocationHandler Example - upgrade to properly use the callback.
2017-01-30 10:05:44 +10:00