WindowsCreateParams class
class WindowsCreateParams extends ChromeObject { WindowsCreateParams({var url, int tabId, int left, int top, int width, int height, bool focused, bool incognito, String type}) { if (url != null) this.url = url; if (tabId != null) this.tabId = tabId; if (left != null) this.left = left; if (top != null) this.top = top; if (width != null) this.width = width; if (height != null) this.height = height; if (focused != null) this.focused = focused; if (incognito != null) this.incognito = incognito; if (type != null) this.type = type; } WindowsCreateParams.fromProxy(JsObject jsProxy): super.fromProxy(jsProxy); /** * A URL or array of URLs to open as tabs in the window. Fully-qualified URLs * must include a scheme (i.e. 'http://www.google.com', not 'www.google.com'). * Relative URLs will be relative to the current page within the extension. * Defaults to the New Tab Page. */ dynamic get url => jsProxy['url']; set url(var value) => jsProxy['url'] = jsify(value); /** * The id of the tab for which you want to adopt to the new window. */ int get tabId => jsProxy['tabId']; set tabId(int value) => jsProxy['tabId'] = value; /** * The number of pixels to position the new window from the left edge of the * screen. If not specified, the new window is offset naturally from the last * focused window. This value is ignored for panels. */ int get left => jsProxy['left']; set left(int value) => jsProxy['left'] = value; /** * The number of pixels to position the new window from the top edge of the * screen. If not specified, the new window is offset naturally from the last * focused window. This value is ignored for panels. */ int get top => jsProxy['top']; set top(int value) => jsProxy['top'] = value; /** * The width in pixels of the new window, including the frame. If not * specified defaults to a natural width. */ int get width => jsProxy['width']; set width(int value) => jsProxy['width'] = value; /** * The height in pixels of the new window, including the frame. If not * specified defaults to a natural height. */ int get height => jsProxy['height']; set height(int value) => jsProxy['height'] = value; /** * If true, opens an active window. If false, opens an inactive window. */ bool get focused => jsProxy['focused']; set focused(bool value) => jsProxy['focused'] = value; /** * Whether the new window should be an incognito window. */ bool get incognito => jsProxy['incognito']; set incognito(bool value) => jsProxy['incognito'] = value; /** * Specifies what type of browser window to create. The 'panel' and * 'detached_panel' types create a popup unless the '--enable-panels' flag is * set. * enum of `normal`, `popup`, `panel`, `detached_panel` */ String get type => jsProxy['type']; set type(String value) => jsProxy['type'] = value; }
Extends
ChromeObject > WindowsCreateParams
Constructors
new WindowsCreateParams({url, int tabId, int left, int top, int width, int height, bool focused, bool incognito, String type}) #
Create a new instance of a ChromeObject
, which creates and delegates to
a JsObject proxy.
WindowsCreateParams({var url, int tabId, int left, int top, int width, int height, bool focused, bool incognito, String type}) { if (url != null) this.url = url; if (tabId != null) this.tabId = tabId; if (left != null) this.left = left; if (top != null) this.top = top; if (width != null) this.width = width; if (height != null) this.height = height; if (focused != null) this.focused = focused; if (incognito != null) this.incognito = incognito; if (type != null) this.type = type; }
new WindowsCreateParams.fromProxy(JsObject jsProxy) #
Create a new instance of a ChromeObject
, which delegates to the given
JsObject proxy.
WindowsCreateParams.fromProxy(JsObject jsProxy): super.fromProxy(jsProxy);
Properties
bool focused #
If true, opens an active window. If false, opens an inactive window.
bool get focused => jsProxy['focused'];
set focused(bool value) => jsProxy['focused'] = value;
int height #
The height in pixels of the new window, including the frame. If not specified defaults to a natural height.
int get height => jsProxy['height'];
set height(int value) => jsProxy['height'] = value;
bool incognito #
Whether the new window should be an incognito window.
bool get incognito => jsProxy['incognito'];
set incognito(bool value) => jsProxy['incognito'] = value;
int left #
The number of pixels to position the new window from the left edge of the screen. If not specified, the new window is offset naturally from the last focused window. This value is ignored for panels.
int get left => jsProxy['left'];
set left(int value) => jsProxy['left'] = value;
int tabId #
The id of the tab for which you want to adopt to the new window.
int get tabId => jsProxy['tabId'];
set tabId(int value) => jsProxy['tabId'] = value;
int top #
The number of pixels to position the new window from the top edge of the screen. If not specified, the new window is offset naturally from the last focused window. This value is ignored for panels.
int get top => jsProxy['top'];
set top(int value) => jsProxy['top'] = value;
String type #
Specifies what type of browser window to create. The 'panel' and
'detached_panel' types create a popup unless the '--enable-panels' flag is
set.
enum of normal
, popup
, panel
, detached_panel
String get type => jsProxy['type'];
set type(String value) => jsProxy['type'] = value;
var url #
A URL or array of URLs to open as tabs in the window. Fully-qualified URLs must include a scheme (i.e. 'http://www.google.com', not 'www.google.com'). Relative URLs will be relative to the current page within the extension. Defaults to the New Tab Page.
dynamic get url => jsProxy['url'];
set url(var value) => jsProxy['url'] = jsify(value);
int width #
The width in pixels of the new window, including the frame. If not specified defaults to a natural width.
int get width => jsProxy['width'];
set width(int value) => jsProxy['width'] = value;
Methods
String toString() #
Returns a string representation of this object.
String toString() => jsProxy.toString();