mirror of
https://github.com/cefsharp/CefSharp.git
synced 2026-12-05 11:42:36 +00:00
WinForms/Wpf/OffScreen - Create specific CefSettings class for each version
- This is a breaking change as there is no common `CefSharp.CefSettings`, there is no `CefSharp.Wpf.CefSettings`, `CefSharp.WinForms.CefSettings` and `CefSharp.OffScreen.CefSettings` - Cef.Initialize has been removed, the `ChromiumWebBrowser` constructor will call the `Cef.Initialize` with the defaults for your flavour - CefSettings.FocusedNodeChangedEnabled has been moved to CefSharpSettings.FocusedNodeChangedEnabled Resolves #2477
This commit is contained in:
@@ -6,12 +6,9 @@ using System;
|
||||
using System.Diagnostics;
|
||||
using System.Drawing;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using CefSharp;
|
||||
using CefSharp.Example;
|
||||
using CefSharp.Example.Handlers;
|
||||
using CefSharp.Internals;
|
||||
|
||||
namespace CefSharp.OffScreen.Example
|
||||
{
|
||||
@@ -26,7 +23,7 @@ namespace CefSharp.OffScreen.Example
|
||||
Console.WriteLine();
|
||||
|
||||
// You need to replace this with your own call to Cef.Initialize();
|
||||
CefExample.Init(true, multiThreadedMessageLoop:true, browserProcessHandler: new BrowserProcessHandler());
|
||||
CefExample.Init(new CefSettings(), browserProcessHandler: new BrowserProcessHandler());
|
||||
|
||||
MainAsync("cachePath1", 1.0);
|
||||
//Demo showing Zoom Level of 3.0
|
||||
|
||||
Reference in New Issue
Block a user