Commit Graph

1628 Commits

Author SHA1 Message Date
amaitland 5172a7740d Add DisableGpuAcceleration to CefSettings 2016-09-29 10:53:51 +10:00
amaitland 6ed54d3ad5 Update cherry picked commits to reflect IRequestContextHandler (replaced IPluginHandler) 2016-09-26 09:08:42 +10:00
amaitland 3066b19f84 Add RequestContext::CreateContext static method to create a context that shares the storage with an existing 2016-09-26 09:06:29 +10:00
amaitland fb1c70a44c Rename IPluginHandler to IRequestContextHandler
Add IRequestContextHandler.GetCookieManager() - Can now have unique CookieManager for each RequestContext
**Breaking Change**
CookieManager should be moved from the CefSharp.Internals namespace - will do that at some point later hopefully
2016-09-25 20:35:04 +10:00
amaitland 895932d05e Remove EnableInternalPdfViewerOffScreen() as disable-surfaces has been removed from Chromium.
This leaves the original https://bitbucket.org/chromiumembedded/cef/issues/1689 issue as being a problem, for now just disable GPU acceleration

Conversation about disable surfaces is http://magpcss.org/ceforum/viewtopic.php?f=6&t=14520&p=32346#p32345
2016-09-23 09:16:05 +10:00
amaitland a39ef00ac5 Upgrade to 3.2785.1480 2016-09-23 09:16:04 +10:00
amaitland 4903f12341 Upgrade to 3.2785.1478 2016-09-15 10:45:58 +10:00
amaitland 98f1dedd16 Expose CefRunMessageLoop and CefQuitMessageLoop - It may be possible to run the CEF message loop and then load the WinForms Form on the same thread. 2016-09-08 15:54:08 +10:00
amaitland 7f8cb2e580 Upgrade to 3.2785.1474 (First stable Chromium 53 release) 2016-09-05 09:34:50 +10:00
justin-caldicott 8f02008c58 Fix NRE when returning null from a scheme handler factory (#1792)
Regression in 49.0 release.  Prevented use of default CEF handler when
using a custom scheme handler.
2016-09-02 06:45:51 +10:00
amaitland e7a5c0c3dd IBrowserProcessHandler now implements IDisposable 2016-09-01 14:33:18 +10:00
amaitland 2f4e613f9a Add missing OnScheduleMessagePumpWork method to CefSharpApp 2016-09-01 11:44:40 +10:00
amaitland 4494c8ebb6 Upgrade to 3.2785.1466 - unstable version of Chromium, not recommended for production 2016-08-28 08:49:34 +10:00
amaitland d28fc1337d Resolve #1780 2016-08-26 19:44:51 +10:00
amaitland 8bf6061df6 Upgrade to 3.2743.1447 (upgrading for testing purposes only, 53.0.0 will be based on 2785) 2016-08-20 08:16:58 +10:00
Alex Maitland d4feffb554 Feature - Add IBinder (#1749)
* Add basic ModelBinding which was imported from NancyFx framework - more can be stripped out that's unused

* Add IBinder as a param when registering an object for binding
Binding is disabled by default

* Add license and remove unused using statements

* Make bind method virtual to allow for overriding
Make methods protected

* Add very basic collection support - only primitive types supported for now.
Remove unused exceptions

* Support binding a list of sub objects

* Add null check for null params

* Add BindingOptions class - remove binder and CamelCaseJavascriptNames properties - allow for additional options in the future
Breaking change.

* Add support for List<object> binding type
2016-07-20 13:38:24 +10:00
amaitland 63ef6beb5f Refactor OnContextInitialized out as part of IBrowserProcessHandler interface
Add OnScheduleMessagePumpWork for use with integrating into existing message loop - probably better for WinForms integration, will look at providing an example later
2016-07-20 13:08:47 +10:00
amaitland c8177da0b6 Upgrade to 3.2743.1441
Add TransitionType to FrameLoadStartEventArgs
2016-07-16 21:24:00 +10:00
amaitland c1eecdc709 Add IBrowserHost.HasDevTools 2016-07-15 07:31:33 +10:00
amaitland 2d062a4a1e Add IWindowInfo.ExStyle 2016-07-01 11:30:30 +10:00
Dimas Mohammad 925f36cdfc Adding List type conversion (#1719)
* Adding List type conversion
2016-06-23 14:50:13 +10:00
amaitland 84dc406c7f Upgrade to 3.2704.1432 2016-06-20 11:12:27 +10:00
amaitland 60a1e615fc Upgrade to 3.2704.1429 - Required for following changes as cef.redist targets files have changed
Update CefSharp.Common.targets so it copies the cef.redist packages
Add support for Win32 target (obviously uses x86 files)
Update CefSharp.Native.props to copy the files also for local builds
Add AnyCPU target
Add CefLoader helper class for AssemblyResolver
2016-06-17 10:35:12 +10:00
amaitland 0276844320 Add CefSettings.PersistUserPreferences
Add RequestContextSettings.PersistUserPreferences

To persist user preferences as a JSON file in the cache path directory set this value to true
2016-06-16 18:28:14 +10:00
amaitland af3bc3a037 Change CefSharp.Core.vcxproj so CefSharp.props file is now relative - required for Sandcastle help builder
This change is somewhat experimental, see how we go
2016-06-15 16:40:10 +10:00
amaitland 3568629535 Remove Cef.LoadLibCefLibrary - needs to be called before the managed wrapper is loaded
Added CefLibraryHandle - uses P/Invoke to call LoadLibraryEx
2016-06-13 09:27:21 +10:00
amaitland 4912e45155 Untabify CefNavigationEntryVisitorAdapter 2016-06-07 12:34:45 +10:00
amaitland 40f00d2ce8 Implement IBrowserHost.GetNavigationEntries
Added TaskNavigationEntryVisitor - currently there is no async method exposed on IBrowserHost (be nice if someone else contributed a PR that implemented this).
Resolve #1503
2016-06-07 12:32:34 +10:00
amaitland ae8e9314a4 Upgrade to 3.2704.1418
Remove $(SolutionDir) and revert to relative path (Nuget keeps changing it when we upgrade and it's annoying to manually edit those files for something that's
not required for the core project to work)o
2016-06-06 20:33:48 +10:00
amaitland 9db72f12ad Add RequestContext xml doc (copied from IRequestContext) 2016-06-03 09:07:53 +10:00
amaitland bbc6e45b12 Add xml doc to RequestContextSettings 2016-06-03 09:02:13 +10:00
amaitland 76687cf73e BrowserSettings add xml doc 2016-06-03 08:58:53 +10:00
amaitland 580a5d344a Add CefSettings xml doc 2016-06-03 08:54:58 +10:00
amaitland 2542cca33a If result from cookie visit is null then delete the visitor callback (dispose) 2016-05-31 19:11:37 +10:00
amaitland 74af952377 Expose PrintToPdf - can use the callback directly if required 2016-05-31 19:11:01 +10:00
amaitland feff68895f Add Visit cookie async methods 2016-05-31 18:46:45 +10:00
amaitland 18e3cb77de Add IResponse.ErrorCode
Add IResponse.IsReadOnly
2016-05-30 08:20:25 +10:00
amaitland 62292e4211 NPAPI Plugin methods removed from API
cef_runnable.h has been removed
Update IJsDialogHandler.OnJSDialog - acceptLang removed from API
2016-05-30 07:57:48 +10:00
amaitland 33006a030a Update to CEF 3.2704.1415 2016-05-30 07:52:05 +10:00
amaitland bc298f6415 Add GetSource and GetText methods that take an IStringVisitor 2016-05-29 22:21:32 +10:00
amaitland 3061becb3f IResourceHandler now implements IDisposable - you can cleanup and resources when the handler is disposed 2016-05-26 07:28:19 +10:00
amaitland 9262d731d5 IResponseFilter now implements IDisposable
Call delete in CefResponseFilterAdapter destructor
2016-05-20 08:13:14 +10:00
amaitland d1d754cf58 Remove CefWindowInfo from ClientAdapter::OnBeforePopup they will now need to be made in client code
(This is now possible as IWindowInfo exposes all the relevant pieces).
This will allow for a little more flexibility, specially on the WinForms front, it should be possible to create the control and then show the window later
2016-05-19 12:11:29 +10:00
amaitland 87dcecd749 Upgrade to 3.2623.1401 2016-05-16 21:12:52 +10:00
amaitland 8bbfb38195 BrowserSettings - Remove duplicate virtual statement 2016-05-11 12:08:08 +10:00
amaitland 54f7fccdaa Upgrade to .Net 4.5.2
Resolve #1572
2016-05-10 20:28:21 +10:00
amaitland 6ffbbf198a EXPERIMENTAL : Add Cef.LoadLibCefLibrary - calls LoadLibraryEx allowing potentially can be used to host libcef.dll and resources in a different folder 2016-05-09 11:49:47 +10:00
amaitland 60ae3cc739 Switch to using TrySetResult instead of SetResult
Invoke TrySetResult using TaskFactory.Run so continuations are run in an async fashion

Reference #1672
2016-04-27 21:01:58 +10:00
amaitland b246192b1b Remove shutdownOnExit handler - WinForms and WPF have their own, OffScreen it's better to call explicitly.
Resolve #1671
2016-04-27 19:13:23 +10:00
amaitland 3e55460bb1 Change CefGetGeolocationCallbackWrapper to SetResult in destructor if no result has been returned - remove the need for task timeout 2016-04-27 19:11:53 +10:00