Dart Documentationchrome.tabsTabsQueryParams

TabsQueryParams class

class TabsQueryParams extends ChromeObject {
 TabsQueryParams({bool active, bool pinned, bool highlighted, bool currentWindow, bool lastFocusedWindow, String status, String title, String url, int windowId, String windowType, int index}) {
   if (active != null) this.active = active;
   if (pinned != null) this.pinned = pinned;
   if (highlighted != null) this.highlighted = highlighted;
   if (currentWindow != null) this.currentWindow = currentWindow;
   if (lastFocusedWindow != null) this.lastFocusedWindow = lastFocusedWindow;
   if (status != null) this.status = status;
   if (title != null) this.title = title;
   if (url != null) this.url = url;
   if (windowId != null) this.windowId = windowId;
   if (windowType != null) this.windowType = windowType;
   if (index != null) this.index = index;
 }
 TabsQueryParams.fromProxy(JsObject jsProxy): super.fromProxy(jsProxy);

 /**
  * Whether the tabs are active in their windows.
  */
 bool get active => jsProxy['active'];
 set active(bool value) => jsProxy['active'] = value;

 /**
  * Whether the tabs are pinned.
  */
 bool get pinned => jsProxy['pinned'];
 set pinned(bool value) => jsProxy['pinned'] = value;

 /**
  * Whether the tabs are highlighted.
  */
 bool get highlighted => jsProxy['highlighted'];
 set highlighted(bool value) => jsProxy['highlighted'] = value;

 /**
  * Whether the tabs are in the [current window](windows.html#current-window).
  */
 bool get currentWindow => jsProxy['currentWindow'];
 set currentWindow(bool value) => jsProxy['currentWindow'] = value;

 /**
  * Whether the tabs are in the last focused window.
  */
 bool get lastFocusedWindow => jsProxy['lastFocusedWindow'];
 set lastFocusedWindow(bool value) => jsProxy['lastFocusedWindow'] = value;

 /**
  * Whether the tabs have completed loading.
  * enum of `loading`, `complete`
  */
 String get status => jsProxy['status'];
 set status(String value) => jsProxy['status'] = value;

 /**
  * Match page titles against a pattern.
  */
 String get title => jsProxy['title'];
 set title(String value) => jsProxy['title'] = value;

 /**
  * Match tabs against a [URL pattern](match_patterns.html). Note that fragment
  * identifiers are not matched.
  */
 String get url => jsProxy['url'];
 set url(String value) => jsProxy['url'] = value;

 /**
  * The ID of the parent window, or [windows.WINDOW_ID_CURRENT] for the
  * [current window](windows.html#current-window).
  */
 int get windowId => jsProxy['windowId'];
 set windowId(int value) => jsProxy['windowId'] = value;

 /**
  * The type of window the tabs are in.
  * enum of `normal`, `popup`, `panel`, `app`
  */
 String get windowType => jsProxy['windowType'];
 set windowType(String value) => jsProxy['windowType'] = value;

 /**
  * The position of the tabs within their windows.
  */
 int get index => jsProxy['index'];
 set index(int value) => jsProxy['index'] = value;
}

Extends

ChromeObject > TabsQueryParams

Constructors

new TabsQueryParams({bool active, bool pinned, bool highlighted, bool currentWindow, bool lastFocusedWindow, String status, String title, String url, int windowId, String windowType, int index}) #

Create a new instance of a ChromeObject, which creates and delegates to a JsObject proxy.

docs inherited from ChromeObject
TabsQueryParams({bool active, bool pinned, bool highlighted, bool currentWindow, bool lastFocusedWindow, String status, String title, String url, int windowId, String windowType, int index}) {
 if (active != null) this.active = active;
 if (pinned != null) this.pinned = pinned;
 if (highlighted != null) this.highlighted = highlighted;
 if (currentWindow != null) this.currentWindow = currentWindow;
 if (lastFocusedWindow != null) this.lastFocusedWindow = lastFocusedWindow;
 if (status != null) this.status = status;
 if (title != null) this.title = title;
 if (url != null) this.url = url;
 if (windowId != null) this.windowId = windowId;
 if (windowType != null) this.windowType = windowType;
 if (index != null) this.index = index;
}

new TabsQueryParams.fromProxy(JsObject jsProxy) #

Create a new instance of a ChromeObject, which delegates to the given JsObject proxy.

docs inherited from ChromeObject
TabsQueryParams.fromProxy(JsObject jsProxy): super.fromProxy(jsProxy);

Properties

bool active #

Whether the tabs are active in their windows.

bool get active => jsProxy['active'];
set active(bool value) => jsProxy['active'] = value;

bool currentWindow #

Whether the tabs are in the current window.

bool get currentWindow => jsProxy['currentWindow'];
set currentWindow(bool value) => jsProxy['currentWindow'] = value;

bool highlighted #

Whether the tabs are highlighted.

bool get highlighted => jsProxy['highlighted'];
set highlighted(bool value) => jsProxy['highlighted'] = value;

int index #

The position of the tabs within their windows.

int get index => jsProxy['index'];
set index(int value) => jsProxy['index'] = value;

final jsProxy #

inherited from ChromeObject
final dynamic jsProxy

bool lastFocusedWindow #

Whether the tabs are in the last focused window.

bool get lastFocusedWindow => jsProxy['lastFocusedWindow'];
set lastFocusedWindow(bool value) => jsProxy['lastFocusedWindow'] = value;

bool pinned #

Whether the tabs are pinned.

bool get pinned => jsProxy['pinned'];
set pinned(bool value) => jsProxy['pinned'] = value;

String status #

Whether the tabs have completed loading. enum of loading, complete

String get status => jsProxy['status'];
set status(String value) => jsProxy['status'] = value;

String title #

Match page titles against a pattern.

String get title => jsProxy['title'];
set title(String value) => jsProxy['title'] = value;

String url #

Match tabs against a URL pattern. Note that fragment identifiers are not matched.

String get url => jsProxy['url'];
set url(String value) => jsProxy['url'] = value;

int windowId #

The ID of the parent window, or [windows.WINDOW_ID_CURRENT] for the current window.

int get windowId => jsProxy['windowId'];
set windowId(int value) => jsProxy['windowId'] = value;

String windowType #

The type of window the tabs are in. enum of normal, popup, panel, app

String get windowType => jsProxy['windowType'];
set windowType(String value) => jsProxy['windowType'] = value;

Methods

JsObject toJs() #

inherited from ChromeObject
JsObject toJs() => jsProxy;

String toString() #

inherited from ChromeObject

Returns a string representation of this object.

docs inherited from Object
String toString() => jsProxy.toString();