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:
Gregor Biswanger
2017-10-21 04:37:01 +02:00
parent 9046f6ca25
commit 248ddde82b
61 changed files with 2505 additions and 57 deletions

View File

@@ -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(),