refactor: rename TopLevelWindow to BaseWindow (#24305)

This commit is contained in:
Cheng Zhao 2020-06-29 16:06:20 +09:00 committed by GitHub
parent 80e5007c47
commit ef3579eae3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
21 changed files with 433 additions and 451 deletions

View file

@ -99,13 +99,13 @@ declare namespace Electron {
class View {}
// Experimental views API
class TopLevelWindow {
class BaseWindow {
constructor(args: {show: boolean})
setContentView(view: View): void
static fromId(id: number): TopLevelWindow;
static getAllWindows(): TopLevelWindow[];
static fromId(id: number): BaseWindow;
static getAllWindows(): BaseWindow[];
isFocused(): boolean;
static getFocusedWindow(): TopLevelWindow | undefined;
static getFocusedWindow(): BaseWindow | undefined;
}
class WebContentsView {
constructor(options: BrowserWindowConstructorOptions)
@ -128,7 +128,7 @@ declare namespace Electron {
}
namespace Main {
class TopLevelWindow extends Electron.TopLevelWindow {}
class BaseWindow extends Electron.BaseWindow {}
class View extends Electron.View {}
class WebContentsView extends Electron.WebContentsView {}
}