mirror of
https://github.com/ElectronNET/Electron.NET.git
synced 2026-07-18 14:47:43 +00:00
implement Demo App sections: Dialogs, Menu, Tray, Shell, CrashHang, Notification, Shortcuts etc. Fix some API bugs and implement GlobalShortcut-, Shell- and WebContents-API.
This commit is contained in:
@@ -156,7 +156,7 @@ namespace ElectronNET.API
|
||||
{
|
||||
if (_unresponsive == null)
|
||||
{
|
||||
BridgeConnector.Socket.On("browserWindow-unresponsive", () =>
|
||||
BridgeConnector.Socket.On("browserWindow-unresponsive" + Id, () =>
|
||||
{
|
||||
_unresponsive();
|
||||
});
|
||||
@@ -182,7 +182,7 @@ namespace ElectronNET.API
|
||||
{
|
||||
if (_responsive == null)
|
||||
{
|
||||
BridgeConnector.Socket.On("browserWindow-responsive", () =>
|
||||
BridgeConnector.Socket.On("browserWindow-responsive" + Id, () =>
|
||||
{
|
||||
_responsive();
|
||||
});
|
||||
@@ -807,6 +807,7 @@ namespace ElectronNET.API
|
||||
|
||||
internal BrowserWindow(int id) {
|
||||
Id = id;
|
||||
WebContents = new WebContents(id);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -2148,6 +2149,11 @@ namespace ElectronNET.API
|
||||
BridgeConnector.Socket.Emit("browserWindowSetVibrancy", Id, type.GetDescription());
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Render and control web pages.
|
||||
/// </summary>
|
||||
public WebContents WebContents { get; internal set; }
|
||||
|
||||
private JsonSerializer _jsonSerializer = new JsonSerializer()
|
||||
{
|
||||
ContractResolver = new CamelCasePropertyNamesContractResolver(),
|
||||
|
||||
Reference in New Issue
Block a user