openfin-browser-adapter
Version:
browser mockup adapter for openfin js api
30 lines (29 loc) • 797 B
TypeScript
import { BaseApiClass } from './Base';
export interface WindowOptions {
url?: string;
name?: string;
}
export interface WindowBounds {
width: number;
height: number;
top: number;
left: number;
}
export declare class Window extends BaseApiClass {
static _name: string;
contentWindow: any;
identity: {
uuid: string;
name: string;
};
static staticMethods: string[];
static staticSyncMethods: string[];
static instanceMethods: string[];
static getCurrent(): Promise<Window>;
static getCurrentSync(): any;
constructor(data: WindowOptions);
static create(data: WindowOptions): Promise<Window>;
close(force?: boolean): Promise<void>;
getParentWindow(): Promise<Window>;
getBounds(): Promise<WindowBounds>;
}