Skip to content

Commit 1a16257

Browse files
committed
Core - Remove remaining Plugin API (followup)
- Remove CefWebPluginInfoVisitorAdapter. from Net Core vcxproj - Update BrowserProcessHandler example to set a different preference (the plugin ones will eventually be removed from Chromium) Follow up to 0ac43cf Issue #4045
1 parent d26789b commit 1a16257

File tree

3 files changed

+9
-6
lines changed

3 files changed

+9
-6
lines changed

CefSharp.Core.Runtime/CefSharp.Core.Runtime.netcore.vcxproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,6 @@
419419
<ClInclude Include="Internals\JavascriptCallbackFactory.h" />
420420
<ClInclude Include="Internals\MCefRefPtr.h" />
421421
<ClInclude Include="Internals\Messaging\Messages.h" />
422-
<ClInclude Include="Internals\CefWebPluginInfoVisitorAdapter.h" />
423422
<ClInclude Include="Internals\RenderClientAdapter.h" />
424423
<ClInclude Include="Internals\ReportUnhandledExceptions.h" />
425424
<ClInclude Include="Internals\CefRequestCallbackWrapper.h" />

CefSharp.Core.Runtime/CefSharp.Core.Runtime.netcore.vcxproj.filters

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -310,9 +310,6 @@
310310
<ClInclude Include="Internals\CefSchemeHandlerFactoryAdapter.h">
311311
<Filter>Header Files</Filter>
312312
</ClInclude>
313-
<ClInclude Include="Internals\CefWebPluginInfoVisitorAdapter.h">
314-
<Filter>Header Files</Filter>
315-
</ClInclude>
316313
<ClInclude Include="Internals\CefResourceHandlerAdapter.h">
317314
<Filter>Header Files</Filter>
318315
</ClInclude>

CefSharp.Example/Handlers/BrowserProcessHandler.cs

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,16 @@ protected override void OnContextInitialized()
7272
using (var context = Cef.GetGlobalRequestContext())
7373
{
7474
string errorMessage;
75+
7576
//You can set most preferences using a `.` notation rather than having to create a complex set of dictionaries.
76-
//The default is true, you can change to false to disable
77-
context.SetPreference("webkit.webprefs.plugins_enabled", true, out errorMessage);
77+
//The default is true, you can change to false to disable resizing of text areas
78+
//This is just one example, there are many many configuration options avaliable via preferences
79+
var success = context.SetPreference("webkit.webprefs.text_areas_are_resizable", true, out errorMessage);
80+
81+
if(!success)
82+
{
83+
//Check the errorMessage for more details
84+
}
7885

7986
//string error;
8087
//var dicts = new List<string> { "en-GB", "en-US" };

0 commit comments

Comments
 (0)