Commit Graph

6179 Commits

Author SHA1 Message Date
amaitland e94f063b47 WPF - Change from storing a reference to the Matrix to having a DpiScaleFactor property, can be used to manually set the scale factor.
If the scale factor is set after the browser has been created then it's necessary to manually call IBrowserHost.NotifyScreenInfoChanged
2017-05-30 14:19:13 +10:00
amaitland fe026a8f9e Add IWebBrowser.GetHost() extension method - make it easier to directly get the IBrowserHost reference 2017-05-29 13:49:23 +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 b2143f60d1 Add IWebBrowser.LoadUrlWithPostData extension method (in WebBrowserExtensions) - simplifies calling LoadRequest
Add IPostData.AddData extension method (in PostDataExtensions)
WPF Example change from calling LoadRequest to using new LoadUrlWithPostData extension method
2017-05-26 11:24:45 +10:00
amaitland d8520e8166 WPF - Hook the parent Window.StateChanged event and call IBrowserHost.WasHidden depending on visibility.
Seems like the only reliable way to determine when the window was minimized/restored
Should improve performance when browser is hidden
2017-05-22 16:17:32 +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 7ba2de4392 Example - RequestHandler: Throw exception on invalid URI (#2047) 2017-05-15 17:28:01 +02: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
Eirik Mildestveit Hammerstad 1609379ffe Update Readme with correct version of VC++ Version (#2043)
CefSharp 37 needs VC++ Redist version 2012, not 2013.
2017-05-11 19:46:46 +10:00
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 504d04dc43 Include FindReplaceMultiResponseFilter in example project, update it's copyright year and tweak it's formatting 2017-05-08 16:02:46 +10:00
amaitland 2cb7753b0b Add MemoryStreamResponseFilter example - data is copied into a memoryStream which can be read in IRequestHandler.OnResourceLoadComplete 2017-05-08 15:57:51 +10: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 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 0067d02360 Add UnicodeExamples one equal to 32kb (the default buffer size) and one slightly greater.
Change CefSharpSchemeHandlerFactory to always include a BOM (premable) to the front of the response data
2017-05-05 13:06:26 +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
Alex Maitland 7ddca1be50 Update ISSUE_TEMPLATE.md 2017-05-05 10:19:31 +10:00
Alex Maitland 921c70fc14 Update CONTRIBUTING.md
Replace cefbuilds link with spotify
2017-05-05 10:18:42 +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
Alex Maitland 0866fefa1b Update CONTRIBUTING.md
Update to spotify build server
2017-04-22 06:52:14 +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
amaitland dac81cdc0e Update README.md for 57.0.0 release 2017-04-18 16:15:46 +10:00
amaitland c138ba2519 Remove experimental option #1 from WinForms LifeSpanHandler example - should use SetAsChild method instead (I know the example is incomplete, contributions welcome).
newBrowser should only be used in WPF/OffScreen
2017-04-18 15:33:02 +10:00
Chris 06da5d28c6 Update README.md 2017-04-15 00:36:04 +02: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 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 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
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
amaitland 9bbe75f287 Upgrade to CEF 3.2987.1599 2017-04-06 12:20:59 +10:00
Chris 25be728b74 Moved structs into a Structs folder (#2006) 2017-04-05 21:55:54 +10:00
Chris 41b038a6b5 Fixed NullReferenceException in DoClose (#1980)
* Fixed NullReferenceException in DoClose
2017-03-31 07:29:32 +10:00
Alex Maitland d1a7f5b65b Update CONTRIBUTING.md
Fix header markdown
2017-03-31 06:27:38 +10:00
Alex Maitland f98833f561 Update ISSUE_TEMPLATE.md
Looks like `GitHub` have broken their `Markdown` parser. Reformat slightly so it's a least better, hopefully they'll fix soon.
2017-03-31 06:24:48 +10:00
amaitland d0ce4ea20f Add 57.0.0 branch details (branch to follow) v57.0.0-pre01 2017-03-30 10:38:26 +10:00
amaitland 6ded700373 Add Recaptcha test - https://cefsharp.com/Recaptcha.html 2017-03-30 07:55:47 +10:00
amaitland 6d7e21bb62 Revert "Disable VS hosting process for x64"
This reverts commit 26574eb2f6.
2017-03-29 16:15:04 +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