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:
amaitland
2018-08-02 10:47:12 +10:00
parent 161e1ae0cc
commit d87e795000
18 changed files with 102 additions and 64 deletions
+1 -4
View File
@@ -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