#library('html');
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
// DO NOT EDIT
// Auto-generated dart:html library.
Window get window() native "return window;";
_WindowImpl get _window() native "return window;";
Document get document() native "return document;";
_DocumentImpl get _document() native "return document;";
// Workaround for tags like that lack their own Element subclass --
// Dart issue 1990.
class _HTMLElementImpl extends _ElementImpl native "*HTMLElement" {
}
class _AbstractWorkerImpl extends _EventTargetImpl implements AbstractWorker native "*AbstractWorker" {
_AbstractWorkerEventsImpl get on() =>
new _AbstractWorkerEventsImpl(this);
void $dom_addEventListener(String type, EventListener listener, [bool useCapture = null]) native "addEventListener";
bool $dom_dispatchEvent(_EventImpl evt) native "dispatchEvent";
void $dom_removeEventListener(String type, EventListener listener, [bool useCapture = null]) native "removeEventListener";
}
class _AbstractWorkerEventsImpl extends _EventsImpl implements AbstractWorkerEvents {
_AbstractWorkerEventsImpl(_ptr) : super(_ptr);
EventListenerList get error() => _get('error');
}
class _AnchorElementImpl extends _ElementImpl implements AnchorElement native "*HTMLAnchorElement" {
String charset;
String coords;
String download;
String hash;
String host;
String hostname;
String href;
String hreflang;
String name;
final String origin;
String pathname;
String ping;
String port;
String protocol;
String rel;
String rev;
String search;
String shape;
String target;
String type;
String toString() native;
}
class _AnimationImpl implements Animation native "*WebKitAnimation" {
static final int DIRECTION_ALTERNATE = 1;
static final int DIRECTION_NORMAL = 0;
static final int FILL_BACKWARDS = 1;
static final int FILL_BOTH = 3;
static final int FILL_FORWARDS = 2;
static final int FILL_NONE = 0;
final num delay;
final int direction;
final num duration;
num elapsedTime;
final bool ended;
final int fillMode;
final int iterationCount;
final String name;
final bool paused;
void pause() native;
void play() native;
}
class _AnimationEventImpl extends _EventImpl implements AnimationEvent native "*WebKitAnimationEvent" {
final String animationName;
final num elapsedTime;
}
class _AnimationListImpl implements AnimationList native "*WebKitAnimationList" {
final int length;
_AnimationImpl item(int index) native;
}
class _AppletElementImpl extends _ElementImpl implements AppletElement native "*HTMLAppletElement" {
String align;
String alt;
String archive;
String code;
String codeBase;
String height;
String hspace;
String name;
String object;
String vspace;
String width;
}
class _AreaElementImpl extends _ElementImpl implements AreaElement native "*HTMLAreaElement" {
String alt;
String coords;
final String hash;
final String host;
final String hostname;
String href;
bool noHref;
final String pathname;
String ping;
final String port;
final String protocol;
final String search;
String shape;
String target;
}
class _ArrayBufferImpl implements ArrayBuffer native "*ArrayBuffer" {
final int byteLength;
_ArrayBufferImpl slice(int begin, [int end = null]) native;
}
class _ArrayBufferViewImpl implements ArrayBufferView native "*ArrayBufferView" {
final _ArrayBufferImpl buffer;
final int byteLength;
final int byteOffset;
}
class _AttrImpl extends _NodeImpl implements Attr native "*Attr" {
final bool isId;
final String name;
final _ElementImpl ownerElement;
final bool specified;
String value;
}
class _AudioBufferImpl implements AudioBuffer native "*AudioBuffer" {
final num duration;
num gain;
final int length;
final int numberOfChannels;
final num sampleRate;
_Float32ArrayImpl getChannelData(int channelIndex) native;
}
class _AudioBufferSourceNodeImpl extends _AudioSourceNodeImpl implements AudioBufferSourceNode native "*AudioBufferSourceNode" {
static final int FINISHED_STATE = 3;
static final int PLAYING_STATE = 2;
static final int SCHEDULED_STATE = 1;
static final int UNSCHEDULED_STATE = 0;
_AudioBufferImpl buffer;
final _AudioGainImpl gain;
bool loop;
bool looping;
final _AudioParamImpl playbackRate;
final int playbackState;
void noteGrainOn(num when, num grainOffset, num grainDuration) native;
void noteOff(num when) native;
void noteOn(num when) native;
}
class _AudioChannelMergerImpl extends _AudioNodeImpl implements AudioChannelMerger native "*AudioChannelMerger" {
}
class _AudioChannelSplitterImpl extends _AudioNodeImpl implements AudioChannelSplitter native "*AudioChannelSplitter" {
}
class _AudioContextImpl extends _EventTargetImpl implements AudioContext native "*AudioContext" {
_AudioContextEventsImpl get on() =>
new _AudioContextEventsImpl(this);
final int activeSourceCount;
final num currentTime;
final _AudioDestinationNodeImpl destination;
final _AudioListenerImpl listener;
final num sampleRate;
_RealtimeAnalyserNodeImpl createAnalyser() native;
_BiquadFilterNodeImpl createBiquadFilter() native;
_AudioBufferImpl createBuffer(buffer_OR_numberOfChannels, mixToMono_OR_numberOfFrames, [num sampleRate = null]) native;
_AudioBufferSourceNodeImpl createBufferSource() native;
_AudioChannelMergerImpl createChannelMerger([int numberOfInputs = null]) native;
_AudioChannelSplitterImpl createChannelSplitter([int numberOfOutputs = null]) native;
_ConvolverNodeImpl createConvolver() native;
_DelayNodeImpl createDelayNode([num maxDelayTime = null]) native;
_DynamicsCompressorNodeImpl createDynamicsCompressor() native;
_AudioGainNodeImpl createGainNode() native;
_JavaScriptAudioNodeImpl createJavaScriptNode(int bufferSize, [int numberOfInputChannels = null, int numberOfOutputChannels = null]) native;
_MediaElementAudioSourceNodeImpl createMediaElementSource(_MediaElementImpl mediaElement) native;
_OscillatorImpl createOscillator() native;
_AudioPannerNodeImpl createPanner() native;
_WaveShaperNodeImpl createWaveShaper() native;
_WaveTableImpl createWaveTable(_Float32ArrayImpl real, _Float32ArrayImpl imag) native;
void decodeAudioData(_ArrayBufferImpl audioData, AudioBufferCallback successCallback, [AudioBufferCallback errorCallback = null]) native;
void startRendering() native;
}
class _AudioContextEventsImpl extends _EventsImpl implements AudioContextEvents {
_AudioContextEventsImpl(_ptr) : super(_ptr);
EventListenerList get complete() => _get('complete');
}
class _AudioDestinationNodeImpl extends _AudioNodeImpl implements AudioDestinationNode native "*AudioDestinationNode" {
final int numberOfChannels;
}
class _AudioElementImpl extends _MediaElementImpl implements AudioElement native "*HTMLAudioElement" {
}
class _AudioGainImpl extends _AudioParamImpl implements AudioGain native "*AudioGain" {
}
class _AudioGainNodeImpl extends _AudioNodeImpl implements AudioGainNode native "*AudioGainNode" {
final _AudioGainImpl gain;
}
class _AudioListenerImpl implements AudioListener native "*AudioListener" {
num dopplerFactor;
num speedOfSound;
void setOrientation(num x, num y, num z, num xUp, num yUp, num zUp) native;
void setPosition(num x, num y, num z) native;
void setVelocity(num x, num y, num z) native;
}
class _AudioNodeImpl implements AudioNode native "*AudioNode" {
final _AudioContextImpl context;
final int numberOfInputs;
final int numberOfOutputs;
void connect(destination, int output, [int input = null]) native;
void disconnect(int output) native;
}
class _AudioPannerNodeImpl extends _AudioNodeImpl implements AudioPannerNode native "*AudioPannerNode" {
static final int EQUALPOWER = 0;
static final int EXPONENTIAL_DISTANCE = 2;
static final int HRTF = 1;
static final int INVERSE_DISTANCE = 1;
static final int LINEAR_DISTANCE = 0;
static final int SOUNDFIELD = 2;
final _AudioGainImpl coneGain;
num coneInnerAngle;
num coneOuterAngle;
num coneOuterGain;
final _AudioGainImpl distanceGain;
int distanceModel;
num maxDistance;
int panningModel;
num refDistance;
num rolloffFactor;
void setOrientation(num x, num y, num z) native;
void setPosition(num x, num y, num z) native;
void setVelocity(num x, num y, num z) native;
}
class _AudioParamImpl implements AudioParam native "*AudioParam" {
final num defaultValue;
final num maxValue;
final num minValue;
final String name;
final int units;
num value;
void cancelScheduledValues(num startTime) native;
void exponentialRampToValueAtTime(num value, num time) native;
void linearRampToValueAtTime(num value, num time) native;
void setTargetValueAtTime(num targetValue, num time, num timeConstant) native;
void setValueAtTime(num value, num time) native;
void setValueCurveAtTime(_Float32ArrayImpl values, num time, num duration) native;
}
class _AudioProcessingEventImpl extends _EventImpl implements AudioProcessingEvent native "*AudioProcessingEvent" {
final _AudioBufferImpl inputBuffer;
final _AudioBufferImpl outputBuffer;
}
class _AudioSourceNodeImpl extends _AudioNodeImpl implements AudioSourceNode native "*AudioSourceNode" {
}
class _BRElementImpl extends _ElementImpl implements BRElement native "*HTMLBRElement" {
String clear;
}
class _BarInfoImpl implements BarInfo native "*BarInfo" {
final bool visible;
}
class _BaseElementImpl extends _ElementImpl implements BaseElement native "*HTMLBaseElement" {
String href;
String target;
}
class _BaseFontElementImpl extends _ElementImpl implements BaseFontElement native "*HTMLBaseFontElement" {
String color;
String face;
int size;
}
class _BatteryManagerImpl extends _EventTargetImpl implements BatteryManager native "*BatteryManager" {
_BatteryManagerEventsImpl get on() =>
new _BatteryManagerEventsImpl(this);
final bool charging;
final num chargingTime;
final num dischargingTime;
final num level;
void $dom_addEventListener(String type, EventListener listener, [bool useCapture = null]) native "addEventListener";
bool $dom_dispatchEvent(_EventImpl evt) native "dispatchEvent";
void $dom_removeEventListener(String type, EventListener listener, [bool useCapture = null]) native "removeEventListener";
}
class _BatteryManagerEventsImpl extends _EventsImpl implements BatteryManagerEvents {
_BatteryManagerEventsImpl(_ptr) : super(_ptr);
EventListenerList get chargingChange() => _get('chargingchange');
EventListenerList get chargingTimeChange() => _get('chargingtimechange');
EventListenerList get dischargingTimeChange() => _get('dischargingtimechange');
EventListenerList get levelChange() => _get('levelchange');
}
class _BeforeLoadEventImpl extends _EventImpl implements BeforeLoadEvent native "*BeforeLoadEvent" {
final String url;
}
class _BiquadFilterNodeImpl extends _AudioNodeImpl implements BiquadFilterNode native "*BiquadFilterNode" {
static final int ALLPASS = 7;
static final int BANDPASS = 2;
static final int HIGHPASS = 1;
static final int HIGHSHELF = 4;
static final int LOWPASS = 0;
static final int LOWSHELF = 3;
static final int NOTCH = 6;
static final int PEAKING = 5;
final _AudioParamImpl Q;
final _AudioParamImpl frequency;
final _AudioParamImpl gain;
int type;
void getFrequencyResponse(_Float32ArrayImpl frequencyHz, _Float32ArrayImpl magResponse, _Float32ArrayImpl phaseResponse) native;
}
class _BlobImpl implements Blob native "*Blob" {
final int size;
final String type;
_BlobImpl webkitSlice([int start = null, int end = null, String contentType = null]) native;
}
class _BlobBuilderImpl implements BlobBuilder native "*WebKitBlobBuilder" {
void append(arrayBuffer_OR_blob_OR_value, [String endings = null]) native;
_BlobImpl getBlob([String contentType = null]) native;
}
class _BodyElementImpl extends _ElementImpl implements BodyElement native "*HTMLBodyElement" {
_BodyElementEventsImpl get on() =>
new _BodyElementEventsImpl(this);
String aLink;
String background;
String bgColor;
String link;
String vLink;
}
class _BodyElementEventsImpl extends _ElementEventsImpl implements BodyElementEvents {
_BodyElementEventsImpl(_ptr) : super(_ptr);
EventListenerList get beforeUnload() => _get('beforeunload');
EventListenerList get blur() => _get('blur');
EventListenerList get error() => _get('error');
EventListenerList get focus() => _get('focus');
EventListenerList get hashChange() => _get('hashchange');
EventListenerList get load() => _get('load');
EventListenerList get message() => _get('message');
EventListenerList get offline() => _get('offline');
EventListenerList get online() => _get('online');
EventListenerList get popState() => _get('popstate');
EventListenerList get resize() => _get('resize');
EventListenerList get storage() => _get('storage');
EventListenerList get unload() => _get('unload');
}
class _ButtonElementImpl extends _ElementImpl implements ButtonElement native "*HTMLButtonElement" {
bool autofocus;
bool disabled;
final _FormElementImpl form;
String formAction;
String formEnctype;
String formMethod;
bool formNoValidate;
String formTarget;
final _NodeListImpl labels;
String name;
final String type;
final String validationMessage;
final _ValidityStateImpl validity;
String value;
final bool willValidate;
bool checkValidity() native;
void setCustomValidity(String error) native;
}
class _CDATASectionImpl extends _TextImpl implements CDATASection native "*CDATASection" {
}
class _CSSCharsetRuleImpl extends _CSSRuleImpl implements CSSCharsetRule native "*CSSCharsetRule" {
String encoding;
}
class _CSSFontFaceRuleImpl extends _CSSRuleImpl implements CSSFontFaceRule native "*CSSFontFaceRule" {
final _CSSStyleDeclarationImpl style;
}
class _CSSImportRuleImpl extends _CSSRuleImpl implements CSSImportRule native "*CSSImportRule" {
final String href;
final _MediaListImpl media;
final _CSSStyleSheetImpl styleSheet;
}
class _CSSKeyframeRuleImpl extends _CSSRuleImpl implements CSSKeyframeRule native "*WebKitCSSKeyframeRule" {
String keyText;
final _CSSStyleDeclarationImpl style;
}
class _CSSKeyframesRuleImpl extends _CSSRuleImpl implements CSSKeyframesRule native "*WebKitCSSKeyframesRule" {
final _CSSRuleListImpl cssRules;
String name;
void deleteRule(String key) native;
_CSSKeyframeRuleImpl findRule(String key) native;
void insertRule(String rule) native;
}
class _CSSMatrixImpl implements CSSMatrix native "*WebKitCSSMatrix" {
num a;
num b;
num c;
num d;
num e;
num f;
num m11;
num m12;
num m13;
num m14;
num m21;
num m22;
num m23;
num m24;
num m31;
num m32;
num m33;
num m34;
num m41;
num m42;
num m43;
num m44;
_CSSMatrixImpl inverse() native;
_CSSMatrixImpl multiply(_CSSMatrixImpl secondMatrix) native;
_CSSMatrixImpl rotate(num rotX, num rotY, num rotZ) native;
_CSSMatrixImpl rotateAxisAngle(num x, num y, num z, num angle) native;
_CSSMatrixImpl scale(num scaleX, num scaleY, num scaleZ) native;
void setMatrixValue(String string) native;
_CSSMatrixImpl skewX(num angle) native;
_CSSMatrixImpl skewY(num angle) native;
String toString() native;
_CSSMatrixImpl translate(num x, num y, num z) native;
}
class _CSSMediaRuleImpl extends _CSSRuleImpl implements CSSMediaRule native "*CSSMediaRule" {
final _CSSRuleListImpl cssRules;
final _MediaListImpl media;
void deleteRule(int index) native;
int insertRule(String rule, int index) native;
}
class _CSSPageRuleImpl extends _CSSRuleImpl implements CSSPageRule native "*CSSPageRule" {
String selectorText;
final _CSSStyleDeclarationImpl style;
}
class _CSSPrimitiveValueImpl extends _CSSValueImpl implements CSSPrimitiveValue native "*CSSPrimitiveValue" {
static final int CSS_ATTR = 22;
static final int CSS_CM = 6;
static final int CSS_COUNTER = 23;
static final int CSS_DEG = 11;
static final int CSS_DIMENSION = 18;
static final int CSS_EMS = 3;
static final int CSS_EXS = 4;
static final int CSS_GRAD = 13;
static final int CSS_HZ = 16;
static final int CSS_IDENT = 21;
static final int CSS_IN = 8;
static final int CSS_KHZ = 17;
static final int CSS_MM = 7;
static final int CSS_MS = 14;
static final int CSS_NUMBER = 1;
static final int CSS_PC = 10;
static final int CSS_PERCENTAGE = 2;
static final int CSS_PT = 9;
static final int CSS_PX = 5;
static final int CSS_RAD = 12;
static final int CSS_RECT = 24;
static final int CSS_RGBCOLOR = 25;
static final int CSS_S = 15;
static final int CSS_STRING = 19;
static final int CSS_UNKNOWN = 0;
static final int CSS_URI = 20;
static final int CSS_VH = 27;
static final int CSS_VMIN = 28;
static final int CSS_VW = 26;
final int primitiveType;
_CounterImpl getCounterValue() native;
num getFloatValue(int unitType) native;
_RGBColorImpl getRGBColorValue() native;
_RectImpl getRectValue() native;
String getStringValue() native;
void setFloatValue(int unitType, num floatValue) native;
void setStringValue(int stringType, String stringValue) native;
}
class _CSSRuleImpl implements CSSRule native "*CSSRule" {
static final int CHARSET_RULE = 2;
static final int FONT_FACE_RULE = 5;
static final int IMPORT_RULE = 3;
static final int MEDIA_RULE = 4;
static final int PAGE_RULE = 6;
static final int STYLE_RULE = 1;
static final int UNKNOWN_RULE = 0;
static final int WEBKIT_KEYFRAMES_RULE = 7;
static final int WEBKIT_KEYFRAME_RULE = 8;
static final int WEBKIT_REGION_RULE = 10;
String cssText;
final _CSSRuleImpl parentRule;
final _CSSStyleSheetImpl parentStyleSheet;
final int type;
}
class _CSSRuleListImpl implements CSSRuleList native "*CSSRuleList" {
final int length;
_CSSRuleImpl item(int index) native;
}
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
String _cachedBrowserPrefix;
String get _browserPrefix() {
if (_cachedBrowserPrefix === null) {
if (_Device.isFirefox) {
_cachedBrowserPrefix = '-moz-';
} else {
_cachedBrowserPrefix = '-webkit-';
}
// TODO(jacobr): support IE 9.0 and Opera as well.
}
return _cachedBrowserPrefix;
}
class _CSSStyleDeclarationImpl implements CSSStyleDeclaration native "*CSSStyleDeclaration" {
String cssText;
final int length;
final _CSSRuleImpl parentRule;
_CSSValueImpl getPropertyCSSValue(String propertyName) native;
String getPropertyPriority(String propertyName) native;
String getPropertyShorthand(String propertyName) native;
String getPropertyValue(String propertyName) native;
bool isPropertyImplicit(String propertyName) native;
String item(int index) native;
String removeProperty(String propertyName) native;
void setProperty(String propertyName, String value, [String priority = null]) native;
// TODO(jacobr): generate this list of properties using the existing script.
/** Gets the value of "animation" */
String get animation() =>
getPropertyValue('${_browserPrefix}animation');
/** Sets the value of "animation" */
void set animation(var value) {
setProperty('${_browserPrefix}animation', value, '');
}
/** Gets the value of "animation-delay" */
String get animationDelay() =>
getPropertyValue('${_browserPrefix}animation-delay');
/** Sets the value of "animation-delay" */
void set animationDelay(var value) {
setProperty('${_browserPrefix}animation-delay', value, '');
}
/** Gets the value of "animation-direction" */
String get animationDirection() =>
getPropertyValue('${_browserPrefix}animation-direction');
/** Sets the value of "animation-direction" */
void set animationDirection(var value) {
setProperty('${_browserPrefix}animation-direction', value, '');
}
/** Gets the value of "animation-duration" */
String get animationDuration() =>
getPropertyValue('${_browserPrefix}animation-duration');
/** Sets the value of "animation-duration" */
void set animationDuration(var value) {
setProperty('${_browserPrefix}animation-duration', value, '');
}
/** Gets the value of "animation-fill-mode" */
String get animationFillMode() =>
getPropertyValue('${_browserPrefix}animation-fill-mode');
/** Sets the value of "animation-fill-mode" */
void set animationFillMode(var value) {
setProperty('${_browserPrefix}animation-fill-mode', value, '');
}
/** Gets the value of "animation-iteration-count" */
String get animationIterationCount() =>
getPropertyValue('${_browserPrefix}animation-iteration-count');
/** Sets the value of "animation-iteration-count" */
void set animationIterationCount(var value) {
setProperty('${_browserPrefix}animation-iteration-count', value, '');
}
/** Gets the value of "animation-name" */
String get animationName() =>
getPropertyValue('${_browserPrefix}animation-name');
/** Sets the value of "animation-name" */
void set animationName(var value) {
setProperty('${_browserPrefix}animation-name', value, '');
}
/** Gets the value of "animation-play-state" */
String get animationPlayState() =>
getPropertyValue('${_browserPrefix}animation-play-state');
/** Sets the value of "animation-play-state" */
void set animationPlayState(var value) {
setProperty('${_browserPrefix}animation-play-state', value, '');
}
/** Gets the value of "animation-timing-function" */
String get animationTimingFunction() =>
getPropertyValue('${_browserPrefix}animation-timing-function');
/** Sets the value of "animation-timing-function" */
void set animationTimingFunction(var value) {
setProperty('${_browserPrefix}animation-timing-function', value, '');
}
/** Gets the value of "appearance" */
String get appearance() =>
getPropertyValue('${_browserPrefix}appearance');
/** Sets the value of "appearance" */
void set appearance(var value) {
setProperty('${_browserPrefix}appearance', value, '');
}
/** Gets the value of "backface-visibility" */
String get backfaceVisibility() =>
getPropertyValue('${_browserPrefix}backface-visibility');
/** Sets the value of "backface-visibility" */
void set backfaceVisibility(var value) {
setProperty('${_browserPrefix}backface-visibility', value, '');
}
/** Gets the value of "background" */
String get background() =>
getPropertyValue('background');
/** Sets the value of "background" */
void set background(var value) {
setProperty('background', value, '');
}
/** Gets the value of "background-attachment" */
String get backgroundAttachment() =>
getPropertyValue('background-attachment');
/** Sets the value of "background-attachment" */
void set backgroundAttachment(var value) {
setProperty('background-attachment', value, '');
}
/** Gets the value of "background-clip" */
String get backgroundClip() =>
getPropertyValue('background-clip');
/** Sets the value of "background-clip" */
void set backgroundClip(var value) {
setProperty('background-clip', value, '');
}
/** Gets the value of "background-color" */
String get backgroundColor() =>
getPropertyValue('background-color');
/** Sets the value of "background-color" */
void set backgroundColor(var value) {
setProperty('background-color', value, '');
}
/** Gets the value of "background-composite" */
String get backgroundComposite() =>
getPropertyValue('${_browserPrefix}background-composite');
/** Sets the value of "background-composite" */
void set backgroundComposite(var value) {
setProperty('${_browserPrefix}background-composite', value, '');
}
/** Gets the value of "background-image" */
String get backgroundImage() =>
getPropertyValue('background-image');
/** Sets the value of "background-image" */
void set backgroundImage(var value) {
setProperty('background-image', value, '');
}
/** Gets the value of "background-origin" */
String get backgroundOrigin() =>
getPropertyValue('background-origin');
/** Sets the value of "background-origin" */
void set backgroundOrigin(var value) {
setProperty('background-origin', value, '');
}
/** Gets the value of "background-position" */
String get backgroundPosition() =>
getPropertyValue('background-position');
/** Sets the value of "background-position" */
void set backgroundPosition(var value) {
setProperty('background-position', value, '');
}
/** Gets the value of "background-position-x" */
String get backgroundPositionX() =>
getPropertyValue('background-position-x');
/** Sets the value of "background-position-x" */
void set backgroundPositionX(var value) {
setProperty('background-position-x', value, '');
}
/** Gets the value of "background-position-y" */
String get backgroundPositionY() =>
getPropertyValue('background-position-y');
/** Sets the value of "background-position-y" */
void set backgroundPositionY(var value) {
setProperty('background-position-y', value, '');
}
/** Gets the value of "background-repeat" */
String get backgroundRepeat() =>
getPropertyValue('background-repeat');
/** Sets the value of "background-repeat" */
void set backgroundRepeat(var value) {
setProperty('background-repeat', value, '');
}
/** Gets the value of "background-repeat-x" */
String get backgroundRepeatX() =>
getPropertyValue('background-repeat-x');
/** Sets the value of "background-repeat-x" */
void set backgroundRepeatX(var value) {
setProperty('background-repeat-x', value, '');
}
/** Gets the value of "background-repeat-y" */
String get backgroundRepeatY() =>
getPropertyValue('background-repeat-y');
/** Sets the value of "background-repeat-y" */
void set backgroundRepeatY(var value) {
setProperty('background-repeat-y', value, '');
}
/** Gets the value of "background-size" */
String get backgroundSize() =>
getPropertyValue('background-size');
/** Sets the value of "background-size" */
void set backgroundSize(var value) {
setProperty('background-size', value, '');
}
/** Gets the value of "border" */
String get border() =>
getPropertyValue('border');
/** Sets the value of "border" */
void set border(var value) {
setProperty('border', value, '');
}
/** Gets the value of "border-after" */
String get borderAfter() =>
getPropertyValue('${_browserPrefix}border-after');
/** Sets the value of "border-after" */
void set borderAfter(var value) {
setProperty('${_browserPrefix}border-after', value, '');
}
/** Gets the value of "border-after-color" */
String get borderAfterColor() =>
getPropertyValue('${_browserPrefix}border-after-color');
/** Sets the value of "border-after-color" */
void set borderAfterColor(var value) {
setProperty('${_browserPrefix}border-after-color', value, '');
}
/** Gets the value of "border-after-style" */
String get borderAfterStyle() =>
getPropertyValue('${_browserPrefix}border-after-style');
/** Sets the value of "border-after-style" */
void set borderAfterStyle(var value) {
setProperty('${_browserPrefix}border-after-style', value, '');
}
/** Gets the value of "border-after-width" */
String get borderAfterWidth() =>
getPropertyValue('${_browserPrefix}border-after-width');
/** Sets the value of "border-after-width" */
void set borderAfterWidth(var value) {
setProperty('${_browserPrefix}border-after-width', value, '');
}
/** Gets the value of "border-before" */
String get borderBefore() =>
getPropertyValue('${_browserPrefix}border-before');
/** Sets the value of "border-before" */
void set borderBefore(var value) {
setProperty('${_browserPrefix}border-before', value, '');
}
/** Gets the value of "border-before-color" */
String get borderBeforeColor() =>
getPropertyValue('${_browserPrefix}border-before-color');
/** Sets the value of "border-before-color" */
void set borderBeforeColor(var value) {
setProperty('${_browserPrefix}border-before-color', value, '');
}
/** Gets the value of "border-before-style" */
String get borderBeforeStyle() =>
getPropertyValue('${_browserPrefix}border-before-style');
/** Sets the value of "border-before-style" */
void set borderBeforeStyle(var value) {
setProperty('${_browserPrefix}border-before-style', value, '');
}
/** Gets the value of "border-before-width" */
String get borderBeforeWidth() =>
getPropertyValue('${_browserPrefix}border-before-width');
/** Sets the value of "border-before-width" */
void set borderBeforeWidth(var value) {
setProperty('${_browserPrefix}border-before-width', value, '');
}
/** Gets the value of "border-bottom" */
String get borderBottom() =>
getPropertyValue('border-bottom');
/** Sets the value of "border-bottom" */
void set borderBottom(var value) {
setProperty('border-bottom', value, '');
}
/** Gets the value of "border-bottom-color" */
String get borderBottomColor() =>
getPropertyValue('border-bottom-color');
/** Sets the value of "border-bottom-color" */
void set borderBottomColor(var value) {
setProperty('border-bottom-color', value, '');
}
/** Gets the value of "border-bottom-left-radius" */
String get borderBottomLeftRadius() =>
getPropertyValue('border-bottom-left-radius');
/** Sets the value of "border-bottom-left-radius" */
void set borderBottomLeftRadius(var value) {
setProperty('border-bottom-left-radius', value, '');
}
/** Gets the value of "border-bottom-right-radius" */
String get borderBottomRightRadius() =>
getPropertyValue('border-bottom-right-radius');
/** Sets the value of "border-bottom-right-radius" */
void set borderBottomRightRadius(var value) {
setProperty('border-bottom-right-radius', value, '');
}
/** Gets the value of "border-bottom-style" */
String get borderBottomStyle() =>
getPropertyValue('border-bottom-style');
/** Sets the value of "border-bottom-style" */
void set borderBottomStyle(var value) {
setProperty('border-bottom-style', value, '');
}
/** Gets the value of "border-bottom-width" */
String get borderBottomWidth() =>
getPropertyValue('border-bottom-width');
/** Sets the value of "border-bottom-width" */
void set borderBottomWidth(var value) {
setProperty('border-bottom-width', value, '');
}
/** Gets the value of "border-collapse" */
String get borderCollapse() =>
getPropertyValue('border-collapse');
/** Sets the value of "border-collapse" */
void set borderCollapse(var value) {
setProperty('border-collapse', value, '');
}
/** Gets the value of "border-color" */
String get borderColor() =>
getPropertyValue('border-color');
/** Sets the value of "border-color" */
void set borderColor(var value) {
setProperty('border-color', value, '');
}
/** Gets the value of "border-end" */
String get borderEnd() =>
getPropertyValue('${_browserPrefix}border-end');
/** Sets the value of "border-end" */
void set borderEnd(var value) {
setProperty('${_browserPrefix}border-end', value, '');
}
/** Gets the value of "border-end-color" */
String get borderEndColor() =>
getPropertyValue('${_browserPrefix}border-end-color');
/** Sets the value of "border-end-color" */
void set borderEndColor(var value) {
setProperty('${_browserPrefix}border-end-color', value, '');
}
/** Gets the value of "border-end-style" */
String get borderEndStyle() =>
getPropertyValue('${_browserPrefix}border-end-style');
/** Sets the value of "border-end-style" */
void set borderEndStyle(var value) {
setProperty('${_browserPrefix}border-end-style', value, '');
}
/** Gets the value of "border-end-width" */
String get borderEndWidth() =>
getPropertyValue('${_browserPrefix}border-end-width');
/** Sets the value of "border-end-width" */
void set borderEndWidth(var value) {
setProperty('${_browserPrefix}border-end-width', value, '');
}
/** Gets the value of "border-fit" */
String get borderFit() =>
getPropertyValue('${_browserPrefix}border-fit');
/** Sets the value of "border-fit" */
void set borderFit(var value) {
setProperty('${_browserPrefix}border-fit', value, '');
}
/** Gets the value of "border-horizontal-spacing" */
String get borderHorizontalSpacing() =>
getPropertyValue('${_browserPrefix}border-horizontal-spacing');
/** Sets the value of "border-horizontal-spacing" */
void set borderHorizontalSpacing(var value) {
setProperty('${_browserPrefix}border-horizontal-spacing', value, '');
}
/** Gets the value of "border-image" */
String get borderImage() =>
getPropertyValue('border-image');
/** Sets the value of "border-image" */
void set borderImage(var value) {
setProperty('border-image', value, '');
}
/** Gets the value of "border-image-outset" */
String get borderImageOutset() =>
getPropertyValue('border-image-outset');
/** Sets the value of "border-image-outset" */
void set borderImageOutset(var value) {
setProperty('border-image-outset', value, '');
}
/** Gets the value of "border-image-repeat" */
String get borderImageRepeat() =>
getPropertyValue('border-image-repeat');
/** Sets the value of "border-image-repeat" */
void set borderImageRepeat(var value) {
setProperty('border-image-repeat', value, '');
}
/** Gets the value of "border-image-slice" */
String get borderImageSlice() =>
getPropertyValue('border-image-slice');
/** Sets the value of "border-image-slice" */
void set borderImageSlice(var value) {
setProperty('border-image-slice', value, '');
}
/** Gets the value of "border-image-source" */
String get borderImageSource() =>
getPropertyValue('border-image-source');
/** Sets the value of "border-image-source" */
void set borderImageSource(var value) {
setProperty('border-image-source', value, '');
}
/** Gets the value of "border-image-width" */
String get borderImageWidth() =>
getPropertyValue('border-image-width');
/** Sets the value of "border-image-width" */
void set borderImageWidth(var value) {
setProperty('border-image-width', value, '');
}
/** Gets the value of "border-left" */
String get borderLeft() =>
getPropertyValue('border-left');
/** Sets the value of "border-left" */
void set borderLeft(var value) {
setProperty('border-left', value, '');
}
/** Gets the value of "border-left-color" */
String get borderLeftColor() =>
getPropertyValue('border-left-color');
/** Sets the value of "border-left-color" */
void set borderLeftColor(var value) {
setProperty('border-left-color', value, '');
}
/** Gets the value of "border-left-style" */
String get borderLeftStyle() =>
getPropertyValue('border-left-style');
/** Sets the value of "border-left-style" */
void set borderLeftStyle(var value) {
setProperty('border-left-style', value, '');
}
/** Gets the value of "border-left-width" */
String get borderLeftWidth() =>
getPropertyValue('border-left-width');
/** Sets the value of "border-left-width" */
void set borderLeftWidth(var value) {
setProperty('border-left-width', value, '');
}
/** Gets the value of "border-radius" */
String get borderRadius() =>
getPropertyValue('border-radius');
/** Sets the value of "border-radius" */
void set borderRadius(var value) {
setProperty('border-radius', value, '');
}
/** Gets the value of "border-right" */
String get borderRight() =>
getPropertyValue('border-right');
/** Sets the value of "border-right" */
void set borderRight(var value) {
setProperty('border-right', value, '');
}
/** Gets the value of "border-right-color" */
String get borderRightColor() =>
getPropertyValue('border-right-color');
/** Sets the value of "border-right-color" */
void set borderRightColor(var value) {
setProperty('border-right-color', value, '');
}
/** Gets the value of "border-right-style" */
String get borderRightStyle() =>
getPropertyValue('border-right-style');
/** Sets the value of "border-right-style" */
void set borderRightStyle(var value) {
setProperty('border-right-style', value, '');
}
/** Gets the value of "border-right-width" */
String get borderRightWidth() =>
getPropertyValue('border-right-width');
/** Sets the value of "border-right-width" */
void set borderRightWidth(var value) {
setProperty('border-right-width', value, '');
}
/** Gets the value of "border-spacing" */
String get borderSpacing() =>
getPropertyValue('border-spacing');
/** Sets the value of "border-spacing" */
void set borderSpacing(var value) {
setProperty('border-spacing', value, '');
}
/** Gets the value of "border-start" */
String get borderStart() =>
getPropertyValue('${_browserPrefix}border-start');
/** Sets the value of "border-start" */
void set borderStart(var value) {
setProperty('${_browserPrefix}border-start', value, '');
}
/** Gets the value of "border-start-color" */
String get borderStartColor() =>
getPropertyValue('${_browserPrefix}border-start-color');
/** Sets the value of "border-start-color" */
void set borderStartColor(var value) {
setProperty('${_browserPrefix}border-start-color', value, '');
}
/** Gets the value of "border-start-style" */
String get borderStartStyle() =>
getPropertyValue('${_browserPrefix}border-start-style');
/** Sets the value of "border-start-style" */
void set borderStartStyle(var value) {
setProperty('${_browserPrefix}border-start-style', value, '');
}
/** Gets the value of "border-start-width" */
String get borderStartWidth() =>
getPropertyValue('${_browserPrefix}border-start-width');
/** Sets the value of "border-start-width" */
void set borderStartWidth(var value) {
setProperty('${_browserPrefix}border-start-width', value, '');
}
/** Gets the value of "border-style" */
String get borderStyle() =>
getPropertyValue('border-style');
/** Sets the value of "border-style" */
void set borderStyle(var value) {
setProperty('border-style', value, '');
}
/** Gets the value of "border-top" */
String get borderTop() =>
getPropertyValue('border-top');
/** Sets the value of "border-top" */
void set borderTop(var value) {
setProperty('border-top', value, '');
}
/** Gets the value of "border-top-color" */
String get borderTopColor() =>
getPropertyValue('border-top-color');
/** Sets the value of "border-top-color" */
void set borderTopColor(var value) {
setProperty('border-top-color', value, '');
}
/** Gets the value of "border-top-left-radius" */
String get borderTopLeftRadius() =>
getPropertyValue('border-top-left-radius');
/** Sets the value of "border-top-left-radius" */
void set borderTopLeftRadius(var value) {
setProperty('border-top-left-radius', value, '');
}
/** Gets the value of "border-top-right-radius" */
String get borderTopRightRadius() =>
getPropertyValue('border-top-right-radius');
/** Sets the value of "border-top-right-radius" */
void set borderTopRightRadius(var value) {
setProperty('border-top-right-radius', value, '');
}
/** Gets the value of "border-top-style" */
String get borderTopStyle() =>
getPropertyValue('border-top-style');
/** Sets the value of "border-top-style" */
void set borderTopStyle(var value) {
setProperty('border-top-style', value, '');
}
/** Gets the value of "border-top-width" */
String get borderTopWidth() =>
getPropertyValue('border-top-width');
/** Sets the value of "border-top-width" */
void set borderTopWidth(var value) {
setProperty('border-top-width', value, '');
}
/** Gets the value of "border-vertical-spacing" */
String get borderVerticalSpacing() =>
getPropertyValue('${_browserPrefix}border-vertical-spacing');
/** Sets the value of "border-vertical-spacing" */
void set borderVerticalSpacing(var value) {
setProperty('${_browserPrefix}border-vertical-spacing', value, '');
}
/** Gets the value of "border-width" */
String get borderWidth() =>
getPropertyValue('border-width');
/** Sets the value of "border-width" */
void set borderWidth(var value) {
setProperty('border-width', value, '');
}
/** Gets the value of "bottom" */
String get bottom() =>
getPropertyValue('bottom');
/** Sets the value of "bottom" */
void set bottom(var value) {
setProperty('bottom', value, '');
}
/** Gets the value of "box-align" */
String get boxAlign() =>
getPropertyValue('${_browserPrefix}box-align');
/** Sets the value of "box-align" */
void set boxAlign(var value) {
setProperty('${_browserPrefix}box-align', value, '');
}
/** Gets the value of "box-direction" */
String get boxDirection() =>
getPropertyValue('${_browserPrefix}box-direction');
/** Sets the value of "box-direction" */
void set boxDirection(var value) {
setProperty('${_browserPrefix}box-direction', value, '');
}
/** Gets the value of "box-flex" */
String get boxFlex() =>
getPropertyValue('${_browserPrefix}box-flex');
/** Sets the value of "box-flex" */
void set boxFlex(var value) {
setProperty('${_browserPrefix}box-flex', value, '');
}
/** Gets the value of "box-flex-group" */
String get boxFlexGroup() =>
getPropertyValue('${_browserPrefix}box-flex-group');
/** Sets the value of "box-flex-group" */
void set boxFlexGroup(var value) {
setProperty('${_browserPrefix}box-flex-group', value, '');
}
/** Gets the value of "box-lines" */
String get boxLines() =>
getPropertyValue('${_browserPrefix}box-lines');
/** Sets the value of "box-lines" */
void set boxLines(var value) {
setProperty('${_browserPrefix}box-lines', value, '');
}
/** Gets the value of "box-ordinal-group" */
String get boxOrdinalGroup() =>
getPropertyValue('${_browserPrefix}box-ordinal-group');
/** Sets the value of "box-ordinal-group" */
void set boxOrdinalGroup(var value) {
setProperty('${_browserPrefix}box-ordinal-group', value, '');
}
/** Gets the value of "box-orient" */
String get boxOrient() =>
getPropertyValue('${_browserPrefix}box-orient');
/** Sets the value of "box-orient" */
void set boxOrient(var value) {
setProperty('${_browserPrefix}box-orient', value, '');
}
/** Gets the value of "box-pack" */
String get boxPack() =>
getPropertyValue('${_browserPrefix}box-pack');
/** Sets the value of "box-pack" */
void set boxPack(var value) {
setProperty('${_browserPrefix}box-pack', value, '');
}
/** Gets the value of "box-reflect" */
String get boxReflect() =>
getPropertyValue('${_browserPrefix}box-reflect');
/** Sets the value of "box-reflect" */
void set boxReflect(var value) {
setProperty('${_browserPrefix}box-reflect', value, '');
}
/** Gets the value of "box-shadow" */
String get boxShadow() =>
getPropertyValue('box-shadow');
/** Sets the value of "box-shadow" */
void set boxShadow(var value) {
setProperty('box-shadow', value, '');
}
/** Gets the value of "box-sizing" */
String get boxSizing() =>
getPropertyValue('box-sizing');
/** Sets the value of "box-sizing" */
void set boxSizing(var value) {
setProperty('box-sizing', value, '');
}
/** Gets the value of "caption-side" */
String get captionSide() =>
getPropertyValue('caption-side');
/** Sets the value of "caption-side" */
void set captionSide(var value) {
setProperty('caption-side', value, '');
}
/** Gets the value of "clear" */
String get clear() =>
getPropertyValue('clear');
/** Sets the value of "clear" */
void set clear(var value) {
setProperty('clear', value, '');
}
/** Gets the value of "clip" */
String get clip() =>
getPropertyValue('clip');
/** Sets the value of "clip" */
void set clip(var value) {
setProperty('clip', value, '');
}
/** Gets the value of "color" */
String get color() =>
getPropertyValue('color');
/** Sets the value of "color" */
void set color(var value) {
setProperty('color', value, '');
}
/** Gets the value of "color-correction" */
String get colorCorrection() =>
getPropertyValue('${_browserPrefix}color-correction');
/** Sets the value of "color-correction" */
void set colorCorrection(var value) {
setProperty('${_browserPrefix}color-correction', value, '');
}
/** Gets the value of "column-break-after" */
String get columnBreakAfter() =>
getPropertyValue('${_browserPrefix}column-break-after');
/** Sets the value of "column-break-after" */
void set columnBreakAfter(var value) {
setProperty('${_browserPrefix}column-break-after', value, '');
}
/** Gets the value of "column-break-before" */
String get columnBreakBefore() =>
getPropertyValue('${_browserPrefix}column-break-before');
/** Sets the value of "column-break-before" */
void set columnBreakBefore(var value) {
setProperty('${_browserPrefix}column-break-before', value, '');
}
/** Gets the value of "column-break-inside" */
String get columnBreakInside() =>
getPropertyValue('${_browserPrefix}column-break-inside');
/** Sets the value of "column-break-inside" */
void set columnBreakInside(var value) {
setProperty('${_browserPrefix}column-break-inside', value, '');
}
/** Gets the value of "column-count" */
String get columnCount() =>
getPropertyValue('${_browserPrefix}column-count');
/** Sets the value of "column-count" */
void set columnCount(var value) {
setProperty('${_browserPrefix}column-count', value, '');
}
/** Gets the value of "column-gap" */
String get columnGap() =>
getPropertyValue('${_browserPrefix}column-gap');
/** Sets the value of "column-gap" */
void set columnGap(var value) {
setProperty('${_browserPrefix}column-gap', value, '');
}
/** Gets the value of "column-rule" */
String get columnRule() =>
getPropertyValue('${_browserPrefix}column-rule');
/** Sets the value of "column-rule" */
void set columnRule(var value) {
setProperty('${_browserPrefix}column-rule', value, '');
}
/** Gets the value of "column-rule-color" */
String get columnRuleColor() =>
getPropertyValue('${_browserPrefix}column-rule-color');
/** Sets the value of "column-rule-color" */
void set columnRuleColor(var value) {
setProperty('${_browserPrefix}column-rule-color', value, '');
}
/** Gets the value of "column-rule-style" */
String get columnRuleStyle() =>
getPropertyValue('${_browserPrefix}column-rule-style');
/** Sets the value of "column-rule-style" */
void set columnRuleStyle(var value) {
setProperty('${_browserPrefix}column-rule-style', value, '');
}
/** Gets the value of "column-rule-width" */
String get columnRuleWidth() =>
getPropertyValue('${_browserPrefix}column-rule-width');
/** Sets the value of "column-rule-width" */
void set columnRuleWidth(var value) {
setProperty('${_browserPrefix}column-rule-width', value, '');
}
/** Gets the value of "column-span" */
String get columnSpan() =>
getPropertyValue('${_browserPrefix}column-span');
/** Sets the value of "column-span" */
void set columnSpan(var value) {
setProperty('${_browserPrefix}column-span', value, '');
}
/** Gets the value of "column-width" */
String get columnWidth() =>
getPropertyValue('${_browserPrefix}column-width');
/** Sets the value of "column-width" */
void set columnWidth(var value) {
setProperty('${_browserPrefix}column-width', value, '');
}
/** Gets the value of "columns" */
String get columns() =>
getPropertyValue('${_browserPrefix}columns');
/** Sets the value of "columns" */
void set columns(var value) {
setProperty('${_browserPrefix}columns', value, '');
}
/** Gets the value of "content" */
String get content() =>
getPropertyValue('content');
/** Sets the value of "content" */
void set content(var value) {
setProperty('content', value, '');
}
/** Gets the value of "counter-increment" */
String get counterIncrement() =>
getPropertyValue('counter-increment');
/** Sets the value of "counter-increment" */
void set counterIncrement(var value) {
setProperty('counter-increment', value, '');
}
/** Gets the value of "counter-reset" */
String get counterReset() =>
getPropertyValue('counter-reset');
/** Sets the value of "counter-reset" */
void set counterReset(var value) {
setProperty('counter-reset', value, '');
}
/** Gets the value of "cursor" */
String get cursor() =>
getPropertyValue('cursor');
/** Sets the value of "cursor" */
void set cursor(var value) {
setProperty('cursor', value, '');
}
/** Gets the value of "direction" */
String get direction() =>
getPropertyValue('direction');
/** Sets the value of "direction" */
void set direction(var value) {
setProperty('direction', value, '');
}
/** Gets the value of "display" */
String get display() =>
getPropertyValue('display');
/** Sets the value of "display" */
void set display(var value) {
setProperty('display', value, '');
}
/** Gets the value of "empty-cells" */
String get emptyCells() =>
getPropertyValue('empty-cells');
/** Sets the value of "empty-cells" */
void set emptyCells(var value) {
setProperty('empty-cells', value, '');
}
/** Gets the value of "filter" */
String get filter() =>
getPropertyValue('${_browserPrefix}filter');
/** Sets the value of "filter" */
void set filter(var value) {
setProperty('${_browserPrefix}filter', value, '');
}
/** Gets the value of "flex-align" */
String get flexAlign() =>
getPropertyValue('${_browserPrefix}flex-align');
/** Sets the value of "flex-align" */
void set flexAlign(var value) {
setProperty('${_browserPrefix}flex-align', value, '');
}
/** Gets the value of "flex-flow" */
String get flexFlow() =>
getPropertyValue('${_browserPrefix}flex-flow');
/** Sets the value of "flex-flow" */
void set flexFlow(var value) {
setProperty('${_browserPrefix}flex-flow', value, '');
}
/** Gets the value of "flex-order" */
String get flexOrder() =>
getPropertyValue('${_browserPrefix}flex-order');
/** Sets the value of "flex-order" */
void set flexOrder(var value) {
setProperty('${_browserPrefix}flex-order', value, '');
}
/** Gets the value of "flex-pack" */
String get flexPack() =>
getPropertyValue('${_browserPrefix}flex-pack');
/** Sets the value of "flex-pack" */
void set flexPack(var value) {
setProperty('${_browserPrefix}flex-pack', value, '');
}
/** Gets the value of "float" */
String get float() =>
getPropertyValue('float');
/** Sets the value of "float" */
void set float(var value) {
setProperty('float', value, '');
}
/** Gets the value of "flow-from" */
String get flowFrom() =>
getPropertyValue('${_browserPrefix}flow-from');
/** Sets the value of "flow-from" */
void set flowFrom(var value) {
setProperty('${_browserPrefix}flow-from', value, '');
}
/** Gets the value of "flow-into" */
String get flowInto() =>
getPropertyValue('${_browserPrefix}flow-into');
/** Sets the value of "flow-into" */
void set flowInto(var value) {
setProperty('${_browserPrefix}flow-into', value, '');
}
/** Gets the value of "font" */
String get font() =>
getPropertyValue('font');
/** Sets the value of "font" */
void set font(var value) {
setProperty('font', value, '');
}
/** Gets the value of "font-family" */
String get fontFamily() =>
getPropertyValue('font-family');
/** Sets the value of "font-family" */
void set fontFamily(var value) {
setProperty('font-family', value, '');
}
/** Gets the value of "font-feature-settings" */
String get fontFeatureSettings() =>
getPropertyValue('${_browserPrefix}font-feature-settings');
/** Sets the value of "font-feature-settings" */
void set fontFeatureSettings(var value) {
setProperty('${_browserPrefix}font-feature-settings', value, '');
}
/** Gets the value of "font-size" */
String get fontSize() =>
getPropertyValue('font-size');
/** Sets the value of "font-size" */
void set fontSize(var value) {
setProperty('font-size', value, '');
}
/** Gets the value of "font-size-delta" */
String get fontSizeDelta() =>
getPropertyValue('${_browserPrefix}font-size-delta');
/** Sets the value of "font-size-delta" */
void set fontSizeDelta(var value) {
setProperty('${_browserPrefix}font-size-delta', value, '');
}
/** Gets the value of "font-smoothing" */
String get fontSmoothing() =>
getPropertyValue('${_browserPrefix}font-smoothing');
/** Sets the value of "font-smoothing" */
void set fontSmoothing(var value) {
setProperty('${_browserPrefix}font-smoothing', value, '');
}
/** Gets the value of "font-stretch" */
String get fontStretch() =>
getPropertyValue('font-stretch');
/** Sets the value of "font-stretch" */
void set fontStretch(var value) {
setProperty('font-stretch', value, '');
}
/** Gets the value of "font-style" */
String get fontStyle() =>
getPropertyValue('font-style');
/** Sets the value of "font-style" */
void set fontStyle(var value) {
setProperty('font-style', value, '');
}
/** Gets the value of "font-variant" */
String get fontVariant() =>
getPropertyValue('font-variant');
/** Sets the value of "font-variant" */
void set fontVariant(var value) {
setProperty('font-variant', value, '');
}
/** Gets the value of "font-weight" */
String get fontWeight() =>
getPropertyValue('font-weight');
/** Sets the value of "font-weight" */
void set fontWeight(var value) {
setProperty('font-weight', value, '');
}
/** Gets the value of "height" */
String get height() =>
getPropertyValue('height');
/** Sets the value of "height" */
void set height(var value) {
setProperty('height', value, '');
}
/** Gets the value of "highlight" */
String get highlight() =>
getPropertyValue('${_browserPrefix}highlight');
/** Sets the value of "highlight" */
void set highlight(var value) {
setProperty('${_browserPrefix}highlight', value, '');
}
/** Gets the value of "hyphenate-character" */
String get hyphenateCharacter() =>
getPropertyValue('${_browserPrefix}hyphenate-character');
/** Sets the value of "hyphenate-character" */
void set hyphenateCharacter(var value) {
setProperty('${_browserPrefix}hyphenate-character', value, '');
}
/** Gets the value of "hyphenate-limit-after" */
String get hyphenateLimitAfter() =>
getPropertyValue('${_browserPrefix}hyphenate-limit-after');
/** Sets the value of "hyphenate-limit-after" */
void set hyphenateLimitAfter(var value) {
setProperty('${_browserPrefix}hyphenate-limit-after', value, '');
}
/** Gets the value of "hyphenate-limit-before" */
String get hyphenateLimitBefore() =>
getPropertyValue('${_browserPrefix}hyphenate-limit-before');
/** Sets the value of "hyphenate-limit-before" */
void set hyphenateLimitBefore(var value) {
setProperty('${_browserPrefix}hyphenate-limit-before', value, '');
}
/** Gets the value of "hyphenate-limit-lines" */
String get hyphenateLimitLines() =>
getPropertyValue('${_browserPrefix}hyphenate-limit-lines');
/** Sets the value of "hyphenate-limit-lines" */
void set hyphenateLimitLines(var value) {
setProperty('${_browserPrefix}hyphenate-limit-lines', value, '');
}
/** Gets the value of "hyphens" */
String get hyphens() =>
getPropertyValue('${_browserPrefix}hyphens');
/** Sets the value of "hyphens" */
void set hyphens(var value) {
setProperty('${_browserPrefix}hyphens', value, '');
}
/** Gets the value of "image-rendering" */
String get imageRendering() =>
getPropertyValue('image-rendering');
/** Sets the value of "image-rendering" */
void set imageRendering(var value) {
setProperty('image-rendering', value, '');
}
/** Gets the value of "left" */
String get left() =>
getPropertyValue('left');
/** Sets the value of "left" */
void set left(var value) {
setProperty('left', value, '');
}
/** Gets the value of "letter-spacing" */
String get letterSpacing() =>
getPropertyValue('letter-spacing');
/** Sets the value of "letter-spacing" */
void set letterSpacing(var value) {
setProperty('letter-spacing', value, '');
}
/** Gets the value of "line-box-contain" */
String get lineBoxContain() =>
getPropertyValue('${_browserPrefix}line-box-contain');
/** Sets the value of "line-box-contain" */
void set lineBoxContain(var value) {
setProperty('${_browserPrefix}line-box-contain', value, '');
}
/** Gets the value of "line-break" */
String get lineBreak() =>
getPropertyValue('${_browserPrefix}line-break');
/** Sets the value of "line-break" */
void set lineBreak(var value) {
setProperty('${_browserPrefix}line-break', value, '');
}
/** Gets the value of "line-clamp" */
String get lineClamp() =>
getPropertyValue('${_browserPrefix}line-clamp');
/** Sets the value of "line-clamp" */
void set lineClamp(var value) {
setProperty('${_browserPrefix}line-clamp', value, '');
}
/** Gets the value of "line-height" */
String get lineHeight() =>
getPropertyValue('line-height');
/** Sets the value of "line-height" */
void set lineHeight(var value) {
setProperty('line-height', value, '');
}
/** Gets the value of "list-style" */
String get listStyle() =>
getPropertyValue('list-style');
/** Sets the value of "list-style" */
void set listStyle(var value) {
setProperty('list-style', value, '');
}
/** Gets the value of "list-style-image" */
String get listStyleImage() =>
getPropertyValue('list-style-image');
/** Sets the value of "list-style-image" */
void set listStyleImage(var value) {
setProperty('list-style-image', value, '');
}
/** Gets the value of "list-style-position" */
String get listStylePosition() =>
getPropertyValue('list-style-position');
/** Sets the value of "list-style-position" */
void set listStylePosition(var value) {
setProperty('list-style-position', value, '');
}
/** Gets the value of "list-style-type" */
String get listStyleType() =>
getPropertyValue('list-style-type');
/** Sets the value of "list-style-type" */
void set listStyleType(var value) {
setProperty('list-style-type', value, '');
}
/** Gets the value of "locale" */
String get locale() =>
getPropertyValue('${_browserPrefix}locale');
/** Sets the value of "locale" */
void set locale(var value) {
setProperty('${_browserPrefix}locale', value, '');
}
/** Gets the value of "logical-height" */
String get logicalHeight() =>
getPropertyValue('${_browserPrefix}logical-height');
/** Sets the value of "logical-height" */
void set logicalHeight(var value) {
setProperty('${_browserPrefix}logical-height', value, '');
}
/** Gets the value of "logical-width" */
String get logicalWidth() =>
getPropertyValue('${_browserPrefix}logical-width');
/** Sets the value of "logical-width" */
void set logicalWidth(var value) {
setProperty('${_browserPrefix}logical-width', value, '');
}
/** Gets the value of "margin" */
String get margin() =>
getPropertyValue('margin');
/** Sets the value of "margin" */
void set margin(var value) {
setProperty('margin', value, '');
}
/** Gets the value of "margin-after" */
String get marginAfter() =>
getPropertyValue('${_browserPrefix}margin-after');
/** Sets the value of "margin-after" */
void set marginAfter(var value) {
setProperty('${_browserPrefix}margin-after', value, '');
}
/** Gets the value of "margin-after-collapse" */
String get marginAfterCollapse() =>
getPropertyValue('${_browserPrefix}margin-after-collapse');
/** Sets the value of "margin-after-collapse" */
void set marginAfterCollapse(var value) {
setProperty('${_browserPrefix}margin-after-collapse', value, '');
}
/** Gets the value of "margin-before" */
String get marginBefore() =>
getPropertyValue('${_browserPrefix}margin-before');
/** Sets the value of "margin-before" */
void set marginBefore(var value) {
setProperty('${_browserPrefix}margin-before', value, '');
}
/** Gets the value of "margin-before-collapse" */
String get marginBeforeCollapse() =>
getPropertyValue('${_browserPrefix}margin-before-collapse');
/** Sets the value of "margin-before-collapse" */
void set marginBeforeCollapse(var value) {
setProperty('${_browserPrefix}margin-before-collapse', value, '');
}
/** Gets the value of "margin-bottom" */
String get marginBottom() =>
getPropertyValue('margin-bottom');
/** Sets the value of "margin-bottom" */
void set marginBottom(var value) {
setProperty('margin-bottom', value, '');
}
/** Gets the value of "margin-bottom-collapse" */
String get marginBottomCollapse() =>
getPropertyValue('${_browserPrefix}margin-bottom-collapse');
/** Sets the value of "margin-bottom-collapse" */
void set marginBottomCollapse(var value) {
setProperty('${_browserPrefix}margin-bottom-collapse', value, '');
}
/** Gets the value of "margin-collapse" */
String get marginCollapse() =>
getPropertyValue('${_browserPrefix}margin-collapse');
/** Sets the value of "margin-collapse" */
void set marginCollapse(var value) {
setProperty('${_browserPrefix}margin-collapse', value, '');
}
/** Gets the value of "margin-end" */
String get marginEnd() =>
getPropertyValue('${_browserPrefix}margin-end');
/** Sets the value of "margin-end" */
void set marginEnd(var value) {
setProperty('${_browserPrefix}margin-end', value, '');
}
/** Gets the value of "margin-left" */
String get marginLeft() =>
getPropertyValue('margin-left');
/** Sets the value of "margin-left" */
void set marginLeft(var value) {
setProperty('margin-left', value, '');
}
/** Gets the value of "margin-right" */
String get marginRight() =>
getPropertyValue('margin-right');
/** Sets the value of "margin-right" */
void set marginRight(var value) {
setProperty('margin-right', value, '');
}
/** Gets the value of "margin-start" */
String get marginStart() =>
getPropertyValue('${_browserPrefix}margin-start');
/** Sets the value of "margin-start" */
void set marginStart(var value) {
setProperty('${_browserPrefix}margin-start', value, '');
}
/** Gets the value of "margin-top" */
String get marginTop() =>
getPropertyValue('margin-top');
/** Sets the value of "margin-top" */
void set marginTop(var value) {
setProperty('margin-top', value, '');
}
/** Gets the value of "margin-top-collapse" */
String get marginTopCollapse() =>
getPropertyValue('${_browserPrefix}margin-top-collapse');
/** Sets the value of "margin-top-collapse" */
void set marginTopCollapse(var value) {
setProperty('${_browserPrefix}margin-top-collapse', value, '');
}
/** Gets the value of "marquee" */
String get marquee() =>
getPropertyValue('${_browserPrefix}marquee');
/** Sets the value of "marquee" */
void set marquee(var value) {
setProperty('${_browserPrefix}marquee', value, '');
}
/** Gets the value of "marquee-direction" */
String get marqueeDirection() =>
getPropertyValue('${_browserPrefix}marquee-direction');
/** Sets the value of "marquee-direction" */
void set marqueeDirection(var value) {
setProperty('${_browserPrefix}marquee-direction', value, '');
}
/** Gets the value of "marquee-increment" */
String get marqueeIncrement() =>
getPropertyValue('${_browserPrefix}marquee-increment');
/** Sets the value of "marquee-increment" */
void set marqueeIncrement(var value) {
setProperty('${_browserPrefix}marquee-increment', value, '');
}
/** Gets the value of "marquee-repetition" */
String get marqueeRepetition() =>
getPropertyValue('${_browserPrefix}marquee-repetition');
/** Sets the value of "marquee-repetition" */
void set marqueeRepetition(var value) {
setProperty('${_browserPrefix}marquee-repetition', value, '');
}
/** Gets the value of "marquee-speed" */
String get marqueeSpeed() =>
getPropertyValue('${_browserPrefix}marquee-speed');
/** Sets the value of "marquee-speed" */
void set marqueeSpeed(var value) {
setProperty('${_browserPrefix}marquee-speed', value, '');
}
/** Gets the value of "marquee-style" */
String get marqueeStyle() =>
getPropertyValue('${_browserPrefix}marquee-style');
/** Sets the value of "marquee-style" */
void set marqueeStyle(var value) {
setProperty('${_browserPrefix}marquee-style', value, '');
}
/** Gets the value of "mask" */
String get mask() =>
getPropertyValue('${_browserPrefix}mask');
/** Sets the value of "mask" */
void set mask(var value) {
setProperty('${_browserPrefix}mask', value, '');
}
/** Gets the value of "mask-attachment" */
String get maskAttachment() =>
getPropertyValue('${_browserPrefix}mask-attachment');
/** Sets the value of "mask-attachment" */
void set maskAttachment(var value) {
setProperty('${_browserPrefix}mask-attachment', value, '');
}
/** Gets the value of "mask-box-image" */
String get maskBoxImage() =>
getPropertyValue('${_browserPrefix}mask-box-image');
/** Sets the value of "mask-box-image" */
void set maskBoxImage(var value) {
setProperty('${_browserPrefix}mask-box-image', value, '');
}
/** Gets the value of "mask-box-image-outset" */
String get maskBoxImageOutset() =>
getPropertyValue('${_browserPrefix}mask-box-image-outset');
/** Sets the value of "mask-box-image-outset" */
void set maskBoxImageOutset(var value) {
setProperty('${_browserPrefix}mask-box-image-outset', value, '');
}
/** Gets the value of "mask-box-image-repeat" */
String get maskBoxImageRepeat() =>
getPropertyValue('${_browserPrefix}mask-box-image-repeat');
/** Sets the value of "mask-box-image-repeat" */
void set maskBoxImageRepeat(var value) {
setProperty('${_browserPrefix}mask-box-image-repeat', value, '');
}
/** Gets the value of "mask-box-image-slice" */
String get maskBoxImageSlice() =>
getPropertyValue('${_browserPrefix}mask-box-image-slice');
/** Sets the value of "mask-box-image-slice" */
void set maskBoxImageSlice(var value) {
setProperty('${_browserPrefix}mask-box-image-slice', value, '');
}
/** Gets the value of "mask-box-image-source" */
String get maskBoxImageSource() =>
getPropertyValue('${_browserPrefix}mask-box-image-source');
/** Sets the value of "mask-box-image-source" */
void set maskBoxImageSource(var value) {
setProperty('${_browserPrefix}mask-box-image-source', value, '');
}
/** Gets the value of "mask-box-image-width" */
String get maskBoxImageWidth() =>
getPropertyValue('${_browserPrefix}mask-box-image-width');
/** Sets the value of "mask-box-image-width" */
void set maskBoxImageWidth(var value) {
setProperty('${_browserPrefix}mask-box-image-width', value, '');
}
/** Gets the value of "mask-clip" */
String get maskClip() =>
getPropertyValue('${_browserPrefix}mask-clip');
/** Sets the value of "mask-clip" */
void set maskClip(var value) {
setProperty('${_browserPrefix}mask-clip', value, '');
}
/** Gets the value of "mask-composite" */
String get maskComposite() =>
getPropertyValue('${_browserPrefix}mask-composite');
/** Sets the value of "mask-composite" */
void set maskComposite(var value) {
setProperty('${_browserPrefix}mask-composite', value, '');
}
/** Gets the value of "mask-image" */
String get maskImage() =>
getPropertyValue('${_browserPrefix}mask-image');
/** Sets the value of "mask-image" */
void set maskImage(var value) {
setProperty('${_browserPrefix}mask-image', value, '');
}
/** Gets the value of "mask-origin" */
String get maskOrigin() =>
getPropertyValue('${_browserPrefix}mask-origin');
/** Sets the value of "mask-origin" */
void set maskOrigin(var value) {
setProperty('${_browserPrefix}mask-origin', value, '');
}
/** Gets the value of "mask-position" */
String get maskPosition() =>
getPropertyValue('${_browserPrefix}mask-position');
/** Sets the value of "mask-position" */
void set maskPosition(var value) {
setProperty('${_browserPrefix}mask-position', value, '');
}
/** Gets the value of "mask-position-x" */
String get maskPositionX() =>
getPropertyValue('${_browserPrefix}mask-position-x');
/** Sets the value of "mask-position-x" */
void set maskPositionX(var value) {
setProperty('${_browserPrefix}mask-position-x', value, '');
}
/** Gets the value of "mask-position-y" */
String get maskPositionY() =>
getPropertyValue('${_browserPrefix}mask-position-y');
/** Sets the value of "mask-position-y" */
void set maskPositionY(var value) {
setProperty('${_browserPrefix}mask-position-y', value, '');
}
/** Gets the value of "mask-repeat" */
String get maskRepeat() =>
getPropertyValue('${_browserPrefix}mask-repeat');
/** Sets the value of "mask-repeat" */
void set maskRepeat(var value) {
setProperty('${_browserPrefix}mask-repeat', value, '');
}
/** Gets the value of "mask-repeat-x" */
String get maskRepeatX() =>
getPropertyValue('${_browserPrefix}mask-repeat-x');
/** Sets the value of "mask-repeat-x" */
void set maskRepeatX(var value) {
setProperty('${_browserPrefix}mask-repeat-x', value, '');
}
/** Gets the value of "mask-repeat-y" */
String get maskRepeatY() =>
getPropertyValue('${_browserPrefix}mask-repeat-y');
/** Sets the value of "mask-repeat-y" */
void set maskRepeatY(var value) {
setProperty('${_browserPrefix}mask-repeat-y', value, '');
}
/** Gets the value of "mask-size" */
String get maskSize() =>
getPropertyValue('${_browserPrefix}mask-size');
/** Sets the value of "mask-size" */
void set maskSize(var value) {
setProperty('${_browserPrefix}mask-size', value, '');
}
/** Gets the value of "match-nearest-mail-blockquote-color" */
String get matchNearestMailBlockquoteColor() =>
getPropertyValue('${_browserPrefix}match-nearest-mail-blockquote-color');
/** Sets the value of "match-nearest-mail-blockquote-color" */
void set matchNearestMailBlockquoteColor(var value) {
setProperty('${_browserPrefix}match-nearest-mail-blockquote-color', value, '');
}
/** Gets the value of "max-height" */
String get maxHeight() =>
getPropertyValue('max-height');
/** Sets the value of "max-height" */
void set maxHeight(var value) {
setProperty('max-height', value, '');
}
/** Gets the value of "max-logical-height" */
String get maxLogicalHeight() =>
getPropertyValue('${_browserPrefix}max-logical-height');
/** Sets the value of "max-logical-height" */
void set maxLogicalHeight(var value) {
setProperty('${_browserPrefix}max-logical-height', value, '');
}
/** Gets the value of "max-logical-width" */
String get maxLogicalWidth() =>
getPropertyValue('${_browserPrefix}max-logical-width');
/** Sets the value of "max-logical-width" */
void set maxLogicalWidth(var value) {
setProperty('${_browserPrefix}max-logical-width', value, '');
}
/** Gets the value of "max-width" */
String get maxWidth() =>
getPropertyValue('max-width');
/** Sets the value of "max-width" */
void set maxWidth(var value) {
setProperty('max-width', value, '');
}
/** Gets the value of "min-height" */
String get minHeight() =>
getPropertyValue('min-height');
/** Sets the value of "min-height" */
void set minHeight(var value) {
setProperty('min-height', value, '');
}
/** Gets the value of "min-logical-height" */
String get minLogicalHeight() =>
getPropertyValue('${_browserPrefix}min-logical-height');
/** Sets the value of "min-logical-height" */
void set minLogicalHeight(var value) {
setProperty('${_browserPrefix}min-logical-height', value, '');
}
/** Gets the value of "min-logical-width" */
String get minLogicalWidth() =>
getPropertyValue('${_browserPrefix}min-logical-width');
/** Sets the value of "min-logical-width" */
void set minLogicalWidth(var value) {
setProperty('${_browserPrefix}min-logical-width', value, '');
}
/** Gets the value of "min-width" */
String get minWidth() =>
getPropertyValue('min-width');
/** Sets the value of "min-width" */
void set minWidth(var value) {
setProperty('min-width', value, '');
}
/** Gets the value of "nbsp-mode" */
String get nbspMode() =>
getPropertyValue('${_browserPrefix}nbsp-mode');
/** Sets the value of "nbsp-mode" */
void set nbspMode(var value) {
setProperty('${_browserPrefix}nbsp-mode', value, '');
}
/** Gets the value of "opacity" */
String get opacity() =>
getPropertyValue('opacity');
/** Sets the value of "opacity" */
void set opacity(var value) {
setProperty('opacity', value, '');
}
/** Gets the value of "orphans" */
String get orphans() =>
getPropertyValue('orphans');
/** Sets the value of "orphans" */
void set orphans(var value) {
setProperty('orphans', value, '');
}
/** Gets the value of "outline" */
String get outline() =>
getPropertyValue('outline');
/** Sets the value of "outline" */
void set outline(var value) {
setProperty('outline', value, '');
}
/** Gets the value of "outline-color" */
String get outlineColor() =>
getPropertyValue('outline-color');
/** Sets the value of "outline-color" */
void set outlineColor(var value) {
setProperty('outline-color', value, '');
}
/** Gets the value of "outline-offset" */
String get outlineOffset() =>
getPropertyValue('outline-offset');
/** Sets the value of "outline-offset" */
void set outlineOffset(var value) {
setProperty('outline-offset', value, '');
}
/** Gets the value of "outline-style" */
String get outlineStyle() =>
getPropertyValue('outline-style');
/** Sets the value of "outline-style" */
void set outlineStyle(var value) {
setProperty('outline-style', value, '');
}
/** Gets the value of "outline-width" */
String get outlineWidth() =>
getPropertyValue('outline-width');
/** Sets the value of "outline-width" */
void set outlineWidth(var value) {
setProperty('outline-width', value, '');
}
/** Gets the value of "overflow" */
String get overflow() =>
getPropertyValue('overflow');
/** Sets the value of "overflow" */
void set overflow(var value) {
setProperty('overflow', value, '');
}
/** Gets the value of "overflow-x" */
String get overflowX() =>
getPropertyValue('overflow-x');
/** Sets the value of "overflow-x" */
void set overflowX(var value) {
setProperty('overflow-x', value, '');
}
/** Gets the value of "overflow-y" */
String get overflowY() =>
getPropertyValue('overflow-y');
/** Sets the value of "overflow-y" */
void set overflowY(var value) {
setProperty('overflow-y', value, '');
}
/** Gets the value of "padding" */
String get padding() =>
getPropertyValue('padding');
/** Sets the value of "padding" */
void set padding(var value) {
setProperty('padding', value, '');
}
/** Gets the value of "padding-after" */
String get paddingAfter() =>
getPropertyValue('${_browserPrefix}padding-after');
/** Sets the value of "padding-after" */
void set paddingAfter(var value) {
setProperty('${_browserPrefix}padding-after', value, '');
}
/** Gets the value of "padding-before" */
String get paddingBefore() =>
getPropertyValue('${_browserPrefix}padding-before');
/** Sets the value of "padding-before" */
void set paddingBefore(var value) {
setProperty('${_browserPrefix}padding-before', value, '');
}
/** Gets the value of "padding-bottom" */
String get paddingBottom() =>
getPropertyValue('padding-bottom');
/** Sets the value of "padding-bottom" */
void set paddingBottom(var value) {
setProperty('padding-bottom', value, '');
}
/** Gets the value of "padding-end" */
String get paddingEnd() =>
getPropertyValue('${_browserPrefix}padding-end');
/** Sets the value of "padding-end" */
void set paddingEnd(var value) {
setProperty('${_browserPrefix}padding-end', value, '');
}
/** Gets the value of "padding-left" */
String get paddingLeft() =>
getPropertyValue('padding-left');
/** Sets the value of "padding-left" */
void set paddingLeft(var value) {
setProperty('padding-left', value, '');
}
/** Gets the value of "padding-right" */
String get paddingRight() =>
getPropertyValue('padding-right');
/** Sets the value of "padding-right" */
void set paddingRight(var value) {
setProperty('padding-right', value, '');
}
/** Gets the value of "padding-start" */
String get paddingStart() =>
getPropertyValue('${_browserPrefix}padding-start');
/** Sets the value of "padding-start" */
void set paddingStart(var value) {
setProperty('${_browserPrefix}padding-start', value, '');
}
/** Gets the value of "padding-top" */
String get paddingTop() =>
getPropertyValue('padding-top');
/** Sets the value of "padding-top" */
void set paddingTop(var value) {
setProperty('padding-top', value, '');
}
/** Gets the value of "page" */
String get page() =>
getPropertyValue('page');
/** Sets the value of "page" */
void set page(var value) {
setProperty('page', value, '');
}
/** Gets the value of "page-break-after" */
String get pageBreakAfter() =>
getPropertyValue('page-break-after');
/** Sets the value of "page-break-after" */
void set pageBreakAfter(var value) {
setProperty('page-break-after', value, '');
}
/** Gets the value of "page-break-before" */
String get pageBreakBefore() =>
getPropertyValue('page-break-before');
/** Sets the value of "page-break-before" */
void set pageBreakBefore(var value) {
setProperty('page-break-before', value, '');
}
/** Gets the value of "page-break-inside" */
String get pageBreakInside() =>
getPropertyValue('page-break-inside');
/** Sets the value of "page-break-inside" */
void set pageBreakInside(var value) {
setProperty('page-break-inside', value, '');
}
/** Gets the value of "perspective" */
String get perspective() =>
getPropertyValue('${_browserPrefix}perspective');
/** Sets the value of "perspective" */
void set perspective(var value) {
setProperty('${_browserPrefix}perspective', value, '');
}
/** Gets the value of "perspective-origin" */
String get perspectiveOrigin() =>
getPropertyValue('${_browserPrefix}perspective-origin');
/** Sets the value of "perspective-origin" */
void set perspectiveOrigin(var value) {
setProperty('${_browserPrefix}perspective-origin', value, '');
}
/** Gets the value of "perspective-origin-x" */
String get perspectiveOriginX() =>
getPropertyValue('${_browserPrefix}perspective-origin-x');
/** Sets the value of "perspective-origin-x" */
void set perspectiveOriginX(var value) {
setProperty('${_browserPrefix}perspective-origin-x', value, '');
}
/** Gets the value of "perspective-origin-y" */
String get perspectiveOriginY() =>
getPropertyValue('${_browserPrefix}perspective-origin-y');
/** Sets the value of "perspective-origin-y" */
void set perspectiveOriginY(var value) {
setProperty('${_browserPrefix}perspective-origin-y', value, '');
}
/** Gets the value of "pointer-events" */
String get pointerEvents() =>
getPropertyValue('pointer-events');
/** Sets the value of "pointer-events" */
void set pointerEvents(var value) {
setProperty('pointer-events', value, '');
}
/** Gets the value of "position" */
String get position() =>
getPropertyValue('position');
/** Sets the value of "position" */
void set position(var value) {
setProperty('position', value, '');
}
/** Gets the value of "quotes" */
String get quotes() =>
getPropertyValue('quotes');
/** Sets the value of "quotes" */
void set quotes(var value) {
setProperty('quotes', value, '');
}
/** Gets the value of "region-break-after" */
String get regionBreakAfter() =>
getPropertyValue('${_browserPrefix}region-break-after');
/** Sets the value of "region-break-after" */
void set regionBreakAfter(var value) {
setProperty('${_browserPrefix}region-break-after', value, '');
}
/** Gets the value of "region-break-before" */
String get regionBreakBefore() =>
getPropertyValue('${_browserPrefix}region-break-before');
/** Sets the value of "region-break-before" */
void set regionBreakBefore(var value) {
setProperty('${_browserPrefix}region-break-before', value, '');
}
/** Gets the value of "region-break-inside" */
String get regionBreakInside() =>
getPropertyValue('${_browserPrefix}region-break-inside');
/** Sets the value of "region-break-inside" */
void set regionBreakInside(var value) {
setProperty('${_browserPrefix}region-break-inside', value, '');
}
/** Gets the value of "region-overflow" */
String get regionOverflow() =>
getPropertyValue('${_browserPrefix}region-overflow');
/** Sets the value of "region-overflow" */
void set regionOverflow(var value) {
setProperty('${_browserPrefix}region-overflow', value, '');
}
/** Gets the value of "resize" */
String get resize() =>
getPropertyValue('resize');
/** Sets the value of "resize" */
void set resize(var value) {
setProperty('resize', value, '');
}
/** Gets the value of "right" */
String get right() =>
getPropertyValue('right');
/** Sets the value of "right" */
void set right(var value) {
setProperty('right', value, '');
}
/** Gets the value of "rtl-ordering" */
String get rtlOrdering() =>
getPropertyValue('${_browserPrefix}rtl-ordering');
/** Sets the value of "rtl-ordering" */
void set rtlOrdering(var value) {
setProperty('${_browserPrefix}rtl-ordering', value, '');
}
/** Gets the value of "size" */
String get size() =>
getPropertyValue('size');
/** Sets the value of "size" */
void set size(var value) {
setProperty('size', value, '');
}
/** Gets the value of "speak" */
String get speak() =>
getPropertyValue('speak');
/** Sets the value of "speak" */
void set speak(var value) {
setProperty('speak', value, '');
}
/** Gets the value of "src" */
String get src() =>
getPropertyValue('src');
/** Sets the value of "src" */
void set src(var value) {
setProperty('src', value, '');
}
/** Gets the value of "table-layout" */
String get tableLayout() =>
getPropertyValue('table-layout');
/** Sets the value of "table-layout" */
void set tableLayout(var value) {
setProperty('table-layout', value, '');
}
/** Gets the value of "tap-highlight-color" */
String get tapHighlightColor() =>
getPropertyValue('${_browserPrefix}tap-highlight-color');
/** Sets the value of "tap-highlight-color" */
void set tapHighlightColor(var value) {
setProperty('${_browserPrefix}tap-highlight-color', value, '');
}
/** Gets the value of "text-align" */
String get textAlign() =>
getPropertyValue('text-align');
/** Sets the value of "text-align" */
void set textAlign(var value) {
setProperty('text-align', value, '');
}
/** Gets the value of "text-combine" */
String get textCombine() =>
getPropertyValue('${_browserPrefix}text-combine');
/** Sets the value of "text-combine" */
void set textCombine(var value) {
setProperty('${_browserPrefix}text-combine', value, '');
}
/** Gets the value of "text-decoration" */
String get textDecoration() =>
getPropertyValue('text-decoration');
/** Sets the value of "text-decoration" */
void set textDecoration(var value) {
setProperty('text-decoration', value, '');
}
/** Gets the value of "text-decorations-in-effect" */
String get textDecorationsInEffect() =>
getPropertyValue('${_browserPrefix}text-decorations-in-effect');
/** Sets the value of "text-decorations-in-effect" */
void set textDecorationsInEffect(var value) {
setProperty('${_browserPrefix}text-decorations-in-effect', value, '');
}
/** Gets the value of "text-emphasis" */
String get textEmphasis() =>
getPropertyValue('${_browserPrefix}text-emphasis');
/** Sets the value of "text-emphasis" */
void set textEmphasis(var value) {
setProperty('${_browserPrefix}text-emphasis', value, '');
}
/** Gets the value of "text-emphasis-color" */
String get textEmphasisColor() =>
getPropertyValue('${_browserPrefix}text-emphasis-color');
/** Sets the value of "text-emphasis-color" */
void set textEmphasisColor(var value) {
setProperty('${_browserPrefix}text-emphasis-color', value, '');
}
/** Gets the value of "text-emphasis-position" */
String get textEmphasisPosition() =>
getPropertyValue('${_browserPrefix}text-emphasis-position');
/** Sets the value of "text-emphasis-position" */
void set textEmphasisPosition(var value) {
setProperty('${_browserPrefix}text-emphasis-position', value, '');
}
/** Gets the value of "text-emphasis-style" */
String get textEmphasisStyle() =>
getPropertyValue('${_browserPrefix}text-emphasis-style');
/** Sets the value of "text-emphasis-style" */
void set textEmphasisStyle(var value) {
setProperty('${_browserPrefix}text-emphasis-style', value, '');
}
/** Gets the value of "text-fill-color" */
String get textFillColor() =>
getPropertyValue('${_browserPrefix}text-fill-color');
/** Sets the value of "text-fill-color" */
void set textFillColor(var value) {
setProperty('${_browserPrefix}text-fill-color', value, '');
}
/** Gets the value of "text-indent" */
String get textIndent() =>
getPropertyValue('text-indent');
/** Sets the value of "text-indent" */
void set textIndent(var value) {
setProperty('text-indent', value, '');
}
/** Gets the value of "text-line-through" */
String get textLineThrough() =>
getPropertyValue('text-line-through');
/** Sets the value of "text-line-through" */
void set textLineThrough(var value) {
setProperty('text-line-through', value, '');
}
/** Gets the value of "text-line-through-color" */
String get textLineThroughColor() =>
getPropertyValue('text-line-through-color');
/** Sets the value of "text-line-through-color" */
void set textLineThroughColor(var value) {
setProperty('text-line-through-color', value, '');
}
/** Gets the value of "text-line-through-mode" */
String get textLineThroughMode() =>
getPropertyValue('text-line-through-mode');
/** Sets the value of "text-line-through-mode" */
void set textLineThroughMode(var value) {
setProperty('text-line-through-mode', value, '');
}
/** Gets the value of "text-line-through-style" */
String get textLineThroughStyle() =>
getPropertyValue('text-line-through-style');
/** Sets the value of "text-line-through-style" */
void set textLineThroughStyle(var value) {
setProperty('text-line-through-style', value, '');
}
/** Gets the value of "text-line-through-width" */
String get textLineThroughWidth() =>
getPropertyValue('text-line-through-width');
/** Sets the value of "text-line-through-width" */
void set textLineThroughWidth(var value) {
setProperty('text-line-through-width', value, '');
}
/** Gets the value of "text-orientation" */
String get textOrientation() =>
getPropertyValue('${_browserPrefix}text-orientation');
/** Sets the value of "text-orientation" */
void set textOrientation(var value) {
setProperty('${_browserPrefix}text-orientation', value, '');
}
/** Gets the value of "text-overflow" */
String get textOverflow() =>
getPropertyValue('text-overflow');
/** Sets the value of "text-overflow" */
void set textOverflow(var value) {
setProperty('text-overflow', value, '');
}
/** Gets the value of "text-overline" */
String get textOverline() =>
getPropertyValue('text-overline');
/** Sets the value of "text-overline" */
void set textOverline(var value) {
setProperty('text-overline', value, '');
}
/** Gets the value of "text-overline-color" */
String get textOverlineColor() =>
getPropertyValue('text-overline-color');
/** Sets the value of "text-overline-color" */
void set textOverlineColor(var value) {
setProperty('text-overline-color', value, '');
}
/** Gets the value of "text-overline-mode" */
String get textOverlineMode() =>
getPropertyValue('text-overline-mode');
/** Sets the value of "text-overline-mode" */
void set textOverlineMode(var value) {
setProperty('text-overline-mode', value, '');
}
/** Gets the value of "text-overline-style" */
String get textOverlineStyle() =>
getPropertyValue('text-overline-style');
/** Sets the value of "text-overline-style" */
void set textOverlineStyle(var value) {
setProperty('text-overline-style', value, '');
}
/** Gets the value of "text-overline-width" */
String get textOverlineWidth() =>
getPropertyValue('text-overline-width');
/** Sets the value of "text-overline-width" */
void set textOverlineWidth(var value) {
setProperty('text-overline-width', value, '');
}
/** Gets the value of "text-rendering" */
String get textRendering() =>
getPropertyValue('text-rendering');
/** Sets the value of "text-rendering" */
void set textRendering(var value) {
setProperty('text-rendering', value, '');
}
/** Gets the value of "text-security" */
String get textSecurity() =>
getPropertyValue('${_browserPrefix}text-security');
/** Sets the value of "text-security" */
void set textSecurity(var value) {
setProperty('${_browserPrefix}text-security', value, '');
}
/** Gets the value of "text-shadow" */
String get textShadow() =>
getPropertyValue('text-shadow');
/** Sets the value of "text-shadow" */
void set textShadow(var value) {
setProperty('text-shadow', value, '');
}
/** Gets the value of "text-size-adjust" */
String get textSizeAdjust() =>
getPropertyValue('${_browserPrefix}text-size-adjust');
/** Sets the value of "text-size-adjust" */
void set textSizeAdjust(var value) {
setProperty('${_browserPrefix}text-size-adjust', value, '');
}
/** Gets the value of "text-stroke" */
String get textStroke() =>
getPropertyValue('${_browserPrefix}text-stroke');
/** Sets the value of "text-stroke" */
void set textStroke(var value) {
setProperty('${_browserPrefix}text-stroke', value, '');
}
/** Gets the value of "text-stroke-color" */
String get textStrokeColor() =>
getPropertyValue('${_browserPrefix}text-stroke-color');
/** Sets the value of "text-stroke-color" */
void set textStrokeColor(var value) {
setProperty('${_browserPrefix}text-stroke-color', value, '');
}
/** Gets the value of "text-stroke-width" */
String get textStrokeWidth() =>
getPropertyValue('${_browserPrefix}text-stroke-width');
/** Sets the value of "text-stroke-width" */
void set textStrokeWidth(var value) {
setProperty('${_browserPrefix}text-stroke-width', value, '');
}
/** Gets the value of "text-transform" */
String get textTransform() =>
getPropertyValue('text-transform');
/** Sets the value of "text-transform" */
void set textTransform(var value) {
setProperty('text-transform', value, '');
}
/** Gets the value of "text-underline" */
String get textUnderline() =>
getPropertyValue('text-underline');
/** Sets the value of "text-underline" */
void set textUnderline(var value) {
setProperty('text-underline', value, '');
}
/** Gets the value of "text-underline-color" */
String get textUnderlineColor() =>
getPropertyValue('text-underline-color');
/** Sets the value of "text-underline-color" */
void set textUnderlineColor(var value) {
setProperty('text-underline-color', value, '');
}
/** Gets the value of "text-underline-mode" */
String get textUnderlineMode() =>
getPropertyValue('text-underline-mode');
/** Sets the value of "text-underline-mode" */
void set textUnderlineMode(var value) {
setProperty('text-underline-mode', value, '');
}
/** Gets the value of "text-underline-style" */
String get textUnderlineStyle() =>
getPropertyValue('text-underline-style');
/** Sets the value of "text-underline-style" */
void set textUnderlineStyle(var value) {
setProperty('text-underline-style', value, '');
}
/** Gets the value of "text-underline-width" */
String get textUnderlineWidth() =>
getPropertyValue('text-underline-width');
/** Sets the value of "text-underline-width" */
void set textUnderlineWidth(var value) {
setProperty('text-underline-width', value, '');
}
/** Gets the value of "top" */
String get top() =>
getPropertyValue('top');
/** Sets the value of "top" */
void set top(var value) {
setProperty('top', value, '');
}
/** Gets the value of "transform" */
String get transform() =>
getPropertyValue('${_browserPrefix}transform');
/** Sets the value of "transform" */
void set transform(var value) {
setProperty('${_browserPrefix}transform', value, '');
}
/** Gets the value of "transform-origin" */
String get transformOrigin() =>
getPropertyValue('${_browserPrefix}transform-origin');
/** Sets the value of "transform-origin" */
void set transformOrigin(var value) {
setProperty('${_browserPrefix}transform-origin', value, '');
}
/** Gets the value of "transform-origin-x" */
String get transformOriginX() =>
getPropertyValue('${_browserPrefix}transform-origin-x');
/** Sets the value of "transform-origin-x" */
void set transformOriginX(var value) {
setProperty('${_browserPrefix}transform-origin-x', value, '');
}
/** Gets the value of "transform-origin-y" */
String get transformOriginY() =>
getPropertyValue('${_browserPrefix}transform-origin-y');
/** Sets the value of "transform-origin-y" */
void set transformOriginY(var value) {
setProperty('${_browserPrefix}transform-origin-y', value, '');
}
/** Gets the value of "transform-origin-z" */
String get transformOriginZ() =>
getPropertyValue('${_browserPrefix}transform-origin-z');
/** Sets the value of "transform-origin-z" */
void set transformOriginZ(var value) {
setProperty('${_browserPrefix}transform-origin-z', value, '');
}
/** Gets the value of "transform-style" */
String get transformStyle() =>
getPropertyValue('${_browserPrefix}transform-style');
/** Sets the value of "transform-style" */
void set transformStyle(var value) {
setProperty('${_browserPrefix}transform-style', value, '');
}
/** Gets the value of "transition" */
String get transition() =>
getPropertyValue('${_browserPrefix}transition');
/** Sets the value of "transition" */
void set transition(var value) {
setProperty('${_browserPrefix}transition', value, '');
}
/** Gets the value of "transition-delay" */
String get transitionDelay() =>
getPropertyValue('${_browserPrefix}transition-delay');
/** Sets the value of "transition-delay" */
void set transitionDelay(var value) {
setProperty('${_browserPrefix}transition-delay', value, '');
}
/** Gets the value of "transition-duration" */
String get transitionDuration() =>
getPropertyValue('${_browserPrefix}transition-duration');
/** Sets the value of "transition-duration" */
void set transitionDuration(var value) {
setProperty('${_browserPrefix}transition-duration', value, '');
}
/** Gets the value of "transition-property" */
String get transitionProperty() =>
getPropertyValue('${_browserPrefix}transition-property');
/** Sets the value of "transition-property" */
void set transitionProperty(var value) {
setProperty('${_browserPrefix}transition-property', value, '');
}
/** Gets the value of "transition-timing-function" */
String get transitionTimingFunction() =>
getPropertyValue('${_browserPrefix}transition-timing-function');
/** Sets the value of "transition-timing-function" */
void set transitionTimingFunction(var value) {
setProperty('${_browserPrefix}transition-timing-function', value, '');
}
/** Gets the value of "unicode-bidi" */
String get unicodeBidi() =>
getPropertyValue('unicode-bidi');
/** Sets the value of "unicode-bidi" */
void set unicodeBidi(var value) {
setProperty('unicode-bidi', value, '');
}
/** Gets the value of "unicode-range" */
String get unicodeRange() =>
getPropertyValue('unicode-range');
/** Sets the value of "unicode-range" */
void set unicodeRange(var value) {
setProperty('unicode-range', value, '');
}
/** Gets the value of "user-drag" */
String get userDrag() =>
getPropertyValue('${_browserPrefix}user-drag');
/** Sets the value of "user-drag" */
void set userDrag(var value) {
setProperty('${_browserPrefix}user-drag', value, '');
}
/** Gets the value of "user-modify" */
String get userModify() =>
getPropertyValue('${_browserPrefix}user-modify');
/** Sets the value of "user-modify" */
void set userModify(var value) {
setProperty('${_browserPrefix}user-modify', value, '');
}
/** Gets the value of "user-select" */
String get userSelect() =>
getPropertyValue('${_browserPrefix}user-select');
/** Sets the value of "user-select" */
void set userSelect(var value) {
setProperty('${_browserPrefix}user-select', value, '');
}
/** Gets the value of "vertical-align" */
String get verticalAlign() =>
getPropertyValue('vertical-align');
/** Sets the value of "vertical-align" */
void set verticalAlign(var value) {
setProperty('vertical-align', value, '');
}
/** Gets the value of "visibility" */
String get visibility() =>
getPropertyValue('visibility');
/** Sets the value of "visibility" */
void set visibility(var value) {
setProperty('visibility', value, '');
}
/** Gets the value of "white-space" */
String get whiteSpace() =>
getPropertyValue('white-space');
/** Sets the value of "white-space" */
void set whiteSpace(var value) {
setProperty('white-space', value, '');
}
/** Gets the value of "widows" */
String get widows() =>
getPropertyValue('widows');
/** Sets the value of "widows" */
void set widows(var value) {
setProperty('widows', value, '');
}
/** Gets the value of "width" */
String get width() =>
getPropertyValue('width');
/** Sets the value of "width" */
void set width(var value) {
setProperty('width', value, '');
}
/** Gets the value of "word-break" */
String get wordBreak() =>
getPropertyValue('word-break');
/** Sets the value of "word-break" */
void set wordBreak(var value) {
setProperty('word-break', value, '');
}
/** Gets the value of "word-spacing" */
String get wordSpacing() =>
getPropertyValue('word-spacing');
/** Sets the value of "word-spacing" */
void set wordSpacing(var value) {
setProperty('word-spacing', value, '');
}
/** Gets the value of "word-wrap" */
String get wordWrap() =>
getPropertyValue('word-wrap');
/** Sets the value of "word-wrap" */
void set wordWrap(var value) {
setProperty('word-wrap', value, '');
}
/** Gets the value of "wrap-shape" */
String get wrapShape() =>
getPropertyValue('${_browserPrefix}wrap-shape');
/** Sets the value of "wrap-shape" */
void set wrapShape(var value) {
setProperty('${_browserPrefix}wrap-shape', value, '');
}
/** Gets the value of "writing-mode" */
String get writingMode() =>
getPropertyValue('${_browserPrefix}writing-mode');
/** Sets the value of "writing-mode" */
void set writingMode(var value) {
setProperty('${_browserPrefix}writing-mode', value, '');
}
/** Gets the value of "z-index" */
String get zIndex() =>
getPropertyValue('z-index');
/** Sets the value of "z-index" */
void set zIndex(var value) {
setProperty('z-index', value, '');
}
/** Gets the value of "zoom" */
String get zoom() =>
getPropertyValue('zoom');
/** Sets the value of "zoom" */
void set zoom(var value) {
setProperty('zoom', value, '');
}
}
class _CSSStyleRuleImpl extends _CSSRuleImpl implements CSSStyleRule native "*CSSStyleRule" {
String selectorText;
final _CSSStyleDeclarationImpl style;
}
class _CSSStyleSheetImpl extends _StyleSheetImpl implements CSSStyleSheet native "*CSSStyleSheet" {
final _CSSRuleListImpl cssRules;
final _CSSRuleImpl ownerRule;
final _CSSRuleListImpl rules;
int addRule(String selector, String style, [int index = null]) native;
void deleteRule(int index) native;
int insertRule(String rule, int index) native;
void removeRule(int index) native;
}
class _CSSTransformValueImpl extends _CSSValueListImpl implements CSSTransformValue native "*WebKitCSSTransformValue" {
static final int CSS_MATRIX = 11;
static final int CSS_MATRIX3D = 21;
static final int CSS_PERSPECTIVE = 20;
static final int CSS_ROTATE = 4;
static final int CSS_ROTATE3D = 17;
static final int CSS_ROTATEX = 14;
static final int CSS_ROTATEY = 15;
static final int CSS_ROTATEZ = 16;
static final int CSS_SCALE = 5;
static final int CSS_SCALE3D = 19;
static final int CSS_SCALEX = 6;
static final int CSS_SCALEY = 7;
static final int CSS_SCALEZ = 18;
static final int CSS_SKEW = 8;
static final int CSS_SKEWX = 9;
static final int CSS_SKEWY = 10;
static final int CSS_TRANSLATE = 1;
static final int CSS_TRANSLATE3D = 13;
static final int CSS_TRANSLATEX = 2;
static final int CSS_TRANSLATEY = 3;
static final int CSS_TRANSLATEZ = 12;
final int operationType;
}
class _CSSUnknownRuleImpl extends _CSSRuleImpl implements CSSUnknownRule native "*CSSUnknownRule" {
}
class _CSSValueImpl implements CSSValue native "*CSSValue" {
static final int CSS_CUSTOM = 3;
static final int CSS_INHERIT = 0;
static final int CSS_PRIMITIVE_VALUE = 1;
static final int CSS_VALUE_LIST = 2;
String cssText;
final int cssValueType;
}
class _CSSValueListImpl extends _CSSValueImpl implements CSSValueList native "*CSSValueList" {
final int length;
_CSSValueImpl item(int index) native;
}
class _CanvasElementImpl extends _ElementImpl implements CanvasElement native "*HTMLCanvasElement" {
int height;
int width;
Object getContext(String contextId) native;
String toDataURL(String type) native;
}
class _CanvasGradientImpl implements CanvasGradient native "*CanvasGradient" {
void addColorStop(num offset, String color) native;
}
class _CanvasPatternImpl implements CanvasPattern native "*CanvasPattern" {
}
class _CanvasPixelArrayImpl implements CanvasPixelArray native "*CanvasPixelArray" {
final int length;
int operator[](int index) native "return this[index];";
void operator[]=(int index, int value) native "this[index] = value";
// -- start List mixins.
// int is the element type.
// From Iterable:
Iterator iterator() {
// Note: NodeLists are not fixed size. And most probably length shouldn't
// be cached in both iterator _and_ forEach method. For now caching it
// for consistency.
return new _FixedSizeListIterator(this);
}
// From Collection:
void add(int value) {
throw new UnsupportedOperationException("Cannot add to immutable List.");
}
void addLast(int value) {
throw new UnsupportedOperationException("Cannot add to immutable List.");
}
void addAll(Collection collection) {
throw new UnsupportedOperationException("Cannot add to immutable List.");
}
void forEach(void f(int element)) => _Collections.forEach(this, f);
Collection map(f(int element)) => _Collections.map(this, [], f);
Collection filter(bool f(int element)) =>
_Collections.filter(this, [], f);
bool every(bool f(int element)) => _Collections.every(this, f);
bool some(bool f(int element)) => _Collections.some(this, f);
bool isEmpty() => this.length == 0;
// From List:
void sort(int compare(int a, int b)) {
throw new UnsupportedOperationException("Cannot sort immutable List.");
}
int indexOf(int element, [int start = 0]) =>
_Lists.indexOf(this, element, start, this.length);
int lastIndexOf(int element, [int start]) {
if (start === null) start = length - 1;
return _Lists.lastIndexOf(this, element, start);
}
int last() => this[length - 1];
int removeLast() {
throw new UnsupportedOperationException("Cannot removeLast on immutable List.");
}
// FIXME: implement these.
void setRange(int start, int rangeLength, List from, [int startFrom]) {
throw new UnsupportedOperationException("Cannot setRange on immutable List.");
}
void removeRange(int start, int rangeLength) {
throw new UnsupportedOperationException("Cannot removeRange on immutable List.");
}
void insertRange(int start, int rangeLength, [int initialValue]) {
throw new UnsupportedOperationException("Cannot insertRange on immutable List.");
}
List getRange(int start, int rangeLength) =>
_Lists.getRange(this, start, rangeLength, []);
// -- end List mixins.
}
class _CanvasRenderingContextImpl implements CanvasRenderingContext native "*CanvasRenderingContext" {
final _CanvasElementImpl canvas;
}
class _CanvasRenderingContext2DImpl extends _CanvasRenderingContextImpl implements CanvasRenderingContext2D native "*CanvasRenderingContext2D" {
Dynamic fillStyle;
String font;
num globalAlpha;
String globalCompositeOperation;
String lineCap;
String lineJoin;
num lineWidth;
num miterLimit;
num shadowBlur;
String shadowColor;
num shadowOffsetX;
num shadowOffsetY;
Dynamic strokeStyle;
String textAlign;
String textBaseline;
final num webkitBackingStorePixelRatio;
List webkitLineDash;
num webkitLineDashOffset;
void arc(num x, num y, num radius, num startAngle, num endAngle, bool anticlockwise) native;
void arcTo(num x1, num y1, num x2, num y2, num radius) native;
void beginPath() native;
void bezierCurveTo(num cp1x, num cp1y, num cp2x, num cp2y, num x, num y) native;
void clearRect(num x, num y, num width, num height) native;
void clearShadow() native;
void clip() native;
void closePath() native;
_ImageDataImpl createImageData(imagedata_OR_sw, [num sh = null]) native;
_CanvasGradientImpl createLinearGradient(num x0, num y0, num x1, num y1) native;
_CanvasPatternImpl createPattern(canvas_OR_image, String repetitionType) native;
_CanvasGradientImpl createRadialGradient(num x0, num y0, num r0, num x1, num y1, num r1) native;
void drawImage(canvas_OR_image_OR_video, num sx_OR_x, num sy_OR_y, [num sw_OR_width = null, num height_OR_sh = null, num dx = null, num dy = null, num dw = null, num dh = null]) native;
void drawImageFromRect(_ImageElementImpl image, [num sx = null, num sy = null, num sw = null, num sh = null, num dx = null, num dy = null, num dw = null, num dh = null, String compositeOperation = null]) native;
void fill() native;
void fillRect(num x, num y, num width, num height) native;
void fillText(String text, num x, num y, [num maxWidth = null]) native;
_ImageDataImpl getImageData(num sx, num sy, num sw, num sh) native;
bool isPointInPath(num x, num y) native;
void lineTo(num x, num y) native;
_TextMetricsImpl measureText(String text) native;
void moveTo(num x, num y) native;
void putImageData(_ImageDataImpl imagedata, num dx, num dy, [num dirtyX = null, num dirtyY = null, num dirtyWidth = null, num dirtyHeight = null]) native;
void quadraticCurveTo(num cpx, num cpy, num x, num y) native;
void rect(num x, num y, num width, num height) native;
void restore() native;
void rotate(num angle) native;
void save() native;
void scale(num sx, num sy) native;
void setAlpha(num alpha) native;
void setCompositeOperation(String compositeOperation) native;
void setFillColor(c_OR_color_OR_grayLevel_OR_r, [num alpha_OR_g_OR_m = null, num b_OR_y = null, num a_OR_k = null, num a = null]) native;
void setLineCap(String cap) native;
void setLineJoin(String join) native;
void setLineWidth(num width) native;
void setMiterLimit(num limit) native;
void setShadow(num width, num height, num blur, [c_OR_color_OR_grayLevel_OR_r = null, num alpha_OR_g_OR_m = null, num b_OR_y = null, num a_OR_k = null, num a = null]) native;
void setStrokeColor(c_OR_color_OR_grayLevel_OR_r, [num alpha_OR_g_OR_m = null, num b_OR_y = null, num a_OR_k = null, num a = null]) native;
void setTransform(num m11, num m12, num m21, num m22, num dx, num dy) native;
void stroke() native;
void strokeRect(num x, num y, num width, num height, [num lineWidth = null]) native;
void strokeText(String text, num x, num y, [num maxWidth = null]) native;
void transform(num m11, num m12, num m21, num m22, num dx, num dy) native;
void translate(num tx, num ty) native;
_ImageDataImpl webkitGetImageDataHD(num sx, num sy, num sw, num sh) native;
void webkitPutImageDataHD(_ImageDataImpl imagedata, num dx, num dy, [num dirtyX = null, num dirtyY = null, num dirtyWidth = null, num dirtyHeight = null]) native;
}
class _CharacterDataImpl extends _NodeImpl implements CharacterData native "*CharacterData" {
String data;
final int length;
void appendData(String data) native;
void deleteData(int offset, int length) native;
void insertData(int offset, String data) native;
void replaceData(int offset, int length, String data) native;
String substringData(int offset, int length) native;
}
class _ClientRectImpl implements ClientRect native "*ClientRect" {
final num bottom;
final num height;
final num left;
final num right;
final num top;
final num width;
}
class _ClientRectListImpl implements ClientRectList native "*ClientRectList" {
final int length;
_ClientRectImpl item(int index) native;
}
class _ClipboardImpl implements Clipboard native "*Clipboard" {
String dropEffect;
String effectAllowed;
final _FileListImpl files;
final _DataTransferItemListImpl items;
final List types;
void clearData([String type = null]) native;
String getData(String type) native;
bool setData(String type, String data) native;
void setDragImage(_ImageElementImpl image, int x, int y) native;
}
class _CloseEventImpl extends _EventImpl implements CloseEvent native "*CloseEvent" {
final int code;
final String reason;
final bool wasClean;
}
class _CommentImpl extends _CharacterDataImpl implements Comment native "*Comment" {
}
class _CompositionEventImpl extends _UIEventImpl implements CompositionEvent native "*CompositionEvent" {
final String data;
void initCompositionEvent(String typeArg, bool canBubbleArg, bool cancelableArg, _WindowImpl viewArg, String dataArg) native;
}
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
class _ConsoleImpl
// Console is sometimes a singleton bag-of-properties without a prototype.
implements Console
native "=(typeof console == 'undefined' ? {} : console)" {
final _MemoryInfoImpl memory;
final List profiles;
void assertCondition(bool condition, Object arg) native;
void count() native;
void debug(Object arg) native;
void dir() native;
void dirxml() native;
void error(Object arg) native;
void group(Object arg) native;
void groupCollapsed(Object arg) native;
void groupEnd() native;
void info(Object arg) native;
void log(Object arg) native;
void markTimeline() native;
void profile(String title) native;
void profileEnd(String title) native;
void time(String title) native;
void timeEnd(String title, Object arg) native;
void timeStamp(Object arg) native;
void trace(Object arg) native;
void warn(Object arg) native;
}
class _ContentElementImpl extends _ElementImpl implements ContentElement native "*HTMLContentElement" {
String select;
}
class _ConvolverNodeImpl extends _AudioNodeImpl implements ConvolverNode native "*ConvolverNode" {
_AudioBufferImpl buffer;
bool normalize;
}
class _CoordinatesImpl implements Coordinates native "*Coordinates" {
final num accuracy;
final num altitude;
final num altitudeAccuracy;
final num heading;
final num latitude;
final num longitude;
final num speed;
}
class _CounterImpl implements Counter native "*Counter" {
final String identifier;
final String listStyle;
final String separator;
}
class _CryptoImpl implements Crypto native "*Crypto" {
void getRandomValues(_ArrayBufferViewImpl array) native;
}
class _CustomEventImpl extends _EventImpl implements CustomEvent native "*CustomEvent" {
final Object detail;
void initCustomEvent(String typeArg, bool canBubbleArg, bool cancelableArg, Object detailArg) native;
}
class _DListElementImpl extends _ElementImpl implements DListElement native "*HTMLDListElement" {
bool compact;
}
class _DOMApplicationCacheImpl extends _EventTargetImpl implements DOMApplicationCache native "*DOMApplicationCache" {
_DOMApplicationCacheEventsImpl get on() =>
new _DOMApplicationCacheEventsImpl(this);
static final int CHECKING = 2;
static final int DOWNLOADING = 3;
static final int IDLE = 1;
static final int OBSOLETE = 5;
static final int UNCACHED = 0;
static final int UPDATEREADY = 4;
final int status;
void abort() native;
void $dom_addEventListener(String type, EventListener listener, [bool useCapture = null]) native "addEventListener";
bool $dom_dispatchEvent(_EventImpl evt) native "dispatchEvent";
void $dom_removeEventListener(String type, EventListener listener, [bool useCapture = null]) native "removeEventListener";
void swapCache() native;
void update() native;
}
class _DOMApplicationCacheEventsImpl extends _EventsImpl implements DOMApplicationCacheEvents {
_DOMApplicationCacheEventsImpl(_ptr) : super(_ptr);
EventListenerList get cached() => _get('cached');
EventListenerList get checking() => _get('checking');
EventListenerList get downloading() => _get('downloading');
EventListenerList get error() => _get('error');
EventListenerList get noUpdate() => _get('noupdate');
EventListenerList get obsolete() => _get('obsolete');
EventListenerList get progress() => _get('progress');
EventListenerList get updateReady() => _get('updateready');
}
class _DOMExceptionImpl implements DOMException native "*DOMException" {
static final int ABORT_ERR = 20;
static final int DATA_CLONE_ERR = 25;
static final int DOMSTRING_SIZE_ERR = 2;
static final int HIERARCHY_REQUEST_ERR = 3;
static final int INDEX_SIZE_ERR = 1;
static final int INUSE_ATTRIBUTE_ERR = 10;
static final int INVALID_ACCESS_ERR = 15;
static final int INVALID_CHARACTER_ERR = 5;
static final int INVALID_MODIFICATION_ERR = 13;
static final int INVALID_NODE_TYPE_ERR = 24;
static final int INVALID_STATE_ERR = 11;
static final int NAMESPACE_ERR = 14;
static final int NETWORK_ERR = 19;
static final int NOT_FOUND_ERR = 8;
static final int NOT_SUPPORTED_ERR = 9;
static final int NO_DATA_ALLOWED_ERR = 6;
static final int NO_MODIFICATION_ALLOWED_ERR = 7;
static final int QUOTA_EXCEEDED_ERR = 22;
static final int SECURITY_ERR = 18;
static final int SYNTAX_ERR = 12;
static final int TIMEOUT_ERR = 23;
static final int TYPE_MISMATCH_ERR = 17;
static final int URL_MISMATCH_ERR = 21;
static final int VALIDATION_ERR = 16;
static final int WRONG_DOCUMENT_ERR = 4;
final int code;
final String message;
final String name;
String toString() native;
}
class _DOMFileSystemImpl implements DOMFileSystem native "*DOMFileSystem" {
final String name;
final _DirectoryEntryImpl root;
}
class _DOMFileSystemSyncImpl implements DOMFileSystemSync native "*DOMFileSystemSync" {
final String name;
final _DirectoryEntrySyncImpl root;
}
class _DOMFormDataImpl implements DOMFormData native "*DOMFormData" {
void append(String name, String value, String filename) native;
}
class _DOMImplementationImpl implements DOMImplementation native "*DOMImplementation" {
_CSSStyleSheetImpl createCSSStyleSheet(String title, String media) native;
_DocumentImpl createDocument(String namespaceURI, String qualifiedName, _DocumentTypeImpl doctype) native;
_DocumentTypeImpl createDocumentType(String qualifiedName, String publicId, String systemId) native;
_DocumentImpl createHTMLDocument(String title) native;
bool hasFeature(String feature, String version) native;
}
class _DOMMimeTypeImpl implements DOMMimeType native "*DOMMimeType" {
final String description;
final _DOMPluginImpl enabledPlugin;
final String suffixes;
final String type;
}
class _DOMMimeTypeArrayImpl implements DOMMimeTypeArray native "*DOMMimeTypeArray" {
final int length;
_DOMMimeTypeImpl item(int index) native;
_DOMMimeTypeImpl namedItem(String name) native;
}
class _DOMParserImpl implements DOMParser native "*DOMParser" {
_DocumentImpl parseFromString(String str, String contentType) native;
}
class _DOMPluginImpl implements DOMPlugin native "*DOMPlugin" {
final String description;
final String filename;
final int length;
final String name;
_DOMMimeTypeImpl item(int index) native;
_DOMMimeTypeImpl namedItem(String name) native;
}
class _DOMPluginArrayImpl implements DOMPluginArray native "*DOMPluginArray" {
final int length;
_DOMPluginImpl item(int index) native;
_DOMPluginImpl namedItem(String name) native;
void refresh(bool reload) native;
}
class _DOMSelectionImpl implements DOMSelection native "*DOMSelection" {
final _NodeImpl anchorNode;
final int anchorOffset;
final _NodeImpl baseNode;
final int baseOffset;
final _NodeImpl extentNode;
final int extentOffset;
final _NodeImpl focusNode;
final int focusOffset;
final bool isCollapsed;
final int rangeCount;
final String type;
void addRange(_RangeImpl range) native;
void collapse(_NodeImpl node, int index) native;
void collapseToEnd() native;
void collapseToStart() native;
bool containsNode(_NodeImpl node, bool allowPartial) native;
void deleteFromDocument() native;
void empty() native;
void extend(_NodeImpl node, int offset) native;
_RangeImpl getRangeAt(int index) native;
void modify(String alter, String direction, String granularity) native;
void removeAllRanges() native;
void selectAllChildren(_NodeImpl node) native;
void setBaseAndExtent(_NodeImpl baseNode, int baseOffset, _NodeImpl extentNode, int extentOffset) native;
void setPosition(_NodeImpl node, int offset) native;
String toString() native;
}
class _DOMSettableTokenListImpl extends _DOMTokenListImpl implements DOMSettableTokenList native "*DOMSettableTokenList" {
String value;
}
class _DOMTokenListImpl implements DOMTokenList native "*DOMTokenList" {
final int length;
void add(String token) native;
bool contains(String token) native;
String item(int index) native;
void remove(String token) native;
String toString() native;
bool toggle(String token) native;
}
class _DOMURLImpl implements DOMURL native "*DOMURL" {
String createObjectURL(blob_OR_stream) native;
void revokeObjectURL(String url) native;
}
class _DataTransferItemImpl implements DataTransferItem native "*DataTransferItem" {
final String kind;
final String type;
_BlobImpl getAsFile() native;
void getAsString([StringCallback callback = null]) native;
void webkitGetAsEntry([EntryCallback callback = null]) native;
}
class _DataTransferItemListImpl implements DataTransferItemList native "*DataTransferItemList" {
final int length;
void add(data_OR_file, [String type = null]) native;
void clear() native;
_DataTransferItemImpl item(int index) native;
}
class _DataViewImpl extends _ArrayBufferViewImpl implements DataView native "*DataView" {
num getFloat32(int byteOffset, [bool littleEndian = null]) native;
num getFloat64(int byteOffset, [bool littleEndian = null]) native;
int getInt16(int byteOffset, [bool littleEndian = null]) native;
int getInt32(int byteOffset, [bool littleEndian = null]) native;
Object getInt8() native;
int getUint16(int byteOffset, [bool littleEndian = null]) native;
int getUint32(int byteOffset, [bool littleEndian = null]) native;
Object getUint8() native;
void setFloat32(int byteOffset, num value, [bool littleEndian = null]) native;
void setFloat64(int byteOffset, num value, [bool littleEndian = null]) native;
void setInt16(int byteOffset, int value, [bool littleEndian = null]) native;
void setInt32(int byteOffset, int value, [bool littleEndian = null]) native;
void setInt8() native;
void setUint16(int byteOffset, int value, [bool littleEndian = null]) native;
void setUint32(int byteOffset, int value, [bool littleEndian = null]) native;
void setUint8() native;
}
class _DatabaseImpl implements Database native "*Database" {
final String version;
void changeVersion(String oldVersion, String newVersion, [SQLTransactionCallback callback = null, SQLTransactionErrorCallback errorCallback = null, VoidCallback successCallback = null]) native;
void readTransaction(SQLTransactionCallback callback, [SQLTransactionErrorCallback errorCallback = null, VoidCallback successCallback = null]) native;
void transaction(SQLTransactionCallback callback, [SQLTransactionErrorCallback errorCallback = null, VoidCallback successCallback = null]) native;
}
class _DatabaseSyncImpl implements DatabaseSync native "*DatabaseSync" {
final String lastErrorMessage;
final String version;
void changeVersion(String oldVersion, String newVersion, [SQLTransactionSyncCallback callback = null]) native;
void readTransaction(SQLTransactionSyncCallback callback) native;
void transaction(SQLTransactionSyncCallback callback) native;
}
class _DedicatedWorkerContextImpl extends _WorkerContextImpl implements DedicatedWorkerContext native "*DedicatedWorkerContext" {
_DedicatedWorkerContextEventsImpl get on() =>
new _DedicatedWorkerContextEventsImpl(this);
void postMessage(Object message, [List messagePorts = null]) native;
void webkitPostMessage(Object message, [List transferList = null]) native;
}
class _DedicatedWorkerContextEventsImpl extends _WorkerContextEventsImpl implements DedicatedWorkerContextEvents {
_DedicatedWorkerContextEventsImpl(_ptr) : super(_ptr);
EventListenerList get message() => _get('message');
}
class _DelayNodeImpl extends _AudioNodeImpl implements DelayNode native "*DelayNode" {
final _AudioParamImpl delayTime;
}
class _DeprecatedPeerConnectionImpl extends _EventTargetImpl implements DeprecatedPeerConnection native "*DeprecatedPeerConnection" {
_DeprecatedPeerConnectionEventsImpl get on() =>
new _DeprecatedPeerConnectionEventsImpl(this);
static final int ACTIVE = 2;
static final int CLOSED = 3;
static final int NEGOTIATING = 1;
static final int NEW = 0;
final _MediaStreamListImpl localStreams;
final int readyState;
final _MediaStreamListImpl remoteStreams;
void $dom_addEventListener(String type, EventListener listener, [bool useCapture = null]) native "addEventListener";
void addStream(_MediaStreamImpl stream) native;
void close() native;
bool $dom_dispatchEvent(_EventImpl event) native "dispatchEvent";
void processSignalingMessage(String message) native;
void $dom_removeEventListener(String type, EventListener listener, [bool useCapture = null]) native "removeEventListener";
void removeStream(_MediaStreamImpl stream) native;
void send(String text) native;
}
class _DeprecatedPeerConnectionEventsImpl extends _EventsImpl implements DeprecatedPeerConnectionEvents {
_DeprecatedPeerConnectionEventsImpl(_ptr) : super(_ptr);
EventListenerList get addStream() => _get('addstream');
EventListenerList get connecting() => _get('connecting');
EventListenerList get message() => _get('message');
EventListenerList get open() => _get('open');
EventListenerList get removeStream() => _get('removestream');
EventListenerList get stateChange() => _get('statechange');
}
class _DetailsElementImpl extends _ElementImpl implements DetailsElement native "*HTMLDetailsElement" {
bool open;
}
class _DeviceMotionEventImpl extends _EventImpl implements DeviceMotionEvent native "*DeviceMotionEvent" {
final num interval;
}
class _DeviceOrientationEventImpl extends _EventImpl implements DeviceOrientationEvent native "*DeviceOrientationEvent" {
final bool absolute;
final num alpha;
final num beta;
final num gamma;
void initDeviceOrientationEvent(String type, bool bubbles, bool cancelable, num alpha, num beta, num gamma, bool absolute) native;
}
class _DirectoryElementImpl extends _ElementImpl implements DirectoryElement native "*HTMLDirectoryElement" {
bool compact;
}
class _DirectoryEntryImpl extends _EntryImpl implements DirectoryEntry native "*DirectoryEntry" {
_DirectoryReaderImpl createReader() native;
void getDirectory(String path, [Object flags = null, EntryCallback successCallback = null, ErrorCallback errorCallback = null]) native;
void getFile(String path, [Object flags = null, EntryCallback successCallback = null, ErrorCallback errorCallback = null]) native;
void removeRecursively(VoidCallback successCallback, [ErrorCallback errorCallback = null]) native;
}
class _DirectoryEntrySyncImpl extends _EntrySyncImpl implements DirectoryEntrySync native "*DirectoryEntrySync" {
_DirectoryReaderSyncImpl createReader() native;
_DirectoryEntrySyncImpl getDirectory(String path, Object flags) native;
_FileEntrySyncImpl getFile(String path, Object flags) native;
void removeRecursively() native;
}
class _DirectoryReaderImpl implements DirectoryReader native "*DirectoryReader" {
void readEntries(EntriesCallback successCallback, [ErrorCallback errorCallback = null]) native;
}
class _DirectoryReaderSyncImpl implements DirectoryReaderSync native "*DirectoryReaderSync" {
_EntryArraySyncImpl readEntries() native;
}
class _DivElementImpl extends _ElementImpl implements DivElement native "*HTMLDivElement" {
String align;
}
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
class _DocumentImpl extends _NodeImpl
implements Document
native "*HTMLDocument"
{
_DocumentEventsImpl get on() =>
new _DocumentEventsImpl(this);
final _ElementImpl activeElement;
_ElementImpl body;
String charset;
String cookie;
_WindowImpl get window() native "return this.defaultView;";
final _ElementImpl documentElement;
final String domain;
final _HeadElementImpl head;
final String lastModified;
final String preferredStylesheetSet;
final String readyState;
final String referrer;
String selectedStylesheetSet;
final _StyleSheetListImpl styleSheets;
String title;
final _ElementImpl webkitCurrentFullScreenElement;
final bool webkitFullScreenKeyboardInputAllowed;
final _ElementImpl webkitFullscreenElement;
final bool webkitFullscreenEnabled;
final bool webkitHidden;
final bool webkitIsFullScreen;
final String webkitVisibilityState;
_RangeImpl caretRangeFromPoint(int x, int y) native;
_CDATASectionImpl createCDATASection(String data) native;
_DocumentFragmentImpl createDocumentFragment() native;
_ElementImpl $dom_createElement(String tagName) native "createElement";
_ElementImpl $dom_createElementNS(String namespaceURI, String qualifiedName) native "createElementNS";
_EventImpl $dom_createEvent(String eventType) native "createEvent";
_RangeImpl createRange() native;
_TextImpl $dom_createTextNode(String data) native "createTextNode";
_TouchImpl createTouch(_WindowImpl window, _EventTargetImpl target, int identifier, int pageX, int pageY, int screenX, int screenY, int webkitRadiusX, int webkitRadiusY, num webkitRotationAngle, num webkitForce) native;
_TouchListImpl $dom_createTouchList() native "createTouchList";
_ElementImpl elementFromPoint(int x, int y) native;
bool execCommand(String command, bool userInterface, String value) native;
_CanvasRenderingContextImpl getCSSCanvasContext(String contextId, String name, int width, int height) native;
_ElementImpl $dom_getElementById(String elementId) native "getElementById";
_NodeListImpl $dom_getElementsByClassName(String tagname) native "getElementsByClassName";
_NodeListImpl $dom_getElementsByName(String elementName) native "getElementsByName";
_NodeListImpl $dom_getElementsByTagName(String tagname) native "getElementsByTagName";
bool queryCommandEnabled(String command) native;
bool queryCommandIndeterm(String command) native;
bool queryCommandState(String command) native;
bool queryCommandSupported(String command) native;
String queryCommandValue(String command) native;
_ElementImpl _query(String selectors) native "querySelector";
_NodeListImpl $dom_querySelectorAll(String selectors) native "querySelectorAll";
void webkitCancelFullScreen() native;
void webkitExitFullscreen() native;
_WebKitNamedFlowImpl webkitGetFlowByName(String name) native;
// TODO(jacobr): implement all Element methods not on Document.
_ElementImpl query(String selectors) {
// It is fine for our RegExp to detect element id query selectors to have
// false negatives but not false positives.
if (const RegExp("^#[_a-zA-Z]\\w*\$").hasMatch(selectors)) {
return $dom_getElementById(selectors.substring(1));
}
return $dom_querySelector(selectors);
}
// TODO(jacobr): autogenerate this method.
_ElementImpl $dom_querySelector(String selectors) native "return this.querySelector(selectors);";
ElementList queryAll(String selectors) {
if (const RegExp("""^\\[name=["'][^'"]+['"]\\]\$""").hasMatch(selectors)) {
final mutableMatches = $dom_getElementsByName(
selectors.substring(7,selectors.length - 2));
int len = mutableMatches.length;
final copyOfMatches = new List(len);
for (int i = 0; i < len; ++i) {
copyOfMatches[i] = mutableMatches[i];
}
return new _FrozenElementList._wrap(copyOfMatches);
} else if (const RegExp("^[*a-zA-Z0-9]+\$").hasMatch(selectors)) {
final mutableMatches = $dom_getElementsByTagName(selectors);
int len = mutableMatches.length;
final copyOfMatches = new List(len);
for (int i = 0; i < len; ++i) {
copyOfMatches[i] = mutableMatches[i];
}
return new _FrozenElementList._wrap(copyOfMatches);
} else {
return new _FrozenElementList._wrap($dom_querySelectorAll(selectors));
}
}
}
class _DocumentEventsImpl extends _ElementEventsImpl implements DocumentEvents {
_DocumentEventsImpl(_ptr) : super(_ptr);
EventListenerList get abort() => _get('abort');
EventListenerList get beforeCopy() => _get('beforecopy');
EventListenerList get beforeCut() => _get('beforecut');
EventListenerList get beforePaste() => _get('beforepaste');
EventListenerList get blur() => _get('blur');
EventListenerList get change() => _get('change');
EventListenerList get click() => _get('click');
EventListenerList get contextMenu() => _get('contextmenu');
EventListenerList get copy() => _get('copy');
EventListenerList get cut() => _get('cut');
EventListenerList get doubleClick() => _get('dblclick');
EventListenerList get drag() => _get('drag');
EventListenerList get dragEnd() => _get('dragend');
EventListenerList get dragEnter() => _get('dragenter');
EventListenerList get dragLeave() => _get('dragleave');
EventListenerList get dragOver() => _get('dragover');
EventListenerList get dragStart() => _get('dragstart');
EventListenerList get drop() => _get('drop');
EventListenerList get error() => _get('error');
EventListenerList get focus() => _get('focus');
EventListenerList get fullscreenChange() => _get('webkitfullscreenchange');
EventListenerList get fullscreenError() => _get('webkitfullscreenerror');
EventListenerList get input() => _get('input');
EventListenerList get invalid() => _get('invalid');
EventListenerList get keyDown() => _get('keydown');
EventListenerList get keyPress() => _get('keypress');
EventListenerList get keyUp() => _get('keyup');
EventListenerList get load() => _get('load');
EventListenerList get mouseDown() => _get('mousedown');
EventListenerList get mouseMove() => _get('mousemove');
EventListenerList get mouseOut() => _get('mouseout');
EventListenerList get mouseOver() => _get('mouseover');
EventListenerList get mouseUp() => _get('mouseup');
EventListenerList get mouseWheel() => _get('mousewheel');
EventListenerList get paste() => _get('paste');
EventListenerList get readyStateChange() => _get('readystatechange');
EventListenerList get reset() => _get('reset');
EventListenerList get scroll() => _get('scroll');
EventListenerList get search() => _get('search');
EventListenerList get select() => _get('select');
EventListenerList get selectStart() => _get('selectstart');
EventListenerList get selectionChange() => _get('selectionchange');
EventListenerList get submit() => _get('submit');
EventListenerList get touchCancel() => _get('touchcancel');
EventListenerList get touchEnd() => _get('touchend');
EventListenerList get touchMove() => _get('touchmove');
EventListenerList get touchStart() => _get('touchstart');
}
// Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
class FilteredElementList implements ElementList {
final Node _node;
final NodeList _childNodes;
FilteredElementList(Node node): _childNodes = node.nodes, _node = node;
// We can't memoize this, since it's possible that children will be messed
// with externally to this class.
//
// TODO(nweiz): Do we really need to copy the list to make the types work out?
List get _filtered() =>
new List.from(_childNodes.filter((n) => n is Element));
// Don't use _filtered.first so we can short-circuit once we find an element.
Element get first() {
for (final node in _childNodes) {
if (node is Element) {
return node;
}
}
return null;
}
void forEach(void f(Element element)) {
_filtered.forEach(f);
}
void operator []=(int index, Element value) {
this[index].replaceWith(value);
}
void set length(int newLength) {
final len = this.length;
if (newLength >= len) {
return;
} else if (newLength < 0) {
throw const IllegalArgumentException("Invalid list length");
}
removeRange(newLength - 1, len - newLength);
}
void add(Element value) {
_childNodes.add(value);
}
void addAll(Collection collection) {
collection.forEach(add);
}
void addLast(Element value) {
add(value);
}
void sort(int compare(Element a, Element b)) {
throw const UnsupportedOperationException('TODO(jacobr): should we impl?');
}
void copyFrom(List