implement WindowManager, BrowserWindow-API and Menu-API

This commit is contained in:
Gregor Biswanger
2017-10-15 06:03:48 +02:00
parent 90d0cc6189
commit 8f9a84cb0f
18 changed files with 847 additions and 34 deletions

View File

@@ -258,9 +258,9 @@ namespace ElectronNET.API
private event Action<bool> _accessibilitySupportChanged;
private App() { }
internal App() { }
public static App Instance
internal static App Instance
{
get
{
@@ -280,19 +280,6 @@ namespace ElectronNET.API
ContractResolver = new CamelCasePropertyNamesContractResolver()
};
// TODO: Auslagern in eigenes Window-Management
public void OpenWindow(int width, int height, bool show)
{
var browserWindowOptions = new BrowserWindowOptions()
{
Height = height,
Width = width,
Show = show
};
BridgeConnector.Socket.Emit("createBrowserWindow", JObject.FromObject(browserWindowOptions, _jsonSerializer));
}
// TODO: Auslagern in eigenes Notification-API
public void CreateNotification(NotificationOptions notificationOptions)
{