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.
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.
PageActionSetIconParams.fromProxy(JsObject jsProxy): super.fromProxy(jsProxy);
Properties
int iconIndex #
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);
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
String toString() #
Returns a string representation of this object.
String toString() => jsProxy.toString();