feat: support fullScreen BrowserWindow property (#23145)

This commit is contained in:
Shelley Vohr
2020-04-20 20:25:18 -07:00
committed by GitHub
parent 928e23a263
commit f3dc3997b1
3 changed files with 75 additions and 15 deletions

View File

@@ -29,6 +29,11 @@ Object.defineProperty(TopLevelWindow.prototype, 'visibleOnAllWorkspaces', {
set: function (visible) { this.setVisibleOnAllWorkspaces(visible); }
});
Object.defineProperty(TopLevelWindow.prototype, 'fullScreen', {
get: function () { return this.isFullScreen(); },
set: function (full) { this.setFullScreen(full); }
});
Object.defineProperty(TopLevelWindow.prototype, 'simpleFullScreen', {
get: function () { return this.isSimpleFullScreen(); },
set: function (simple) { this.setSimpleFullScreen(simple); }