Commit Graph

1190 Commits

Author SHA1 Message Date
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
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
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 423fc2a806 OnBeforePopup - throw exception if newBrowser == _browserControl (should never be) 2017-03-10 11:59:05 +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 8ff319fdb5 Update ClientAdapter::OnBeforeClose to use auto dispose method and improve the comment 2017-03-06 09:10:38 +10:00
amaitland 699a181f95 Change IResourceHandler.ProcessRequest lifetime handling for IRequest
Previous it was disposed immediately after the method had executed which made it hard to execute
in an async fashion (which is possible with the callback)
2017-03-06 08:55:08 +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 a89d4070af Updated build script and added assembly details to the C++CLI projects (#1947)
* Made build script update manifest files
* Made build script update AssemblyFileVersion
* Replaced tabs with spaces
* Added resource files to the C++ CLI projects to be able to set the version
* Added the rest of the resource files

* Fix build script error

* Made build script update version in the C++CLI projects

* Fixed WPF browser going blank when connecting over RDP

* Revert "Fixed WPF browser going blank when connecting over RDP"

This reverts commit 3c2997568d.
2017-02-22 10:56:40 +10:00
Chris e844bed531 Add Minimal WinForms Designer Support (#1946)
* Fixed designer support
* Adapted to feedback
* Revert "Adapted to feedback"
This reverts commit a1541c9cee.
* Adapted to feedback
* Added missing summary
2017-02-16 19:11:33 +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 f4814c4abb Rename Task callbacks for consistency - will move them into a new folder shortly 2017-02-14 11:59:41 +10:00
amaitland 55f5ce44b5 Remove unused using statement from CookieManager
Update  cookieManager.SetSupportedSchemes usage as no longer accepts param array
2017-02-14 11:53:41 +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 e515cc0bfa background_color should be BackgroundColor 2017-02-02 11:21:15 +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 64c6f4410a Update GetScreenPoint - still not ready for use as there has been limited testing 2017-01-30 09:39:11 +10:00
Alex Maitland 08d6fa902b GetScreenPoint changes not ready
Comment out code
2017-01-28 12:46:31 +10:00
amaitland c06a6bbc58 Add NativeMethodWrapper::SetWindowPosition helper method - code is duplicated and should be revisited later 2017-01-23 16:49:14 +10:00
amaitland d4ef1519b9 Add IRenderWebBrowser.GetScreenPoint - basic WPF implementation 2017-01-18 07:26:05 +10:00
amaitland 454be3cfa8 Add Crashreport functions
https://bitbucket.org/chromiumembedded/cef/src/6e0baff75ceeb3e079b1dda4099d81573334d741/include/cef_crash_util.h?at=2883&fileviewer=file-view-default
2017-01-16 11:30:37 +10:00
amaitland 8166a34c88 Upgrade to 3.2883.1545 2017-01-16 11:19:27 +10:00
amaitland db238f0838 Upgrade to 3.2883.1542 2017-01-12 13:09:35 +10:00
amaitland 2415529519 Add calls to CefDoMessageLoopWork before CefShutdown is called when settings.MultiThreadedMessageLoop = false 2017-01-06 14:08:55 +10:00
amaitland 264b42d35b Cef.Shutdown add double check lock - shouldn't be possible as it should always be run on the UI thread. Since we have the lock, best to double check
Add ManagedThreadId checking to Initialize/Shutdown - make sure they're called on the same thread.
2017-01-06 13:22:40 +10:00
amaitland 94820149ae Add IBrowserAdapter.Resize 2017-01-06 10:00:24 +10:00
amaitland fdd08896d7 Expose the IME methods/callback added with https://bitbucket.org/chromiumembedded/cef/commits/f7014be
It should now be possible for someone to implement IME support in the WPF control to resolve #1262
2016-12-14 07:32:03 +10:00
amaitland b7f7cc4dc6 Minor formatting changes to CefCertificateCallbackWrapper
Update WinFormsRequestHandler so the X509Certificate2UI.SelectFromCollection is made on the UI thread and
Follow up to #1878
2016-12-13 10:20:25 +10:00
Smaran Harihar fa41529853 Add IRequestHandler.OnSelectClientCertificate (#1878)
* wip create hooks for onSelectClientCertificate

* create interface and wrapper for callback

* get certificate from CefCertificateList, convert to X509Certificate2, add them to X509CertificateCollection and return this to ClientAdapter

* code review changes. Certificate selection in wrapper requires recreation of certificate in iteration

* added certificate dialog selection to WinFormsRequestHandler. Used VS untabify to remove all the tabs and replaced it with spaces

* missed updating a summary on ISelectClientCertificateCallback

* code review changes
2016-12-13 09:48:15 +10:00
amaitland d30e01fa1d Add ability to retrieve Ssl status from NavigationEntry
Needs to be revised as NavigationEntry and SslStatus are both structs and they should probably be wrappers
2016-12-12 06:34:33 +10:00
amaitland 6d568c7d09 Update CefSslInfoWrapper implementation and ClientAdapter::OnCertificateError so that it's now passed in as the param
(Possible to see the invalid certificate when there is an error)
2016-12-12 06:00:07 +10:00