73 Commits

Author SHA1 Message Date
amaitland 19739abd9c Remove Alloy Bootstrap (M128)
- Remove ChromeRuntime option
- Remove Extension Handling and related methods (no longer supported)
- Remove PackLoadingDisabled (no longer supported)
- Remove PersistUserPreferences (always on)

Resolves #4795
2024-09-18 17:53:17 +10:00
Alex Maitland 5316c6e9e6 Core - Update PdfPrintSettings (Continued)
- Update MarginType
- Update example

#4311
2022-11-21 19:03:14 +10:00
Alex Maitland 92892c9b85 WPF - Add ChromiumWebBrowser.ToggleAudioMuteCommand
- Add new extension method to toggle audio mute
- Add new command to toggle audio mute
- Add new menu item to WPF Example

Resolves #3247
2022-10-25 12:32:01 +10:00
Alex Maitland 27816d54b8 Core - Change from using GetBrowser() method to BrowserHost
- BrowserHost will return null if not set where GetBrowser() will throw an exception
2022-01-05 10:14:24 +10:00
Konstantin Preißer 462bc747bd Add support for Windows ARM64 to CefSharp.NETCore packages (#3359)
* Add support for Windows ARM64 for the NETCore packages.

Note: .NET 5.0 or higher is required to build a WinForms/WPF application for win-arm64.

Fixes cefsharp/CefSharp#2944

* PR feedback: Remove "WIN32" define as it is already defined by minwindef.h.

* PR feedback: Switch the CefSharp.*.Example.netcore and CefSharp.Test.netcore projects from cef.redist to chromiumembeddedframework.runtime.

Note: These projects are excluded for build when platform is 'arm64', as otherwise the build fails as WinForms and WPF are not yet available for ARM64 in .NET 5.0.

* Follow-Up: Update path to CefSharp.Test.dll.

* PR feedback: Also use RuntimeInformation for the .NET Framework example projects.

* PR feedback:
- Remove copying of CefRedist files in CefSharp.AfterBuild.targets which is no longer needed.
- Update .vsconfig to include the VC ARM64 build tools.
2021-04-01 17:27:48 +10:00
amaitland ae17525092 WPF Example - Can now run LegacyBindingTest from menu without code change
It's a bit of a hack at this point, have to read the property from the DataContext.
Need to work on a clean binding solution

Issue #2977
2020-05-23 20:08:51 +10:00
amaitland d6ca2531eb WPF Example - Add LoadExtension Test
Uses the set_page_color that CEF uses for testing
2020-05-05 15:06:11 +10:00
amaitland f9c9c7fce5 Core - RequestContext.ClearHttpAuthCredentials now defaults to using NoOpCompletionCallback if callback was null
Workaround for a CEF bug which crashes if NULL is passed in as arg to CefRequestContext::ClearHttpAuthCredentials

https://github.com/cefsharp/CefSharp/issues/2957#issuecomment-555285400
2019-11-27 11:23:07 +10:00
amaitland 7b599bb188 WPF Example - Add ClearHttpAuthCredentials menu item 2019-11-19 11:10:27 +10:00
amaitland b65719f3e6 WPF - Add Resize Hack Test Code
- Add test code from https://github.com/mol/CefSharp/blob/reworkedhack2779/CefSharp.Wpf.Example/MainWindow.xaml.cs#L181
2019-09-07 14:02:30 +10:00
Alex Maitland fe98124c9b Async JavascriptBinding - Add support for returning Task (#2771)
* Async JavascriptBinding - Add support for returning Task

Remove Parallel Task execution code from MethodRunnerQueue
Add ParallelMethodRunnerQueue
  - For the new code path the Func is executed, if the Result is a generic Task we wait for it's completion
  - If the task is not generic then we return immediately

This is only enabled when CefSharpSettings.ConcurrentTaskExecution = true;
* MethodRunnerQueue - Display error message when method returns Task
* ParallelMethodRunnerQueue - Rename to ConcurrentMethodRunnerQueue
* MethodRunnerQueue - Improve formatting of error message when method returns Task
* Async JavascriptBinding Return Task - Add Basic xUnit Test

Very quick test, needs to be refined a little. The basics are working as expected.

* Add Binding Test Async Task Example to the WPF Example menu

* Async JSB Task - Add additional tests and improve error messaging
2019-06-08 17:21:49 +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 a1895159a1 WPF - Revert unnecessary formatting changes from #2474 2018-08-02 13:22:41 +10:00
alfein 391fe825d4 GetScreenInfo - Allow setting of Rect/AvaliableRect (#2474)
* added some code to send monitor information back to the cef

* reverted framework target change

* small cleanup.  Handling location changed of the window to force refresh screeninfo

* Fixed formatting of C++ code, added comments, removed code from samples

* removed extra white space
2018-08-02 13:21:02 +10:00
Chris cd934267c6 Updated copyright year and made sure it used same format everywhere (#1966) 2017-03-06 08:44:37 +10:00
Philip Beber b47731de5e Added DownloadItem .OriginalUrl (#1877)
* Added "OriginalUrl" property to DownloadItem which wraps "GetOriginalUrl" in CEF.

Added a sidebar to the example app which shows the DownloadItems as received by CefSharp.Core/Internals/TypeConversion.h

Added a View menu for hiding/showing the regular sidebar and the new download info sidebar.

* Pull request feedback
2016-12-04 22:26:49 +10:00
amaitland 23b8e1c14a WPF Example - Add Zoom out to menu 2016-10-24 09:36:02 +10:00
amaitland cb53751729 Add ZoomIn, ZoomRest command to WPF Example 2016-08-31 09:16:33 +10:00
amaitland ad71cf547f Add ShowDevtools menu item to WPF example 2016-04-19 14:52:52 +10:00
amaitland bae3c28e92 Update copyright to 2016 2016-01-11 14:11:30 +10:00
amaitland 98959d8f06 Basic example Load Request with post data has been added to the WPF Example 2015-11-29 07:59:04 +10:00
amaitland 9a7f427c29 Simplify WPF example opening of test Url's
(Should be very easy to add new Url's now)
2015-09-28 19:07:43 +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 021f6eb715 added printtopdf example 2015-09-19 12:33:50 +02:00
amaitland 3fac742403 Demo Post data for #1267 2015-09-16 16:01:48 +10:00
amaitland 561b50b2cd Register the same scheme twice to confirm parsing of command line arguments
Fix up some urls in the custom scheme popup test
Add PopupTest.html to WPF example menu
2015-09-16 09:05:52 +10:00
amaitland dac6030a81 Add DragDemo to WPF tests menu 2015-08-26 15:27:30 +10:00
amaitland c46807f100 Add some more demo examples to WPF example project 2015-08-12 09:25:37 +10:00
amaitland a017837320 Simplify Menu command bindings in WPF example 2015-08-12 09:18:30 +10:00
amaitland 39bc589991 Add w3school url to WPF example 2015-07-28 17:26:34 +10:00
amaitland 4ce9bc5463 Add IBrowser param to ILifeSpanHandler.OnAfterCreated 2015-07-28 17:19:50 +10:00
amaitland 7a940a9617 Add Open Plugins tab in the WPF example
Add system-enable-flash example to enable PPAPI otherwise it's disabled
2015-07-23 19:18:07 +10:00
amaitland 249c09c583 Add menu to WPF example
Can now easily open binding test example
TODO: Import tests from cefclient example
2015-07-09 12:21:59 +10:00
rassilon 7128e40fd1 It's time for copyright updates again. Yay!
Throw in a couple of tab containing files for good measure.
Evil tabs, evil I say.
2015-04-25 02:45:21 -04:00
amaitland 2d6fe8b237 Add x64/x86 to Window Title - easily determine which version user is running 2014-10-27 11:15:18 +10:00
amaitland ff03b13a33 Create CefExample class to house common Init() and DefaultUrl
Conflicts:
	CefSharp.WinForms.Example/BrowserForm.cs
2014-06-12 01:49:37 +03:00
JanEggers 4a231544fd fixed whitespace (contained tabs) 2014-05-17 05:59:17 +02:00
JanEggers e04e36bd04 added cleanup command so resources get cleaned up if a user closes a tab 2014-05-15 20:18:42 +02:00
Per Lundberg 6fcfc61ac3 Changed property name to make it more explicit what this one is about. 2014-04-30 23:38:28 +03:00
Per Lundberg b745f7bf13 Set up bindings for Ctrl+T and Ctrl+W, to Open and Close tabs respectively. 2014-04-30 23:30:47 +03:00
Per Lundberg 8d0974880f Cleaned up the way we used the tab, by binding to a collection of BrowserTabViewModels instead. We could clean this up even further by moving stuff out from MainWindow to a MainView & MainViewModel (to achieve a fully code-behind-free approach), but let’s start with this. :) Similarly, based on @amaitland’s changes, only splitting them more aggressively. 2014-04-30 23:29:41 +03:00
amaitland 9ab903f43c Namespace and folder cleanup
Create ViewModels namespace - move ViewModel and rename to BrowserTabViewModel
Move and rename MainView to BrowserTabView
2014-04-30 23:05:11 +03:00
amaitland 389e2de969 Add license disclaimer
Remove an unused reference in MainWindow.xaml.cs
Fix comment for OnPropertyChanged event
2014-04-17 11:53:06 +10:00
Per Lundberg fd20a062dc #212: Why not go ahead and make a proper tabbed browser while we're at it... :) 2014-03-21 23:47:30 +02:00
Per Lundberg 7ad4fb56be Only show the sidebar on the first tab. 2014-03-21 23:28:48 +02:00
Per Lundberg 271eb2c277 Fixed the tab titles to be data-bound to the title of the web page they are displaying. 2014-03-15 22:27:01 +02:00
Per Lundberg caeac08cfa Let's start working towards a "tabbed browser" instead of the OneBrowser/ManyBrowser approach. 2014-03-15 22:16:59 +02:00
JanEggers b4201d1971 extended samples to show multiple instances work 2014-02-24 07:50:05 +01:00