Dart Documentationchrome.browserActionBrowserActionSetIconParams

BrowserActionSetIconParams class

class BrowserActionSetIconParams extends ChromeObject {
 BrowserActionSetIconParams({var imageData, var path, int tabId}) {
   if (imageData != null) this.imageData = imageData;
   if (path != null) this.path = path;
   if (tabId != null) this.tabId = tabId;
 }
 BrowserActionSetIconParams.fromProxy(JsObject jsProxy): super.fromProxy(jsProxy);

 /**
  * Either an ImageData object or a dictionary {size -> ImageData} representing
  * icon to be set. If the icon is specified as a dictionary, the actual image
  * to be used is chosen depending on screen's pixel density. If the number of
  * image pixels that fit into one screen space unit equals `scale`, then image
  * with size `scale` * 19 will be selected. Initially only scales 1 and 2 will
  * be supported. At least one image must be specified. Note that
  * 'details.imageData = foo' is equivalent to 'details.imageData = {'19':
  * foo}'
  */
 dynamic get imageData => jsProxy['imageData'];
 set imageData(var value) => jsProxy['imageData'] = jsify(value);

 /**
  * Either a relative image path or a dictionary {size -> relative image path}
  * pointing to icon to be set. If the icon is specified as a dictionary, the
  * actual image to be used is chosen depending on screen's pixel density. If
  * the number of image pixels that fit into one screen space unit equals
  * `scale`, then image with size `scale` * 19 will be selected. Initially only
  * scales 1 and 2 will be supported. At least one image must be specified.
  * Note that 'details.path = foo' is equivalent to 'details.imageData = {'19':
  * foo}'
  */
 dynamic get path => jsProxy['path'];
 set path(var value) => jsProxy['path'] = jsify(value);

 /**
  * Limits the change to when a particular tab is selected. Automatically
  * resets when the tab is closed.
  */
 int get tabId => jsProxy['tabId'];
 set tabId(int value) => jsProxy['tabId'] = value;
}

Extends

ChromeObject > BrowserActionSetIconParams

Constructors

new BrowserActionSetIconParams({imageData, path, int tabId}) #

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

docs inherited from ChromeObject
BrowserActionSetIconParams({var imageData, var path, int tabId}) {
 if (imageData != null) this.imageData = imageData;
 if (path != null) this.path = path;
 if (tabId != null) this.tabId = tabId;
}

new BrowserActionSetIconParams.fromProxy(JsObject jsProxy) #

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

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

Properties

var imageData #

Either an ImageData object or a dictionary {size -> ImageData} representing icon to be set. If the icon is specified as a dictionary, the actual image to be used is chosen depending on screen's pixel density. If the number of image pixels that fit into one screen space unit equals scale, then image with size scale * 19 will be selected. Initially only scales 1 and 2 will be supported. At least one image must be specified. Note that 'details.imageData = foo' is equivalent to 'details.imageData = {'19': foo}'

dynamic get imageData => jsProxy['imageData'];
set imageData(var value) => jsProxy['imageData'] = jsify(value);

final jsProxy #

inherited from ChromeObject
final dynamic jsProxy

var path #

Either a relative image path or a dictionary {size -> relative image path} pointing to icon to be set. If the icon is specified as a dictionary, the actual image to be used is chosen depending on screen's pixel density. If the number of image pixels that fit into one screen space unit equals scale, then image with size scale * 19 will be selected. Initially only scales 1 and 2 will be supported. At least one image must be specified. Note that 'details.path = foo' is equivalent to 'details.imageData = {'19': foo}'

dynamic get path => jsProxy['path'];
set path(var value) => jsProxy['path'] = jsify(value);

int tabId #

Limits the change to when a particular tab is selected. Automatically resets when the tab is closed.

int get tabId => jsProxy['tabId'];
set tabId(int value) => jsProxy['tabId'] = 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();