mirror of
https://github.com/cefsharp/CefSharp.git
synced 2026-12-06 12:09:40 +00:00
WPF Example - Add Chrome internal Urls menu
- Add new menu for testing/debugging purposes
This commit is contained in:
@@ -38,6 +38,9 @@ namespace CefSharp.Example
|
||||
public const string RenderProcessCrashedUrl = "http://processcrashed";
|
||||
public const string TestUnicodeResourceUrl = "http://test/resource/loadUnicode";
|
||||
public const string PopupParentUrl = "http://www.w3schools.com/jsref/tryit.asp?filename=tryjsref_win_close";
|
||||
public const string ChromeInternalUrls = "chrome://chrome-urls";
|
||||
public const string ChromeNetInternalUrls = "chrome://net-internals";
|
||||
public const string ChromeProcessInternalUrls = "chrome://process-internals";
|
||||
|
||||
// Use when debugging the actual SubProcess, to make breakpoints etc. inside that project work.
|
||||
private static readonly bool DebuggingSubProcess = Debugger.IsAttached;
|
||||
|
||||
@@ -50,6 +50,11 @@
|
||||
<MenuItem Header="_Google Service Worker Demo" Command="controls:CefSharpCommands.OpenTabCommand" CommandParameter="https://googlechrome.github.io/samples/service-worker/basic/"/>
|
||||
<MenuItem Header="Load Example Extension" Command="controls:CefSharpCommands.CustomCommand" CommandParameter="LoadExtension"/>
|
||||
</MenuItem>
|
||||
<MenuItem Header="_Chrome Urls">
|
||||
<MenuItem Header="_List Internal Urls" Command="controls:CefSharpCommands.OpenTabCommand" CommandParameter="{Binding Source={x:Static ex:CefExample.ChromeInternalUrls}}"/>
|
||||
<MenuItem Header="_Net Internal Urls" Command="controls:CefSharpCommands.OpenTabCommand" CommandParameter="{Binding Source={x:Static ex:CefExample.ChromeNetInternalUrls}}"/>
|
||||
<MenuItem Header="_Process Internal Urls" Command="controls:CefSharpCommands.OpenTabCommand" CommandParameter="{Binding Source={x:Static ex:CefExample.ChromeProcessInternalUrls}}"/>
|
||||
</MenuItem>
|
||||
</Menu>
|
||||
<controls:NonReloadingTabControl x:Name="TabControl"
|
||||
Margin="0,5,0,0"
|
||||
|
||||
Reference in New Issue
Block a user