Dart Documentationchrome.pageActionPageActionSetIconParams

PageActionSetIconParams class

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

 /**
  * The id of the tab for which you want to modify the page action.
  */
 int get tabId => jsProxy['tabId'];
 set tabId(int value) => jsProxy['tabId'] = value;

 /**
  * 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);

 /**
  * <b>Deprecated.</b> This argument is ignored.
  */
 int get iconIndex => jsProxy['iconIndex'];
 set iconIndex(int value) => jsProxy['iconIndex'] = value;
}

Extends

ChromeObject > PageActionSetIconParams

Constructors

new PageActionSetIconParams({int tabId, imageData, path, int iconIndex}) #

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

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

new PageActionSetIconParams.fromProxy(JsObject jsProxy) #

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

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

Properties

int iconIndex #

Deprecated. This argument is ignored.
int get iconIndex => jsProxy['iconIndex'];
set iconIndex(int value) => jsProxy['iconIndex'] = value;

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 #

The id of the tab for which you want to modify the page action.

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();