Commit Graph

62 Commits

Author SHA1 Message Date
Alex Maitland 6df59e0cf2 Core - Fix some xml doc mistakes 2023-02-23 13:05:53 +10:00
Alex Maitland 6c18e0e863 Update IDialogHandler.OnFileDialog method declaration
CEF is now using Chrome file dialogs on all platforms and runtimes, this brings a number of fixes and also some API changes.

- The selectedAcceptFilter filter arg has now been removed
- The CefFileDialogFlags enum has been removed as CEF no longer supports these options

This is a breaking change.

Issue #4110
2022-05-17 19:51:08 +10:00
Alex Maitland 597e54fc11 IBrowserHost.Find remove identifier param
Resolves #4013
2022-02-22 11:17:56 +10:00
Alex Maitland aa8403a5d6 WPF - Add ChromiumWebBrowser.OnBrowserWasHidden
Can be overridden to keep the browser in a visible state even when it's not displayed
on screen.
2021-11-05 10:29:36 +10:00
campersau 898b843d5d DevTools - Add GetNextDevToolsMessageId to IBrowserHost (#3774) 2021-08-28 11:44:12 +10:00
Alex Maitland bec06b2495 Add Fluent DownloadHandler (#3576)
* Core - Add Fluent DownloadHandler implementation and IFrame.DownloadUrlAsync

Resolves #3550
2021-06-01 13:34:21 +10:00
Alex Maitland 6e881eeafc Xml Doc - Fix some mistakes 2021-01-08 14:26:21 +10:00
Alex Maitland 8258102569 Core - Move OnCursorChange from CefRenderHandler to IDisplayHandler
Resolves #3275
2020-11-07 18:17:14 +10:00
amaitland 42239074bf Core - Update IBrowserHost.Find xml doc
Resolves #3210
2020-08-16 14:23:31 +10:00
Konstantin Preißer 5e89f71a44 Add new projects targeting .NET Core 3.1 (#3181)
* Add .NET Core 3.1 projects for CefSharp, CefSharp.Core, CefSharp.BrowserSubprocess.Core, CefSharp.WinForms, CefSharp.Wpf, CefSharp.OffScreen.

Contributes to CefSharp#2796

* - Remove dependencies to "opengl32.lib" and "glu32.lib" which aren't available for ARM64 and don't seem to be needed.
- Clean up project files.

* Switch project CefSharp.netcore.csproj to AnyCPU as it doesn't require different builds for each platform.

* Remove WindowsTargetPlatformVersion property as that is declared in CefSharp.props.

* Use "bin.netcore" and "obj.netcore" as [intermediate] output path for the .NET Core projects, to allow side-by-side builds with the .NET Framework projects.

* Output documentation files.

* Add CefSharp.Example.netcore and CefSharp.WinForms.Example.netcore.

* Follow-up: Remove properties from the example projects that are also not used in the corresponding .NET Framework projects.
2020-07-23 15:21:14 +10:00
amaitland 49ee24912d Core - Add support for direct DevTools protocol messaging
Add support for direct DevTools protocol messaging (fixes issue #2961).

This change allows the client to directly send and receive DevTools
protocol messages (send method calls, and receive method results and
events) without requiring a DevTools front-end or remote-debugging
session.

https://bitbucket.org/chromiumembedded/cef/commits/fd6631bd181233d36b98e1327da84c44372add76
2020-06-29 11:12:37 +10:00
amaitland c63c301451 Core - Improve IBrowserHost.NotifyMoveOrResizeStarted xml doc 2020-05-05 08:34:48 +10:00
amaitland 9dcb0ccad2 Core - Add IBrowserHost.TryCloseBrowser 2020-02-11 07:06:50 +10:00
amaitland 10d52419f3 xml doc improvements 2020-01-29 10:22:18 +10:00
amaitland 99c177aa30 IBrowserHost.GetVisibleNavigationEntry - Add call to ThrowIfExecutedOnNonCefUiThread guard and improve xml doc
Resolves #2986
2019-12-10 08:08:19 +10:00
amaitland 794c77e79d IBrowserHost - Add GetZoomLevel
Can be called directly on the CEF UI thread
2019-09-02 11:39:21 +10:00
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
amaitland 988c8ca263 IBrowserHost - Add SetAudioMuted and IsAudioMuted
Resolves #2665
2019-03-21 21:26:17 +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 30ee538ce0 Added EditorConfig (#2514) 2018-09-17 00:46:21 +02: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 8ed2681619 Xml Doc - Add some more xml doc
Some of it's just placeholder doc to keep sandcastle happy
2018-09-05 13:01:41 +10:00
amaitland b492905cea Code cleanup - Move some structs and enums into separate namespace
- Move the less likely to be used structs/enums into the relevant namespaces, would ideally like to move them all, would likely cause a few issues
for some when upgrading though, so deferring for now.
- Remove Geoposition as it's no longer used (Geolocation API was removed in CEF)
2018-04-20 12:56:32 +10:00
amaitland 9fc2f33ea8 Xml Doc improvements
Fix some invalid markup
Move some unmanaged constructors and implicit conversion to internal
2018-02-09 13:41:55 +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
amaitland e4447147dd IBrowserHost - Fix typo in xml comments preventing sandcastle from generating doc correctly 2017-12-20 12:26:50 +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 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 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 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 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 fb5c6f7ecb More xml doc improvements 2016-04-15 15:27:19 +10:00
dga711 4e79f1091b Add some xml documentation (#1643)
* add some xml doc

* add missing drag xml doc

* xml doc corrections

* more xml doc
2016-04-08 18:55:29 -05: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 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 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 330e6b38b0 Add IsDisposed property to interface objects
Fixes #1223
2015-08-31 13:32:48 +10:00