Commit Graph

51 Commits

Author SHA1 Message Date
amaitland 8ced344ccd IBrowserHost - Add SendTouchEvent
- Includes Pen support

https://bitbucket.org/chromiumembedded/cef/commits/52d535a6dc4b8ec55c3aa7d6b6820e24f12516e8
https://bitbucket.org/chromiumembedded/cef/commits/7b5d30e9a92bacdcb81c60de19f1712aaf53ff74

Resolves #2663
2019-04-05 11:52:41 +10:00
merceyz 58e8a29c77 Refactoring - Move CefNavigationEntry conversion to TypeConversion 2019-03-23 13:11:28 +10:00
amaitland 988c8ca263 IBrowserHost - Add SetAudioMuted and IsAudioMuted
Resolves #2665
2019-03-21 21:26:17 +10:00
amaitland d5a8108ed1 RequestContext.h - Split method implementation out into RequestContext.cpp
Also fix up some other includes that were broken as a result. Still a lot more code cleanup to do.
2019-01-10 07:07:28 +10:00
Alex Maitland 02e3084af3 Add Chromium Extension Support (#2613)
* Add Chromium Extension Support

Add IRequestContext.LoadExtension
Add IExtensionHandler
Add IExtension
Add example (import from cefclient) - was added to CefSharp.WinForms.Example projct
Add RequestContextExtensions - to make loading an extension slightly easier
2018-12-31 13:12:10 +10:00
amaitland 2612c68002 Add IBrowserHost.RunFileDialog
Demo added to WinForms project

Resolves #2594
2018-12-28 13:39:33 +10:00
amaitland 9c742e0aac IBrowserHost.ImeSetComposition/ImeCommitText - Add ReplacementRange
IBrowserHost.ImeCommitText - Add relativeCursorPos

The CEF doc https://magpcss.org/ceforum/apidocs3/projects/(default)/CefBrowserHost.html says they should be optional params and only required on Mac OSX
Reports suggest they are required.

Resolves #2599
2018-12-27 21:14:36 +10:00
amaitland bbf7795d80 WPF/OffScreen - Add OnAcceleratedPaint
Exposes the CEF API for Shared D3D11 Texture support. This should be considered experimental as there are quite a few known bugs in the CEF implementation
(PDF Viewer not working correctly)

OffScreen.ChromiumWebBrowser.CreateBrowser API changed (breaking change) now pass in `WindowInfo` to customise settings
Refactor CreateBrowser to support windowed and OSR rendering (now accepts IWindowInfo)

Resolves #2527
2018-12-16 19:37:12 +10:00
Chris bef5dd37c4 Maintenance - Fixed formatting, file encoding, and copyright year (#2504)
* Applied formatting

* Fixed file encoding + Updated copyright year

* Updated License

* Fixed more file encoding

* Copyright notice now shows the year the file was created
2018-09-10 10:41:13 +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
GrabzIt f76f4d9436 Updated pointer 2017-10-06 09:04:33 +01:00
GrabzIt 2f680f01b7 Updated version 59.0.0 to latest build 3.3071.1649 2017-08-18 20:37:41 +01:00
amaitland 9801cc55fc Untabify 2017-04-10 11:12:45 +10:00
GrabzIt 2526c818fc Added support for PDF scaling 2017-04-08 10:48:43 +01: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 43aa8a35ea Remove IBrowserHost.PrintToPdfAsync - code is now implemented in the PrintToPdfAsync extension method 2017-03-10 14:43:35 +10:00
Chris cd934267c6 Updated copyright year and made sure it used same format everywhere (#1966) 2017-03-06 08:44:37 +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 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 1ccb55e9e0 Add IBrowserHost::GetVisibleNavigationEntry - step one in implementing #1793 2016-10-20 19:15:05 +10:00
amaitland c1eecdc709 Add IBrowserHost.HasDevTools 2016-07-15 07:31:33 +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 74af952377 Expose PrintToPdf - can use the callback directly if required 2016-05-31 19:11:01 +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
Vasiliy Vdovichenko 45c4221a51 Fixed Wpf ChromiumWebBrowser throws ObjectDisposedException after dispose - https://github.com/cefsharp/CefSharp/issues/1631 2016-03-17 16:20:00 +02:00
amaitland 0181d59850 Add SendKeyEvent overload that takes the message params and parses them - using the managed method would have required an unnecessary object creation
This code maybe useful to someone, can be used in the context of the OffScreen browser now
2016-01-12 15:31:13 +10:00
amaitland 63ba97042d Move the Drag OSR methods from ManagedCefBrowserAdapter to CefBrowserHostWrapper 2016-01-12 14:36:24 +10:00
amaitland bae3c28e92 Update copyright to 2016 2016-01-11 14:11:30 +10:00
amaitland dc121af997 Add IRequestContext interface to allow for extension methods
Can now access the RequestContext through IBrowserHost (can get access to the global context if required now)
2015-12-23 08:30:43 +10:00
amaitland 1d9ce8d4de Add a number of missing methods to IBrowserHost (some methods are not relevant to windows and some need additional pieces
Improve documentation
Reorder events so they match the CefBrowserHost doco (alphabetical ordering)
Tidy up the xmldoc for IJsDialogHandler.OnJSDialog suppressMessage param
2015-12-22 09:10:29 +10:00
amaitland b9ee476e8e Fix up some of the vc++ include mess that we had going
Cleanup using namespace statements as well
2015-09-29 16:26:06 +10:00
amaitland 1843486050 Rename CefSharpPdfPrintSettings to PdfPrintSettings (inconsistent naming)
Add xml documentation to PdfPrintSettings
Change return type from Task to Task<bool> (exceptions are expensive and unnecessary)
Fix small bug in assigning HeaderFooterTitle and HeaderFooterUrl (values were switched)
Allow PrintToPdfAsync to accept nullptr for settings (use defaults)
Update xml documentation in various instances for PrintToPdfAsync
2015-09-20 18:43:06 +10:00
David Serfozo 6ecb0fc129 PrintToPdf API changed to use Tasks instead of callbacks 2015-09-19 13:28:52 +02:00
David Serfozo 8e8edf80f3 simplified PrintToPDF in CefBrowserHostWrapper 2015-09-19 13:06:08 +02:00
David Serfozo fc03b24abf added printtopdf implementation 2015-09-19 11:02:32 +02:00
David Serfozo e6338ce7e6 added printtopdf to browserhost interface 2015-09-19 10:53:46 +02:00
amaitland 19afbfe167 Add BrowserSettings.WindowlessFrameRate
Add IBrowserHost.WindowlessFrameRate
2015-09-10 15:14:37 +10:00
amaitland 72b1bcab49 Add CefWrapper object to abstract some of the boiler plate stuff like ThrowIfDisposed and IsDisposed
Fix up incorrect namespaces (move to Internals)
2015-09-01 12:10:42 +10:00
amaitland 330e6b38b0 Add IsDisposed property to interface objects
Fixes #1223
2015-08-31 13:32:48 +10:00
amaitland ca79bdf508 Rename CefWindowInfoWrapper.h to WindowInfo.h as it's not a public class that can be instantiated for use with ShowDevTools 2015-08-13 15:11:37 +10:00
amaitland 7d6a7146ba Use default params for ShowDevTools - only one method rather than individual overloads
Remove CefObjectFactory.h - will make CefWindowInfoWrapper a public class
2015-08-13 15:08:45 +10:00
amaitland b1e9ce5c5a Add ShowDevTools overload that allows for passing of coordinates and custom windowInfo
Just need to wrap CefBrowerSettings
2015-08-13 11:05:22 +10:00
amaitland a21d01a536 Add missing type param to SendKeyEvent 2015-08-06 21:35:20 +10:00
amaitland 118182f537 Add modifiers param to SendMouseWheelEvent
Add SendKeyEvent to IBrowserHost including mapping struct classes
2015-07-24 12:23:29 +10:00
amaitland dbf16a4973 Add IBrowserHost.SetFocus
Add IBrowserHost.SendFocusEvent
Add ThrowIfDisposed for each method call in CefBrowserHostWrapper
2015-07-24 11:20:42 +10:00
amaitland df29944016 Implement SendMouseMoveEvent in IBrowserHost
Can now be used by offscreen
2015-07-06 12:47:29 +10:00
amaitland 98d186c33c Move OnMouseButton into IBrowserHost (rename to SendMouseClickEvent) 2015-07-06 12:39:33 +10:00
amaitland fbe8ccd61c Move Invalidate method from ManagedCefBrowserAdapter into CefBrowserHostWrapper - now can be used in OffScreen 2015-07-06 12:25:09 +10:00
amaitland f239503bb3 Move SendMouseWheelEvent to IBrowserHost 2015-07-01 19:38:14 +10:00
rassilon 431cb511c3 * Move unmanged objects into finalizer and call finalizer from Dispose.
* Remove DisposableResources from ManagedCefBrowserAdapter
* Improve disposing of CefRequestWrapper
* Have callbacks dispose themselves.
* Allow the Application exit handler shutdown CEF from the Winforms example application.
2015-06-13 10:42:33 -04:00