blob: 88f1eef303d394976b51c0bc24ebfe26625fadc1 [file] [log] [blame]
library html;
import 'dart:isolate';
import 'dart:json';
import 'dart:nativewrappers';
// 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.
LocalWindow __window;
LocalWindow get window {
if (__window != null) {
return __window;
}
__window = _Utils.window();
return __window;
}
LocalWindow get _window native "Utils_window";
Document __document;
Document get document {
if (__document != null) {
return __document;
}
__document = _document;
return __document;
}
Document get _document => _window.document;
Element query(String selector) => _document.query(selector);
List<Element> queryAll(String selector) => _document.queryAll(selector);
int _getNewIsolateId() => _Utils._getNewIsolateId();
bool _callPortInitialized = false;
var _callPortLastResult = null;
_callPortSync(num id, var message) {
if (!_callPortInitialized) {
window.on['js-result'].add((event) {
_callPortLastResult = JSON.parse(_getPortSyncEventData(event));
}, false);
_callPortInitialized = true;
}
assert(_callPortLastResult == null);
_dispatchEvent('js-sync-message', {'id': id, 'message': message});
var result = _callPortLastResult;
_callPortLastResult = null;
return result;
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName AbstractWorker
abstract class AbstractWorker implements EventTarget {
/**
* @domName EventTarget.addEventListener, EventTarget.removeEventListener, EventTarget.dispatchEvent
*/
AbstractWorkerEvents get on;
/** @domName AbstractWorker.addEventListener */
void $dom_addEventListener(String type, EventListener listener, [bool useCapture]);
/** @domName AbstractWorker.dispatchEvent */
bool $dom_dispatchEvent(Event evt);
/** @domName AbstractWorker.removeEventListener */
void $dom_removeEventListener(String type, EventListener listener, [bool useCapture]);
}
abstract class AbstractWorkerEvents implements Events {
EventListenerList get error;
}
// 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.
// WARNING: Do not edit - generated code.
class _AbstractWorkerImpl extends _EventTargetImpl implements AbstractWorker {
_AbstractWorkerEventsImpl get on =>
new _AbstractWorkerEventsImpl(this);
void $dom_addEventListener(String type, EventListener listener, [bool useCapture]) native "AbstractWorker_addEventListener_Callback";
bool $dom_dispatchEvent(Event evt) native "AbstractWorker_dispatchEvent_Callback";
void $dom_removeEventListener(String type, EventListener listener, [bool useCapture]) native "AbstractWorker_removeEventListener_Callback";
}
class _AbstractWorkerEventsImpl extends _EventsImpl implements AbstractWorkerEvents {
_AbstractWorkerEventsImpl(_ptr) : super(_ptr);
EventListenerList get error => this['error'];
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName AnalyserNode
abstract class AnalyserNode implements AudioNode {
/** @domName AnalyserNode.fftSize */
int fftSize;
/** @domName AnalyserNode.frequencyBinCount */
int get frequencyBinCount;
/** @domName AnalyserNode.maxDecibels */
num maxDecibels;
/** @domName AnalyserNode.minDecibels */
num minDecibels;
/** @domName AnalyserNode.smoothingTimeConstant */
num smoothingTimeConstant;
/** @domName AnalyserNode.getByteFrequencyData */
void getByteFrequencyData(Uint8Array array);
/** @domName AnalyserNode.getByteTimeDomainData */
void getByteTimeDomainData(Uint8Array array);
/** @domName AnalyserNode.getFloatFrequencyData */
void getFloatFrequencyData(Float32Array array);
}
// 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.
// WARNING: Do not edit - generated code.
class _AnalyserNodeImpl extends _AudioNodeImpl implements AnalyserNode {
int get fftSize native "AnalyserNode_fftSize_Getter";
void set fftSize(int value) native "AnalyserNode_fftSize_Setter";
int get frequencyBinCount native "AnalyserNode_frequencyBinCount_Getter";
num get maxDecibels native "AnalyserNode_maxDecibels_Getter";
void set maxDecibels(num value) native "AnalyserNode_maxDecibels_Setter";
num get minDecibels native "AnalyserNode_minDecibels_Getter";
void set minDecibels(num value) native "AnalyserNode_minDecibels_Setter";
num get smoothingTimeConstant native "AnalyserNode_smoothingTimeConstant_Getter";
void set smoothingTimeConstant(num value) native "AnalyserNode_smoothingTimeConstant_Setter";
void getByteFrequencyData(Uint8Array array) native "AnalyserNode_getByteFrequencyData_Callback";
void getByteTimeDomainData(Uint8Array array) native "AnalyserNode_getByteTimeDomainData_Callback";
void getFloatFrequencyData(Float32Array array) native "AnalyserNode_getFloatFrequencyData_Callback";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName HTMLAnchorElement
abstract class AnchorElement implements Element {
factory AnchorElement({String href}) {
if (!?href) {
return _Elements.createAnchorElement();
}
return _Elements.createAnchorElement(href);
}
/** @domName HTMLAnchorElement.charset */
String charset;
/** @domName HTMLAnchorElement.coords */
String coords;
/** @domName HTMLAnchorElement.download */
String download;
/** @domName HTMLAnchorElement.hash */
String hash;
/** @domName HTMLAnchorElement.host */
String host;
/** @domName HTMLAnchorElement.hostname */
String hostname;
/** @domName HTMLAnchorElement.href */
String href;
/** @domName HTMLAnchorElement.hreflang */
String hreflang;
/** @domName HTMLAnchorElement.name */
String name;
/** @domName HTMLAnchorElement.origin */
String get origin;
/** @domName HTMLAnchorElement.pathname */
String pathname;
/** @domName HTMLAnchorElement.ping */
String ping;
/** @domName HTMLAnchorElement.port */
String port;
/** @domName HTMLAnchorElement.protocol */
String protocol;
/** @domName HTMLAnchorElement.rel */
String rel;
/** @domName HTMLAnchorElement.rev */
String rev;
/** @domName HTMLAnchorElement.search */
String search;
/** @domName HTMLAnchorElement.shape */
String shape;
/** @domName HTMLAnchorElement.target */
String target;
/** @domName HTMLAnchorElement.type */
String type;
/** @domName HTMLAnchorElement.toString */
String toString();
}
// 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.
// WARNING: Do not edit - generated code.
class _AnchorElementImpl extends _ElementImpl_Merged implements AnchorElement {
String get charset native "HTMLAnchorElement_charset_Getter";
void set charset(String value) native "HTMLAnchorElement_charset_Setter";
String get coords native "HTMLAnchorElement_coords_Getter";
void set coords(String value) native "HTMLAnchorElement_coords_Setter";
String get download native "HTMLAnchorElement_download_Getter";
void set download(String value) native "HTMLAnchorElement_download_Setter";
String get hash native "HTMLAnchorElement_hash_Getter";
void set hash(String value) native "HTMLAnchorElement_hash_Setter";
String get host native "HTMLAnchorElement_host_Getter";
void set host(String value) native "HTMLAnchorElement_host_Setter";
String get hostname native "HTMLAnchorElement_hostname_Getter";
void set hostname(String value) native "HTMLAnchorElement_hostname_Setter";
String get href native "HTMLAnchorElement_href_Getter";
void set href(String value) native "HTMLAnchorElement_href_Setter";
String get hreflang native "HTMLAnchorElement_hreflang_Getter";
void set hreflang(String value) native "HTMLAnchorElement_hreflang_Setter";
String get name native "HTMLAnchorElement_name_Getter";
void set name(String value) native "HTMLAnchorElement_name_Setter";
String get origin native "HTMLAnchorElement_origin_Getter";
String get pathname native "HTMLAnchorElement_pathname_Getter";
void set pathname(String value) native "HTMLAnchorElement_pathname_Setter";
String get ping native "HTMLAnchorElement_ping_Getter";
void set ping(String value) native "HTMLAnchorElement_ping_Setter";
String get port native "HTMLAnchorElement_port_Getter";
void set port(String value) native "HTMLAnchorElement_port_Setter";
String get protocol native "HTMLAnchorElement_protocol_Getter";
void set protocol(String value) native "HTMLAnchorElement_protocol_Setter";
String get rel native "HTMLAnchorElement_rel_Getter";
void set rel(String value) native "HTMLAnchorElement_rel_Setter";
String get rev native "HTMLAnchorElement_rev_Getter";
void set rev(String value) native "HTMLAnchorElement_rev_Setter";
String get search native "HTMLAnchorElement_search_Getter";
void set search(String value) native "HTMLAnchorElement_search_Setter";
String get shape native "HTMLAnchorElement_shape_Getter";
void set shape(String value) native "HTMLAnchorElement_shape_Setter";
String get target native "HTMLAnchorElement_target_Getter";
void set target(String value) native "HTMLAnchorElement_target_Setter";
String get type native "HTMLAnchorElement_type_Getter";
void set type(String value) native "HTMLAnchorElement_type_Setter";
String toString() native "HTMLAnchorElement_toString_Callback";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName WebKitAnimation
abstract class Animation {
static const int DIRECTION_ALTERNATE = 1;
static const int DIRECTION_NORMAL = 0;
static const int FILL_BACKWARDS = 1;
static const int FILL_BOTH = 3;
static const int FILL_FORWARDS = 2;
static const int FILL_NONE = 0;
/** @domName WebKitAnimation.delay */
num get delay;
/** @domName WebKitAnimation.direction */
int get direction;
/** @domName WebKitAnimation.duration */
num get duration;
/** @domName WebKitAnimation.elapsedTime */
num elapsedTime;
/** @domName WebKitAnimation.ended */
bool get ended;
/** @domName WebKitAnimation.fillMode */
int get fillMode;
/** @domName WebKitAnimation.iterationCount */
int get iterationCount;
/** @domName WebKitAnimation.name */
String get name;
/** @domName WebKitAnimation.paused */
bool get paused;
/** @domName WebKitAnimation.pause */
void pause();
/** @domName WebKitAnimation.play */
void play();
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName WebKitAnimationEvent
abstract class AnimationEvent implements Event {
/** @domName WebKitAnimationEvent.animationName */
String get animationName;
/** @domName WebKitAnimationEvent.elapsedTime */
num get elapsedTime;
}
// 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.
// WARNING: Do not edit - generated code.
class _AnimationEventImpl extends _EventImpl implements AnimationEvent {
String get animationName native "WebKitAnimationEvent_animationName_Getter";
num get elapsedTime native "WebKitAnimationEvent_elapsedTime_Getter";
}
// 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.
// WARNING: Do not edit - generated code.
class _AnimationImpl extends NativeFieldWrapperClass1 implements Animation {
num get delay native "WebKitAnimation_delay_Getter";
int get direction native "WebKitAnimation_direction_Getter";
num get duration native "WebKitAnimation_duration_Getter";
num get elapsedTime native "WebKitAnimation_elapsedTime_Getter";
void set elapsedTime(num value) native "WebKitAnimation_elapsedTime_Setter";
bool get ended native "WebKitAnimation_ended_Getter";
int get fillMode native "WebKitAnimation_fillMode_Getter";
int get iterationCount native "WebKitAnimation_iterationCount_Getter";
String get name native "WebKitAnimation_name_Getter";
bool get paused native "WebKitAnimation_paused_Getter";
void pause() native "WebKitAnimation_pause_Callback";
void play() native "WebKitAnimation_play_Callback";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName HTMLAppletElement
abstract class AppletElement implements Element {
/** @domName HTMLAppletElement.align */
String align;
/** @domName HTMLAppletElement.alt */
String alt;
/** @domName HTMLAppletElement.archive */
String archive;
/** @domName HTMLAppletElement.code */
String code;
/** @domName HTMLAppletElement.codeBase */
String codeBase;
/** @domName HTMLAppletElement.height */
String height;
/** @domName HTMLAppletElement.hspace */
String hspace;
/** @domName HTMLAppletElement.name */
String name;
/** @domName HTMLAppletElement.object */
String object;
/** @domName HTMLAppletElement.vspace */
String vspace;
/** @domName HTMLAppletElement.width */
String width;
}
// 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.
// WARNING: Do not edit - generated code.
class _AppletElementImpl extends _ElementImpl_Merged implements AppletElement {
String get align native "HTMLAppletElement_align_Getter";
void set align(String value) native "HTMLAppletElement_align_Setter";
String get alt native "HTMLAppletElement_alt_Getter";
void set alt(String value) native "HTMLAppletElement_alt_Setter";
String get archive native "HTMLAppletElement_archive_Getter";
void set archive(String value) native "HTMLAppletElement_archive_Setter";
String get code native "HTMLAppletElement_code_Getter";
void set code(String value) native "HTMLAppletElement_code_Setter";
String get codeBase native "HTMLAppletElement_codeBase_Getter";
void set codeBase(String value) native "HTMLAppletElement_codeBase_Setter";
String get height native "HTMLAppletElement_height_Getter";
void set height(String value) native "HTMLAppletElement_height_Setter";
String get hspace native "HTMLAppletElement_hspace_Getter";
void set hspace(String value) native "HTMLAppletElement_hspace_Setter";
String get name native "HTMLAppletElement_name_Getter";
void set name(String value) native "HTMLAppletElement_name_Setter";
String get object native "HTMLAppletElement_object_Getter";
void set object(String value) native "HTMLAppletElement_object_Setter";
String get vspace native "HTMLAppletElement_vspace_Getter";
void set vspace(String value) native "HTMLAppletElement_vspace_Setter";
String get width native "HTMLAppletElement_width_Getter";
void set width(String value) native "HTMLAppletElement_width_Setter";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName HTMLAreaElement
abstract class AreaElement implements Element {
factory AreaElement() => _Elements.createAreaElement();
/** @domName HTMLAreaElement.alt */
String alt;
/** @domName HTMLAreaElement.coords */
String coords;
/** @domName HTMLAreaElement.hash */
String get hash;
/** @domName HTMLAreaElement.host */
String get host;
/** @domName HTMLAreaElement.hostname */
String get hostname;
/** @domName HTMLAreaElement.href */
String href;
/** @domName HTMLAreaElement.noHref */
bool noHref;
/** @domName HTMLAreaElement.pathname */
String get pathname;
/** @domName HTMLAreaElement.ping */
String ping;
/** @domName HTMLAreaElement.port */
String get port;
/** @domName HTMLAreaElement.protocol */
String get protocol;
/** @domName HTMLAreaElement.search */
String get search;
/** @domName HTMLAreaElement.shape */
String shape;
/** @domName HTMLAreaElement.target */
String target;
}
// 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.
// WARNING: Do not edit - generated code.
class _AreaElementImpl extends _ElementImpl_Merged implements AreaElement {
String get alt native "HTMLAreaElement_alt_Getter";
void set alt(String value) native "HTMLAreaElement_alt_Setter";
String get coords native "HTMLAreaElement_coords_Getter";
void set coords(String value) native "HTMLAreaElement_coords_Setter";
String get hash native "HTMLAreaElement_hash_Getter";
String get host native "HTMLAreaElement_host_Getter";
String get hostname native "HTMLAreaElement_hostname_Getter";
String get href native "HTMLAreaElement_href_Getter";
void set href(String value) native "HTMLAreaElement_href_Setter";
bool get noHref native "HTMLAreaElement_noHref_Getter";
void set noHref(bool value) native "HTMLAreaElement_noHref_Setter";
String get pathname native "HTMLAreaElement_pathname_Getter";
String get ping native "HTMLAreaElement_ping_Getter";
void set ping(String value) native "HTMLAreaElement_ping_Setter";
String get port native "HTMLAreaElement_port_Getter";
String get protocol native "HTMLAreaElement_protocol_Getter";
String get search native "HTMLAreaElement_search_Getter";
String get shape native "HTMLAreaElement_shape_Getter";
void set shape(String value) native "HTMLAreaElement_shape_Setter";
String get target native "HTMLAreaElement_target_Getter";
void set target(String value) native "HTMLAreaElement_target_Setter";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName ArrayBuffer
abstract class ArrayBuffer {
factory ArrayBuffer(int length) => _ArrayBufferFactoryProvider.createArrayBuffer(length);
/** @domName ArrayBuffer.byteLength */
int get byteLength;
/** @domName ArrayBuffer.slice */
ArrayBuffer slice(int begin, [int end]);
}
// 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.
// WARNING: Do not edit - generated code.
class _ArrayBufferImpl extends NativeFieldWrapperClass1 implements ArrayBuffer {
int get byteLength native "ArrayBuffer_byteLength_Getter";
ArrayBuffer slice(/*long*/ begin, [/*long*/ end]) {
if (?end) {
return _slice_1(begin, end);
}
return _slice_2(begin);
}
ArrayBuffer _slice_1(begin, end) native "ArrayBuffer_slice_1_Callback";
ArrayBuffer _slice_2(begin) native "ArrayBuffer_slice_2_Callback";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName ArrayBufferView
abstract class ArrayBufferView {
/** @domName ArrayBufferView.buffer */
ArrayBuffer get buffer;
/** @domName ArrayBufferView.byteLength */
int get byteLength;
/** @domName ArrayBufferView.byteOffset */
int get byteOffset;
}
// 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.
// WARNING: Do not edit - generated code.
class _ArrayBufferViewImpl extends NativeFieldWrapperClass1 implements ArrayBufferView {
ArrayBuffer get buffer native "ArrayBufferView_buffer_Getter";
int get byteLength native "ArrayBufferView_byteLength_Getter";
int get byteOffset native "ArrayBufferView_byteOffset_Getter";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName Attr
abstract class Attr implements Node {
/** @domName Attr.isId */
bool get isId;
/** @domName Attr.name */
String get name;
/** @domName Attr.ownerElement */
Element get ownerElement;
/** @domName Attr.specified */
bool get specified;
/** @domName Attr.value */
String value;
}
// 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.
// WARNING: Do not edit - generated code.
class _AttrImpl extends _NodeImpl implements Attr {
bool get isId native "Attr_isId_Getter";
String get name native "Attr_name_Getter";
Element get ownerElement native "Attr_ownerElement_Getter";
bool get specified native "Attr_specified_Getter";
String get value native "Attr_value_Getter";
void set value(String value) native "Attr_value_Setter";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName AudioBuffer
abstract class AudioBuffer {
/** @domName AudioBuffer.duration */
num get duration;
/** @domName AudioBuffer.gain */
num gain;
/** @domName AudioBuffer.length */
int get length;
/** @domName AudioBuffer.numberOfChannels */
int get numberOfChannels;
/** @domName AudioBuffer.sampleRate */
num get sampleRate;
/** @domName AudioBuffer.getChannelData */
Float32Array getChannelData(int channelIndex);
}
// 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.
// WARNING: Do not edit - generated code.
typedef void AudioBufferCallback(AudioBuffer audioBuffer);
// 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.
// WARNING: Do not edit - generated code.
class _AudioBufferImpl extends NativeFieldWrapperClass1 implements AudioBuffer {
num get duration native "AudioBuffer_duration_Getter";
num get gain native "AudioBuffer_gain_Getter";
void set gain(num value) native "AudioBuffer_gain_Setter";
int get length native "AudioBuffer_length_Getter";
int get numberOfChannels native "AudioBuffer_numberOfChannels_Getter";
num get sampleRate native "AudioBuffer_sampleRate_Getter";
Float32Array getChannelData(int channelIndex) native "AudioBuffer_getChannelData_Callback";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName AudioBufferSourceNode
abstract class AudioBufferSourceNode implements AudioSourceNode {
static const int FINISHED_STATE = 3;
static const int PLAYING_STATE = 2;
static const int SCHEDULED_STATE = 1;
static const int UNSCHEDULED_STATE = 0;
/** @domName AudioBufferSourceNode.buffer */
AudioBuffer buffer;
/** @domName AudioBufferSourceNode.gain */
AudioGain get gain;
/** @domName AudioBufferSourceNode.loop */
bool loop;
/** @domName AudioBufferSourceNode.loopEnd */
num loopEnd;
/** @domName AudioBufferSourceNode.loopStart */
num loopStart;
/** @domName AudioBufferSourceNode.playbackRate */
AudioParam get playbackRate;
/** @domName AudioBufferSourceNode.playbackState */
int get playbackState;
/** @domName AudioBufferSourceNode.start */
void start(num when, [num grainOffset, num grainDuration]);
/** @domName AudioBufferSourceNode.stop */
void stop(num when);
}
// 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.
// WARNING: Do not edit - generated code.
class _AudioBufferSourceNodeImpl extends _AudioSourceNodeImpl implements AudioBufferSourceNode {
AudioBuffer get buffer native "AudioBufferSourceNode_buffer_Getter";
void set buffer(AudioBuffer value) native "AudioBufferSourceNode_buffer_Setter";
AudioGain get gain native "AudioBufferSourceNode_gain_Getter";
bool get loop native "AudioBufferSourceNode_loop_Getter";
void set loop(bool value) native "AudioBufferSourceNode_loop_Setter";
num get loopEnd native "AudioBufferSourceNode_loopEnd_Getter";
void set loopEnd(num value) native "AudioBufferSourceNode_loopEnd_Setter";
num get loopStart native "AudioBufferSourceNode_loopStart_Getter";
void set loopStart(num value) native "AudioBufferSourceNode_loopStart_Setter";
AudioParam get playbackRate native "AudioBufferSourceNode_playbackRate_Getter";
int get playbackState native "AudioBufferSourceNode_playbackState_Getter";
void start(/*double*/ when, [/*double*/ grainOffset, /*double*/ grainDuration]) {
if ((when is num || when == null) && !?grainOffset && !?grainDuration) {
_start_1(when);
return;
}
if ((when is num || when == null) && (grainOffset is num || grainOffset == null) && (grainDuration is num || grainDuration == null)) {
_start_2(when, grainOffset, grainDuration);
return;
}
throw "Incorrect number or type of arguments";
}
void _start_1(when) native "AudioBufferSourceNode_start_1_Callback";
void _start_2(when, grainOffset, grainDuration) native "AudioBufferSourceNode_start_2_Callback";
void stop(num when) native "AudioBufferSourceNode_stop_Callback";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName AudioContext
abstract class AudioContext implements EventTarget {
factory AudioContext() => _AudioContextFactoryProvider.createAudioContext();
/**
* @domName EventTarget.addEventListener, EventTarget.removeEventListener, EventTarget.dispatchEvent
*/
AudioContextEvents get on;
/** @domName AudioContext.activeSourceCount */
int get activeSourceCount;
/** @domName AudioContext.currentTime */
num get currentTime;
/** @domName AudioContext.destination */
AudioDestinationNode get destination;
/** @domName AudioContext.listener */
AudioListener get listener;
/** @domName AudioContext.sampleRate */
num get sampleRate;
/** @domName AudioContext.createAnalyser */
AnalyserNode createAnalyser();
/** @domName AudioContext.createBiquadFilter */
BiquadFilterNode createBiquadFilter();
/** @domName AudioContext.createBuffer */
AudioBuffer createBuffer(buffer_OR_numberOfChannels, mixToMono_OR_numberOfFrames, [num sampleRate]);
/** @domName AudioContext.createBufferSource */
AudioBufferSourceNode createBufferSource();
/** @domName AudioContext.createChannelMerger */
ChannelMergerNode createChannelMerger([int numberOfInputs]);
/** @domName AudioContext.createChannelSplitter */
ChannelSplitterNode createChannelSplitter([int numberOfOutputs]);
/** @domName AudioContext.createConvolver */
ConvolverNode createConvolver();
/** @domName AudioContext.createDelay */
DelayNode createDelay([num maxDelayTime]);
/** @domName AudioContext.createDynamicsCompressor */
DynamicsCompressorNode createDynamicsCompressor();
/** @domName AudioContext.createGain */
GainNode createGain();
/** @domName AudioContext.createMediaElementSource */
MediaElementAudioSourceNode createMediaElementSource(MediaElement mediaElement);
/** @domName AudioContext.createMediaStreamSource */
MediaStreamAudioSourceNode createMediaStreamSource(MediaStream mediaStream);
/** @domName AudioContext.createOscillator */
OscillatorNode createOscillator();
/** @domName AudioContext.createPanner */
PannerNode createPanner();
/** @domName AudioContext.createScriptProcessor */
ScriptProcessorNode createScriptProcessor(int bufferSize, [int numberOfInputChannels, int numberOfOutputChannels]);
/** @domName AudioContext.createWaveShaper */
WaveShaperNode createWaveShaper();
/** @domName AudioContext.createWaveTable */
WaveTable createWaveTable(Float32Array real, Float32Array imag);
/** @domName AudioContext.decodeAudioData */
void decodeAudioData(ArrayBuffer audioData, AudioBufferCallback successCallback, [AudioBufferCallback errorCallback]);
/** @domName AudioContext.startRendering */
void startRendering();
}
abstract class AudioContextEvents implements Events {
EventListenerList get complete;
}
// 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.
// WARNING: Do not edit - generated code.
class _AudioContextImpl extends _EventTargetImpl implements AudioContext {
_AudioContextEventsImpl get on =>
new _AudioContextEventsImpl(this);
int get activeSourceCount native "AudioContext_activeSourceCount_Getter";
num get currentTime native "AudioContext_currentTime_Getter";
AudioDestinationNode get destination native "AudioContext_destination_Getter";
AudioListener get listener native "AudioContext_listener_Getter";
num get sampleRate native "AudioContext_sampleRate_Getter";
AnalyserNode createAnalyser() native "AudioContext_createAnalyser_Callback";
BiquadFilterNode createBiquadFilter() native "AudioContext_createBiquadFilter_Callback";
AudioBuffer createBuffer(buffer_OR_numberOfChannels, mixToMono_OR_numberOfFrames, [/*float*/ sampleRate]) {
if ((buffer_OR_numberOfChannels is int || buffer_OR_numberOfChannels == null) && (mixToMono_OR_numberOfFrames is int || mixToMono_OR_numberOfFrames == null) && (sampleRate is num || sampleRate == null)) {
return _createBuffer_1(buffer_OR_numberOfChannels, mixToMono_OR_numberOfFrames, sampleRate);
}
if ((buffer_OR_numberOfChannels is ArrayBuffer || buffer_OR_numberOfChannels == null) && (mixToMono_OR_numberOfFrames is bool || mixToMono_OR_numberOfFrames == null) && !?sampleRate) {
return _createBuffer_2(buffer_OR_numberOfChannels, mixToMono_OR_numberOfFrames);
}
throw "Incorrect number or type of arguments";
}
AudioBuffer _createBuffer_1(buffer_OR_numberOfChannels, mixToMono_OR_numberOfFrames, sampleRate) native "AudioContext_createBuffer_1_Callback";
AudioBuffer _createBuffer_2(buffer_OR_numberOfChannels, mixToMono_OR_numberOfFrames) native "AudioContext_createBuffer_2_Callback";
AudioBufferSourceNode createBufferSource() native "AudioContext_createBufferSource_Callback";
ChannelMergerNode createChannelMerger([/*unsigned long*/ numberOfInputs]) {
if (?numberOfInputs) {
return _createChannelMerger_1(numberOfInputs);
}
return _createChannelMerger_2();
}
ChannelMergerNode _createChannelMerger_1(numberOfInputs) native "AudioContext_createChannelMerger_1_Callback";
ChannelMergerNode _createChannelMerger_2() native "AudioContext_createChannelMerger_2_Callback";
ChannelSplitterNode createChannelSplitter([/*unsigned long*/ numberOfOutputs]) {
if (?numberOfOutputs) {
return _createChannelSplitter_1(numberOfOutputs);
}
return _createChannelSplitter_2();
}
ChannelSplitterNode _createChannelSplitter_1(numberOfOutputs) native "AudioContext_createChannelSplitter_1_Callback";
ChannelSplitterNode _createChannelSplitter_2() native "AudioContext_createChannelSplitter_2_Callback";
ConvolverNode createConvolver() native "AudioContext_createConvolver_Callback";
DelayNode createDelay([/*double*/ maxDelayTime]) {
if (?maxDelayTime) {
return _createDelay_1(maxDelayTime);
}
return _createDelay_2();
}
DelayNode _createDelay_1(maxDelayTime) native "AudioContext_createDelay_1_Callback";
DelayNode _createDelay_2() native "AudioContext_createDelay_2_Callback";
DynamicsCompressorNode createDynamicsCompressor() native "AudioContext_createDynamicsCompressor_Callback";
GainNode createGain() native "AudioContext_createGain_Callback";
MediaElementAudioSourceNode createMediaElementSource(MediaElement mediaElement) native "AudioContext_createMediaElementSource_Callback";
MediaStreamAudioSourceNode createMediaStreamSource(MediaStream mediaStream) native "AudioContext_createMediaStreamSource_Callback";
OscillatorNode createOscillator() native "AudioContext_createOscillator_Callback";
PannerNode createPanner() native "AudioContext_createPanner_Callback";
ScriptProcessorNode createScriptProcessor(/*unsigned long*/ bufferSize, [/*unsigned long*/ numberOfInputChannels, /*unsigned long*/ numberOfOutputChannels]) {
if (?numberOfOutputChannels) {
return _createScriptProcessor_1(bufferSize, numberOfInputChannels, numberOfOutputChannels);
}
if (?numberOfInputChannels) {
return _createScriptProcessor_2(bufferSize, numberOfInputChannels);
}
return _createScriptProcessor_3(bufferSize);
}
ScriptProcessorNode _createScriptProcessor_1(bufferSize, numberOfInputChannels, numberOfOutputChannels) native "AudioContext_createScriptProcessor_1_Callback";
ScriptProcessorNode _createScriptProcessor_2(bufferSize, numberOfInputChannels) native "AudioContext_createScriptProcessor_2_Callback";
ScriptProcessorNode _createScriptProcessor_3(bufferSize) native "AudioContext_createScriptProcessor_3_Callback";
WaveShaperNode createWaveShaper() native "AudioContext_createWaveShaper_Callback";
WaveTable createWaveTable(Float32Array real, Float32Array imag) native "AudioContext_createWaveTable_Callback";
void decodeAudioData(ArrayBuffer audioData, AudioBufferCallback successCallback, [AudioBufferCallback errorCallback]) native "AudioContext_decodeAudioData_Callback";
void startRendering() native "AudioContext_startRendering_Callback";
}
class _AudioContextEventsImpl extends _EventsImpl implements AudioContextEvents {
_AudioContextEventsImpl(_ptr) : super(_ptr);
EventListenerList get complete => this['complete'];
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName AudioDestinationNode
abstract class AudioDestinationNode implements AudioNode {
/** @domName AudioDestinationNode.numberOfChannels */
int get numberOfChannels;
}
// 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.
// WARNING: Do not edit - generated code.
class _AudioDestinationNodeImpl extends _AudioNodeImpl implements AudioDestinationNode {
int get numberOfChannels native "AudioDestinationNode_numberOfChannels_Getter";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName HTMLAudioElement
abstract class AudioElement implements MediaElement {
factory AudioElement([String src]) {
if (!?src) {
return _AudioElementFactoryProvider.createAudioElement();
}
return _AudioElementFactoryProvider.createAudioElement(src);
}
}
// 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.
// WARNING: Do not edit - generated code.
class _AudioElementImpl extends _MediaElementImpl implements AudioElement {
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName AudioGain
abstract class AudioGain implements AudioParam {
}
// 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.
// WARNING: Do not edit - generated code.
class _AudioGainImpl extends _AudioParamImpl implements AudioGain {
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName AudioListener
abstract class AudioListener {
/** @domName AudioListener.dopplerFactor */
num dopplerFactor;
/** @domName AudioListener.speedOfSound */
num speedOfSound;
/** @domName AudioListener.setOrientation */
void setOrientation(num x, num y, num z, num xUp, num yUp, num zUp);
/** @domName AudioListener.setPosition */
void setPosition(num x, num y, num z);
/** @domName AudioListener.setVelocity */
void setVelocity(num x, num y, num z);
}
// 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.
// WARNING: Do not edit - generated code.
class _AudioListenerImpl extends NativeFieldWrapperClass1 implements AudioListener {
num get dopplerFactor native "AudioListener_dopplerFactor_Getter";
void set dopplerFactor(num value) native "AudioListener_dopplerFactor_Setter";
num get speedOfSound native "AudioListener_speedOfSound_Getter";
void set speedOfSound(num value) native "AudioListener_speedOfSound_Setter";
void setOrientation(num x, num y, num z, num xUp, num yUp, num zUp) native "AudioListener_setOrientation_Callback";
void setPosition(num x, num y, num z) native "AudioListener_setPosition_Callback";
void setVelocity(num x, num y, num z) native "AudioListener_setVelocity_Callback";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName AudioNode
abstract class AudioNode {
/** @domName AudioNode.context */
AudioContext get context;
/** @domName AudioNode.numberOfInputs */
int get numberOfInputs;
/** @domName AudioNode.numberOfOutputs */
int get numberOfOutputs;
/** @domName AudioNode.connect */
void connect(destination, int output, [int input]);
/** @domName AudioNode.disconnect */
void disconnect(int output);
}
// 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.
// WARNING: Do not edit - generated code.
class _AudioNodeImpl extends NativeFieldWrapperClass1 implements AudioNode {
AudioContext get context native "AudioNode_context_Getter";
int get numberOfInputs native "AudioNode_numberOfInputs_Getter";
int get numberOfOutputs native "AudioNode_numberOfOutputs_Getter";
void connect(destination, /*unsigned long*/ output, [/*unsigned long*/ input]) {
if ((destination is AudioNode || destination == null) && (output is int || output == null) && (input is int || input == null)) {
_connect_1(destination, output, input);
return;
}
if ((destination is AudioParam || destination == null) && (output is int || output == null) && !?input) {
_connect_2(destination, output);
return;
}
throw "Incorrect number or type of arguments";
}
void _connect_1(destination, output, input) native "AudioNode_connect_1_Callback";
void _connect_2(destination, output) native "AudioNode_connect_2_Callback";
void disconnect(int output) native "AudioNode_disconnect_Callback";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName AudioParam
abstract class AudioParam {
/** @domName AudioParam.defaultValue */
num get defaultValue;
/** @domName AudioParam.maxValue */
num get maxValue;
/** @domName AudioParam.minValue */
num get minValue;
/** @domName AudioParam.name */
String get name;
/** @domName AudioParam.units */
int get units;
/** @domName AudioParam.value */
num value;
/** @domName AudioParam.cancelScheduledValues */
void cancelScheduledValues(num startTime);
/** @domName AudioParam.exponentialRampToValueAtTime */
void exponentialRampToValueAtTime(num value, num time);
/** @domName AudioParam.linearRampToValueAtTime */
void linearRampToValueAtTime(num value, num time);
/** @domName AudioParam.setTargetAtTime */
void setTargetAtTime(num target, num time, num timeConstant);
/** @domName AudioParam.setValueAtTime */
void setValueAtTime(num value, num time);
/** @domName AudioParam.setValueCurveAtTime */
void setValueCurveAtTime(Float32Array values, num time, num duration);
}
// 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.
// WARNING: Do not edit - generated code.
class _AudioParamImpl extends NativeFieldWrapperClass1 implements AudioParam {
num get defaultValue native "AudioParam_defaultValue_Getter";
num get maxValue native "AudioParam_maxValue_Getter";
num get minValue native "AudioParam_minValue_Getter";
String get name native "AudioParam_name_Getter";
int get units native "AudioParam_units_Getter";
num get value native "AudioParam_value_Getter";
void set value(num value) native "AudioParam_value_Setter";
void cancelScheduledValues(num startTime) native "AudioParam_cancelScheduledValues_Callback";
void exponentialRampToValueAtTime(num value, num time) native "AudioParam_exponentialRampToValueAtTime_Callback";
void linearRampToValueAtTime(num value, num time) native "AudioParam_linearRampToValueAtTime_Callback";
void setTargetAtTime(num target, num time, num timeConstant) native "AudioParam_setTargetAtTime_Callback";
void setValueAtTime(num value, num time) native "AudioParam_setValueAtTime_Callback";
void setValueCurveAtTime(Float32Array values, num time, num duration) native "AudioParam_setValueCurveAtTime_Callback";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName AudioProcessingEvent
abstract class AudioProcessingEvent implements Event {
/** @domName AudioProcessingEvent.inputBuffer */
AudioBuffer get inputBuffer;
/** @domName AudioProcessingEvent.outputBuffer */
AudioBuffer get outputBuffer;
}
// 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.
// WARNING: Do not edit - generated code.
class _AudioProcessingEventImpl extends _EventImpl implements AudioProcessingEvent {
AudioBuffer get inputBuffer native "AudioProcessingEvent_inputBuffer_Getter";
AudioBuffer get outputBuffer native "AudioProcessingEvent_outputBuffer_Getter";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName AudioSourceNode
abstract class AudioSourceNode implements AudioNode {
}
// 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.
// WARNING: Do not edit - generated code.
class _AudioSourceNodeImpl extends _AudioNodeImpl implements AudioSourceNode {
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName HTMLBRElement
abstract class BRElement implements Element {
factory BRElement() => _Elements.createBRElement();
/** @domName HTMLBRElement.clear */
String clear;
}
// 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.
// WARNING: Do not edit - generated code.
class _BRElementImpl extends _ElementImpl_Merged implements BRElement {
String get clear native "HTMLBRElement_clear_Getter";
void set clear(String value) native "HTMLBRElement_clear_Setter";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName BarInfo
abstract class BarInfo {
/** @domName BarInfo.visible */
bool get visible;
}
// 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.
// WARNING: Do not edit - generated code.
class _BarInfoImpl extends NativeFieldWrapperClass1 implements BarInfo {
bool get visible native "BarInfo_visible_Getter";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName HTMLBaseElement
abstract class BaseElement implements Element {
factory BaseElement() => _Elements.createBaseElement();
/** @domName HTMLBaseElement.href */
String href;
/** @domName HTMLBaseElement.target */
String target;
}
// 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.
// WARNING: Do not edit - generated code.
class _BaseElementImpl extends _ElementImpl_Merged implements BaseElement {
String get href native "HTMLBaseElement_href_Getter";
void set href(String value) native "HTMLBaseElement_href_Setter";
String get target native "HTMLBaseElement_target_Getter";
void set target(String value) native "HTMLBaseElement_target_Setter";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName HTMLBaseFontElement
abstract class BaseFontElement implements Element {
/** @domName HTMLBaseFontElement.color */
String color;
/** @domName HTMLBaseFontElement.face */
String face;
/** @domName HTMLBaseFontElement.size */
int size;
}
// 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.
// WARNING: Do not edit - generated code.
class _BaseFontElementImpl extends _ElementImpl_Merged implements BaseFontElement {
String get color native "HTMLBaseFontElement_color_Getter";
void set color(String value) native "HTMLBaseFontElement_color_Setter";
String get face native "HTMLBaseFontElement_face_Getter";
void set face(String value) native "HTMLBaseFontElement_face_Setter";
int get size native "HTMLBaseFontElement_size_Getter";
void set size(int value) native "HTMLBaseFontElement_size_Setter";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName BatteryManager
abstract class BatteryManager implements EventTarget {
/**
* @domName EventTarget.addEventListener, EventTarget.removeEventListener, EventTarget.dispatchEvent
*/
BatteryManagerEvents get on;
/** @domName BatteryManager.charging */
bool get charging;
/** @domName BatteryManager.chargingTime */
num get chargingTime;
/** @domName BatteryManager.dischargingTime */
num get dischargingTime;
/** @domName BatteryManager.level */
num get level;
/** @domName BatteryManager.addEventListener */
void $dom_addEventListener(String type, EventListener listener, [bool useCapture]);
/** @domName BatteryManager.dispatchEvent */
bool $dom_dispatchEvent(Event event);
/** @domName BatteryManager.removeEventListener */
void $dom_removeEventListener(String type, EventListener listener, [bool useCapture]);
}
abstract class BatteryManagerEvents implements Events {
EventListenerList get chargingChange;
EventListenerList get chargingTimeChange;
EventListenerList get dischargingTimeChange;
EventListenerList get levelChange;
}
// 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.
// WARNING: Do not edit - generated code.
class _BatteryManagerImpl extends _EventTargetImpl implements BatteryManager {
_BatteryManagerEventsImpl get on =>
new _BatteryManagerEventsImpl(this);
bool get charging native "BatteryManager_charging_Getter";
num get chargingTime native "BatteryManager_chargingTime_Getter";
num get dischargingTime native "BatteryManager_dischargingTime_Getter";
num get level native "BatteryManager_level_Getter";
void $dom_addEventListener(String type, EventListener listener, [bool useCapture]) native "BatteryManager_addEventListener_Callback";
bool $dom_dispatchEvent(Event event) native "BatteryManager_dispatchEvent_Callback";
void $dom_removeEventListener(String type, EventListener listener, [bool useCapture]) native "BatteryManager_removeEventListener_Callback";
}
class _BatteryManagerEventsImpl extends _EventsImpl implements BatteryManagerEvents {
_BatteryManagerEventsImpl(_ptr) : super(_ptr);
EventListenerList get chargingChange => this['chargingchange'];
EventListenerList get chargingTimeChange => this['chargingtimechange'];
EventListenerList get dischargingTimeChange => this['dischargingtimechange'];
EventListenerList get levelChange => this['levelchange'];
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName BeforeLoadEvent
abstract class BeforeLoadEvent implements Event {
/** @domName BeforeLoadEvent.url */
String get url;
}
// 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.
// WARNING: Do not edit - generated code.
class _BeforeLoadEventImpl extends _EventImpl implements BeforeLoadEvent {
String get url native "BeforeLoadEvent_url_Getter";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName BiquadFilterNode
abstract class BiquadFilterNode implements AudioNode {
static const int ALLPASS = 7;
static const int BANDPASS = 2;
static const int HIGHPASS = 1;
static const int HIGHSHELF = 4;
static const int LOWPASS = 0;
static const int LOWSHELF = 3;
static const int NOTCH = 6;
static const int PEAKING = 5;
/** @domName BiquadFilterNode.Q */
AudioParam get Q;
/** @domName BiquadFilterNode.frequency */
AudioParam get frequency;
/** @domName BiquadFilterNode.gain */
AudioParam get gain;
/** @domName BiquadFilterNode.type */
int type;
/** @domName BiquadFilterNode.getFrequencyResponse */
void getFrequencyResponse(Float32Array frequencyHz, Float32Array magResponse, Float32Array phaseResponse);
}
// 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.
// WARNING: Do not edit - generated code.
class _BiquadFilterNodeImpl extends _AudioNodeImpl implements BiquadFilterNode {
AudioParam get Q native "BiquadFilterNode_Q_Getter";
AudioParam get frequency native "BiquadFilterNode_frequency_Getter";
AudioParam get gain native "BiquadFilterNode_gain_Getter";
int get type native "BiquadFilterNode_type_Getter";
void set type(int value) native "BiquadFilterNode_type_Setter";
void getFrequencyResponse(Float32Array frequencyHz, Float32Array magResponse, Float32Array phaseResponse) native "BiquadFilterNode_getFrequencyResponse_Callback";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName Blob
abstract class Blob {
factory Blob(List blobParts, [String type, String endings]) {
if (!?type) {
return _BlobFactoryProvider.createBlob(blobParts);
}
if (!?endings) {
return _BlobFactoryProvider.createBlob(blobParts, type);
}
return _BlobFactoryProvider.createBlob(blobParts, type, endings);
}
/** @domName Blob.size */
int get size;
/** @domName Blob.type */
String get type;
/** @domName Blob.slice */
Blob slice([int start, int end, String contentType]);
}
// 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.
// WARNING: Do not edit - generated code.
class _BlobImpl extends NativeFieldWrapperClass1 implements Blob {
int get size native "Blob_size_Getter";
String get type native "Blob_type_Getter";
Blob slice([/*long long*/ start, /*long long*/ end, /*DOMString*/ contentType]) {
if (?contentType) {
return _slice_1(start, end, contentType);
}
if (?end) {
return _slice_2(start, end);
}
if (?start) {
return _slice_3(start);
}
return _slice_4();
}
Blob _slice_1(start, end, contentType) native "Blob_slice_1_Callback";
Blob _slice_2(start, end) native "Blob_slice_2_Callback";
Blob _slice_3(start) native "Blob_slice_3_Callback";
Blob _slice_4() native "Blob_slice_4_Callback";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName HTMLBodyElement
abstract class BodyElement implements Element {
factory BodyElement() => _Elements.createBodyElement();
/**
* @domName EventTarget.addEventListener, EventTarget.removeEventListener, EventTarget.dispatchEvent
*/
BodyElementEvents get on;
/** @domName HTMLBodyElement.aLink */
String aLink;
/** @domName HTMLBodyElement.background */
String background;
/** @domName HTMLBodyElement.bgColor */
String bgColor;
/** @domName HTMLBodyElement.link */
String link;
/** @domName HTMLBodyElement.vLink */
String vLink;
}
abstract class BodyElementEvents implements ElementEvents {
EventListenerList get beforeUnload;
EventListenerList get blur;
EventListenerList get error;
EventListenerList get focus;
EventListenerList get hashChange;
EventListenerList get load;
EventListenerList get message;
EventListenerList get offline;
EventListenerList get online;
EventListenerList get popState;
EventListenerList get resize;
EventListenerList get storage;
EventListenerList get unload;
}
// 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.
// WARNING: Do not edit - generated code.
class _BodyElementImpl extends _ElementImpl_Merged implements BodyElement {
_BodyElementEventsImpl get on =>
new _BodyElementEventsImpl(this);
String get aLink native "HTMLBodyElement_aLink_Getter";
void set aLink(String value) native "HTMLBodyElement_aLink_Setter";
String get background native "HTMLBodyElement_background_Getter";
void set background(String value) native "HTMLBodyElement_background_Setter";
String get bgColor native "HTMLBodyElement_bgColor_Getter";
void set bgColor(String value) native "HTMLBodyElement_bgColor_Setter";
String get link native "HTMLBodyElement_link_Getter";
void set link(String value) native "HTMLBodyElement_link_Setter";
String get vLink native "HTMLBodyElement_vLink_Getter";
void set vLink(String value) native "HTMLBodyElement_vLink_Setter";
}
class _BodyElementEventsImpl extends _ElementEventsImpl implements BodyElementEvents {
_BodyElementEventsImpl(_ptr) : super(_ptr);
EventListenerList get beforeUnload => this['beforeunload'];
EventListenerList get blur => this['blur'];
EventListenerList get error => this['error'];
EventListenerList get focus => this['focus'];
EventListenerList get hashChange => this['hashchange'];
EventListenerList get load => this['load'];
EventListenerList get message => this['message'];
EventListenerList get offline => this['offline'];
EventListenerList get online => this['online'];
EventListenerList get popState => this['popstate'];
EventListenerList get resize => this['resize'];
EventListenerList get storage => this['storage'];
EventListenerList get unload => this['unload'];
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName HTMLButtonElement
abstract class ButtonElement implements Element {
factory ButtonElement() => _Elements.createButtonElement();
/** @domName HTMLButtonElement.autofocus */
bool autofocus;
/** @domName HTMLButtonElement.disabled */
bool disabled;
/** @domName HTMLButtonElement.form */
FormElement get form;
/** @domName HTMLButtonElement.formAction */
String formAction;
/** @domName HTMLButtonElement.formEnctype */
String formEnctype;
/** @domName HTMLButtonElement.formMethod */
String formMethod;
/** @domName HTMLButtonElement.formNoValidate */
bool formNoValidate;
/** @domName HTMLButtonElement.formTarget */
String formTarget;
/** @domName HTMLButtonElement.labels */
List<Node> get labels;
/** @domName HTMLButtonElement.name */
String name;
/** @domName HTMLButtonElement.type */
String type;
/** @domName HTMLButtonElement.validationMessage */
String get validationMessage;
/** @domName HTMLButtonElement.validity */
ValidityState get validity;
/** @domName HTMLButtonElement.value */
String value;
/** @domName HTMLButtonElement.willValidate */
bool get willValidate;
/** @domName HTMLButtonElement.checkValidity */
bool checkValidity();
/** @domName HTMLButtonElement.setCustomValidity */
void setCustomValidity(String error);
}
// 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.
// WARNING: Do not edit - generated code.
class _ButtonElementImpl extends _ElementImpl_Merged implements ButtonElement {
bool get autofocus native "HTMLButtonElement_autofocus_Getter";
void set autofocus(bool value) native "HTMLButtonElement_autofocus_Setter";
bool get disabled native "HTMLButtonElement_disabled_Getter";
void set disabled(bool value) native "HTMLButtonElement_disabled_Setter";
FormElement get form native "HTMLButtonElement_form_Getter";
String get formAction native "HTMLButtonElement_formAction_Getter";
void set formAction(String value) native "HTMLButtonElement_formAction_Setter";
String get formEnctype native "HTMLButtonElement_formEnctype_Getter";
void set formEnctype(String value) native "HTMLButtonElement_formEnctype_Setter";
String get formMethod native "HTMLButtonElement_formMethod_Getter";
void set formMethod(String value) native "HTMLButtonElement_formMethod_Setter";
bool get formNoValidate native "HTMLButtonElement_formNoValidate_Getter";
void set formNoValidate(bool value) native "HTMLButtonElement_formNoValidate_Setter";
String get formTarget native "HTMLButtonElement_formTarget_Getter";
void set formTarget(String value) native "HTMLButtonElement_formTarget_Setter";
List<Node> get labels native "HTMLButtonElement_labels_Getter";
String get name native "HTMLButtonElement_name_Getter";
void set name(String value) native "HTMLButtonElement_name_Setter";
String get type native "HTMLButtonElement_type_Getter";
void set type(String value) native "HTMLButtonElement_type_Setter";
String get validationMessage native "HTMLButtonElement_validationMessage_Getter";
ValidityState get validity native "HTMLButtonElement_validity_Getter";
String get value native "HTMLButtonElement_value_Getter";
void set value(String value) native "HTMLButtonElement_value_Setter";
bool get willValidate native "HTMLButtonElement_willValidate_Getter";
bool checkValidity() native "HTMLButtonElement_checkValidity_Callback";
void setCustomValidity(String error) native "HTMLButtonElement_setCustomValidity_Callback";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName CDATASection
abstract class CDATASection implements Text {
}
// 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.
// WARNING: Do not edit - generated code.
class _CDATASectionImpl extends _TextImpl implements CDATASection {
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName CSSCharsetRule
abstract class CSSCharsetRule implements CSSRule {
/** @domName CSSCharsetRule.encoding */
String encoding;
}
// 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.
// WARNING: Do not edit - generated code.
class _CSSCharsetRuleImpl extends _CSSRuleImpl implements CSSCharsetRule {
String get encoding native "CSSCharsetRule_encoding_Getter";
void set encoding(String value) native "CSSCharsetRule_encoding_Setter";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName CSSFontFaceRule
abstract class CSSFontFaceRule implements CSSRule {
/** @domName CSSFontFaceRule.style */
CSSStyleDeclaration get style;
}
// 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.
// WARNING: Do not edit - generated code.
class _CSSFontFaceRuleImpl extends _CSSRuleImpl implements CSSFontFaceRule {
CSSStyleDeclaration get style native "CSSFontFaceRule_style_Getter";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName CSSImportRule
abstract class CSSImportRule implements CSSRule {
/** @domName CSSImportRule.href */
String get href;
/** @domName CSSImportRule.media */
MediaList get media;
/** @domName CSSImportRule.styleSheet */
CSSStyleSheet get styleSheet;
}
// 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.
// WARNING: Do not edit - generated code.
class _CSSImportRuleImpl extends _CSSRuleImpl implements CSSImportRule {
String get href native "CSSImportRule_href_Getter";
MediaList get media native "CSSImportRule_media_Getter";
CSSStyleSheet get styleSheet native "CSSImportRule_styleSheet_Getter";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName WebKitCSSKeyframeRule
abstract class CSSKeyframeRule implements CSSRule {
/** @domName WebKitCSSKeyframeRule.keyText */
String keyText;
/** @domName WebKitCSSKeyframeRule.style */
CSSStyleDeclaration get style;
}
// 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.
// WARNING: Do not edit - generated code.
class _CSSKeyframeRuleImpl extends _CSSRuleImpl implements CSSKeyframeRule {
String get keyText native "WebKitCSSKeyframeRule_keyText_Getter";
void set keyText(String value) native "WebKitCSSKeyframeRule_keyText_Setter";
CSSStyleDeclaration get style native "WebKitCSSKeyframeRule_style_Getter";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName WebKitCSSKeyframesRule
abstract class CSSKeyframesRule implements CSSRule {
/** @domName WebKitCSSKeyframesRule.cssRules */
List<CSSRule> get cssRules;
/** @domName WebKitCSSKeyframesRule.name */
String name;
/** @domName WebKitCSSKeyframesRule.deleteRule */
void deleteRule(String key);
/** @domName WebKitCSSKeyframesRule.findRule */
CSSKeyframeRule findRule(String key);
/** @domName WebKitCSSKeyframesRule.insertRule */
void insertRule(String rule);
}
// 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.
// WARNING: Do not edit - generated code.
class _CSSKeyframesRuleImpl extends _CSSRuleImpl implements CSSKeyframesRule {
List<CSSRule> get cssRules native "WebKitCSSKeyframesRule_cssRules_Getter";
String get name native "WebKitCSSKeyframesRule_name_Getter";
void set name(String value) native "WebKitCSSKeyframesRule_name_Setter";
void deleteRule(String key) native "WebKitCSSKeyframesRule_deleteRule_Callback";
CSSKeyframeRule findRule(String key) native "WebKitCSSKeyframesRule_findRule_Callback";
void insertRule(String rule) native "WebKitCSSKeyframesRule_insertRule_Callback";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName WebKitCSSMatrix
abstract class CSSMatrix {
factory CSSMatrix([String cssValue]) {
if (!?cssValue) {
return _CSSMatrixFactoryProvider.createCSSMatrix();
}
return _CSSMatrixFactoryProvider.createCSSMatrix(cssValue);
}
/** @domName WebKitCSSMatrix.a */
num a;
/** @domName WebKitCSSMatrix.b */
num b;
/** @domName WebKitCSSMatrix.c */
num c;
/** @domName WebKitCSSMatrix.d */
num d;
/** @domName WebKitCSSMatrix.e */
num e;
/** @domName WebKitCSSMatrix.f */
num f;
/** @domName WebKitCSSMatrix.m11 */
num m11;
/** @domName WebKitCSSMatrix.m12 */
num m12;
/** @domName WebKitCSSMatrix.m13 */
num m13;
/** @domName WebKitCSSMatrix.m14 */
num m14;
/** @domName WebKitCSSMatrix.m21 */
num m21;
/** @domName WebKitCSSMatrix.m22 */
num m22;
/** @domName WebKitCSSMatrix.m23 */
num m23;
/** @domName WebKitCSSMatrix.m24 */
num m24;
/** @domName WebKitCSSMatrix.m31 */
num m31;
/** @domName WebKitCSSMatrix.m32 */
num m32;
/** @domName WebKitCSSMatrix.m33 */
num m33;
/** @domName WebKitCSSMatrix.m34 */
num m34;
/** @domName WebKitCSSMatrix.m41 */
num m41;
/** @domName WebKitCSSMatrix.m42 */
num m42;
/** @domName WebKitCSSMatrix.m43 */
num m43;
/** @domName WebKitCSSMatrix.m44 */
num m44;
/** @domName WebKitCSSMatrix.inverse */
CSSMatrix inverse();
/** @domName WebKitCSSMatrix.multiply */
CSSMatrix multiply(CSSMatrix secondMatrix);
/** @domName WebKitCSSMatrix.rotate */
CSSMatrix rotate(num rotX, num rotY, num rotZ);
/** @domName WebKitCSSMatrix.rotateAxisAngle */
CSSMatrix rotateAxisAngle(num x, num y, num z, num angle);
/** @domName WebKitCSSMatrix.scale */
CSSMatrix scale(num scaleX, num scaleY, num scaleZ);
/** @domName WebKitCSSMatrix.setMatrixValue */
void setMatrixValue(String string);
/** @domName WebKitCSSMatrix.skewX */
CSSMatrix skewX(num angle);
/** @domName WebKitCSSMatrix.skewY */
CSSMatrix skewY(num angle);
/** @domName WebKitCSSMatrix.toString */
String toString();
/** @domName WebKitCSSMatrix.translate */
CSSMatrix translate(num x, num y, num z);
}
// 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.
// WARNING: Do not edit - generated code.
class _CSSMatrixImpl extends NativeFieldWrapperClass1 implements CSSMatrix {
num get a native "WebKitCSSMatrix_a_Getter";
void set a(num value) native "WebKitCSSMatrix_a_Setter";
num get b native "WebKitCSSMatrix_b_Getter";
void set b(num value) native "WebKitCSSMatrix_b_Setter";
num get c native "WebKitCSSMatrix_c_Getter";
void set c(num value) native "WebKitCSSMatrix_c_Setter";
num get d native "WebKitCSSMatrix_d_Getter";
void set d(num value) native "WebKitCSSMatrix_d_Setter";
num get e native "WebKitCSSMatrix_e_Getter";
void set e(num value) native "WebKitCSSMatrix_e_Setter";
num get f native "WebKitCSSMatrix_f_Getter";
void set f(num value) native "WebKitCSSMatrix_f_Setter";
num get m11 native "WebKitCSSMatrix_m11_Getter";
void set m11(num value) native "WebKitCSSMatrix_m11_Setter";
num get m12 native "WebKitCSSMatrix_m12_Getter";
void set m12(num value) native "WebKitCSSMatrix_m12_Setter";
num get m13 native "WebKitCSSMatrix_m13_Getter";
void set m13(num value) native "WebKitCSSMatrix_m13_Setter";
num get m14 native "WebKitCSSMatrix_m14_Getter";
void set m14(num value) native "WebKitCSSMatrix_m14_Setter";
num get m21 native "WebKitCSSMatrix_m21_Getter";
void set m21(num value) native "WebKitCSSMatrix_m21_Setter";
num get m22 native "WebKitCSSMatrix_m22_Getter";
void set m22(num value) native "WebKitCSSMatrix_m22_Setter";
num get m23 native "WebKitCSSMatrix_m23_Getter";
void set m23(num value) native "WebKitCSSMatrix_m23_Setter";
num get m24 native "WebKitCSSMatrix_m24_Getter";
void set m24(num value) native "WebKitCSSMatrix_m24_Setter";
num get m31 native "WebKitCSSMatrix_m31_Getter";
void set m31(num value) native "WebKitCSSMatrix_m31_Setter";
num get m32 native "WebKitCSSMatrix_m32_Getter";
void set m32(num value) native "WebKitCSSMatrix_m32_Setter";
num get m33 native "WebKitCSSMatrix_m33_Getter";
void set m33(num value) native "WebKitCSSMatrix_m33_Setter";
num get m34 native "WebKitCSSMatrix_m34_Getter";
void set m34(num value) native "WebKitCSSMatrix_m34_Setter";
num get m41 native "WebKitCSSMatrix_m41_Getter";
void set m41(num value) native "WebKitCSSMatrix_m41_Setter";
num get m42 native "WebKitCSSMatrix_m42_Getter";
void set m42(num value) native "WebKitCSSMatrix_m42_Setter";
num get m43 native "WebKitCSSMatrix_m43_Getter";
void set m43(num value) native "WebKitCSSMatrix_m43_Setter";
num get m44 native "WebKitCSSMatrix_m44_Getter";
void set m44(num value) native "WebKitCSSMatrix_m44_Setter";
CSSMatrix inverse() native "WebKitCSSMatrix_inverse_Callback";
CSSMatrix multiply(CSSMatrix secondMatrix) native "WebKitCSSMatrix_multiply_Callback";
CSSMatrix rotate(num rotX, num rotY, num rotZ) native "WebKitCSSMatrix_rotate_Callback";
CSSMatrix rotateAxisAngle(num x, num y, num z, num angle) native "WebKitCSSMatrix_rotateAxisAngle_Callback";
CSSMatrix scale(num scaleX, num scaleY, num scaleZ) native "WebKitCSSMatrix_scale_Callback";
void setMatrixValue(String string) native "WebKitCSSMatrix_setMatrixValue_Callback";
CSSMatrix skewX(num angle) native "WebKitCSSMatrix_skewX_Callback";
CSSMatrix skewY(num angle) native "WebKitCSSMatrix_skewY_Callback";
String toString() native "WebKitCSSMatrix_toString_Callback";
CSSMatrix translate(num x, num y, num z) native "WebKitCSSMatrix_translate_Callback";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName CSSMediaRule
abstract class CSSMediaRule implements CSSRule {
/** @domName CSSMediaRule.cssRules */
List<CSSRule> get cssRules;
/** @domName CSSMediaRule.media */
MediaList get media;
/** @domName CSSMediaRule.deleteRule */
void deleteRule(int index);
/** @domName CSSMediaRule.insertRule */
int insertRule(String rule, int index);
}
// 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.
// WARNING: Do not edit - generated code.
class _CSSMediaRuleImpl extends _CSSRuleImpl implements CSSMediaRule {
List<CSSRule> get cssRules native "CSSMediaRule_cssRules_Getter";
MediaList get media native "CSSMediaRule_media_Getter";
void deleteRule(int index) native "CSSMediaRule_deleteRule_Callback";
int insertRule(String rule, int index) native "CSSMediaRule_insertRule_Callback";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName CSSPageRule
abstract class CSSPageRule implements CSSRule {
/** @domName CSSPageRule.selectorText */
String selectorText;
/** @domName CSSPageRule.style */
CSSStyleDeclaration get style;
}
// 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.
// WARNING: Do not edit - generated code.
class _CSSPageRuleImpl extends _CSSRuleImpl implements CSSPageRule {
String get selectorText native "CSSPageRule_selectorText_Getter";
void set selectorText(String value) native "CSSPageRule_selectorText_Setter";
CSSStyleDeclaration get style native "CSSPageRule_style_Getter";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName CSSPrimitiveValue
abstract class CSSPrimitiveValue implements CSSValue {
static const int CSS_ATTR = 22;
static const int CSS_CM = 6;
static const int CSS_COUNTER = 23;
static const int CSS_DEG = 11;
static const int CSS_DIMENSION = 18;
static const int CSS_EMS = 3;
static const int CSS_EXS = 4;
static const int CSS_GRAD = 13;
static const int CSS_HZ = 16;
static const int CSS_IDENT = 21;
static const int CSS_IN = 8;
static const int CSS_KHZ = 17;
static const int CSS_MM = 7;
static const int CSS_MS = 14;
static const int CSS_NUMBER = 1;
static const int CSS_PC = 10;
static const int CSS_PERCENTAGE = 2;
static const int CSS_PT = 9;
static const int CSS_PX = 5;
static const int CSS_RAD = 12;
static const int CSS_RECT = 24;
static const int CSS_RGBCOLOR = 25;
static const int CSS_S = 15;
static const int CSS_STRING = 19;
static const int CSS_UNKNOWN = 0;
static const int CSS_URI = 20;
static const int CSS_VH = 27;
static const int CSS_VMIN = 28;
static const int CSS_VW = 26;
/** @domName CSSPrimitiveValue.primitiveType */
int get primitiveType;
/** @domName CSSPrimitiveValue.getCounterValue */
Counter getCounterValue();
/** @domName CSSPrimitiveValue.getFloatValue */
num getFloatValue(int unitType);
/** @domName CSSPrimitiveValue.getRGBColorValue */
RGBColor getRGBColorValue();
/** @domName CSSPrimitiveValue.getRectValue */
Rect getRectValue();
/** @domName CSSPrimitiveValue.getStringValue */
String getStringValue();
/** @domName CSSPrimitiveValue.setFloatValue */
void setFloatValue(int unitType, num floatValue);
/** @domName CSSPrimitiveValue.setStringValue */
void setStringValue(int stringType, String stringValue);
}
// 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.
// WARNING: Do not edit - generated code.
class _CSSPrimitiveValueImpl extends _CSSValueImpl implements CSSPrimitiveValue {
int get primitiveType native "CSSPrimitiveValue_primitiveType_Getter";
Counter getCounterValue() native "CSSPrimitiveValue_getCounterValue_Callback";
num getFloatValue(int unitType) native "CSSPrimitiveValue_getFloatValue_Callback";
RGBColor getRGBColorValue() native "CSSPrimitiveValue_getRGBColorValue_Callback";
Rect getRectValue() native "CSSPrimitiveValue_getRectValue_Callback";
String getStringValue() native "CSSPrimitiveValue_getStringValue_Callback";
void setFloatValue(int unitType, num floatValue) native "CSSPrimitiveValue_setFloatValue_Callback";
void setStringValue(int stringType, String stringValue) native "CSSPrimitiveValue_setStringValue_Callback";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName CSSRule
abstract class CSSRule {
static const int CHARSET_RULE = 2;
static const int FONT_FACE_RULE = 5;
static const int IMPORT_RULE = 3;
static const int MEDIA_RULE = 4;
static const int PAGE_RULE = 6;
static const int STYLE_RULE = 1;
static const int UNKNOWN_RULE = 0;
static const int WEBKIT_KEYFRAMES_RULE = 7;
static const int WEBKIT_KEYFRAME_RULE = 8;
/** @domName CSSRule.cssText */
String cssText;
/** @domName CSSRule.parentRule */
CSSRule get parentRule;
/** @domName CSSRule.parentStyleSheet */
CSSStyleSheet get parentStyleSheet;
/** @domName CSSRule.type */
int get type;
}
// 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.
// WARNING: Do not edit - generated code.
class _CSSRuleImpl extends NativeFieldWrapperClass1 implements CSSRule {
String get cssText native "CSSRule_cssText_Getter";
void set cssText(String value) native "CSSRule_cssText_Setter";
CSSRule get parentRule native "CSSRule_parentRule_Getter";
CSSStyleSheet get parentStyleSheet native "CSSRule_parentStyleSheet_Getter";
int get type native "CSSRule_type_Getter";
}
// 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.
// WARNING: Do not edit - generated code.
class _CSSRuleListImpl extends NativeFieldWrapperClass1 implements List<CSSRule> {
int get length native "CSSRuleList_length_Getter";
CSSRule operator[](int index) native "CSSRuleList_item_Callback";
void operator[]=(int index, CSSRule value) {
throw new UnsupportedError("Cannot assign element of immutable List.");
}
// -- start List<CSSRule> mixins.
// CSSRule is the element type.
// From Iterable<CSSRule>:
Iterator<CSSRule> 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<CSSRule>(this);
}
// From Collection<CSSRule>:
void add(CSSRule value) {
throw new UnsupportedError("Cannot add to immutable List.");
}
void addLast(CSSRule value) {
throw new UnsupportedError("Cannot add to immutable List.");
}
void addAll(Collection<CSSRule> collection) {
throw new UnsupportedError("Cannot add to immutable List.");
}
bool contains(CSSRule element) => _Collections.contains(this, element);
void forEach(void f(CSSRule element)) => _Collections.forEach(this, f);
Collection map(f(CSSRule element)) => _Collections.map(this, [], f);
Collection<CSSRule> filter(bool f(CSSRule element)) =>
_Collections.filter(this, <CSSRule>[], f);
bool every(bool f(CSSRule element)) => _Collections.every(this, f);
bool some(bool f(CSSRule element)) => _Collections.some(this, f);
bool get isEmpty => this.length == 0;
// From List<CSSRule>:
void sort([Comparator<CSSRule> compare = Comparable.compare]) {
throw new UnsupportedError("Cannot sort immutable List.");
}
int indexOf(CSSRule element, [int start = 0]) =>
_Lists.indexOf(this, element, start, this.length);
int lastIndexOf(CSSRule element, [int start]) {
if (start == null) start = length - 1;
return _Lists.lastIndexOf(this, element, start);
}
CSSRule get last => this[length - 1];
CSSRule removeLast() {
throw new UnsupportedError("Cannot removeLast on immutable List.");
}
void setRange(int start, int rangeLength, List<CSSRule> from, [int startFrom]) {
throw new UnsupportedError("Cannot setRange on immutable List.");
}
void removeRange(int start, int rangeLength) {
throw new UnsupportedError("Cannot removeRange on immutable List.");
}
void insertRange(int start, int rangeLength, [CSSRule initialValue]) {
throw new UnsupportedError("Cannot insertRange on immutable List.");
}
List<CSSRule> getRange(int start, int rangeLength) =>
_Lists.getRange(this, start, rangeLength, <CSSRule>[]);
// -- end List<CSSRule> mixins.
CSSRule item(int index) native "CSSRuleList_item_Callback";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName CSSStyleDeclaration
abstract class CSSStyleDeclaration {
factory CSSStyleDeclaration() => _CSSStyleDeclarationFactoryProvider.createCSSStyleDeclaration();
factory CSSStyleDeclaration.css(String css) => _CSSStyleDeclarationFactoryProvider.createCSSStyleDeclaration_css(css);
/** @domName CSSStyleDeclaration.cssText */
String cssText;
/** @domName CSSStyleDeclaration.length */
int get length;
/** @domName CSSStyleDeclaration.parentRule */
CSSRule get parentRule;
/** @domName CSSStyleDeclaration.getPropertyCSSValue */
CSSValue getPropertyCSSValue(String propertyName);
/** @domName CSSStyleDeclaration.getPropertyPriority */
String getPropertyPriority(String propertyName);
/** @domName CSSStyleDeclaration.getPropertyShorthand */
String getPropertyShorthand(String propertyName);
/** @domName CSSStyleDeclaration.isPropertyImplicit */
bool isPropertyImplicit(String propertyName);
/** @domName CSSStyleDeclaration.item */
String item(int index);
/** @domName CSSStyleDeclaration.removeProperty */
String removeProperty(String propertyName);
/** @domName CSSStyleDeclaration.setProperty */
void setProperty(String propertyName, String value, [String priority]);
/** Gets the value of "animation" */
String get animation;
/** Sets the value of "animation" */
void set animation(var value);
/** Gets the value of "animation-delay" */
String get animationDelay;
/** Sets the value of "animation-delay" */
void set animationDelay(var value);
/** Gets the value of "animation-direction" */
String get animationDirection;
/** Sets the value of "animation-direction" */
void set animationDirection(var value);
/** Gets the value of "animation-duration" */
String get animationDuration;
/** Sets the value of "animation-duration" */
void set animationDuration(var value);
/** Gets the value of "animation-fill-mode" */
String get animationFillMode;
/** Sets the value of "animation-fill-mode" */
void set animationFillMode(var value);
/** Gets the value of "animation-iteration-count" */
String get animationIterationCount;
/** Sets the value of "animation-iteration-count" */
void set animationIterationCount(var value);
/** Gets the value of "animation-name" */
String get animationName;
/** Sets the value of "animation-name" */
void set animationName(var value);
/** Gets the value of "animation-play-state" */
String get animationPlayState;
/** Sets the value of "animation-play-state" */
void set animationPlayState(var value);
/** Gets the value of "animation-timing-function" */
String get animationTimingFunction;
/** Sets the value of "animation-timing-function" */
void set animationTimingFunction(var value);
/** Gets the value of "appearance" */
String get appearance;
/** Sets the value of "appearance" */
void set appearance(var value);
/** Gets the value of "backface-visibility" */
String get backfaceVisibility;
/** Sets the value of "backface-visibility" */
void set backfaceVisibility(var value);
/** Gets the value of "background" */
String get background;
/** Sets the value of "background" */
void set background(var value);
/** Gets the value of "background-attachment" */
String get backgroundAttachment;
/** Sets the value of "background-attachment" */
void set backgroundAttachment(var value);
/** Gets the value of "background-clip" */
String get backgroundClip;
/** Sets the value of "background-clip" */
void set backgroundClip(var value);
/** Gets the value of "background-color" */
String get backgroundColor;
/** Sets the value of "background-color" */
void set backgroundColor(var value);
/** Gets the value of "background-composite" */
String get backgroundComposite;
/** Sets the value of "background-composite" */
void set backgroundComposite(var value);
/** Gets the value of "background-image" */
String get backgroundImage;
/** Sets the value of "background-image" */
void set backgroundImage(var value);
/** Gets the value of "background-origin" */
String get backgroundOrigin;
/** Sets the value of "background-origin" */
void set backgroundOrigin(var value);
/** Gets the value of "background-position" */
String get backgroundPosition;
/** Sets the value of "background-position" */
void set backgroundPosition(var value);
/** Gets the value of "background-position-x" */
String get backgroundPositionX;
/** Sets the value of "background-position-x" */
void set backgroundPositionX(var value);
/** Gets the value of "background-position-y" */
String get backgroundPositionY;
/** Sets the value of "background-position-y" */
void set backgroundPositionY(var value);
/** Gets the value of "background-repeat" */
String get backgroundRepeat;
/** Sets the value of "background-repeat" */
void set backgroundRepeat(var value);
/** Gets the value of "background-repeat-x" */
String get backgroundRepeatX;
/** Sets the value of "background-repeat-x" */
void set backgroundRepeatX(var value);
/** Gets the value of "background-repeat-y" */
String get backgroundRepeatY;
/** Sets the value of "background-repeat-y" */
void set backgroundRepeatY(var value);
/** Gets the value of "background-size" */
String get backgroundSize;
/** Sets the value of "background-size" */
void set backgroundSize(var value);
/** Gets the value of "border" */
String get border;
/** Sets the value of "border" */
void set border(var value);
/** Gets the value of "border-after" */
String get borderAfter;
/** Sets the value of "border-after" */
void set borderAfter(var value);
/** Gets the value of "border-after-color" */
String get borderAfterColor;
/** Sets the value of "border-after-color" */
void set borderAfterColor(var value);
/** Gets the value of "border-after-style" */
String get borderAfterStyle;
/** Sets the value of "border-after-style" */
void set borderAfterStyle(var value);
/** Gets the value of "border-after-width" */
String get borderAfterWidth;
/** Sets the value of "border-after-width" */
void set borderAfterWidth(var value);
/** Gets the value of "border-before" */
String get borderBefore;
/** Sets the value of "border-before" */
void set borderBefore(var value);
/** Gets the value of "border-before-color" */
String get borderBeforeColor;
/** Sets the value of "border-before-color" */
void set borderBeforeColor(var value);
/** Gets the value of "border-before-style" */
String get borderBeforeStyle;
/** Sets the value of "border-before-style" */
void set borderBeforeStyle(var value);
/** Gets the value of "border-before-width" */
String get borderBeforeWidth;
/** Sets the value of "border-before-width" */
void set borderBeforeWidth(var value);
/** Gets the value of "border-bottom" */
String get borderBottom;
/** Sets the value of "border-bottom" */
void set borderBottom(var value);
/** Gets the value of "border-bottom-color" */
String get borderBottomColor;
/** Sets the value of "border-bottom-color" */
void set borderBottomColor(var value);
/** Gets the value of "border-bottom-left-radius" */
String get borderBottomLeftRadius;
/** Sets the value of "border-bottom-left-radius" */
void set borderBottomLeftRadius(var value);
/** Gets the value of "border-bottom-right-radius" */
String get borderBottomRightRadius;
/** Sets the value of "border-bottom-right-radius" */
void set borderBottomRightRadius(var value);
/** Gets the value of "border-bottom-style" */
String get borderBottomStyle;
/** Sets the value of "border-bottom-style" */
void set borderBottomStyle(var value);
/** Gets the value of "border-bottom-width" */
String get borderBottomWidth;
/** Sets the value of "border-bottom-width" */
void set borderBottomWidth(var value);
/** Gets the value of "border-collapse" */
String get borderCollapse;
/** Sets the value of "border-collapse" */
void set borderCollapse(var value);
/** Gets the value of "border-color" */
String get borderColor;
/** Sets the value of "border-color" */
void set borderColor(var value);
/** Gets the value of "border-end" */
String get borderEnd;
/** Sets the value of "border-end" */
void set borderEnd(var value);
/** Gets the value of "border-end-color" */
String get borderEndColor;
/** Sets the value of "border-end-color" */
void set borderEndColor(var value);
/** Gets the value of "border-end-style" */
String get borderEndStyle;
/** Sets the value of "border-end-style" */
void set borderEndStyle(var value);
/** Gets the value of "border-end-width" */
String get borderEndWidth;
/** Sets the value of "border-end-width" */
void set borderEndWidth(var value);
/** Gets the value of "border-fit" */
String get borderFit;
/** Sets the value of "border-fit" */
void set borderFit(var value);
/** Gets the value of "border-horizontal-spacing" */
String get borderHorizontalSpacing;
/** Sets the value of "border-horizontal-spacing" */
void set borderHorizontalSpacing(var value);
/** Gets the value of "border-image" */
String get borderImage;
/** Sets the value of "border-image" */
void set borderImage(var value);
/** Gets the value of "border-image-outset" */
String get borderImageOutset;
/** Sets the value of "border-image-outset" */
void set borderImageOutset(var value);
/** Gets the value of "border-image-repeat" */
String get borderImageRepeat;
/** Sets the value of "border-image-repeat" */
void set borderImageRepeat(var value);
/** Gets the value of "border-image-slice" */
String get borderImageSlice;
/** Sets the value of "border-image-slice" */
void set borderImageSlice(var value);
/** Gets the value of "border-image-source" */
String get borderImageSource;
/** Sets the value of "border-image-source" */
void set borderImageSource(var value);
/** Gets the value of "border-image-width" */
String get borderImageWidth;
/** Sets the value of "border-image-width" */
void set borderImageWidth(var value);
/** Gets the value of "border-left" */
String get borderLeft;
/** Sets the value of "border-left" */
void set borderLeft(var value);
/** Gets the value of "border-left-color" */
String get borderLeftColor;
/** Sets the value of "border-left-color" */
void set borderLeftColor(var value);
/** Gets the value of "border-left-style" */
String get borderLeftStyle;
/** Sets the value of "border-left-style" */
void set borderLeftStyle(var value);
/** Gets the value of "border-left-width" */
String get borderLeftWidth;
/** Sets the value of "border-left-width" */
void set borderLeftWidth(var value);
/** Gets the value of "border-radius" */
String get borderRadius;
/** Sets the value of "border-radius" */
void set borderRadius(var value);
/** Gets the value of "border-right" */
String get borderRight;
/** Sets the value of "border-right" */
void set borderRight(var value);
/** Gets the value of "border-right-color" */
String get borderRightColor;
/** Sets the value of "border-right-color" */
void set borderRightColor(var value);
/** Gets the value of "border-right-style" */
String get borderRightStyle;
/** Sets the value of "border-right-style" */
void set borderRightStyle(var value);
/** Gets the value of "border-right-width" */
String get borderRightWidth;
/** Sets the value of "border-right-width" */
void set borderRightWidth(var value);
/** Gets the value of "border-spacing" */
String get borderSpacing;
/** Sets the value of "border-spacing" */
void set borderSpacing(var value);
/** Gets the value of "border-start" */
String get borderStart;
/** Sets the value of "border-start" */
void set borderStart(var value);
/** Gets the value of "border-start-color" */
String get borderStartColor;
/** Sets the value of "border-start-color" */
void set borderStartColor(var value);
/** Gets the value of "border-start-style" */
String get borderStartStyle;
/** Sets the value of "border-start-style" */
void set borderStartStyle(var value);
/** Gets the value of "border-start-width" */
String get borderStartWidth;
/** Sets the value of "border-start-width" */
void set borderStartWidth(var value);
/** Gets the value of "border-style" */
String get borderStyle;
/** Sets the value of "border-style" */
void set borderStyle(var value);
/** Gets the value of "border-top" */
String get borderTop;
/** Sets the value of "border-top" */
void set borderTop(var value);
/** Gets the value of "border-top-color" */
String get borderTopColor;
/** Sets the value of "border-top-color" */
void set borderTopColor(var value);
/** Gets the value of "border-top-left-radius" */
String get borderTopLeftRadius;
/** Sets the value of "border-top-left-radius" */
void set borderTopLeftRadius(var value);
/** Gets the value of "border-top-right-radius" */
String get borderTopRightRadius;
/** Sets the value of "border-top-right-radius" */
void set borderTopRightRadius(var value);
/** Gets the value of "border-top-style" */
String get borderTopStyle;
/** Sets the value of "border-top-style" */
void set borderTopStyle(var value);
/** Gets the value of "border-top-width" */
String get borderTopWidth;
/** Sets the value of "border-top-width" */
void set borderTopWidth(var value);
/** Gets the value of "border-vertical-spacing" */
String get borderVerticalSpacing;
/** Sets the value of "border-vertical-spacing" */
void set borderVerticalSpacing(var value);
/** Gets the value of "border-width" */
String get borderWidth;
/** Sets the value of "border-width" */
void set borderWidth(var value);
/** Gets the value of "bottom" */
String get bottom;
/** Sets the value of "bottom" */
void set bottom(var value);
/** Gets the value of "box-align" */
String get boxAlign;
/** Sets the value of "box-align" */
void set boxAlign(var value);
/** Gets the value of "box-direction" */
String get boxDirection;
/** Sets the value of "box-direction" */
void set boxDirection(var value);
/** Gets the value of "box-flex" */
String get boxFlex;
/** Sets the value of "box-flex" */
void set boxFlex(var value);
/** Gets the value of "box-flex-group" */
String get boxFlexGroup;
/** Sets the value of "box-flex-group" */
void set boxFlexGroup(var value);
/** Gets the value of "box-lines" */
String get boxLines;
/** Sets the value of "box-lines" */
void set boxLines(var value);
/** Gets the value of "box-ordinal-group" */
String get boxOrdinalGroup;
/** Sets the value of "box-ordinal-group" */
void set boxOrdinalGroup(var value);
/** Gets the value of "box-orient" */
String get boxOrient;
/** Sets the value of "box-orient" */
void set boxOrient(var value);
/** Gets the value of "box-pack" */
String get boxPack;
/** Sets the value of "box-pack" */
void set boxPack(var value);
/** Gets the value of "box-reflect" */
String get boxReflect;
/** Sets the value of "box-reflect" */
void set boxReflect(var value);
/** Gets the value of "box-shadow" */
String get boxShadow;
/** Sets the value of "box-shadow" */
void set boxShadow(var value);
/** Gets the value of "box-sizing" */
String get boxSizing;
/** Sets the value of "box-sizing" */
void set boxSizing(var value);
/** Gets the value of "caption-side" */
String get captionSide;
/** Sets the value of "caption-side" */
void set captionSide(var value);
/** Gets the value of "clear" */
String get clear;
/** Sets the value of "clear" */
void set clear(var value);
/** Gets the value of "clip" */
String get clip;
/** Sets the value of "clip" */
void set clip(var value);
/** Gets the value of "color" */
String get color;
/** Sets the value of "color" */
void set color(var value);
/** Gets the value of "color-correction" */
String get colorCorrection;
/** Sets the value of "color-correction" */
void set colorCorrection(var value);
/** Gets the value of "column-break-after" */
String get columnBreakAfter;
/** Sets the value of "column-break-after" */
void set columnBreakAfter(var value);
/** Gets the value of "column-break-before" */
String get columnBreakBefore;
/** Sets the value of "column-break-before" */
void set columnBreakBefore(var value);
/** Gets the value of "column-break-inside" */
String get columnBreakInside;
/** Sets the value of "column-break-inside" */
void set columnBreakInside(var value);
/** Gets the value of "column-count" */
String get columnCount;
/** Sets the value of "column-count" */
void set columnCount(var value);
/** Gets the value of "column-gap" */
String get columnGap;
/** Sets the value of "column-gap" */
void set columnGap(var value);
/** Gets the value of "column-rule" */
String get columnRule;
/** Sets the value of "column-rule" */
void set columnRule(var value);
/** Gets the value of "column-rule-color" */
String get columnRuleColor;
/** Sets the value of "column-rule-color" */
void set columnRuleColor(var value);
/** Gets the value of "column-rule-style" */
String get columnRuleStyle;
/** Sets the value of "column-rule-style" */
void set columnRuleStyle(var value);
/** Gets the value of "column-rule-width" */
String get columnRuleWidth;
/** Sets the value of "column-rule-width" */
void set columnRuleWidth(var value);
/** Gets the value of "column-span" */
String get columnSpan;
/** Sets the value of "column-span" */
void set columnSpan(var value);
/** Gets the value of "column-width" */
String get columnWidth;
/** Sets the value of "column-width" */
void set columnWidth(var value);
/** Gets the value of "columns" */
String get columns;
/** Sets the value of "columns" */
void set columns(var value);
/** Gets the value of "content" */
String get content;
/** Sets the value of "content" */
void set content(var value);
/** Gets the value of "counter-increment" */
String get counterIncrement;
/** Sets the value of "counter-increment" */
void set counterIncrement(var value);
/** Gets the value of "counter-reset" */
String get counterReset;
/** Sets the value of "counter-reset" */
void set counterReset(var value);
/** Gets the value of "cursor" */
String get cursor;
/** Sets the value of "cursor" */
void set cursor(var value);
/** Gets the value of "direction" */
String get direction;
/** Sets the value of "direction" */
void set direction(var value);
/** Gets the value of "display" */
String get display;
/** Sets the value of "display" */
void set display(var value);
/** Gets the value of "empty-cells" */
String get emptyCells;
/** Sets the value of "empty-cells" */
void set emptyCells(var value);
/** Gets the value of "filter" */
String get filter;
/** Sets the value of "filter" */
void set filter(var value);
/** Gets the value of "flex-align" */
String get flexAlign;
/** Sets the value of "flex-align" */
void set flexAlign(var value);
/** Gets the value of "flex-flow" */
String get flexFlow;
/** Sets the value of "flex-flow" */
void set flexFlow(var value);
/** Gets the value of "flex-order" */
String get flexOrder;
/** Sets the value of "flex-order" */
void set flexOrder(var value);
/** Gets the value of "flex-pack" */
String get flexPack;
/** Sets the value of "flex-pack" */
void set flexPack(var value);
/** Gets the value of "float" */
String get float;
/** Sets the value of "float" */
void set float(var value);
/** Gets the value of "flow-from" */
String get flowFrom;
/** Sets the value of "flow-from" */
void set flowFrom(var value);
/** Gets the value of "flow-into" */
String get flowInto;
/** Sets the value of "flow-into" */
void set flowInto(var value);
/** Gets the value of "font" */
String get font;
/** Sets the value of "font" */
void set font(var value);
/** Gets the value of "font-family" */
String get fontFamily;
/** Sets the value of "font-family" */
void set fontFamily(var value);
/** Gets the value of "font-feature-settings" */
String get fontFeatureSettings;
/** Sets the value of "font-feature-settings" */
void set fontFeatureSettings(var value);
/** Gets the value of "font-size" */
String get fontSize;
/** Sets the value of "font-size" */
void set fontSize(var value);
/** Gets the value of "font-size-delta" */
String get fontSizeDelta;
/** Sets the value of "font-size-delta" */
void set fontSizeDelta(var value);
/** Gets the value of "font-smoothing" */
String get fontSmoothing;
/** Sets the value of "font-smoothing" */
void set fontSmoothing(var value);
/** Gets the value of "font-stretch" */
String get fontStretch;
/** Sets the value of "font-stretch" */
void set fontStretch(var value);
/** Gets the value of "font-style" */
String get fontStyle;
/** Sets the value of "font-style" */
void set fontStyle(var value);
/** Gets the value of "font-variant" */
String get fontVariant;
/** Sets the value of "font-variant" */
void set fontVariant(var value);
/** Gets the value of "font-weight" */
String get fontWeight;
/** Sets the value of "font-weight" */
void set fontWeight(var value);
/** @domName CSSStyleDeclaration.getPropertyValue. */
String getPropertyValue(String propertyName);
/** Gets the value of "height" */
String get height;
/** Sets the value of "height" */
void set height(var value);
/** Gets the value of "highlight" */
String get highlight;
/** Sets the value of "highlight" */
void set highlight(var value);
/** Gets the value of "hyphenate-character" */
String get hyphenateCharacter;
/** Sets the value of "hyphenate-character" */
void set hyphenateCharacter(var value);
/** Gets the value of "hyphenate-limit-after" */
String get hyphenateLimitAfter;
/** Sets the value of "hyphenate-limit-after" */
void set hyphenateLimitAfter(var value);
/** Gets the value of "hyphenate-limit-before" */
String get hyphenateLimitBefore;
/** Sets the value of "hyphenate-limit-before" */
void set hyphenateLimitBefore(var value);
/** Gets the value of "hyphenate-limit-lines" */
String get hyphenateLimitLines;
/** Sets the value of "hyphenate-limit-lines" */
void set hyphenateLimitLines(var value);
/** Gets the value of "hyphens" */
String get hyphens;
/** Sets the value of "hyphens" */
void set hyphens(var value);
/** Gets the value of "image-rendering" */
String get imageRendering;
/** Sets the value of "image-rendering" */
void set imageRendering(var value);
/** Gets the value of "left" */
String get left;
/** Sets the value of "left" */
void set left(var value);
/** Gets the value of "letter-spacing" */
String get letterSpacing;
/** Sets the value of "letter-spacing" */
void set letterSpacing(var value);
/** Gets the value of "line-box-contain" */
String get lineBoxContain;
/** Sets the value of "line-box-contain" */
void set lineBoxContain(var value);
/** Gets the value of "line-break" */
String get lineBreak;
/** Sets the value of "line-break" */
void set lineBreak(var value);
/** Gets the value of "line-clamp" */
String get lineClamp;
/** Sets the value of "line-clamp" */
void set lineClamp(var value);
/** Gets the value of "line-height" */
String get lineHeight;
/** Sets the value of "line-height" */
void set lineHeight(var value);
/** Gets the value of "list-style" */
String get listStyle;
/** Sets the value of "list-style" */
void set listStyle(var value);
/** Gets the value of "list-style-image" */
String get listStyleImage;
/** Sets the value of "list-style-image" */
void set listStyleImage(var value);
/** Gets the value of "list-style-position" */
String get listStylePosition;
/** Sets the value of "list-style-position" */
void set listStylePosition(var value);
/** Gets the value of "list-style-type" */
String get listStyleType;
/** Sets the value of "list-style-type" */
void set listStyleType(var value);
/** Gets the value of "locale" */
String get locale;
/** Sets the value of "locale" */
void set locale(var value);
/** Gets the value of "logical-height" */
String get logicalHeight;
/** Sets the value of "logical-height" */
void set logicalHeight(var value);
/** Gets the value of "logical-width" */
String get logicalWidth;
/** Sets the value of "logical-width" */
void set logicalWidth(var value);
/** Gets the value of "margin" */
String get margin;
/** Sets the value of "margin" */
void set margin(var value);
/** Gets the value of "margin-after" */
String get marginAfter;
/** Sets the value of "margin-after" */
void set marginAfter(var value);
/** Gets the value of "margin-after-collapse" */
String get marginAfterCollapse;
/** Sets the value of "margin-after-collapse" */
void set marginAfterCollapse(var value);
/** Gets the value of "margin-before" */
String get marginBefore;
/** Sets the value of "margin-before" */
void set marginBefore(var value);
/** Gets the value of "margin-before-collapse" */
String get marginBeforeCollapse;
/** Sets the value of "margin-before-collapse" */
void set marginBeforeCollapse(var value);
/** Gets the value of "margin-bottom" */
String get marginBottom;
/** Sets the value of "margin-bottom" */
void set marginBottom(var value);
/** Gets the value of "margin-bottom-collapse" */
String get marginBottomCollapse;
/** Sets the value of "margin-bottom-collapse" */
void set marginBottomCollapse(var value);
/** Gets the value of "margin-collapse" */
String get marginCollapse;
/** Sets the value of "margin-collapse" */
void set marginCollapse(var value);
/** Gets the value of "margin-end" */
String get marginEnd;
/** Sets the value of "margin-end" */
void set marginEnd(var value);
/** Gets the value of "margin-left" */
String get marginLeft;
/** Sets the value of "margin-left" */
void set marginLeft(var value);
/** Gets the value of "margin-right" */
String get marginRight;
/** Sets the value of "margin-right" */
void set marginRight(var value);
/** Gets the value of "margin-start" */
String get marginStart;
/** Sets the value of "margin-start" */
void set marginStart(var value);
/** Gets the value of "margin-top" */
String get marginTop;
/** Sets the value of "margin-top" */
void set marginTop(var value);
/** Gets the value of "margin-top-collapse" */
String get marginTopCollapse;
/** Sets the value of "margin-top-collapse" */
void set marginTopCollapse(var value);
/** Gets the value of "marquee" */
String get marquee;
/** Sets the value of "marquee" */
void set marquee(var value);
/** Gets the value of "marquee-direction" */
String get marqueeDirection;
/** Sets the value of "marquee-direction" */
void set marqueeDirection(var value);
/** Gets the value of "marquee-increment" */
String get marqueeIncrement;
/** Sets the value of "marquee-increment" */
void set marqueeIncrement(var value);
/** Gets the value of "marquee-repetition" */
String get marqueeRepetition;
/** Sets the value of "marquee-repetition" */
void set marqueeRepetition(var value);
/** Gets the value of "marquee-speed" */
String get marqueeSpeed;
/** Sets the value of "marquee-speed" */
void set marqueeSpeed(var value);
/** Gets the value of "marquee-style" */
String get marqueeStyle;
/** Sets the value of "marquee-style" */
void set marqueeStyle(var value);
/** Gets the value of "mask" */
String get mask;
/** Sets the value of "mask" */
void set mask(var value);
/** Gets the value of "mask-attachment" */
String get maskAttachment;
/** Sets the value of "mask-attachment" */
void set maskAttachment(var value);
/** Gets the value of "mask-box-image" */
String get maskBoxImage;
/** Sets the value of "mask-box-image" */
void set maskBoxImage(var value);
/** Gets the value of "mask-box-image-outset" */
String get maskBoxImageOutset;
/** Sets the value of "mask-box-image-outset" */
void set maskBoxImageOutset(var value);
/** Gets the value of "mask-box-image-repeat" */
String get maskBoxImageRepeat;
/** Sets the value of "mask-box-image-repeat" */
void set maskBoxImageRepeat(var value);
/** Gets the value of "mask-box-image-slice" */
String get maskBoxImageSlice;
/** Sets the value of "mask-box-image-slice" */
void set maskBoxImageSlice(var value);
/** Gets the value of "mask-box-image-source" */
String get maskBoxImageSource;
/** Sets the value of "mask-box-image-source" */
void set maskBoxImageSource(var value);
/** Gets the value of "mask-box-image-width" */
String get maskBoxImageWidth;
/** Sets the value of "mask-box-image-width" */
void set maskBoxImageWidth(var value);
/** Gets the value of "mask-clip" */
String get maskClip;
/** Sets the value of "mask-clip" */
void set maskClip(var value);
/** Gets the value of "mask-composite" */
String get maskComposite;
/** Sets the value of "mask-composite" */
void set maskComposite(var value);
/** Gets the value of "mask-image" */
String get maskImage;
/** Sets the value of "mask-image" */
void set maskImage(var value);
/** Gets the value of "mask-origin" */
String get maskOrigin;
/** Sets the value of "mask-origin" */
void set maskOrigin(var value);
/** Gets the value of "mask-position" */
String get maskPosition;
/** Sets the value of "mask-position" */
void set maskPosition(var value);
/** Gets the value of "mask-position-x" */
String get maskPositionX;
/** Sets the value of "mask-position-x" */
void set maskPositionX(var value);
/** Gets the value of "mask-position-y" */
String get maskPositionY;
/** Sets the value of "mask-position-y" */
void set maskPositionY(var value);
/** Gets the value of "mask-repeat" */
String get maskRepeat;
/** Sets the value of "mask-repeat" */
void set maskRepeat(var value);
/** Gets the value of "mask-repeat-x" */
String get maskRepeatX;
/** Sets the value of "mask-repeat-x" */
void set maskRepeatX(var value);
/** Gets the value of "mask-repeat-y" */
String get maskRepeatY;
/** Sets the value of "mask-repeat-y" */
void set maskRepeatY(var value);
/** Gets the value of "mask-size" */
String get maskSize;
/** Sets the value of "mask-size" */
void set maskSize(var value);
/** Gets the value of "match-nearest-mail-blockquote-color" */
String get matchNearestMailBlockquoteColor;
/** Sets the value of "match-nearest-mail-blockquote-color" */
void set matchNearestMailBlockquoteColor(var value);
/** Gets the value of "max-height" */
String get maxHeight;
/** Sets the value of "max-height" */
void set maxHeight(var value);
/** Gets the value of "max-logical-height" */
String get maxLogicalHeight;
/** Sets the value of "max-logical-height" */
void set maxLogicalHeight(var value);
/** Gets the value of "max-logical-width" */
String get maxLogicalWidth;
/** Sets the value of "max-logical-width" */
void set maxLogicalWidth(var value);
/** Gets the value of "max-width" */
String get maxWidth;
/** Sets the value of "max-width" */
void set maxWidth(var value);
/** Gets the value of "min-height" */
String get minHeight;
/** Sets the value of "min-height" */
void set minHeight(var value);
/** Gets the value of "min-logical-height" */
String get minLogicalHeight;
/** Sets the value of "min-logical-height" */
void set minLogicalHeight(var value);
/** Gets the value of "min-logical-width" */
String get minLogicalWidth;
/** Sets the value of "min-logical-width" */
void set minLogicalWidth(var value);
/** Gets the value of "min-width" */
String get minWidth;
/** Sets the value of "min-width" */
void set minWidth(var value);
/** Gets the value of "nbsp-mode" */
String get nbspMode;
/** Sets the value of "nbsp-mode" */
void set nbspMode(var value);
/** Gets the value of "opacity" */
String get opacity;
/** Sets the value of "opacity" */
void set opacity(var value);
/** Gets the value of "orphans" */
String get orphans;
/** Sets the value of "orphans" */
void set orphans(var value);
/** Gets the value of "outline" */
String get outline;
/** Sets the value of "outline" */
void set outline(var value);
/** Gets the value of "outline-color" */
String get outlineColor;
/** Sets the value of "outline-color" */
void set outlineColor(var value);
/** Gets the value of "outline-offset" */
String get outlineOffset;
/** Sets the value of "outline-offset" */
void set outlineOffset(var value);
/** Gets the value of "outline-style" */
String get outlineStyle;
/** Sets the value of "outline-style" */
void set outlineStyle(var value);
/** Gets the value of "outline-width" */
String get outlineWidth;
/** Sets the value of "outline-width" */
void set outlineWidth(var value);
/** Gets the value of "overflow" */
String get overflow;
/** Sets the value of "overflow" */
void set overflow(var value);
/** Gets the value of "overflow-x" */
String get overflowX;
/** Sets the value of "overflow-x" */
void set overflowX(var value);
/** Gets the value of "overflow-y" */
String get overflowY;
/** Sets the value of "overflow-y" */
void set overflowY(var value);
/** Gets the value of "padding" */
String get padding;
/** Sets the value of "padding" */
void set padding(var value);
/** Gets the value of "padding-after" */
String get paddingAfter;
/** Sets the value of "padding-after" */
void set paddingAfter(var value);
/** Gets the value of "padding-before" */
String get paddingBefore;
/** Sets the value of "padding-before" */
void set paddingBefore(var value);
/** Gets the value of "padding-bottom" */
String get paddingBottom;
/** Sets the value of "padding-bottom" */
void set paddingBottom(var value);
/** Gets the value of "padding-end" */
String get paddingEnd;
/** Sets the value of "padding-end" */
void set paddingEnd(var value);
/** Gets the value of "padding-left" */
String get paddingLeft;
/** Sets the value of "padding-left" */
void set paddingLeft(var value);
/** Gets the value of "padding-right" */
String get paddingRight;
/** Sets the value of "padding-right" */
void set paddingRight(var value);
/** Gets the value of "padding-start" */
String get paddingStart;
/** Sets the value of "padding-start" */
void set paddingStart(var value);
/** Gets the value of "padding-top" */
String get paddingTop;
/** Sets the value of "padding-top" */
void set paddingTop(var value);
/** Gets the value of "page" */
String get page;
/** Sets the value of "page" */
void set page(var value);
/** Gets the value of "page-break-after" */
String get pageBreakAfter;
/** Sets the value of "page-break-after" */
void set pageBreakAfter(var value);
/** Gets the value of "page-break-before" */
String get pageBreakBefore;
/** Sets the value of "page-break-before" */
void set pageBreakBefore(var value);
/** Gets the value of "page-break-inside" */
String get pageBreakInside;
/** Sets the value of "page-break-inside" */
void set pageBreakInside(var value);
/** Gets the value of "perspective" */
String get perspective;
/** Sets the value of "perspective" */
void set perspective(var value);
/** Gets the value of "perspective-origin" */
String get perspectiveOrigin;
/** Sets the value of "perspective-origin" */
void set perspectiveOrigin(var value);
/** Gets the value of "perspective-origin-x" */
String get perspectiveOriginX;
/** Sets the value of "perspective-origin-x" */
void set perspectiveOriginX(var value);
/** Gets the value of "perspective-origin-y" */
String get perspectiveOriginY;
/** Sets the value of "perspective-origin-y" */
void set perspectiveOriginY(var value);
/** Gets the value of "pointer-events" */
String get pointerEvents;
/** Sets the value of "pointer-events" */
void set pointerEvents(var value);
/** Gets the value of "position" */
String get position;
/** Sets the value of "position" */
void set position(var value);
/** Gets the value of "quotes" */
String get quotes;
/** Sets the value of "quotes" */
void set quotes(var value);
/** Gets the value of "region-break-after" */
String get regionBreakAfter;
/** Sets the value of "region-break-after" */
void set regionBreakAfter(var value);
/** Gets the value of "region-break-before" */
String get regionBreakBefore;
/** Sets the value of "region-break-before" */
void set regionBreakBefore(var value);
/** Gets the value of "region-break-inside" */
String get regionBreakInside;
/** Sets the value of "region-break-inside" */
void set regionBreakInside(var value);
/** Gets the value of "region-overflow" */
String get regionOverflow;
/** Sets the value of "region-overflow" */
void set regionOverflow(var value);
/** Gets the value of "resize" */
String get resize;
/** Sets the value of "resize" */
void set resize(var value);
/** Gets the value of "right" */
String get right;
/** Sets the value of "right" */
void set right(var value);
/** Gets the value of "rtl-ordering" */
String get rtlOrdering;
/** Sets the value of "rtl-ordering" */
void set rtlOrdering(var value);
/** Gets the value of "size" */
String get size;
/** Sets the value of "size" */
void set size(var value);
/** Gets the value of "speak" */
String get speak;
/** Sets the value of "speak" */
void set speak(var value);
/** Gets the value of "src" */
String get src;
/** Sets the value of "src" */
void set src(var value);
/** Gets the value of "table-layout" */
String get tableLayout;
/** Sets the value of "table-layout" */
void set tableLayout(var value);
/** Gets the value of "tap-highlight-color" */
String get tapHighlightColor;
/** Sets the value of "tap-highlight-color" */
void set tapHighlightColor(var value);
/** Gets the value of "text-align" */
String get textAlign;
/** Sets the value of "text-align" */
void set textAlign(var value);
/** Gets the value of "text-combine" */
String get textCombine;
/** Sets the value of "text-combine" */
void set textCombine(var value);
/** Gets the value of "text-decoration" */
String get textDecoration;
/** Sets the value of "text-decoration" */
void set textDecoration(var value);
/** Gets the value of "text-decorations-in-effect" */
String get textDecorationsInEffect;
/** Sets the value of "text-decorations-in-effect" */
void set textDecorationsInEffect(var value);
/** Gets the value of "text-emphasis" */
String get textEmphasis;
/** Sets the value of "text-emphasis" */
void set textEmphasis(var value);
/** Gets the value of "text-emphasis-color" */
String get textEmphasisColor;
/** Sets the value of "text-emphasis-color" */
void set textEmphasisColor(var value);
/** Gets the value of "text-emphasis-position" */
String get textEmphasisPosition;
/** Sets the value of "text-emphasis-position" */
void set textEmphasisPosition(var value);
/** Gets the value of "text-emphasis-style" */
String get textEmphasisStyle;
/** Sets the value of "text-emphasis-style" */
void set textEmphasisStyle(var value);
/** Gets the value of "text-fill-color" */
String get textFillColor;
/** Sets the value of "text-fill-color" */
void set textFillColor(var value);
/** Gets the value of "text-indent" */
String get textIndent;
/** Sets the value of "text-indent" */
void set textIndent(var value);
/** Gets the value of "text-line-through" */
String get textLineThrough;
/** Sets the value of "text-line-through" */
void set textLineThrough(var value);
/** Gets the value of "text-line-through-color" */
String get textLineThroughColor;
/** Sets the value of "text-line-through-color" */
void set textLineThroughColor(var value);
/** Gets the value of "text-line-through-mode" */
String get textLineThroughMode;
/** Sets the value of "text-line-through-mode" */
void set textLineThroughMode(var value);
/** Gets the value of "text-line-through-style" */
String get textLineThroughStyle;
/** Sets the value of "text-line-through-style" */
void set textLineThroughStyle(var value);
/** Gets the value of "text-line-through-width" */
String get textLineThroughWidth;
/** Sets the value of "text-line-through-width" */
void set textLineThroughWidth(var value);
/** Gets the value of "text-orientation" */
String get textOrientation;
/** Sets the value of "text-orientation" */
void set textOrientation(var value);
/** Gets the value of "text-overflow" */
String get textOverflow;
/** Sets the value of "text-overflow" */
void set textOverflow(var value);
/** Gets the value of "text-overline" */
String get textOverline;
/** Sets the value of "text-overline" */
void set textOverline(var value);
/** Gets the value of "text-overline-color" */
String get textOverlineColor;
/** Sets the value of "text-overline-color" */
void set textOverlineColor(var value);
/** Gets the value of "text-overline-mode" */
String get textOverlineMode;
/** Sets the value of "text-overline-mode" */
void set textOverlineMode(var value);
/** Gets the value of "text-overline-style" */
String get textOverlineStyle;
/** Sets the value of "text-overline-style" */
void set textOverlineStyle(var value);
/** Gets the value of "text-overline-width" */
String get textOverlineWidth;
/** Sets the value of "text-overline-width" */
void set textOverlineWidth(var value);
/** Gets the value of "text-rendering" */
String get textRendering;
/** Sets the value of "text-rendering" */
void set textRendering(var value);
/** Gets the value of "text-security" */
String get textSecurity;
/** Sets the value of "text-security" */
void set textSecurity(var value);
/** Gets the value of "text-shadow" */
String get textShadow;
/** Sets the value of "text-shadow" */
void set textShadow(var value);
/** Gets the value of "text-size-adjust" */
String get textSizeAdjust;
/** Sets the value of "text-size-adjust" */
void set textSizeAdjust(var value);
/** Gets the value of "text-stroke" */
String get textStroke;
/** Sets the value of "text-stroke" */
void set textStroke(var value);
/** Gets the value of "text-stroke-color" */
String get textStrokeColor;
/** Sets the value of "text-stroke-color" */
void set textStrokeColor(var value);
/** Gets the value of "text-stroke-width" */
String get textStrokeWidth;
/** Sets the value of "text-stroke-width" */
void set textStrokeWidth(var value);
/** Gets the value of "text-transform" */
String get textTransform;
/** Sets the value of "text-transform" */
void set textTransform(var value);
/** Gets the value of "text-underline" */
String get textUnderline;
/** Sets the value of "text-underline" */
void set textUnderline(var value);
/** Gets the value of "text-underline-color" */
String get textUnderlineColor;
/** Sets the value of "text-underline-color" */
void set textUnderlineColor(var value);
/** Gets the value of "text-underline-mode" */
String get textUnderlineMode;
/** Sets the value of "text-underline-mode" */
void set textUnderlineMode(var value);
/** Gets the value of "text-underline-style" */
String get textUnderlineStyle;
/** Sets the value of "text-underline-style" */
void set textUnderlineStyle(var value);
/** Gets the value of "text-underline-width" */
String get textUnderlineWidth;
/** Sets the value of "text-underline-width" */
void set textUnderlineWidth(var value);
/** Gets the value of "top" */
String get top;
/** Sets the value of "top" */
void set top(var value);
/** Gets the value of "transform" */
String get transform;
/** Sets the value of "transform" */
void set transform(var value);
/** Gets the value of "transform-origin" */
String get transformOrigin;
/** Sets the value of "transform-origin" */
void set transformOrigin(var value);
/** Gets the value of "transform-origin-x" */
String get transformOriginX;
/** Sets the value of "transform-origin-x" */
void set transformOriginX(var value);
/** Gets the value of "transform-origin-y" */
String get transformOriginY;
/** Sets the value of "transform-origin-y" */
void set transformOriginY(var value);
/** Gets the value of "transform-origin-z" */
String get transformOriginZ;
/** Sets the value of "transform-origin-z" */
void set transformOriginZ(var value);
/** Gets the value of "transform-style" */
String get transformStyle;
/** Sets the value of "transform-style" */
void set transformStyle(var value);
/** Gets the value of "transition" */
String get transition;
/** Sets the value of "transition" */
void set transition(var value);
/** Gets the value of "transition-delay" */
String get transitionDelay;
/** Sets the value of "transition-delay" */
void set transitionDelay(var value);
/** Gets the value of "transition-duration" */
String get transitionDuration;
/** Sets the value of "transition-duration" */
void set transitionDuration(var value);
/** Gets the value of "transition-property" */
String get transitionProperty;
/** Sets the value of "transition-property" */
void set transitionProperty(var value);
/** Gets the value of "transition-timing-function" */
String get transitionTimingFunction;
/** Sets the value of "transition-timing-function" */
void set transitionTimingFunction(var value);
/** Gets the value of "unicode-bidi" */
String get unicodeBidi;
/** Sets the value of "unicode-bidi" */
void set unicodeBidi(var value);
/** Gets the value of "unicode-range" */
String get unicodeRange;
/** Sets the value of "unicode-range" */
void set unicodeRange(var value);
/** Gets the value of "user-drag" */
String get userDrag;
/** Sets the value of "user-drag" */
void set userDrag(var value);
/** Gets the value of "user-modify" */
String get userModify;
/** Sets the value of "user-modify" */
void set userModify(var value);
/** Gets the value of "user-select" */
String get userSelect;
/** Sets the value of "user-select" */
void set userSelect(var value);
/** Gets the value of "vertical-align" */
String get verticalAlign;
/** Sets the value of "vertical-align" */
void set verticalAlign(var value);
/** Gets the value of "visibility" */
String get visibility;
/** Sets the value of "visibility" */
void set visibility(var value);
/** Gets the value of "white-space" */
String get whiteSpace;
/** Sets the value of "white-space" */
void set whiteSpace(var value);
/** Gets the value of "widows" */
String get widows;
/** Sets the value of "widows" */
void set widows(var value);
/** Gets the value of "width" */
String get width;
/** Sets the value of "width" */
void set width(var value);
/** Gets the value of "word-break" */
String get wordBreak;
/** Sets the value of "word-break" */
void set wordBreak(var value);
/** Gets the value of "word-spacing" */
String get wordSpacing;
/** Sets the value of "word-spacing" */
void set wordSpacing(var value);
/** Gets the value of "word-wrap" */
String get wordWrap;
/** Sets the value of "word-wrap" */
void set wordWrap(var value);
/** Gets the value of "wrap-shape" */
String get wrapShape;
/** Sets the value of "wrap-shape" */
void set wrapShape(var value);
/** Gets the value of "writing-mode" */
String get writingMode;
/** Sets the value of "writing-mode" */
void set writingMode(var value);
/** Gets the value of "z-index" */
String get zIndex;
/** Sets the value of "z-index" */
void set zIndex(var value);
/** Gets the value of "zoom" */
String get zoom;
/** Sets the value of "zoom" */
void set zoom(var value);
}
// 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 if (_Device.isIE) {
_cachedBrowserPrefix = '-ms-';
} else if (_Device.isOpera) {
_cachedBrowserPrefix = '-o-';
} else {
_cachedBrowserPrefix = '-webkit-';
}
}
return _cachedBrowserPrefix;
}
class _CSSStyleDeclarationImpl extends NativeFieldWrapperClass1 implements CSSStyleDeclaration {
String get cssText native "CSSStyleDeclaration_cssText_Getter";
void set cssText(String value) native "CSSStyleDeclaration_cssText_Setter";
int get length native "CSSStyleDeclaration_length_Getter";
CSSRule get parentRule native "CSSStyleDeclaration_parentRule_Getter";
CSSValue getPropertyCSSValue(String propertyName) native "CSSStyleDeclaration_getPropertyCSSValue_Callback";
String getPropertyPriority(String propertyName) native "CSSStyleDeclaration_getPropertyPriority_Callback";
String getPropertyShorthand(String propertyName) native "CSSStyleDeclaration_getPropertyShorthand_Callback";
String _getPropertyValue(String propertyName) native "CSSStyleDeclaration__getPropertyValue_Callback";
bool isPropertyImplicit(String propertyName) native "CSSStyleDeclaration_isPropertyImplicit_Callback";
String item(int index) native "CSSStyleDeclaration_item_Callback";
String removeProperty(String propertyName) native "CSSStyleDeclaration_removeProperty_Callback";
void setProperty(String propertyName, String value, [String priority]) native "CSSStyleDeclaration_setProperty_Callback";
String getPropertyValue(String propertyName) {
var propValue = _getPropertyValue(propertyName);
return propValue != null ? propValue : '';
}
// 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, '');
}
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName CSSStyleRule
abstract class CSSStyleRule implements CSSRule {
/** @domName CSSStyleRule.selectorText */
String selectorText;
/** @domName CSSStyleRule.style */
CSSStyleDeclaration get style;
}
// 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.
// WARNING: Do not edit - generated code.
class _CSSStyleRuleImpl extends _CSSRuleImpl implements CSSStyleRule {
String get selectorText native "CSSStyleRule_selectorText_Getter";
void set selectorText(String value) native "CSSStyleRule_selectorText_Setter";
CSSStyleDeclaration get style native "CSSStyleRule_style_Getter";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName CSSStyleSheet
abstract class CSSStyleSheet implements StyleSheet {
/** @domName CSSStyleSheet.cssRules */
List<CSSRule> get cssRules;
/** @domName CSSStyleSheet.ownerRule */
CSSRule get ownerRule;
/** @domName CSSStyleSheet.rules */
List<CSSRule> get rules;
/** @domName CSSStyleSheet.addRule */
int addRule(String selector, String style, [int index]);
/** @domName CSSStyleSheet.deleteRule */
void deleteRule(int index);
/** @domName CSSStyleSheet.insertRule */
int insertRule(String rule, int index);
/** @domName CSSStyleSheet.removeRule */
void removeRule(int index);
}
// 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.
// WARNING: Do not edit - generated code.
class _CSSStyleSheetImpl extends _StyleSheetImpl implements CSSStyleSheet {
List<CSSRule> get cssRules native "CSSStyleSheet_cssRules_Getter";
CSSRule get ownerRule native "CSSStyleSheet_ownerRule_Getter";
List<CSSRule> get rules native "CSSStyleSheet_rules_Getter";
int addRule(/*DOMString*/ selector, /*DOMString*/ style, [/*unsigned long*/ index]) {
if (?index) {
return _addRule_1(selector, style, index);
}
return _addRule_2(selector, style);
}
int _addRule_1(selector, style, index) native "CSSStyleSheet_addRule_1_Callback";
int _addRule_2(selector, style) native "CSSStyleSheet_addRule_2_Callback";
void deleteRule(int index) native "CSSStyleSheet_deleteRule_Callback";
int insertRule(String rule, int index) native "CSSStyleSheet_insertRule_Callback";
void removeRule(int index) native "CSSStyleSheet_removeRule_Callback";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName WebKitCSSTransformValue
abstract class CSSTransformValue implements List<CSSValue> {
static const int CSS_MATRIX = 11;
static const int CSS_MATRIX3D = 21;
static const int CSS_PERSPECTIVE = 20;
static const int CSS_ROTATE = 4;
static const int CSS_ROTATE3D = 17;
static const int CSS_ROTATEX = 14;
static const int CSS_ROTATEY = 15;
static const int CSS_ROTATEZ = 16;
static const int CSS_SCALE = 5;
static const int CSS_SCALE3D = 19;
static const int CSS_SCALEX = 6;
static const int CSS_SCALEY = 7;
static const int CSS_SCALEZ = 18;
static const int CSS_SKEW = 8;
static const int CSS_SKEWX = 9;
static const int CSS_SKEWY = 10;
static const int CSS_TRANSLATE = 1;
static const int CSS_TRANSLATE3D = 13;
static const int CSS_TRANSLATEX = 2;
static const int CSS_TRANSLATEY = 3;
static const int CSS_TRANSLATEZ = 12;
/** @domName WebKitCSSTransformValue.operationType */
int get operationType;
}
// 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.
// WARNING: Do not edit - generated code.
class _CSSTransformValueImpl extends _CSSValueListImpl implements CSSTransformValue {
int get operationType native "WebKitCSSTransformValue_operationType_Getter";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName CSSUnknownRule
abstract class CSSUnknownRule implements CSSRule {
}
// 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.
// WARNING: Do not edit - generated code.
class _CSSUnknownRuleImpl extends _CSSRuleImpl implements CSSUnknownRule {
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName CSSValue
abstract class CSSValue {
static const int CSS_CUSTOM = 3;
static const int CSS_INHERIT = 0;
static const int CSS_PRIMITIVE_VALUE = 1;
static const int CSS_VALUE_LIST = 2;
/** @domName CSSValue.cssText */
String cssText;
/** @domName CSSValue.cssValueType */
int get cssValueType;
}
// 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.
// WARNING: Do not edit - generated code.
class _CSSValueImpl extends NativeFieldWrapperClass1 implements CSSValue {
String get cssText native "CSSValue_cssText_Getter";
void set cssText(String value) native "CSSValue_cssText_Setter";
int get cssValueType native "CSSValue_cssValueType_Getter";
}
// 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.
// WARNING: Do not edit - generated code.
class _CSSValueListImpl extends _CSSValueImpl implements List<CSSValue> {
int get length native "CSSValueList_length_Getter";
CSSValue operator[](int index) native "CSSValueList_item_Callback";
void operator[]=(int index, CSSValue value) {
throw new UnsupportedError("Cannot assign element of immutable List.");
}
// -- start List<CSSValue> mixins.
// CSSValue is the element type.
// From Iterable<CSSValue>:
Iterator<CSSValue> 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<CSSValue>(this);
}
// From Collection<CSSValue>:
void add(CSSValue value) {
throw new UnsupportedError("Cannot add to immutable List.");
}
void addLast(CSSValue value) {
throw new UnsupportedError("Cannot add to immutable List.");
}
void addAll(Collection<CSSValue> collection) {
throw new UnsupportedError("Cannot add to immutable List.");
}
bool contains(CSSValue element) => _Collections.contains(this, element);
void forEach(void f(CSSValue element)) => _Collections.forEach(this, f);
Collection map(f(CSSValue element)) => _Collections.map(this, [], f);
Collection<CSSValue> filter(bool f(CSSValue element)) =>
_Collections.filter(this, <CSSValue>[], f);
bool every(bool f(CSSValue element)) => _Collections.every(this, f);
bool some(bool f(CSSValue element)) => _Collections.some(this, f);
bool get isEmpty => this.length == 0;
// From List<CSSValue>:
void sort([Comparator<CSSValue> compare = Comparable.compare]) {
throw new UnsupportedError("Cannot sort immutable List.");
}
int indexOf(CSSValue element, [int start = 0]) =>
_Lists.indexOf(this, element, start, this.length);
int lastIndexOf(CSSValue element, [int start]) {
if (start == null) start = length - 1;
return _Lists.lastIndexOf(this, element, start);
}
CSSValue get last => this[length - 1];
CSSValue removeLast() {
throw new UnsupportedError("Cannot removeLast on immutable List.");
}
void setRange(int start, int rangeLength, List<CSSValue> from, [int startFrom]) {
throw new UnsupportedError("Cannot setRange on immutable List.");
}
void removeRange(int start, int rangeLength) {
throw new UnsupportedError("Cannot removeRange on immutable List.");
}
void insertRange(int start, int rangeLength, [CSSValue initialValue]) {
throw new UnsupportedError("Cannot insertRange on immutable List.");
}
List<CSSValue> getRange(int start, int rangeLength) =>
_Lists.getRange(this, start, rangeLength, <CSSValue>[]);
// -- end List<CSSValue> mixins.
CSSValue item(int index) native "CSSValueList_item_Callback";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName HTMLCanvasElement
abstract class CanvasElement implements Element {
factory CanvasElement({int width, int height}) {
if (!?width) {
return _Elements.createCanvasElement();
}
if (!?height) {
return _Elements.createCanvasElement(width);
}
return _Elements.createCanvasElement(width, height);
}
/** @domName HTMLCanvasElement.height */
int height;
/** @domName HTMLCanvasElement.width */
int width;
/** @domName HTMLCanvasElement.getContext */
Object getContext(String contextId);
/** @domName HTMLCanvasElement.toDataURL */
String toDataURL(String type, [num quality]);
final CanvasRenderingContext2D context2d;
}
// 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 _CanvasElementImpl extends _ElementImpl_Merged implements CanvasElement {
int get height native "HTMLCanvasElement_height_Getter";
void set height(int value) native "HTMLCanvasElement_height_Setter";
int get width native "HTMLCanvasElement_width_Getter";
void set width(int value) native "HTMLCanvasElement_width_Setter";
Object getContext(String contextId) native "HTMLCanvasElement_getContext_Callback";
String toDataURL(String type, [num quality]) native "HTMLCanvasElement_toDataURL_Callback";
CanvasRenderingContext2D get context2d => getContext('2d');
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName CanvasGradient
abstract class CanvasGradient {
/** @domName CanvasGradient.addColorStop */
void addColorStop(num offset, String color);
}
// 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.
// WARNING: Do not edit - generated code.
class _CanvasGradientImpl extends NativeFieldWrapperClass1 implements CanvasGradient {
void addColorStop(num offset, String color) native "CanvasGradient_addColorStop_Callback";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName CanvasPattern
abstract class CanvasPattern {
}
// 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.
// WARNING: Do not edit - generated code.
class _CanvasPatternImpl extends NativeFieldWrapperClass1 implements CanvasPattern {
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName CanvasRenderingContext
abstract class CanvasRenderingContext {
/** @domName CanvasRenderingContext.canvas */
CanvasElement get canvas;
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName CanvasRenderingContext2D
abstract class CanvasRenderingContext2D implements CanvasRenderingContext {
/** @domName CanvasRenderingContext2D.fillStyle */
dynamic fillStyle;
/** @domName CanvasRenderingContext2D.font */
String font;
/** @domName CanvasRenderingContext2D.globalAlpha */
num globalAlpha;
/** @domName CanvasRenderingContext2D.globalCompositeOperation */
String globalCompositeOperation;
/** @domName CanvasRenderingContext2D.lineCap */
String lineCap;
/** @domName CanvasRenderingContext2D.lineDashOffset */
num lineDashOffset;
/** @domName CanvasRenderingContext2D.lineJoin */
String lineJoin;
/** @domName CanvasRenderingContext2D.lineWidth */
num lineWidth;
/** @domName CanvasRenderingContext2D.miterLimit */
num miterLimit;
/** @domName CanvasRenderingContext2D.shadowBlur */
num shadowBlur;
/** @domName CanvasRenderingContext2D.shadowColor */
String shadowColor;
/** @domName CanvasRenderingContext2D.shadowOffsetX */
num shadowOffsetX;
/** @domName CanvasRenderingContext2D.shadowOffsetY */
num shadowOffsetY;
/** @domName CanvasRenderingContext2D.strokeStyle */
dynamic strokeStyle;
/** @domName CanvasRenderingContext2D.textAlign */
String textAlign;
/** @domName CanvasRenderingContext2D.textBaseline */
String textBaseline;
/** @domName CanvasRenderingContext2D.webkitBackingStorePixelRatio */
num get webkitBackingStorePixelRatio;
/** @domName CanvasRenderingContext2D.webkitImageSmoothingEnabled */
bool webkitImageSmoothingEnabled;
/** @domName CanvasRenderingContext2D.webkitLineDash */
List webkitLineDash;
/** @domName CanvasRenderingContext2D.webkitLineDashOffset */
num webkitLineDashOffset;
/** @domName CanvasRenderingContext2D.arc */
void arc(num x, num y, num radius, num startAngle, num endAngle, bool anticlockwise);
/** @domName CanvasRenderingContext2D.arcTo */
void arcTo(num x1, num y1, num x2, num y2, num radius);
/** @domName CanvasRenderingContext2D.beginPath */
void beginPath();
/** @domName CanvasRenderingContext2D.bezierCurveTo */
void bezierCurveTo(num cp1x, num cp1y, num cp2x, num cp2y, num x, num y);
/** @domName CanvasRenderingContext2D.clearRect */
void clearRect(num x, num y, num width, num height);
/** @domName CanvasRenderingContext2D.clearShadow */
void clearShadow();
/** @domName CanvasRenderingContext2D.clip */
void clip();
/** @domName CanvasRenderingContext2D.closePath */
void closePath();
/** @domName CanvasRenderingContext2D.createImageData */
ImageData createImageData(imagedata_OR_sw, [num sh]);
/** @domName CanvasRenderingContext2D.createLinearGradient */
CanvasGradient createLinearGradient(num x0, num y0, num x1, num y1);
/** @domName CanvasRenderingContext2D.createPattern */
CanvasPattern createPattern(canvas_OR_image, String repetitionType);
/** @domName CanvasRenderingContext2D.createRadialGradient */
CanvasGradient createRadialGradient(num x0, num y0, num r0, num x1, num y1, num r1);
/** @domName CanvasRenderingContext2D.drawImage */
void drawImage(canvas_OR_image_OR_video, num sx_OR_x, num sy_OR_y, [num sw_OR_width, num height_OR_sh, num dx, num dy, num dw, num dh]);
/** @domName CanvasRenderingContext2D.drawImageFromRect */
void drawImageFromRect(ImageElement image, [num sx, num sy, num sw, num sh, num dx, num dy, num dw, num dh, String compositeOperation]);
/** @domName CanvasRenderingContext2D.fill */
void fill();
/** @domName CanvasRenderingContext2D.fillRect */
void fillRect(num x, num y, num width, num height);
/** @domName CanvasRenderingContext2D.fillText */
void fillText(String text, num x, num y, [num maxWidth]);
/** @domName CanvasRenderingContext2D.getImageData */
ImageData getImageData(num sx, num sy, num sw, num sh);
/** @domName CanvasRenderingContext2D.getLineDash */
List<num> getLineDash();
/** @domName CanvasRenderingContext2D.isPointInPath */
bool isPointInPath(num x, num y);
/** @domName CanvasRenderingContext2D.lineTo */
void lineTo(num x, num y);
/** @domName CanvasRenderingContext2D.measureText */
TextMetrics measureText(String text);
/** @domName CanvasRenderingContext2D.moveTo */
void moveTo(num x, num y);
/** @domName CanvasRenderingContext2D.putImageData */
void putImageData(ImageData imagedata, num dx, num dy, [num dirtyX, num dirtyY, num dirtyWidth, num dirtyHeight]);
/** @domName CanvasRenderingContext2D.quadraticCurveTo */
void quadraticCurveTo(num cpx, num cpy, num x, num y);
/** @domName CanvasRenderingContext2D.rect */
void rect(num x, num y, num width, num height);
/** @domName CanvasRenderingContext2D.restore */
void restore();
/** @domName CanvasRenderingContext2D.rotate */
void rotate(num angle);
/** @domName CanvasRenderingContext2D.save */
void save();
/** @domName CanvasRenderingContext2D.scale */
void scale(num sx, num sy);
/** @domName CanvasRenderingContext2D.setAlpha */
void setAlpha(num alpha);
/** @domName CanvasRenderingContext2D.setCompositeOperation */
void setCompositeOperation(String compositeOperation);
/** @domName CanvasRenderingContext2D.setLineCap */
void setLineCap(String cap);
/** @domName CanvasRenderingContext2D.setLineDash */
void setLineDash(List<num> dash);
/** @domName CanvasRenderingContext2D.setLineJoin */
void setLineJoin(String join);
/** @domName CanvasRenderingContext2D.setLineWidth */
void setLineWidth(num width);
/** @domName CanvasRenderingContext2D.setMiterLimit */
void setMiterLimit(num limit);
/** @domName CanvasRenderingContext2D.setShadow */
void setShadow(num width, num height, num blur, [c_OR_color_OR_grayLevel_OR_r, num alpha_OR_g_OR_m, num b_OR_y, num a_OR_k, num a]);
/** @domName CanvasRenderingContext2D.setTransform */
void setTransform(num m11, num m12, num m21, num m22, num dx, num dy);
/** @domName CanvasRenderingContext2D.stroke */
void stroke();
/** @domName CanvasRenderingContext2D.strokeRect */
void strokeRect(num x, num y, num width, num height, [num lineWidth]);
/** @domName CanvasRenderingContext2D.strokeText */
void strokeText(String text, num x, num y, [num maxWidth]);
/** @domName CanvasRenderingContext2D.transform */
void transform(num m11, num m12, num m21, num m22, num dx, num dy);
/** @domName CanvasRenderingContext2D.translate */
void translate(num tx, num ty);
/** @domName CanvasRenderingContext2D.webkitGetImageDataHD */
ImageData webkitGetImageDataHD(num sx, num sy, num sw, num sh);
/** @domName CanvasRenderingContext2D.webkitPutImageDataHD */
void webkitPutImageDataHD(ImageData imagedata, num dx, num dy, [num dirtyX, num dirtyY, num dirtyWidth, num dirtyHeight]);
/**
* Sets the color used inside shapes.
* [r], [g], [b] are 0-255, [a] is 0-1.
*/
void setFillColorRgb(int r, int g, int b, [num a]);
/**
* Sets the color used inside shapes.
* [h] is in degrees, 0-360.
* [s], [l] are in percent, 0-100.
* [a] is 0-1.
*/
void setFillColorHsl(int h, num s, num l, [num a]);
/**
* Sets the color used for stroking shapes.
* [r], [g], [b] are 0-255, [a] is 0-1.
*/
void setStrokeColorRgb(int r, int g, int b, [num a]);
/**
* Sets the color used for stroking shapes.
* [h] is in degrees, 0-360.
* [s], [l] are in percent, 0-100.
* [a] is 0-1.
*/
void setStrokeColorHsl(int h, num s, num l, [num a]);
}
// 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 _CanvasRenderingContext2DImpl extends _CanvasRenderingContextImpl implements CanvasRenderingContext2D {
dynamic get fillStyle native "CanvasRenderingContext2D_fillStyle_Getter";
void set fillStyle(dynamic value) native "CanvasRenderingContext2D_fillStyle_Setter";
String get font native "CanvasRenderingContext2D_font_Getter";
void set font(String value) native "CanvasRenderingContext2D_font_Setter";
num get globalAlpha native "CanvasRenderingContext2D_globalAlpha_Getter";
void set globalAlpha(num value) native "CanvasRenderingContext2D_globalAlpha_Setter";
String get globalCompositeOperation native "CanvasRenderingContext2D_globalCompositeOperation_Getter";
void set globalCompositeOperation(String value) native "CanvasRenderingContext2D_globalCompositeOperation_Setter";
String get lineCap native "CanvasRenderingContext2D_lineCap_Getter";
void set lineCap(String value) native "CanvasRenderingContext2D_lineCap_Setter";
num get lineDashOffset native "CanvasRenderingContext2D_lineDashOffset_Getter";
void set lineDashOffset(num value) native "CanvasRenderingContext2D_lineDashOffset_Setter";
String get lineJoin native "CanvasRenderingContext2D_lineJoin_Getter";
void set lineJoin(String value) native "CanvasRenderingContext2D_lineJoin_Setter";
num get lineWidth native "CanvasRenderingContext2D_lineWidth_Getter";
void set lineWidth(num value) native "CanvasRenderingContext2D_lineWidth_Setter";
num get miterLimit native "CanvasRenderingContext2D_miterLimit_Getter";
void set miterLimit(num value) native "CanvasRenderingContext2D_miterLimit_Setter";
num get shadowBlur native "CanvasRenderingContext2D_shadowBlur_Getter";
void set shadowBlur(num value) native "CanvasRenderingContext2D_shadowBlur_Setter";
String get shadowColor native "CanvasRenderingContext2D_shadowColor_Getter";
void set shadowColor(String value) native "CanvasRenderingContext2D_shadowColor_Setter";
num get shadowOffsetX native "CanvasRenderingContext2D_shadowOffsetX_Getter";
void set shadowOffsetX(num value) native "CanvasRenderingContext2D_shadowOffsetX_Setter";
num get shadowOffsetY native "CanvasRenderingContext2D_shadowOffsetY_Getter";
void set shadowOffsetY(num value) native "CanvasRenderingContext2D_shadowOffsetY_Setter";
dynamic get strokeStyle native "CanvasRenderingContext2D_strokeStyle_Getter";
void set strokeStyle(dynamic value) native "CanvasRenderingContext2D_strokeStyle_Setter";
String get textAlign native "CanvasRenderingContext2D_textAlign_Getter";
void set textAlign(String value) native "CanvasRenderingContext2D_textAlign_Setter";
String get textBaseline native "CanvasRenderingContext2D_textBaseline_Getter";
void set textBaseline(String value) native "CanvasRenderingContext2D_textBaseline_Setter";
num get webkitBackingStorePixelRatio native "CanvasRenderingContext2D_webkitBackingStorePixelRatio_Getter";
bool get webkitImageSmoothingEnabled native "CanvasRenderingContext2D_webkitImageSmoothingEnabled_Getter";
void set webkitImageSmoothingEnabled(bool value) native "CanvasRenderingContext2D_webkitImageSmoothingEnabled_Setter";
List get webkitLineDash native "CanvasRenderingContext2D_webkitLineDash_Getter";
void set webkitLineDash(List value) native "CanvasRenderingContext2D_webkitLineDash_Setter";
num get webkitLineDashOffset native "CanvasRenderingContext2D_webkitLineDashOffset_Getter";
void set webkitLineDashOffset(num value) native "CanvasRenderingContext2D_webkitLineDashOffset_Setter";
void arc(num x, num y, num radius, num startAngle, num endAngle, bool anticlockwise) native "CanvasRenderingContext2D_arc_Callback";
void arcTo(num x1, num y1, num x2, num y2, num radius) native "CanvasRenderingContext2D_arcTo_Callback";
void beginPath() native "CanvasRenderingContext2D_beginPath_Callback";
void bezierCurveTo(num cp1x, num cp1y, num cp2x, num cp2y, num x, num y) native "CanvasRenderingContext2D_bezierCurveTo_Callback";
void clearRect(num x, num y, num width, num height) native "CanvasRenderingContext2D_clearRect_Callback";
void clearShadow() native "CanvasRenderingContext2D_clearShadow_Callback";
void clip() native "CanvasRenderingContext2D_clip_Callback";
void closePath() native "CanvasRenderingContext2D_closePath_Callback";
ImageData createImageData(imagedata_OR_sw, [/*float*/ sh]) {
if ((imagedata_OR_sw is ImageData || imagedata_OR_sw == null) && !?sh) {
return _createImageData_1(imagedata_OR_sw);
}
if ((imagedata_OR_sw is num || imagedata_OR_sw == null) && (sh is num || sh == null)) {
return _createImageData_2(imagedata_OR_sw, sh);
}
throw "Incorrect number or type of arguments";
}
ImageData _createImageData_1(imagedata_OR_sw) native "CanvasRenderingContext2D_createImageData_1_Callback";
ImageData _createImageData_2(imagedata_OR_sw, sh) native "CanvasRenderingContext2D_createImageData_2_Callback";
CanvasGradient createLinearGradient(num x0, num y0, num x1, num y1) native "CanvasRenderingContext2D_createLinearGradient_Callback";
CanvasPattern createPattern(canvas_OR_image, /*DOMString*/ repetitionType) {
if ((canvas_OR_image is CanvasElement || canvas_OR_image == null) && (repetitionType is String || repetitionType == null)) {
return _createPattern_1(canvas_OR_image, repetitionType);
}
if ((canvas_OR_image is ImageElement || canvas_OR_image == null) && (repetitionType is String || repetitionType == null)) {
return _createPattern_2(canvas_OR_image, repetitionType);
}
throw "Incorrect number or type of arguments";
}
CanvasPattern _createPattern_1(canvas_OR_image, repetitionType) native "CanvasRenderingContext2D_createPattern_1_Callback";
CanvasPattern _createPattern_2(canvas_OR_image, repetitionType) native "CanvasRenderingContext2D_createPattern_2_Callback";
CanvasGradient createRadialGradient(num x0, num y0, num r0, num x1, num y1, num r1) native "CanvasRenderingContext2D_createRadialGradient_Callback";
void drawImage(canvas_OR_image_OR_video, /*float*/ sx_OR_x, /*float*/ sy_OR_y, [/*float*/ sw_OR_width, /*float*/ height_OR_sh, /*float*/ dx, /*float*/ dy, /*float*/ dw, /*float*/ dh]) {
if ((canvas_OR_image_OR_video is ImageElement || canvas_OR_image_OR_video == null) && (sx_OR_x is num || sx_OR_x == null) && (sy_OR_y is num || sy_OR_y == null) && !?sw_OR_width && !?height_OR_sh && !?dx && !?dy && !?dw && !?dh) {
_drawImage_1(canvas_OR_image_OR_video, sx_OR_x, sy_OR_y);
return;
}
if ((canvas_OR_image_OR_video is ImageElement || canvas_OR_image_OR_video == null) && (sx_OR_x is num || sx_OR_x == null) && (sy_OR_y is num || sy_OR_y == null) && (sw_OR_width is num || sw_OR_width == null) && (height_OR_sh is num || height_OR_sh == null) && !?dx && !?dy && !?dw && !?dh) {
_drawImage_2(canvas_OR_image_OR_video, sx_OR_x, sy_OR_y, sw_OR_width, height_OR_sh);
return;
}
if ((canvas_OR_image_OR_video is ImageElement || canvas_OR_image_OR_video == null) && (sx_OR_x is num || sx_OR_x == null) && (sy_OR_y is num || sy_OR_y == null) && (sw_OR_width is num || sw_OR_width == null) && (height_OR_sh is num || height_OR_sh == null) && (dx is num || dx == null) && (dy is num || dy == null) && (dw is num || dw == null) && (dh is num || dh == null)) {
_drawImage_3(canvas_OR_image_OR_video, sx_OR_x, sy_OR_y, sw_OR_width, height_OR_sh, dx, dy, dw, dh);
return;
}
if ((canvas_OR_image_OR_video is CanvasElement || canvas_OR_image_OR_video == null) && (sx_OR_x is num || sx_OR_x == null) && (sy_OR_y is num || sy_OR_y == null) && !?sw_OR_width && !?height_OR_sh && !?dx && !?dy && !?dw && !?dh) {
_drawImage_4(canvas_OR_image_OR_video, sx_OR_x, sy_OR_y);
return;
}
if ((canvas_OR_image_OR_video is CanvasElement || canvas_OR_image_OR_video == null) && (sx_OR_x is num || sx_OR_x == null) && (sy_OR_y is num || sy_OR_y == null) && (sw_OR_width is num || sw_OR_width == null) && (height_OR_sh is num || height_OR_sh == null) && !?dx && !?dy && !?dw && !?dh) {
_drawImage_5(canvas_OR_image_OR_video, sx_OR_x, sy_OR_y, sw_OR_width, height_OR_sh);
return;
}
if ((canvas_OR_image_OR_video is CanvasElement || canvas_OR_image_OR_video == null) && (sx_OR_x is num || sx_OR_x == null) && (sy_OR_y is num || sy_OR_y == null) && (sw_OR_width is num || sw_OR_width == null) && (height_OR_sh is num || height_OR_sh == null) && (dx is num || dx == null) && (dy is num || dy == null) && (dw is num || dw == null) && (dh is num || dh == null)) {
_drawImage_6(canvas_OR_image_OR_video, sx_OR_x, sy_OR_y, sw_OR_width, height_OR_sh, dx, dy, dw, dh);
return;
}
if ((canvas_OR_image_OR_video is VideoElement || canvas_OR_image_OR_video == null) && (sx_OR_x is num || sx_OR_x == null) && (sy_OR_y is num || sy_OR_y == null) && !?sw_OR_width && !?height_OR_sh && !?dx && !?dy && !?dw && !?dh) {
_drawImage_7(canvas_OR_image_OR_video, sx_OR_x, sy_OR_y);
return;
}
if ((canvas_OR_image_OR_video is VideoElement || canvas_OR_image_OR_video == null) && (sx_OR_x is num || sx_OR_x == null) && (sy_OR_y is num || sy_OR_y == null) && (sw_OR_width is num || sw_OR_width == null) && (height_OR_sh is num || height_OR_sh == null) && !?dx && !?dy && !?dw && !?dh) {
_drawImage_8(canvas_OR_image_OR_video, sx_OR_x, sy_OR_y, sw_OR_width, height_OR_sh);
return;
}
if ((canvas_OR_image_OR_video is VideoElement || canvas_OR_image_OR_video == null) && (sx_OR_x is num || sx_OR_x == null) && (sy_OR_y is num || sy_OR_y == null) && (sw_OR_width is num || sw_OR_width == null) && (height_OR_sh is num || height_OR_sh == null) && (dx is num || dx == null) && (dy is num || dy == null) && (dw is num || dw == null) && (dh is num || dh == null)) {
_drawImage_9(canvas_OR_image_OR_video, sx_OR_x, sy_OR_y, sw_OR_width, height_OR_sh, dx, dy, dw, dh);
return;
}
throw "Incorrect number or type of arguments";
}
void _drawImage_1(canvas_OR_image_OR_video, sx_OR_x, sy_OR_y) native "CanvasRenderingContext2D_drawImage_1_Callback";
void _drawImage_2(canvas_OR_image_OR_video, sx_OR_x, sy_OR_y, sw_OR_width, height_OR_sh) native "CanvasRenderingContext2D_drawImage_2_Callback";
void _drawImage_3(canvas_OR_image_OR_video, sx_OR_x, sy_OR_y, sw_OR_width, height_OR_sh, dx, dy, dw, dh) native "CanvasRenderingContext2D_drawImage_3_Callback";
void _drawImage_4(canvas_OR_image_OR_video, sx_OR_x, sy_OR_y) native "CanvasRenderingContext2D_drawImage_4_Callback";
void _drawImage_5(canvas_OR_image_OR_video, sx_OR_x, sy_OR_y, sw_OR_width, height_OR_sh) native "CanvasRenderingContext2D_drawImage_5_Callback";
void _drawImage_6(canvas_OR_image_OR_video, sx_OR_x, sy_OR_y, sw_OR_width, height_OR_sh, dx, dy, dw, dh) native "CanvasRenderingContext2D_drawImage_6_Callback";
void _drawImage_7(canvas_OR_image_OR_video, sx_OR_x, sy_OR_y) native "CanvasRenderingContext2D_drawImage_7_Callback";
void _drawImage_8(canvas_OR_image_OR_video, sx_OR_x, sy_OR_y, sw_OR_width, height_OR_sh) native "CanvasRenderingContext2D_drawImage_8_Callback";
void _drawImage_9(canvas_OR_image_OR_video, sx_OR_x, sy_OR_y, sw_OR_width, height_OR_sh, dx, dy, dw, dh) native "CanvasRenderingContext2D_drawImage_9_Callback";
void drawImageFromRect(/*HTMLImageElement*/ image, [/*float*/ sx, /*float*/ sy, /*float*/ sw, /*float*/ sh, /*float*/ dx, /*float*/ dy, /*float*/ dw, /*float*/ dh, /*DOMString*/ compositeOperation]) {
if (?compositeOperation) {
_drawImageFromRect_1(image, sx, sy, sw, sh, dx, dy, dw, dh, compositeOperation);
return;
}
if (?dh) {
_drawImageFromRect_2(image, sx, sy, sw, sh, dx, dy, dw, dh);
return;
}
if (?dw) {
_drawImageFromRect_3(image, sx, sy, sw, sh, dx, dy, dw);
return;
}
if (?dy) {
_drawImageFromRect_4(image, sx, sy, sw, sh, dx, dy);
return;
}
if (?dx) {
_drawImageFromRect_5(image, sx, sy, sw, sh, dx);
return;
}
if (?sh) {
_drawImageFromRect_6(image, sx, sy, sw, sh);
return;
}
if (?sw) {
_drawImageFromRect_7(image, sx, sy, sw);
return;
}
if (?sy) {
_drawImageFromRect_8(image, sx, sy);
return;
}
if (?sx) {
_drawImageFromRect_9(image, sx);
return;
}
_drawImageFromRect_10(image);
}
void _drawImageFromRect_1(image, sx, sy, sw, sh, dx, dy, dw, dh, compositeOperation) native "CanvasRenderingContext2D_drawImageFromRect_1_Callback";
void _drawImageFromRect_2(image, sx, sy, sw, sh, dx, dy, dw, dh) native "CanvasRenderingContext2D_drawImageFromRect_2_Callback";
void _drawImageFromRect_3(image, sx, sy, sw, sh, dx, dy, dw) native "CanvasRenderingContext2D_drawImageFromRect_3_Callback";
void _drawImageFromRect_4(image, sx, sy, sw, sh, dx, dy) native "CanvasRenderingContext2D_drawImageFromRect_4_Callback";
void _drawImageFromRect_5(image, sx, sy, sw, sh, dx) native "CanvasRenderingContext2D_drawImageFromRect_5_Callback";
void _drawImageFromRect_6(image, sx, sy, sw, sh) native "CanvasRenderingContext2D_drawImageFromRect_6_Callback";
void _drawImageFromRect_7(image, sx, sy, sw) native "CanvasRenderingContext2D_drawImageFromRect_7_Callback";
void _drawImageFromRect_8(image, sx, sy) native "CanvasRenderingContext2D_drawImageFromRect_8_Callback";
void _drawImageFromRect_9(image, sx) native "CanvasRenderingContext2D_drawImageFromRect_9_Callback";
void _drawImageFromRect_10(image) native "CanvasRenderingContext2D_drawImageFromRect_10_Callback";
void fill() native "CanvasRenderingContext2D_fill_Callback";
void fillRect(num x, num y, num width, num height) native "CanvasRenderingContext2D_fillRect_Callback";
void fillText(/*DOMString*/ text, /*float*/ x, /*float*/ y, [/*float*/ maxWidth]) {
if (?maxWidth) {
_fillText_1(text, x, y, maxWidth);
return;
}
_fillText_2(text, x, y);
}
void _fillText_1(text, x, y, maxWidth) native "CanvasRenderingContext2D_fillText_1_Callback";
void _fillText_2(text, x, y) native "CanvasRenderingContext2D_fillText_2_Callback";
ImageData getImageData(num sx, num sy, num sw, num sh) native "CanvasRenderingContext2D_getImageData_Callback";
List<num> getLineDash() native "CanvasRenderingContext2D_getLineDash_Callback";
bool isPointInPath(num x, num y) native "CanvasRenderingContext2D_isPointInPath_Callback";
void lineTo(num x, num y) native "CanvasRenderingContext2D_lineTo_Callback";
TextMetrics measureText(String text) native "CanvasRenderingContext2D_measureText_Callback";
void moveTo(num x, num y) native "CanvasRenderingContext2D_moveTo_Callback";
void putImageData(/*ImageData*/ imagedata, /*float*/ dx, /*float*/ dy, [/*float*/ dirtyX, /*float*/ dirtyY, /*float*/ dirtyWidth, /*float*/ dirtyHeight]) {
if ((imagedata is ImageData || imagedata == null) && (dx is num || dx == null) && (dy is num || dy == null) && !?dirtyX && !?dirtyY && !?dirtyWidth && !?dirtyHeight) {
_putImageData_1(imagedata, dx, dy);
return;
}
if ((imagedata is ImageData || imagedata == null) && (dx is num || dx == null) && (dy is num || dy == null) && (dirtyX is num || dirtyX == null) && (dirtyY is num || dirtyY == null) && (dirtyWidth is num || dirtyWidth == null) && (dirtyHeight is num || dirtyHeight == null)) {
_putImageData_2(imagedata, dx, dy, dirtyX, dirtyY, dirtyWidth, dirtyHeight);
return;
}
throw "Incorrect number or type of arguments";
}
void _putImageData_1(imagedata, dx, dy) native "CanvasRenderingContext2D_putImageData_1_Callback";
void _putImageData_2(imagedata, dx, dy, dirtyX, dirtyY, dirtyWidth, dirtyHeight) native "CanvasRenderingContext2D_putImageData_2_Callback";
void quadraticCurveTo(num cpx, num cpy, num x, num y) native "CanvasRenderingContext2D_quadraticCurveTo_Callback";
void rect(num x, num y, num width, num height) native "CanvasRenderingContext2D_rect_Callback";
void restore() native "CanvasRenderingContext2D_restore_Callback";
void rotate(num angle) native "CanvasRenderingContext2D_rotate_Callback";
void save() native "CanvasRenderingContext2D_save_Callback";
void scale(num sx, num sy) native "CanvasRenderingContext2D_scale_Callback";
void setAlpha(num alpha) native "CanvasRenderingContext2D_setAlpha_Callback";
void setCompositeOperation(String compositeOperation) native "CanvasRenderingContext2D_setCompositeOperation_Callback";
void setLineCap(String cap) native "CanvasRenderingContext2D_setLineCap_Callback";
void setLineDash(List<num> dash) native "CanvasRenderingContext2D_setLineDash_Callback";
void setLineJoin(String join) native "CanvasRenderingContext2D_setLineJoin_Callback";
void setLineWidth(num width) native "CanvasRenderingContext2D_setLineWidth_Callback";
void setMiterLimit(num limit) native "CanvasRenderingContext2D_setMiterLimit_Callback";
void setShadow(/*float*/ width, /*float*/ height, /*float*/ blur, [c_OR_color_OR_grayLevel_OR_r, /*float*/ alpha_OR_g_OR_m, /*float*/ b_OR_y, /*float*/ a_OR_k, /*float*/ a]) {
if ((width is num || width == null) && (height is num || height == null) && (blur is num || blur == null) && !?c_OR_color_OR_grayLevel_OR_r && !?alpha_OR_g_OR_m && !?b_OR_y && !?a_OR_k && !?a) {
_setShadow_1(width, height, blur);
return;
}
if ((width is num || width == null) && (height is num || height == null) && (blur is num || blur == null) && (c_OR_color_OR_grayLevel_OR_r is String || c_OR_color_OR_grayLevel_OR_r == null) && !?alpha_OR_g_OR_m && !?b_OR_y && !?a_OR_k && !?a) {
_setShadow_2(width, height, blur, c_OR_color_OR_grayLevel_OR_r);
return;
}
if ((width is num || width == null) && (height is num || height == null) && (blur is num || blur == null) && (c_OR_color_OR_grayLevel_OR_r is String || c_OR_color_OR_grayLevel_OR_r == null) && (alpha_OR_g_OR_m is num || alpha_OR_g_OR_m == null) && !?b_OR_y && !?a_OR_k && !?a) {
_setShadow_3(width, height, blur, c_OR_color_OR_grayLevel_OR_r, alpha_OR_g_OR_m);
return;
}
if ((width is num || width == null) && (height is num || height == null) && (blur is num || blur == null) && (c_OR_color_OR_grayLevel_OR_r is num || c_OR_color_OR_grayLevel_OR_r == null) && !?alpha_OR_g_OR_m && !?b_OR_y && !?a_OR_k && !?a) {
_setShadow_4(width, height, blur, c_OR_color_OR_grayLevel_OR_r);
return;
}
if ((width is num || width == null) && (height is num || height == null) && (blur is num || blur == null) && (c_OR_color_OR_grayLevel_OR_r is num || c_OR_color_OR_grayLevel_OR_r == null) && (alpha_OR_g_OR_m is num || alpha_OR_g_OR_m == null) && !?b_OR_y && !?a_OR_k && !?a) {
_setShadow_5(width, height, blur, c_OR_color_OR_grayLevel_OR_r, alpha_OR_g_OR_m);
return;
}
if ((width is num || width == null) && (height is num || height == null) && (blur is num || blur == null) && (c_OR_color_OR_grayLevel_OR_r is num || c_OR_color_OR_grayLevel_OR_r == null) && (alpha_OR_g_OR_m is num || alpha_OR_g_OR_m == null) && (b_OR_y is num || b_OR_y == null) && (a_OR_k is num || a_OR_k == null) && !?a) {
_setShadow_6(width, height, blur, c_OR_color_OR_grayLevel_OR_r, alpha_OR_g_OR_m, b_OR_y, a_OR_k);
return;
}
if ((width is num || width == null) && (height is num || height == null) && (blur is num || blur == null) && (c_OR_color_OR_grayLevel_OR_r is num || c_OR_color_OR_grayLevel_OR_r == null) && (alpha_OR_g_OR_m is num || alpha_OR_g_OR_m == null) && (b_OR_y is num || b_OR_y == null) && (a_OR_k is num || a_OR_k == null) && (a is num || a == null)) {
_setShadow_7(width, height, blur, c_OR_color_OR_grayLevel_OR_r, alpha_OR_g_OR_m, b_OR_y, a_OR_k, a);
return;
}
throw "Incorrect number or type of arguments";
}
void _setShadow_1(width, height, blur) native "CanvasRenderingContext2D_setShadow_1_Callback";
void _setShadow_2(width, height, blur, c_OR_color_OR_grayLevel_OR_r) native "CanvasRenderingContext2D_setShadow_2_Callback";
void _setShadow_3(width, height, blur, c_OR_color_OR_grayLevel_OR_r, alpha_OR_g_OR_m) native "CanvasRenderingContext2D_setShadow_3_Callback";
void _setShadow_4(width, height, blur, c_OR_color_OR_grayLevel_OR_r) native "CanvasRenderingContext2D_setShadow_4_Callback";
void _setShadow_5(width, height, blur, c_OR_color_OR_grayLevel_OR_r, alpha_OR_g_OR_m) native "CanvasRenderingContext2D_setShadow_5_Callback";
void _setShadow_6(width, height, blur, c_OR_color_OR_grayLevel_OR_r, alpha_OR_g_OR_m, b_OR_y, a_OR_k) native "CanvasRenderingContext2D_setShadow_6_Callback";
void _setShadow_7(width, height, blur, c_OR_color_OR_grayLevel_OR_r, alpha_OR_g_OR_m, b_OR_y, a_OR_k, a) native "CanvasRenderingContext2D_setShadow_7_Callback";
void setTransform(num m11, num m12, num m21, num m22, num dx, num dy) native "CanvasRenderingContext2D_setTransform_Callback";
void stroke() native "CanvasRenderingContext2D_stroke_Callback";
void strokeRect(/*float*/ x, /*float*/ y, /*float*/ width, /*float*/ height, [/*float*/ lineWidth]) {
if (?lineWidth) {
_strokeRect_1(x, y, width, height, lineWidth);
return;
}
_strokeRect_2(x, y, width, height);
}
void _strokeRect_1(x, y, width, height, lineWidth) native "CanvasRenderingContext2D_strokeRect_1_Callback";
void _strokeRect_2(x, y, width, height) native "CanvasRenderingContext2D_strokeRect_2_Callback";
void strokeText(/*DOMString*/ text, /*float*/ x, /*float*/ y, [/*float*/ maxWidth]) {
if (?maxWidth) {
_strokeText_1(text, x, y, maxWidth);
return;
}
_strokeText_2(text, x, y);
}
void _strokeText_1(text, x, y, maxWidth) native "CanvasRenderingContext2D_strokeText_1_Callback";
void _strokeText_2(text, x, y) native "CanvasRenderingContext2D_strokeText_2_Callback";
void transform(num m11, num m12, num m21, num m22, num dx, num dy) native "CanvasRenderingContext2D_transform_Callback";
void translate(num tx, num ty) native "CanvasRenderingContext2D_translate_Callback";
ImageData webkitGetImageDataHD(num sx, num sy, num sw, num sh) native "CanvasRenderingContext2D_webkitGetImageDataHD_Callback";
void webkitPutImageDataHD(/*ImageData*/ imagedata, /*float*/ dx, /*float*/ dy, [/*float*/ dirtyX, /*float*/ dirtyY, /*float*/ dirtyWidth, /*float*/ dirtyHeight]) {
if ((imagedata is ImageData || imagedata == null) && (dx is num || dx == null) && (dy is num || dy == null) && !?dirtyX && !?dirtyY && !?dirtyWidth && !?dirtyHeight) {
_webkitPutImageDataHD_1(imagedata, dx, dy);
return;
}
if ((imagedata is ImageData || imagedata == null) && (dx is num || dx == null) && (dy is num || dy == null) && (dirtyX is num || dirtyX == null) && (dirtyY is num || dirtyY == null) && (dirtyWidth is num || dirtyWidth == null) && (dirtyHeight is num || dirtyHeight == null)) {
_webkitPutImageDataHD_2(imagedata, dx, dy, dirtyX, dirtyY, dirtyWidth, dirtyHeight);
return;
}
throw "Incorrect number or type of arguments";
}
void _webkitPutImageDataHD_1(imagedata, dx, dy) native "CanvasRenderingContext2D_webkitPutImageDataHD_1_Callback";
void _webkitPutImageDataHD_2(imagedata, dx, dy, dirtyX, dirtyY, dirtyWidth, dirtyHeight) native "CanvasRenderingContext2D_webkitPutImageDataHD_2_Callback";
void setFillColorRgb(int r, int g, int b, [num a = 1]) {
this.fillStyle = 'rgba($r, $g, $b, $a)';
}
void setFillColorHsl(int h, num s, num l, [num a = 1]) {
this.fillStyle = 'hsla($h, $s%, $l%, $a)';
}
void setStrokeColorRgb(int r, int g, int b, [num a = 1]) {
this.strokeStyle = 'rgba($r, $g, $b, $a)';
}
void setStrokeColorHsl(int h, num s, num l, [num a = 1]) {
this.strokeStyle = 'hsla($h, $s%, $l%, $a)';
}
}
// 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.
// WARNING: Do not edit - generated code.
class _CanvasRenderingContextImpl extends NativeFieldWrapperClass1 implements CanvasRenderingContext {
CanvasElement get canvas native "CanvasRenderingContext_canvas_Getter";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName ChannelMergerNode
abstract class ChannelMergerNode implements AudioNode {
}
// 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.
// WARNING: Do not edit - generated code.
class _ChannelMergerNodeImpl extends _AudioNodeImpl implements ChannelMergerNode {
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName ChannelSplitterNode
abstract class ChannelSplitterNode implements AudioNode {
}
// 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.
// WARNING: Do not edit - generated code.
class _ChannelSplitterNodeImpl extends _AudioNodeImpl implements ChannelSplitterNode {
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName CharacterData
abstract class CharacterData implements Node {
/** @domName CharacterData.data */
String data;
/** @domName CharacterData.length */
int get length;
/** @domName CharacterData.appendData */
void appendData(String data);
/** @domName CharacterData.deleteData */
void deleteData(int offset, int length);
/** @domName CharacterData.insertData */
void insertData(int offset, String data);
/** @domName CharacterData.remove */
void remove();
/** @domName CharacterData.replaceData */
void replaceData(int offset, int length, String data);
/** @domName CharacterData.substringData */
String substringData(int offset, int length);
}
// 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.
// WARNING: Do not edit - generated code.
class _CharacterDataImpl extends _NodeImpl implements CharacterData {
String get data native "CharacterData_data_Getter";
void set data(String value) native "CharacterData_data_Setter";
int get length native "CharacterData_length_Getter";
void appendData(String data) native "CharacterData_appendData_Callback";
void deleteData(int offset, int length) native "CharacterData_deleteData_Callback";
void insertData(int offset, String data) native "CharacterData_insertData_Callback";
void remove() native "CharacterData_remove_Callback";
void replaceData(int offset, int length, String data) native "CharacterData_replaceData_Callback";
String substringData(int offset, int length) native "CharacterData_substringData_Callback";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName ClientRect
abstract class ClientRect {
/** @domName ClientRect.bottom */
num get bottom;
/** @domName ClientRect.height */
num get height;
/** @domName ClientRect.left */
num get left;
/** @domName ClientRect.right */
num get right;
/** @domName ClientRect.top */
num get top;
/** @domName ClientRect.width */
num get width;
}
// 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.
// WARNING: Do not edit - generated code.
class _ClientRectImpl extends NativeFieldWrapperClass1 implements ClientRect {
num get bottom native "ClientRect_bottom_Getter";
num get height native "ClientRect_height_Getter";
num get left native "ClientRect_left_Getter";
num get right native "ClientRect_right_Getter";
num get top native "ClientRect_top_Getter";
num get width native "ClientRect_width_Getter";
}
// 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.
// WARNING: Do not edit - generated code.
class _ClientRectListImpl extends NativeFieldWrapperClass1 implements List<ClientRect> {
int get length native "ClientRectList_length_Getter";
ClientRect operator[](int index) native "ClientRectList_item_Callback";
void operator[]=(int index, ClientRect value) {
throw new UnsupportedError("Cannot assign element of immutable List.");
}
// -- start List<ClientRect> mixins.
// ClientRect is the element type.
// From Iterable<ClientRect>:
Iterator<ClientRect> 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<ClientRect>(this);
}
// From Collection<ClientRect>:
void add(ClientRect value) {
throw new UnsupportedError("Cannot add to immutable List.");
}
void addLast(ClientRect value) {
throw new UnsupportedError("Cannot add to immutable List.");
}
void addAll(Collection<ClientRect> collection) {
throw new UnsupportedError("Cannot add to immutable List.");
}
bool contains(ClientRect element) => _Collections.contains(this, element);
void forEach(void f(ClientRect element)) => _Collections.forEach(this, f);
Collection map(f(ClientRect element)) => _Collections.map(this, [], f);
Collection<ClientRect> filter(bool f(ClientRect element)) =>
_Collections.filter(this, <ClientRect>[], f);
bool every(bool f(ClientRect element)) => _Collections.every(this, f);
bool some(bool f(ClientRect element)) => _Collections.some(this, f);
bool get isEmpty => this.length == 0;
// From List<ClientRect>:
void sort([Comparator<ClientRect> compare = Comparable.compare]) {
throw new UnsupportedError("Cannot sort immutable List.");
}
int indexOf(ClientRect element, [int start = 0]) =>
_Lists.indexOf(this, element, start, this.length);
int lastIndexOf(ClientRect element, [int start]) {
if (start == null) start = length - 1;
return _Lists.lastIndexOf(this, element, start);
}
ClientRect get last => this[length - 1];
ClientRect removeLast() {
throw new UnsupportedError("Cannot removeLast on immutable List.");
}
void setRange(int start, int rangeLength, List<ClientRect> from, [int startFrom]) {
throw new UnsupportedError("Cannot setRange on immutable List.");
}
void removeRange(int start, int rangeLength) {
throw new UnsupportedError("Cannot removeRange on immutable List.");
}
void insertRange(int start, int rangeLength, [ClientRect initialValue]) {
throw new UnsupportedError("Cannot insertRange on immutable List.");
}
List<ClientRect> getRange(int start, int rangeLength) =>
_Lists.getRange(this, start, rangeLength, <ClientRect>[]);
// -- end List<ClientRect> mixins.
ClientRect item(int index) native "ClientRectList_item_Callback";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName Clipboard
abstract class Clipboard {
/** @domName Clipboard.dropEffect */
String dropEffect;
/** @domName Clipboard.effectAllowed */
String effectAllowed;
/** @domName Clipboard.files */
List<File> get files;
/** @domName Clipboard.items */
DataTransferItemList get items;
/** @domName Clipboard.types */
List get types;
/** @domName Clipboard.clearData */
void clearData([String type]);
/** @domName Clipboard.getData */
String getData(String type);
/** @domName Clipboard.setData */
bool setData(String type, String data);
/** @domName Clipboard.setDragImage */
void setDragImage(ImageElement image, int x, int y);
}
// 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.
// WARNING: Do not edit - generated code.
class _ClipboardImpl extends NativeFieldWrapperClass1 implements Clipboard {
String get dropEffect native "Clipboard_dropEffect_Getter";
void set dropEffect(String value) native "Clipboard_dropEffect_Setter";
String get effectAllowed native "Clipboard_effectAllowed_Getter";
void set effectAllowed(String value) native "Clipboard_effectAllowed_Setter";
List<File> get files native "Clipboard_files_Getter";
DataTransferItemList get items native "Clipboard_items_Getter";
List get types native "Clipboard_types_Getter";
void clearData([String type]) native "Clipboard_clearData_Callback";
String getData(String type) native "Clipboard_getData_Callback";
bool setData(String type, String data) native "Clipboard_setData_Callback";
void setDragImage(ImageElement image, int x, int y) native "Clipboard_setDragImage_Callback";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName CloseEvent
abstract class CloseEvent implements Event {
/** @domName CloseEvent.code */
int get code;
/** @domName CloseEvent.reason */
String get reason;
/** @domName CloseEvent.wasClean */
bool get wasClean;
}
// 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.
// WARNING: Do not edit - generated code.
class _CloseEventImpl extends _EventImpl implements CloseEvent {
int get code native "CloseEvent_code_Getter";
String get reason native "CloseEvent_reason_Getter";
bool get wasClean native "CloseEvent_wasClean_Getter";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName Comment
abstract class Comment implements CharacterData {
}
// 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.
// WARNING: Do not edit - generated code.
class _CommentImpl extends _CharacterDataImpl implements Comment {
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName CompositionEvent
abstract class CompositionEvent implements UIEvent {
/** @domName CompositionEvent.data */
String get data;
/** @domName CompositionEvent.initCompositionEvent */
void initCompositionEvent(String typeArg, bool canBubbleArg, bool cancelableArg, LocalWindow viewArg, String dataArg);
}
// 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.
// WARNING: Do not edit - generated code.
class _CompositionEventImpl extends _UIEventImpl implements CompositionEvent {
String get data native "CompositionEvent_data_Getter";
void initCompositionEvent(String typeArg, bool canBubbleArg, bool cancelableArg, LocalWindow viewArg, String dataArg) native "CompositionEvent_initCompositionEvent_Callback";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName Console
abstract class Console {
/** @domName Console.memory */
MemoryInfo get memory;
/** @domName Console.profiles */
List<ScriptProfile> get profiles;
/** @domName Console.assertCondition */
void assertCondition(bool condition, Object arg);
/** @domName Console.count */
void count(Object arg);
/** @domName Console.debug */
void debug(Object arg);
/** @domName Console.dir */
void dir(Object arg);
/** @domName Console.dirxml */
void dirxml(Object arg);
/** @domName Console.error */
void error(Object arg);
/** @domName Console.group */
void group(Object arg);
/** @domName Console.groupCollapsed */
void groupCollapsed(Object arg);
/** @domName Console.groupEnd */
void groupEnd();
/** @domName Console.info */
void info(Object arg);
/** @domName Console.log */
void log(Object arg);
/** @domName Console.markTimeline */
void markTimeline(Object arg);
/** @domName Console.profile */
void profile(String title);
/** @domName Console.profileEnd */
void profileEnd(String title);
/** @domName Console.time */
void time(String title);
/** @domName Console.timeEnd */
void timeEnd(String title, Object arg);
/** @domName Console.timeStamp */
void timeStamp(Object arg);
/** @domName Console.trace */
void trace(Object arg);
/** @domName Console.warn */
void warn(Object arg);
}
// 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.
// WARNING: Do not edit - generated code.
class _ConsoleImpl extends NativeFieldWrapperClass1 implements Console {
MemoryInfo get memory native "Console_memory_Getter";
List<ScriptProfile> get profiles native "Console_profiles_Getter";
void assertCondition(bool condition, Object arg) native "Console_assertCondition_Callback";
void count(Object arg) native "Console_count_Callback";
void debug(Object arg) native "Console_debug_Callback";
void dir(Object arg) native "Console_dir_Callback";
void dirxml(Object arg) native "Console_dirxml_Callback";
void error(Object arg) native "Console_error_Callback";
void group(Object arg) native "Console_group_Callback";
void groupCollapsed(Object arg) native "Console_groupCollapsed_Callback";
void groupEnd() native "Console_groupEnd_Callback";
void info(Object arg) native "Console_info_Callback";
void log(Object arg) native "Console_log_Callback";
void markTimeline(Object arg) native "Console_markTimeline_Callback";
void profile(String title) native "Console_profile_Callback";
void profileEnd(String title) native "Console_profileEnd_Callback";
void time(String title) native "Console_time_Callback";
void timeEnd(String title, Object arg) native "Console_timeEnd_Callback";
void timeStamp(Object arg) native "Console_timeStamp_Callback";
void trace(Object arg) native "Console_trace_Callback";
void warn(Object arg) native "Console_warn_Callback";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName HTMLContentElement
abstract class ContentElement implements Element {
factory ContentElement() => _Elements.createContentElement();
/** @domName HTMLContentElement.resetStyleInheritance */
bool resetStyleInheritance;
/** @domName HTMLContentElement.select */
String select;
/** @domName HTMLContentElement.getDistributedNodes */
List<Node> getDistributedNodes();
}
// 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.
// WARNING: Do not edit - generated code.
class _ContentElementImpl extends _ElementImpl_Merged implements ContentElement {
bool get resetStyleInheritance native "HTMLContentElement_resetStyleInheritance_Getter";
void set resetStyleInheritance(bool value) native "HTMLContentElement_resetStyleInheritance_Setter";
String get select native "HTMLContentElement_select_Getter";
void set select(String value) native "HTMLContentElement_select_Setter";
List<Node> getDistributedNodes() native "HTMLContentElement_getDistributedNodes_Callback";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName ConvolverNode
abstract class ConvolverNode implements AudioNode {
/** @domName ConvolverNode.buffer */
AudioBuffer buffer;
/** @domName ConvolverNode.normalize */
bool normalize;
}
// 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.
// WARNING: Do not edit - generated code.
class _ConvolverNodeImpl extends _AudioNodeImpl implements ConvolverNode {
AudioBuffer get buffer native "ConvolverNode_buffer_Getter";
void set buffer(AudioBuffer value) native "ConvolverNode_buffer_Setter";
bool get normalize native "ConvolverNode_normalize_Getter";
void set normalize(bool value) native "ConvolverNode_normalize_Setter";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName Coordinates
abstract class Coordinates {
/** @domName Coordinates.accuracy */
num get accuracy;
/** @domName Coordinates.altitude */
num get altitude;
/** @domName Coordinates.altitudeAccuracy */
num get altitudeAccuracy;
/** @domName Coordinates.heading */
num get heading;
/** @domName Coordinates.latitude */
num get latitude;
/** @domName Coordinates.longitude */
num get longitude;
/** @domName Coordinates.speed */
num get speed;
}
// 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.
// WARNING: Do not edit - generated code.
class _CoordinatesImpl extends NativeFieldWrapperClass1 implements Coordinates {
num get accuracy native "Coordinates_accuracy_Getter";
num get altitude native "Coordinates_altitude_Getter";
num get altitudeAccuracy native "Coordinates_altitudeAccuracy_Getter";
num get heading native "Coordinates_heading_Getter";
num get latitude native "Coordinates_latitude_Getter";
num get longitude native "Coordinates_longitude_Getter";
num get speed native "Coordinates_speed_Getter";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName Counter
abstract class Counter {
/** @domName Counter.identifier */
String get identifier;
/** @domName Counter.listStyle */
String get listStyle;
/** @domName Counter.separator */
String get separator;
}
// 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.
// WARNING: Do not edit - generated code.
class _CounterImpl extends NativeFieldWrapperClass1 implements Counter {
String get identifier native "Counter_identifier_Getter";
String get listStyle native "Counter_listStyle_Getter";
String get separator native "Counter_separator_Getter";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName Crypto
abstract class Crypto {
/** @domName Crypto.getRandomValues */
void getRandomValues(ArrayBufferView array);
}
// 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.
// WARNING: Do not edit - generated code.
class _CryptoImpl extends NativeFieldWrapperClass1 implements Crypto {
void getRandomValues(ArrayBufferView array) native "Crypto_getRandomValues_Callback";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName CustomEvent
abstract class CustomEvent implements Event {
factory CustomEvent(String type, [bool canBubble = true, bool cancelable = true,
Object detail = null]) => _CustomEventFactoryProvider.createCustomEvent(type, canBubble,
cancelable, detail);
/** @domName CustomEvent.detail */
Object get detail;
/** @domName CustomEvent.initCustomEvent */
void $dom_initCustomEvent(String typeArg, bool canBubbleArg, bool cancelableArg, Object detailArg);
}
// 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.
// WARNING: Do not edit - generated code.
class _CustomEventImpl extends _EventImpl implements CustomEvent {
Object get detail native "CustomEvent_detail_Getter";
void $dom_initCustomEvent(String typeArg, bool canBubbleArg, bool cancelableArg, Object detailArg) native "CustomEvent_initCustomEvent_Callback";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName HTMLDListElement
abstract class DListElement implements Element {
factory DListElement() => _Elements.createDListElement();
/** @domName HTMLDListElement.compact */
bool compact;
}
// 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.
// WARNING: Do not edit - generated code.
class _DListElementImpl extends _ElementImpl_Merged implements DListElement {
bool get compact native "HTMLDListElement_compact_Getter";
void set compact(bool value) native "HTMLDListElement_compact_Setter";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName DOMApplicationCache
abstract class DOMApplicationCache implements EventTarget {
/**
* @domName EventTarget.addEventListener, EventTarget.removeEventListener, EventTarget.dispatchEvent
*/
DOMApplicationCacheEvents get on;
static const int CHECKING = 2;
static const int DOWNLOADING = 3;
static const int IDLE = 1;
static const int OBSOLETE = 5;
static const int UNCACHED = 0;
static const int UPDATEREADY = 4;
/** @domName DOMApplicationCache.status */
int get status;
/** @domName DOMApplicationCache.abort */
void abort();
/** @domName DOMApplicationCache.addEventListener */
void $dom_addEventListener(String type, EventListener listener, [bool useCapture]);
/** @domName DOMApplicationCache.dispatchEvent */
bool $dom_dispatchEvent(Event evt);
/** @domName DOMApplicationCache.removeEventListener */
void $dom_removeEventListener(String type, EventListener listener, [bool useCapture]);
/** @domName DOMApplicationCache.swapCache */
void swapCache();
/** @domName DOMApplicationCache.update */
void update();
}
abstract class DOMApplicationCacheEvents implements Events {
EventListenerList get cached;
EventListenerList get checking;
EventListenerList get downloading;
EventListenerList get error;
EventListenerList get noUpdate;
EventListenerList get obsolete;
EventListenerList get progress;
EventListenerList get updateReady;
}
// 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.
// WARNING: Do not edit - generated code.
class _DOMApplicationCacheImpl extends _EventTargetImpl implements DOMApplicationCache {
_DOMApplicationCacheEventsImpl get on =>
new _DOMApplicationCacheEventsImpl(this);
int get status native "DOMApplicationCache_status_Getter";
void abort() native "DOMApplicationCache_abort_Callback";
void $dom_addEventListener(String type, EventListener listener, [bool useCapture]) native "DOMApplicationCache_addEventListener_Callback";
bool $dom_dispatchEvent(Event evt) native "DOMApplicationCache_dispatchEvent_Callback";
void $dom_removeEventListener(String type, EventListener listener, [bool useCapture]) native "DOMApplicationCache_removeEventListener_Callback";
void swapCache() native "DOMApplicationCache_swapCache_Callback";
void update() native "DOMApplicationCache_update_Callback";
}
class _DOMApplicationCacheEventsImpl extends _EventsImpl implements DOMApplicationCacheEvents {
_DOMApplicationCacheEventsImpl(_ptr) : super(_ptr);
EventListenerList get cached => this['cached'];
EventListenerList get checking => this['checking'];
EventListenerList get downloading => this['downloading'];
EventListenerList get error => this['error'];
EventListenerList get noUpdate => this['noupdate'];
EventListenerList get obsolete => this['obsolete'];
EventListenerList get progress => this['progress'];
EventListenerList get updateReady => this['updateready'];
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName DOMError
abstract class DOMError {
/** @domName DOMError.name */
String get name;
}
// 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.
// WARNING: Do not edit - generated code.
class _DOMErrorImpl extends NativeFieldWrapperClass1 implements DOMError {
String get name native "DOMError_name_Getter";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName DOMException
abstract class DOMException {
static const int ABORT_ERR = 20;
static const int DATA_CLONE_ERR = 25;
static const int DOMSTRING_SIZE_ERR = 2;
static const int HIERARCHY_REQUEST_ERR = 3;
static const int INDEX_SIZE_ERR = 1;
static const int INUSE_ATTRIBUTE_ERR = 10;
static const int INVALID_ACCESS_ERR = 15;
static const int INVALID_CHARACTER_ERR = 5;
static const int INVALID_MODIFICATION_ERR = 13;
static const int INVALID_NODE_TYPE_ERR = 24;
static const int INVALID_STATE_ERR = 11;
static const int NAMESPACE_ERR = 14;
static const int NETWORK_ERR = 19;
static const int NOT_FOUND_ERR = 8;
static const int NOT_SUPPORTED_ERR = 9;
static const int NO_DATA_ALLOWED_ERR = 6;
static const int NO_MODIFICATION_ALLOWED_ERR = 7;
static const int QUOTA_EXCEEDED_ERR = 22;
static const int SECURITY_ERR = 18;
static const int SYNTAX_ERR = 12;
static const int TIMEOUT_ERR = 23;
static const int TYPE_MISMATCH_ERR = 17;
static const int URL_MISMATCH_ERR = 21;
static const int VALIDATION_ERR = 16;
static const int WRONG_DOCUMENT_ERR = 4;
/** @domName DOMException.code */
int get code;
/** @domName DOMException.message */
String get message;
/** @domName DOMException.name */
String get name;
/** @domName DOMException.toString */
String toString();
}
// 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.
// WARNING: Do not edit - generated code.
class _DOMExceptionImpl extends NativeFieldWrapperClass1 implements DOMException {
int get code native "DOMCoreException_code_Getter";
String get message native "DOMCoreException_message_Getter";
String get name native "DOMCoreException_name_Getter";
String toString() native "DOMCoreException_toString_Callback";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName DOMFileSystem
abstract class DOMFileSystem {
/** @domName DOMFileSystem.name */
String get name;
/** @domName DOMFileSystem.root */
DirectoryEntry get root;
}
// 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.
// WARNING: Do not edit - generated code.
class _DOMFileSystemImpl extends NativeFieldWrapperClass1 implements DOMFileSystem {
String get name native "DOMFileSystem_name_Getter";
DirectoryEntry get root native "DOMFileSystem_root_Getter";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName DOMFileSystemSync
abstract class DOMFileSystemSync {
/** @domName DOMFileSystemSync.name */
String get name;
/** @domName DOMFileSystemSync.root */
DirectoryEntrySync get root;
}
// 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.
// WARNING: Do not edit - generated code.
class _DOMFileSystemSyncImpl extends NativeFieldWrapperClass1 implements DOMFileSystemSync {
String get name native "DOMFileSystemSync_name_Getter";
DirectoryEntrySync get root native "DOMFileSystemSync_root_Getter";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName DOMImplementation
abstract class DOMImplementation {
/** @domName DOMImplementation.createCSSStyleSheet */
CSSStyleSheet createCSSStyleSheet(String title, String media);
/** @domName DOMImplementation.createDocument */
Document createDocument(String namespaceURI, String qualifiedName, DocumentType doctype);
/** @domName DOMImplementation.createDocumentType */
DocumentType createDocumentType(String qualifiedName, String publicId, String systemId);
/** @domName DOMImplementation.createHTMLDocument */
Document createHTMLDocument(String title);
/** @domName DOMImplementation.hasFeature */
bool hasFeature(String feature, String version);
}
// 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.
// WARNING: Do not edit - generated code.
class _DOMImplementationImpl extends NativeFieldWrapperClass1 implements DOMImplementation {
CSSStyleSheet createCSSStyleSheet(String title, String media) native "DOMImplementation_createCSSStyleSheet_Callback";
Document createDocument(String namespaceURI, String qualifiedName, DocumentType doctype) native "DOMImplementation_createDocument_Callback";
DocumentType createDocumentType(String qualifiedName, String publicId, String systemId) native "DOMImplementation_createDocumentType_Callback";
Document createHTMLDocument(String title) native "DOMImplementation_createHTMLDocument_Callback";
bool hasFeature(String feature, String version) native "DOMImplementation_hasFeature_Callback";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName MimeType
abstract class DOMMimeType {
/** @domName MimeType.description */
String get description;
/** @domName MimeType.enabledPlugin */
DOMPlugin get enabledPlugin;
/** @domName MimeType.suffixes */
String get suffixes;
/** @domName MimeType.type */
String get type;
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName MimeTypeArray
abstract class DOMMimeTypeArray implements List<DOMMimeType> {
/** @domName MimeTypeArray.length */
int get length;
/** @domName MimeTypeArray.item */
DOMMimeType item(int index);
/** @domName MimeTypeArray.namedItem */
DOMMimeType namedItem(String name);
}
// 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.
// WARNING: Do not edit - generated code.
class _DOMMimeTypeArrayImpl extends NativeFieldWrapperClass1 implements DOMMimeTypeArray {
int get length native "DOMMimeTypeArray_length_Getter";
DOMMimeType operator[](int index) native "DOMMimeTypeArray_item_Callback";
void operator[]=(int index, DOMMimeType value) {
throw new UnsupportedError("Cannot assign element of immutable List.");
}
// -- start List<DOMMimeType> mixins.
// DOMMimeType is the element type.
// From Iterable<DOMMimeType>:
Iterator<DOMMimeType> 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<DOMMimeType>(this);
}
// From Collection<DOMMimeType>:
void add(DOMMimeType value) {
throw new UnsupportedError("Cannot add to immutable List.");
}
void addLast(DOMMimeType value) {
throw new UnsupportedError("Cannot add to immutable List.");
}
void addAll(Collection<DOMMimeType> collection) {
throw new UnsupportedError("Cannot add to immutable List.");
}
bool contains(DOMMimeType element) => _Collections.contains(this, element);
void forEach(void f(DOMMimeType element)) => _Collections.forEach(this, f);
Collection map(f(DOMMimeType element)) => _Collections.map(this, [], f);
Collection<DOMMimeType> filter(bool f(DOMMimeType element)) =>
_Collections.filter(this, <DOMMimeType>[], f);
bool every(bool f(DOMMimeType element)) => _Collections.every(this, f);
bool some(bool f(DOMMimeType element)) => _Collections.some(this, f);
bool get isEmpty => this.length == 0;
// From List<DOMMimeType>:
void sort([Comparator<DOMMimeType> compare = Comparable.compare]) {
throw new UnsupportedError("Cannot sort immutable List.");
}
int indexOf(DOMMimeType element, [int start = 0]) =>
_Lists.indexOf(this, element, start, this.length);
int lastIndexOf(DOMMimeType element, [int start]) {
if (start == null) start = length - 1;
return _Lists.lastIndexOf(this, element, start);
}
DOMMimeType get last => this[length - 1];
DOMMimeType removeLast() {
throw new UnsupportedError("Cannot removeLast on immutable List.");
}
void setRange(int start, int rangeLength, List<DOMMimeType> from, [int startFrom]) {
throw new UnsupportedError("Cannot setRange on immutable List.");
}
void removeRange(int start, int rangeLength) {
throw new UnsupportedError("Cannot removeRange on immutable List.");
}
void insertRange(int start, int rangeLength, [DOMMimeType initialValue]) {
throw new UnsupportedError("Cannot insertRange on immutable List.");
}
List<DOMMimeType> getRange(int start, int rangeLength) =>
_Lists.getRange(this, start, rangeLength, <DOMMimeType>[]);
// -- end List<DOMMimeType> mixins.
DOMMimeType item(int index) native "DOMMimeTypeArray_item_Callback";
DOMMimeType namedItem(String name) native "DOMMimeTypeArray_namedItem_Callback";
}
// 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.
// WARNING: Do not edit - generated code.
class _DOMMimeTypeImpl extends NativeFieldWrapperClass1 implements DOMMimeType {
String get description native "DOMMimeType_description_Getter";
DOMPlugin get enabledPlugin native "DOMMimeType_enabledPlugin_Getter";
String get suffixes native "DOMMimeType_suffixes_Getter";
String get type native "DOMMimeType_type_Getter";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName DOMParser
abstract class DOMParser {
factory DOMParser() => _DOMParserFactoryProvider.createDOMParser();
/** @domName DOMParser.parseFromString */
Document parseFromString(String str, String contentType);
}
// 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.
// WARNING: Do not edit - generated code.
class _DOMParserImpl extends NativeFieldWrapperClass1 implements DOMParser {
Document parseFromString(String str, String contentType) native "DOMParser_parseFromString_Callback";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName Plugin
abstract class DOMPlugin {
/** @domName Plugin.description */
String get description;
/** @domName Plugin.filename */
String get filename;
/** @domName Plugin.length */
int get length;
/** @domName Plugin.name */
String get name;
/** @domName Plugin.item */
DOMMimeType item(int index);
/** @domName Plugin.namedItem */
DOMMimeType namedItem(String name);
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName PluginArray
abstract class DOMPluginArray implements List<DOMPlugin> {
/** @domName PluginArray.length */
int get length;
/** @domName PluginArray.item */
DOMPlugin item(int index);
/** @domName PluginArray.namedItem */
DOMPlugin namedItem(String name);
/** @domName PluginArray.refresh */
void refresh(bool reload);
}
// 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.
// WARNING: Do not edit - generated code.
class _DOMPluginArrayImpl extends NativeFieldWrapperClass1 implements DOMPluginArray {
int get length native "DOMPluginArray_length_Getter";
DOMPlugin operator[](int index) native "DOMPluginArray_item_Callback";
void operator[]=(int index, DOMPlugin value) {
throw new UnsupportedError("Cannot assign element of immutable List.");
}
// -- start List<DOMPlugin> mixins.
// DOMPlugin is the element type.
// From Iterable<DOMPlugin>:
Iterator<DOMPlugin> 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<DOMPlugin>(this);
}
// From Collection<DOMPlugin>:
void add(DOMPlugin value) {
throw new UnsupportedError("Cannot add to immutable List.");
}
void addLast(DOMPlugin value) {
throw new UnsupportedError("Cannot add to immutable List.");
}
void addAll(Collection<DOMPlugin> collection) {
throw new UnsupportedError("Cannot add to immutable List.");
}
bool contains(DOMPlugin element) => _Collections.contains(this, element);
void forEach(void f(DOMPlugin element)) => _Collections.forEach(this, f);
Collection map(f(DOMPlugin element)) => _Collections.map(this, [], f);
Collection<DOMPlugin> filter(bool f(DOMPlugin element)) =>
_Collections.filter(this, <DOMPlugin>[], f);
bool every(bool f(DOMPlugin element)) => _Collections.every(this, f);
bool some(bool f(DOMPlugin element)) => _Collections.some(this, f);
bool get isEmpty => this.length == 0;
// From List<DOMPlugin>:
void sort([Comparator<DOMPlugin> compare = Comparable.compare]) {
throw new UnsupportedError("Cannot sort immutable List.");
}
int indexOf(DOMPlugin element, [int start = 0]) =>
_Lists.indexOf(this, element, start, this.length);
int lastIndexOf(DOMPlugin element, [int start]) {
if (start == null) start = length - 1;
return _Lists.lastIndexOf(this, element, start);
}
DOMPlugin get last => this[length - 1];
DOMPlugin removeLast() {
throw new UnsupportedError("Cannot removeLast on immutable List.");
}
void setRange(int start, int rangeLength, List<DOMPlugin> from, [int startFrom]) {
throw new UnsupportedError("Cannot setRange on immutable List.");
}
void removeRange(int start, int rangeLength) {
throw new UnsupportedError("Cannot removeRange on immutable List.");
}
void insertRange(int start, int rangeLength, [DOMPlugin initialValue]) {
throw new UnsupportedError("Cannot insertRange on immutable List.");
}
List<DOMPlugin> getRange(int start, int rangeLength) =>
_Lists.getRange(this, start, rangeLength, <DOMPlugin>[]);
// -- end List<DOMPlugin> mixins.
DOMPlugin item(int index) native "DOMPluginArray_item_Callback";
DOMPlugin namedItem(String name) native "DOMPluginArray_namedItem_Callback";
void refresh(bool reload) native "DOMPluginArray_refresh_Callback";
}
// 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.
// WARNING: Do not edit - generated code.
class _DOMPluginImpl extends NativeFieldWrapperClass1 implements DOMPlugin {
String get description native "DOMPlugin_description_Getter";
String get filename native "DOMPlugin_filename_Getter";
int get length native "DOMPlugin_length_Getter";
String get name native "DOMPlugin_name_Getter";
DOMMimeType item(int index) native "DOMPlugin_item_Callback";
DOMMimeType namedItem(String name) native "DOMPlugin_namedItem_Callback";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName Selection
abstract class DOMSelection {
/** @domName Selection.anchorNode */
Node get anchorNode;
/** @domName Selection.anchorOffset */
int get anchorOffset;
/** @domName Selection.baseNode */
Node get baseNode;
/** @domName Selection.baseOffset */
int get baseOffset;
/** @domName Selection.extentNode */
Node get extentNode;
/** @domName Selection.extentOffset */
int get extentOffset;
/** @domName Selection.focusNode */
Node get focusNode;
/** @domName Selection.focusOffset */
int get focusOffset;
/** @domName Selection.isCollapsed */
bool get isCollapsed;
/** @domName Selection.rangeCount */
int get rangeCount;
/** @domName Selection.type */
String get type;
/** @domName Selection.addRange */
void addRange(Range range);
/** @domName Selection.collapse */
void collapse(Node node, int index);
/** @domName Selection.collapseToEnd */
void collapseToEnd();
/** @domName Selection.collapseToStart */
void collapseToStart();
/** @domName Selection.containsNode */
bool containsNode(Node node, bool allowPartial);
/** @domName Selection.deleteFromDocument */
void deleteFromDocument();
/** @domName Selection.empty */
void empty();
/** @domName Selection.extend */
void extend(Node node, int offset);
/** @domName Selection.getRangeAt */
Range getRangeAt(int index);
/** @domName Selection.modify */
void modify(String alter, String direction, String granularity);
/** @domName Selection.removeAllRanges */
void removeAllRanges();
/** @domName Selection.selectAllChildren */
void selectAllChildren(Node node);
/** @domName Selection.setBaseAndExtent */
void setBaseAndExtent(Node baseNode, int baseOffset, Node extentNode, int extentOffset);
/** @domName Selection.setPosition */
void setPosition(Node node, int offset);
/** @domName Selection.toString */
String toString();
}
// 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.
// WARNING: Do not edit - generated code.
class _DOMSelectionImpl extends NativeFieldWrapperClass1 implements DOMSelection {
Node get anchorNode native "DOMSelection_anchorNode_Getter";
int get anchorOffset native "DOMSelection_anchorOffset_Getter";
Node get baseNode native "DOMSelection_baseNode_Getter";
int get baseOffset native "DOMSelection_baseOffset_Getter";
Node get extentNode native "DOMSelection_extentNode_Getter";
int get extentOffset native "DOMSelection_extentOffset_Getter";
Node get focusNode native "DOMSelection_focusNode_Getter";
int get focusOffset native "DOMSelection_focusOffset_Getter";
bool get isCollapsed native "DOMSelection_isCollapsed_Getter";
int get rangeCount native "DOMSelection_rangeCount_Getter";
String get type native "DOMSelection_type_Getter";
void addRange(Range range) native "DOMSelection_addRange_Callback";
void collapse(Node node, int index) native "DOMSelection_collapse_Callback";
void collapseToEnd() native "DOMSelection_collapseToEnd_Callback";
void collapseToStart() native "DOMSelection_collapseToStart_Callback";
bool containsNode(Node node, bool allowPartial) native "DOMSelection_containsNode_Callback";
void deleteFromDocument() native "DOMSelection_deleteFromDocument_Callback";
void empty() native "DOMSelection_empty_Callback";
void extend(Node node, int offset) native "DOMSelection_extend_Callback";
Range getRangeAt(int index) native "DOMSelection_getRangeAt_Callback";
void modify(String alter, String direction, String granularity) native "DOMSelection_modify_Callback";
void removeAllRanges() native "DOMSelection_removeAllRanges_Callback";
void selectAllChildren(Node node) native "DOMSelection_selectAllChildren_Callback";
void setBaseAndExtent(Node baseNode, int baseOffset, Node extentNode, int extentOffset) native "DOMSelection_setBaseAndExtent_Callback";
void setPosition(Node node, int offset) native "DOMSelection_setPosition_Callback";
String toString() native "DOMSelection_toString_Callback";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName DOMSettableTokenList
abstract class DOMSettableTokenList implements DOMTokenList {
/** @domName DOMSettableTokenList.value */
String value;
}
// 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.
// WARNING: Do not edit - generated code.
class _DOMSettableTokenListImpl extends _DOMTokenListImpl implements DOMSettableTokenList {
String get value native "DOMSettableTokenList_value_Getter";
void set value(String value) native "DOMSettableTokenList_value_Setter";
}
// 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.
// WARNING: Do not edit - generated code.
class _DOMStringListImpl extends NativeFieldWrapperClass1 implements List<String> {
int get length native "DOMStringList_length_Getter";
String operator[](int index) native "DOMStringList_item_Callback";
void operator[]=(int index, String value) {
throw new UnsupportedError("Cannot assign element of immutable List.");
}
// -- start List<String> mixins.
// String is the element type.
// From Iterable<String>:
Iterator<String> 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<String>(this);
}
// From Collection<String>:
void add(String value) {
throw new UnsupportedError("Cannot add to immutable List.");
}
void addLast(String value) {
throw new UnsupportedError("Cannot add to immutable List.");
}
void addAll(Collection<String> collection) {
throw new UnsupportedError("Cannot add to immutable List.");
}
// contains() defined by IDL.
void forEach(void f(String element)) => _Collections.forEach(this, f);
Collection map(f(String element)) => _Collections.map(this, [], f);
Collection<String> filter(bool f(String element)) =>
_Collections.filter(this, <String>[], f);
bool every(bool f(String element)) => _Collections.every(this, f);
bool some(bool f(String element)) => _Collections.some(this, f);
bool get isEmpty => this.length == 0;
// From List<String>:
void sort([Comparator<String> compare = Comparable.compare]) {
throw new UnsupportedError("Cannot sort immutable List.");
}
int indexOf(String element, [int start = 0]) =>
_Lists.indexOf(this, element, start, this.length);
int lastIndexOf(String element, [int start]) {
if (start == null) start = length - 1;
return _Lists.lastIndexOf(this, element, start);
}
String get last => this[length - 1];
String removeLast() {
throw new UnsupportedError("Cannot removeLast on immutable List.");
}
void setRange(int start, int rangeLength, List<String> from, [int startFrom]) {
throw new UnsupportedError("Cannot setRange on immutable List.");
}
void removeRange(int start, int rangeLength) {
throw new UnsupportedError("Cannot removeRange on immutable List.");
}
void insertRange(int start, int rangeLength, [String initialValue]) {
throw new UnsupportedError("Cannot insertRange on immutable List.");
}
List<String> getRange(int start, int rangeLength) =>
_Lists.getRange(this, start, rangeLength, <String>[]);
// -- end List<String> mixins.
bool contains(String string) native "DOMStringList_contains_Callback";
String item(int index) native "DOMStringList_item_Callback";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName DOMStringMap
abstract class DOMStringMap {
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName DOMTokenList
abstract class DOMTokenList {
/** @domName DOMTokenList.length */
int get length;
/** @domName DOMTokenList.contains */
bool contains(String token);
/** @domName DOMTokenList.item */
String item(int index);
/** @domName DOMTokenList.toString */
String toString();
/** @domName DOMTokenList.toggle */
bool toggle(String token, [bool force]);
}
// 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.
// WARNING: Do not edit - generated code.
class _DOMTokenListImpl extends NativeFieldWrapperClass1 implements DOMTokenList {
int get length native "DOMTokenList_length_Getter";
bool contains(String token) native "DOMTokenList_contains_Callback";
String item(int index) native "DOMTokenList_item_Callback";
String toString() native "DOMTokenList_toString_Callback";
bool toggle(/*DOMString*/ token, [/*boolean*/ force]) {
if (?force) {
return _toggle_1(token, force);
}
return _toggle_2(token);
}
bool _toggle_1(token, force) native "DOMTokenList_toggle_1_Callback";
bool _toggle_2(token) native "DOMTokenList_toggle_2_Callback";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName URL
abstract class DOMURL {
factory DOMURL() => _DOMURLFactoryProvider.createDOMURL();
/** @domName URL.createObjectURL */
static final createObjectURL = _DOMURLImpl.createObjectURL;
/** @domName URL.revokeObjectURL */
static final revokeObjectURL = _DOMURLImpl.revokeObjectURL;
}
// 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.
// WARNING: Do not edit - generated code.
class _DOMURLImpl extends NativeFieldWrapperClass1 implements DOMURL {
static String createObjectURL(blob_OR_source_OR_stream) {
if ((blob_OR_source_OR_stream is MediaSource || blob_OR_source_OR_stream == null)) {
return _createObjectURL_1(blob_OR_source_OR_stream);
}
if ((blob_OR_source_OR_stream is MediaStream || blob_OR_source_OR_stream == null)) {
return _createObjectURL_2(blob_OR_source_OR_stream);
}
if ((blob_OR_source_OR_stream is Blob || blob_OR_source_OR_stream == null)) {
return _createObjectURL_3(blob_OR_source_OR_stream);
}
throw "Incorrect number or type of arguments";
}
static String _createObjectURL_1(blob_OR_source_OR_stream) native "DOMURL_createObjectURL_1_Callback";
static String _createObjectURL_2(blob_OR_source_OR_stream) native "DOMURL_createObjectURL_2_Callback";
static String _createObjectURL_3(blob_OR_source_OR_stream) native "DOMURL_createObjectURL_3_Callback";
static void revokeObjectURL(String url) native "DOMURL_revokeObjectURL_Callback";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName HTMLDataListElement
abstract class DataListElement implements Element {
factory DataListElement() => _Elements.createDataListElement();
/** @domName HTMLDataListElement.options */
HTMLCollection get options;
}
// 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.
// WARNING: Do not edit - generated code.
class _DataListElementImpl extends _ElementImpl_Merged implements DataListElement {
HTMLCollection get options native "HTMLDataListElement_options_Getter";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName DataTransferItem
abstract class DataTransferItem {
/** @domName DataTransferItem.kind */
String get kind;
/** @domName DataTransferItem.type */
String get type;
/** @domName DataTransferItem.getAsFile */
Blob getAsFile();
/** @domName DataTransferItem.getAsString */
void getAsString([StringCallback callback]);
/** @domName DataTransferItem.webkitGetAsEntry */
Entry webkitGetAsEntry();
}
// 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.
// WARNING: Do not edit - generated code.
class _DataTransferItemImpl extends NativeFieldWrapperClass1 implements DataTransferItem {
String get kind native "DataTransferItem_kind_Getter";
String get type native "DataTransferItem_type_Getter";
Blob getAsFile() native "DataTransferItem_getAsFile_Callback";
void getAsString([StringCallback callback]) native "DataTransferItem_getAsString_Callback";
Entry webkitGetAsEntry() native "DataTransferItem_webkitGetAsEntry_Callback";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName DataTransferItemList
abstract class DataTransferItemList {
/** @domName DataTransferItemList.length */
int get length;
/** @domName DataTransferItemList.add */
void add(data_OR_file, [String type]);
/** @domName DataTransferItemList.clear */
void clear();
/** @domName DataTransferItemList.item */
DataTransferItem item(int index);
}
// 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.
// WARNING: Do not edit - generated code.
class _DataTransferItemListImpl extends NativeFieldWrapperClass1 implements DataTransferItemList {
int get length native "DataTransferItemList_length_Getter";
void add(data_OR_file, [/*DOMString*/ type]) {
if ((data_OR_file is File || data_OR_file == null) && !?type) {
_add_1(data_OR_file);
return;
}
if ((data_OR_file is String || data_OR_file == null) && (type is String || type == null)) {
_add_2(data_OR_file, type);
return;
}
throw "Incorrect number or type of arguments";
}
void _add_1(data_OR_file) native "DataTransferItemList_add_1_Callback";
void _add_2(data_OR_file, type) native "DataTransferItemList_add_2_Callback";
void clear() native "DataTransferItemList_clear_Callback";
DataTransferItem item(int index) native "DataTransferItemList_item_Callback";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName DataView
abstract class DataView implements ArrayBufferView {
factory DataView(ArrayBuffer buffer, [int byteOffset, int byteLength]) {
if (!?byteOffset) {
return _DataViewFactoryProvider.createDataView(buffer);
}
if (!?byteLength) {
return _DataViewFactoryProvider.createDataView(buffer, byteOffset);
}
return _DataViewFactoryProvider.createDataView(buffer, byteOffset, byteLength);
}
/** @domName DataView.getFloat32 */
num getFloat32(int byteOffset, {bool littleEndian});
/** @domName DataView.getFloat64 */
num getFloat64(int byteOffset, {bool littleEndian});
/** @domName DataView.getInt16 */
int getInt16(int byteOffset, {bool littleEndian});
/** @domName DataView.getInt32 */
int getInt32(int byteOffset, {bool littleEndian});
/** @domName DataView.getInt8 */
int getInt8(int byteOffset);
/** @domName DataView.getUint16 */
int getUint16(int byteOffset, {bool littleEndian});
/** @domName DataView.getUint32 */
int getUint32(int byteOffset, {bool littleEndian});
/** @domName DataView.getUint8 */
int getUint8(int byteOffset);
/** @domName DataView.setFloat32 */
void setFloat32(int byteOffset, num value, {bool littleEndian});
/** @domName DataView.setFloat64 */
void setFloat64(int byteOffset, num value, {bool littleEndian});
/** @domName DataView.setInt16 */
void setInt16(int byteOffset, int value, {bool littleEndian});
/** @domName DataView.setInt32 */
void setInt32(int byteOffset, int value, {bool littleEndian});
/** @domName DataView.setInt8 */
void setInt8(int byteOffset, int value);
/** @domName DataView.setUint16 */
void setUint16(int byteOffset, int value, {bool littleEndian});
/** @domName DataView.setUint32 */
void setUint32(int byteOffset, int value, {bool littleEndian});
/** @domName DataView.setUint8 */
void setUint8(int byteOffset, int value);
}
// 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.
// WARNING: Do not edit - generated code.
class _DataViewImpl extends _ArrayBufferViewImpl implements DataView {
num getFloat32(/*unsigned long*/ byteOffset, {/*boolean*/ littleEndian}) {
if (?littleEndian) {
return _getFloat32_1(byteOffset, littleEndian);
}
return _getFloat32_2(byteOffset);
}
num _getFloat32_1(byteOffset, littleEndian) native "DataView_getFloat32_1_Callback";
num _getFloat32_2(byteOffset) native "DataView_getFloat32_2_Callback";
num getFloat64(/*unsigned long*/ byteOffset, {/*boolean*/ littleEndian}) {
if (?littleEndian) {
return _getFloat64_1(byteOffset, littleEndian);
}
return _getFloat64_2(byteOffset);
}
num _getFloat64_1(byteOffset, littleEndian) native "DataView_getFloat64_1_Callback";
num _getFloat64_2(byteOffset) native "DataView_getFloat64_2_Callback";
int getInt16(/*unsigned long*/ byteOffset, {/*boolean*/ littleEndian}) {
if (?littleEndian) {
return _getInt16_1(byteOffset, littleEndian);
}
return _getInt16_2(byteOffset);
}
int _getInt16_1(byteOffset, littleEndian) native "DataView_getInt16_1_Callback";
int _getInt16_2(byteOffset) native "DataView_getInt16_2_Callback";
int getInt32(/*unsigned long*/ byteOffset, {/*boolean*/ littleEndian}) {
if (?littleEndian) {
return _getInt32_1(byteOffset, littleEndian);
}
return _getInt32_2(byteOffset);
}
int _getInt32_1(byteOffset, littleEndian) native "DataView_getInt32_1_Callback";
int _getInt32_2(byteOffset) native "DataView_getInt32_2_Callback";
int getInt8(int byteOffset) native "DataView_getInt8_Callback";
int getUint16(/*unsigned long*/ byteOffset, {/*boolean*/ littleEndian}) {
if (?littleEndian) {
return _getUint16_1(byteOffset, littleEndian);
}
return _getUint16_2(byteOffset);
}
int _getUint16_1(byteOffset, littleEndian) native "DataView_getUint16_1_Callback";
int _getUint16_2(byteOffset) native "DataView_getUint16_2_Callback";
int getUint32(/*unsigned long*/ byteOffset, {/*boolean*/ littleEndian}) {
if (?littleEndian) {
return _getUint32_1(byteOffset, littleEndian);
}
return _getUint32_2(byteOffset);
}
int _getUint32_1(byteOffset, littleEndian) native "DataView_getUint32_1_Callback";
int _getUint32_2(byteOffset) native "DataView_getUint32_2_Callback";
int getUint8(int byteOffset) native "DataView_getUint8_Callback";
void setFloat32(/*unsigned long*/ byteOffset, /*float*/ value, {/*boolean*/ littleEndian}) {
if (?littleEndian) {
_setFloat32_1(byteOffset, value, littleEndian);
return;
}
_setFloat32_2(byteOffset, value);
}
void _setFloat32_1(byteOffset, value, littleEndian) native "DataView_setFloat32_1_Callback";
void _setFloat32_2(byteOffset, value) native "DataView_setFloat32_2_Callback";
void setFloat64(/*unsigned long*/ byteOffset, /*double*/ value, {/*boolean*/ littleEndian}) {
if (?littleEndian) {
_setFloat64_1(byteOffset, value, littleEndian);
return;
}
_setFloat64_2(byteOffset, value);
}
void _setFloat64_1(byteOffset, value, littleEndian) native "DataView_setFloat64_1_Callback";
void _setFloat64_2(byteOffset, value) native "DataView_setFloat64_2_Callback";
void setInt16(/*unsigned long*/ byteOffset, /*short*/ value, {/*boolean*/ littleEndian}) {
if (?littleEndian) {
_setInt16_1(byteOffset, value, littleEndian);
return;
}
_setInt16_2(byteOffset, value);
}
void _setInt16_1(byteOffset, value, littleEndian) native "DataView_setInt16_1_Callback";
void _setInt16_2(byteOffset, value) native "DataView_setInt16_2_Callback";
void setInt32(/*unsigned long*/ byteOffset, /*long*/ value, {/*boolean*/ littleEndian}) {
if (?littleEndian) {
_setInt32_1(byteOffset, value, littleEndian);
return;
}
_setInt32_2(byteOffset, value);
}
void _setInt32_1(byteOffset, value, littleEndian) native "DataView_setInt32_1_Callback";
void _setInt32_2(byteOffset, value) native "DataView_setInt32_2_Callback";
void setInt8(int byteOffset, int value) native "DataView_setInt8_Callback";
void setUint16(/*unsigned long*/ byteOffset, /*unsigned short*/ value, {/*boolean*/ littleEndian}) {
if (?littleEndian) {
_setUint16_1(byteOffset, value, littleEndian);
return;
}
_setUint16_2(byteOffset, value);
}
void _setUint16_1(byteOffset, value, littleEndian) native "DataView_setUint16_1_Callback";
void _setUint16_2(byteOffset, value) native "DataView_setUint16_2_Callback";
void setUint32(/*unsigned long*/ byteOffset, /*unsigned long*/ value, {/*boolean*/ littleEndian}) {
if (?littleEndian) {
_setUint32_1(byteOffset, value, littleEndian);
return;
}
_setUint32_2(byteOffset, value);
}
void _setUint32_1(byteOffset, value, littleEndian) native "DataView_setUint32_1_Callback";
void _setUint32_2(byteOffset, value) native "DataView_setUint32_2_Callback";
void setUint8(int byteOffset, int value) native "DataView_setUint8_Callback";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName Database
abstract class Database {
/** @domName Database.version */
String get version;
/** @domName Database.changeVersion */
void changeVersion(String oldVersion, String newVersion, [SQLTransactionCallback callback, SQLTransactionErrorCallback errorCallback, VoidCallback successCallback]);
/** @domName Database.readTransaction */
void readTransaction(SQLTransactionCallback callback, [SQLTransactionErrorCallback errorCallback, VoidCallback successCallback]);
/** @domName Database.transaction */
void transaction(SQLTransactionCallback callback, [SQLTransactionErrorCallback errorCallback, VoidCallback successCallback]);
}
// 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.
// WARNING: Do not edit - generated code.
typedef void DatabaseCallback(database);
// 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.
// WARNING: Do not edit - generated code.
class _DatabaseImpl extends NativeFieldWrapperClass1 implements Database {
String get version native "Database_version_Getter";
void changeVersion(String oldVersion, String newVersion, [SQLTransactionCallback callback, SQLTransactionErrorCallback errorCallback, VoidCallback successCallback]) native "Database_changeVersion_Callback";
void readTransaction(SQLTransactionCallback callback, [SQLTransactionErrorCallback errorCallback, VoidCallback successCallback]) native "Database_readTransaction_Callback";
void transaction(SQLTransactionCallback callback, [SQLTransactionErrorCallback errorCallback, VoidCallback successCallback]) native "Database_transaction_Callback";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName DatabaseSync
abstract class DatabaseSync {
/** @domName DatabaseSync.lastErrorMessage */
String get lastErrorMessage;
/** @domName DatabaseSync.version */
String get version;
/** @domName DatabaseSync.changeVersion */
void changeVersion(String oldVersion, String newVersion, [SQLTransactionSyncCallback callback]);
/** @domName DatabaseSync.readTransaction */
void readTransaction(SQLTransactionSyncCallback callback);
/** @domName DatabaseSync.transaction */
void transaction(SQLTransactionSyncCallback callback);
}
// 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.
// WARNING: Do not edit - generated code.
class _DatabaseSyncImpl extends NativeFieldWrapperClass1 implements DatabaseSync {
String get lastErrorMessage native "DatabaseSync_lastErrorMessage_Getter";
String get version native "DatabaseSync_version_Getter";
void changeVersion(String oldVersion, String newVersion, [SQLTransactionSyncCallback callback]) native "DatabaseSync_changeVersion_Callback";
void readTransaction(SQLTransactionSyncCallback callback) native "DatabaseSync_readTransaction_Callback";
void transaction(SQLTransactionSyncCallback callback) native "DatabaseSync_transaction_Callback";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName DedicatedWorkerContext
abstract class DedicatedWorkerContext implements WorkerContext {
/**
* @domName EventTarget.addEventListener, EventTarget.removeEventListener, EventTarget.dispatchEvent
*/
DedicatedWorkerContextEvents get on;
/** @domName DedicatedWorkerContext.postMessage */
void postMessage(Object message, [List messagePorts]);
}
abstract class DedicatedWorkerContextEvents implements WorkerContextEvents {
EventListenerList get message;
}
// 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.
// WARNING: Do not edit - generated code.
class _DedicatedWorkerContextImpl extends _WorkerContextImpl implements DedicatedWorkerContext {
_DedicatedWorkerContextEventsImpl get on =>
new _DedicatedWorkerContextEventsImpl(this);
void postMessage(Object message, [List messagePorts]) native "DedicatedWorkerContext_postMessage_Callback";
}
class _DedicatedWorkerContextEventsImpl extends _WorkerContextEventsImpl implements DedicatedWorkerContextEvents {
_DedicatedWorkerContextEventsImpl(_ptr) : super(_ptr);
EventListenerList get message => this['message'];
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName DelayNode
abstract class DelayNode implements AudioNode {
/** @domName DelayNode.delayTime */
AudioParam get delayTime;
}
// 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.
// WARNING: Do not edit - generated code.
class _DelayNodeImpl extends _AudioNodeImpl implements DelayNode {
AudioParam get delayTime native "DelayNode_delayTime_Getter";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName HTMLDetailsElement
abstract class DetailsElement implements Element {
factory DetailsElement() => _Elements.createDetailsElement();
/** @domName HTMLDetailsElement.open */
bool open;
}
// 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.
// WARNING: Do not edit - generated code.
class _DetailsElementImpl extends _ElementImpl_Merged implements DetailsElement {
bool get open native "HTMLDetailsElement_open_Getter";
void set open(bool value) native "HTMLDetailsElement_open_Setter";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName DeviceMotionEvent
abstract class DeviceMotionEvent implements Event {
/** @domName DeviceMotionEvent.interval */
num get interval;
}
// 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.
// WARNING: Do not edit - generated code.
class _DeviceMotionEventImpl extends _EventImpl implements DeviceMotionEvent {
num get interval native "DeviceMotionEvent_interval_Getter";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName DeviceOrientationEvent
abstract class DeviceOrientationEvent implements Event {
/** @domName DeviceOrientationEvent.absolute */
bool get absolute;
/** @domName DeviceOrientationEvent.alpha */
num get alpha;
/** @domName DeviceOrientationEvent.beta */
num get beta;
/** @domName DeviceOrientationEvent.gamma */
num get gamma;
/** @domName DeviceOrientationEvent.initDeviceOrientationEvent */
void initDeviceOrientationEvent(String type, bool bubbles, bool cancelable, num alpha, num beta, num gamma, bool absolute);
}
// 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.
// WARNING: Do not edit - generated code.
class _DeviceOrientationEventImpl extends _EventImpl implements DeviceOrientationEvent {
bool get absolute native "DeviceOrientationEvent_absolute_Getter";
num get alpha native "DeviceOrientationEvent_alpha_Getter";
num get beta native "DeviceOrientationEvent_beta_Getter";
num get gamma native "DeviceOrientationEvent_gamma_Getter";
void initDeviceOrientationEvent(String type, bool bubbles, bool cancelable, num alpha, num beta, num gamma, bool absolute) native "DeviceOrientationEvent_initDeviceOrientationEvent_Callback";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName HTMLDirectoryElement
abstract class DirectoryElement implements Element {
/** @domName HTMLDirectoryElement.compact */
bool compact;
}
// 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.
// WARNING: Do not edit - generated code.
class _DirectoryElementImpl extends _ElementImpl_Merged implements DirectoryElement {
bool get compact native "HTMLDirectoryElement_compact_Getter";
void set compact(bool value) native "HTMLDirectoryElement_compact_Setter";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName DirectoryEntry
abstract class DirectoryEntry implements Entry {
/** @domName DirectoryEntry.createReader */
DirectoryReader createReader();
/** @domName DirectoryEntry.getDirectory */
void getDirectory(String path, {Map options, EntryCallback successCallback, ErrorCallback errorCallback});
/** @domName DirectoryEntry.getFile */
void getFile(String path, {Map options, EntryCallback successCallback, ErrorCallback errorCallback});
/** @domName DirectoryEntry.removeRecursively */
void removeRecursively(VoidCallback successCallback, [ErrorCallback errorCallback]);
}
// 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.
// WARNING: Do not edit - generated code.
class _DirectoryEntryImpl extends _EntryImpl implements DirectoryEntry {
DirectoryReader createReader() native "DirectoryEntry_createReader_Callback";
void getDirectory(String path, {Map options, EntryCallback successCallback, ErrorCallback errorCallback}) native "DirectoryEntry_getDirectory_Callback";
void getFile(String path, {Map options, EntryCallback successCallback, ErrorCallback errorCallback}) native "DirectoryEntry_getFile_Callback";
void removeRecursively(VoidCallback successCallback, [ErrorCallback errorCallback]) native "DirectoryEntry_removeRecursively_Callback";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName DirectoryEntrySync
abstract class DirectoryEntrySync implements EntrySync {
/** @domName DirectoryEntrySync.createReader */
DirectoryReaderSync createReader();
/** @domName DirectoryEntrySync.getDirectory */
DirectoryEntrySync getDirectory(String path, Map flags);
/** @domName DirectoryEntrySync.getFile */
FileEntrySync getFile(String path, Map flags);
/** @domName DirectoryEntrySync.removeRecursively */
void removeRecursively();
}
// 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.
// WARNING: Do not edit - generated code.
class _DirectoryEntrySyncImpl extends _EntrySyncImpl implements DirectoryEntrySync {
DirectoryReaderSync createReader() native "DirectoryEntrySync_createReader_Callback";
DirectoryEntrySync getDirectory(String path, Map flags) native "DirectoryEntrySync_getDirectory_Callback";
FileEntrySync getFile(String path, Map flags) native "DirectoryEntrySync_getFile_Callback";
void removeRecursively() native "DirectoryEntrySync_removeRecursively_Callback";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName DirectoryReader
abstract class DirectoryReader {
/** @domName DirectoryReader.readEntries */
void readEntries(EntriesCallback successCallback, [ErrorCallback errorCallback]);
}
// 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.
// WARNING: Do not edit - generated code.
class _DirectoryReaderImpl extends NativeFieldWrapperClass1 implements DirectoryReader {
void readEntries(EntriesCallback successCallback, [ErrorCallback errorCallback]) native "DirectoryReader_readEntries_Callback";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName DirectoryReaderSync
abstract class DirectoryReaderSync {
/** @domName DirectoryReaderSync.readEntries */
List<EntrySync> readEntries();
}
// 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.
// WARNING: Do not edit - generated code.
class _DirectoryReaderSyncImpl extends NativeFieldWrapperClass1 implements DirectoryReaderSync {
List<EntrySync> readEntries() native "DirectoryReaderSync_readEntries_Callback";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName HTMLDivElement
abstract class DivElement implements Element {
factory DivElement() => _Elements.createDivElement();
/** @domName HTMLDivElement.align */
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.
// WARNING: Do not edit - generated code.
class _DivElementImpl extends _ElementImpl_Merged implements DivElement {
String get align native "HTMLDivElement_align_Getter";
void set align(String value) native "HTMLDivElement_align_Setter";
}
// 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.
/// @domName Document
abstract class Document extends HtmlElement {
/**
* @domName EventTarget.addEventListener, EventTarget.removeEventListener, EventTarget.dispatchEvent
*/
DocumentEvents get on;
/** @domName HTMLDocument.activeElement */
Element get activeElement;
/** @domName Document.body */
Element body;
/** @domName Document.charset */
String charset;
/** @domName Document.cookie */
String cookie;
/** @domName Document.defaultView */
Window get window;
/** @domName Document.documentElement */
Element get documentElement;
/** @domName Document.domain */
String get domain;
/** @domName Document.head */
HeadElement get head;
/** @domName Document.implementation */
DOMImplementation get implementation;
/** @domName Document.lastModified */
String get lastModified;
/** @domName Document.preferredStylesheetSet */
String get preferredStylesheetSet;
/** @domName Document.readyState */
String get readyState;
/** @domName Document.referrer */
String get referrer;
/** @domName Document.selectedStylesheetSet */
String selectedStylesheetSet;
/** @domName Document.styleSheets */
List<StyleSheet> get styleSheets;
/** @domName Document.title */
String title;
/** @domName Document.webkitCurrentFullScreenElement */
Element get webkitCurrentFullScreenElement;
/** @domName Document.webkitFullScreenKeyboardInputAllowed */
bool get webkitFullScreenKeyboardInputAllowed;
/** @domName Document.webkitFullscreenElement */
Element get webkitFullscreenElement;
/** @domName Document.webkitFullscreenEnabled */
bool get webkitFullscreenEnabled;
/** @domName Document.webkitHidden */
bool get webkitHidden;
/** @domName Document.webkitIsFullScreen */
bool get webkitIsFullScreen;
/** @domName Document.webkitPointerLockElement */
Element get webkitPointerLockElement;
/** @domName Document.webkitVisibilityState */
String get webkitVisibilityState;
/** @domName Document.caretRangeFromPoint */
Range caretRangeFromPoint(int x, int y);
/** @domName Document.createCDATASection */
CDATASection createCDATASection(String data);
/** @domName Document.createDocumentFragment */
DocumentFragment createDocumentFragment();
/** @domName Document.createElement */
Element $dom_createElement(String tagName);
/** @domName Document.createElementNS */
Element $dom_createElementNS(String namespaceURI, String qualifiedName);
/** @domName Document.createEvent */
Event $dom_createEvent(String eventType);
/** @domName Document.createRange */
Range createRange();
/** @domName Document.createTextNode */
Text $dom_createTextNode(String data);
/** @domName Document.createTouch */
Touch createTouch(LocalWindow window, EventTarget target, int identifier, int pageX, int pageY, int screenX, int screenY, int webkitRadiusX, int webkitRadiusY, num webkitRotationAngle, num webkitForce);
/** @domName Document.createTouchList */
TouchList $dom_createTouchList();
/** @domName Document.elementFromPoint */
Element elementFromPoint(int x, int y);
/** @domName Document.execCommand */
bool execCommand(String command, bool userInterface, String value);
/** @domName Document.getCSSCanvasContext */
CanvasRenderingContext getCSSCanvasContext(String contextId, String name, int width, int height);
/** @domName Document.getElementById */
Element $dom_getElementById(String elementId);
/** @domName Document.getElementsByClassName */
List<Node> $dom_getElementsByClassName(String tagname);
/** @domName Document.getElementsByName */
List<Node> $dom_getElementsByName(String elementName);
/** @domName Document.getElementsByTagName */
List<Node> $dom_getElementsByTagName(String tagname);
/** @domName Document.queryCommandEnabled */
bool queryCommandEnabled(String command);
/** @domName Document.queryCommandIndeterm */
bool queryCommandIndeterm(String command);
/** @domName Document.queryCommandState */
bool queryCommandState(String command);
/** @domName Document.queryCommandSupported */
bool queryCommandSupported(String command);
/** @domName Document.queryCommandValue */
String queryCommandValue(String command);
/** @domName Document.querySelector */
Element $dom_querySelector(String selectors);
/** @domName Document.querySelectorAll */
List<Node> $dom_querySelectorAll(String selectors);
/** @domName Document.webkitCancelFullScreen */
void webkitCancelFullScreen();
/** @domName Document.webkitExitFullscreen */
void webkitExitFullscreen();
/** @domName Document.webkitExitPointerLock */
void webkitExitPointerLock();
}
abstract class DocumentEvents implements ElementEvents {
EventListenerList get abort;
EventListenerList get beforeCopy;
EventListenerList get beforeCut;
EventListenerList get beforePaste;
EventListenerList get blur;
EventListenerList get change;
EventListenerList get click;
EventListenerList get contextMenu;
EventListenerList get copy;
EventListenerList get cut;
EventListenerList get doubleClick;
EventListenerList get drag;
EventListenerList get dragEnd;
EventListenerList get dragEnter;
EventListenerList get dragLeave;
EventListenerList get dragOver;
EventListenerList get dragStart;
EventListenerList get drop;
EventListenerList get error;
EventListenerList get focus;
EventListenerList get input;
EventListenerList get invalid;
EventListenerList get keyDown;
EventListenerList get keyPress;
EventListenerList get keyUp;
EventListenerList get load;
EventListenerList get mouseDown;
EventListenerList get mouseMove;
EventListenerList get mouseOut;
EventListenerList get mouseOver;
EventListenerList get mouseUp;
EventListenerList get mouseWheel;
EventListenerList get paste;
EventListenerList get readyStateChange;
EventListenerList get reset;
EventListenerList get scroll;
EventListenerList get search;
EventListenerList get select;
EventListenerList get selectionChange;
EventListenerList get selectStart;
EventListenerList get submit;
EventListenerList get touchCancel;
EventListenerList get touchEnd;
EventListenerList get touchMove;
EventListenerList get touchStart;
EventListenerList get fullscreenChange;
EventListenerList get fullscreenError;
EventListenerList get pointerLockChange;
EventListenerList get pointerLockError;
}
// 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.
/// @domName DocumentFragment
abstract class DocumentFragment extends Element {
factory DocumentFragment() => _DocumentFragmentFactoryProvider.createDocumentFragment();
factory DocumentFragment.html(String html) =>
_DocumentFragmentFactoryProvider.createDocumentFragment_html(html);
// TODO(nweiz): enable this when XML is ported
// /** WARNING: Currently this doesn't work on Dartium (issue 649). */
// DocumentFragment.xml(String xml);
factory DocumentFragment.svg(String svg) =>
new _DocumentFragmentFactoryProvider.DocumentFragment.svg(svg);
DocumentFragment clone(bool deep);
/**
* @domName EventTarget.addEventListener, EventTarget.removeEventListener, EventTarget.dispatchEvent
*/
ElementEvents get on;
/** @domName DocumentFragment.querySelector */
Element $dom_querySelector(String selectors);
/** @domName DocumentFragment.querySelectorAll */
List<Node> $dom_querySelectorAll(String selectors);
}
// 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 List {
final Node _node;
final List<Node> _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<Element> get _filtered =>
new List.from(_childNodes.filter((n) => n is Element));
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 new ArgumentError("Invalid list length");
}
removeRange(newLength - 1, len - newLength);
}
void add(Element value) {
_childNodes.add(value);
}
void addAll(Collection<Element> collection) {
collection.forEach(add);
}
void addLast(Element value) {
add(value);
}
bool contains(Element element) {
return element is Element && _childNodes.contains(element);
}
void sort([Comparator<Element> compare = Comparable.compare]) {
throw new UnsupportedError('TODO(jacobr): should we impl?');
}
void setRange(int start, int rangeLength, List from, [int startFrom = 0]) {
throw const NotImplementedException();
}
void removeRange(int start, int rangeLength) {
_filtered.getRange(start, rangeLength).forEach((el) => el.remove());
}
void insertRange(int start, int rangeLength, [initialValue = null]) {
throw const NotImplementedException();
}
void clear() {
// Currently, ElementList#clear clears even non-element nodes, so we follow
// that behavior.
_childNodes.clear();
}
Element removeLast() {
final result = this.last;
if (result != null) {
result.remove();
}
return result;
}
Collection map(f(Element element)) => _filtered.map(f);
Collection<Element> filter(bool f(Element element)) => _filtered.filter(f);
bool every(bool f(Element element)) => _filtered.every(f);
bool some(bool f(Element element)) => _filtered.some(f);
bool get isEmpty => _filtered.isEmpty;
int get length => _filtered.length;
Element operator [](int index) => _filtered[index];
Iterator<Element> iterator() => _filtered.iterator();
List<Element> getRange(int start, int rangeLength) =>
_filtered.getRange(start, rangeLength);
int indexOf(Element element, [int start = 0]) =>
_filtered.indexOf(element, start);
int lastIndexOf(Element element, [int start = null]) {
if (start == null) start = length - 1;
return _filtered.lastIndexOf(element, start);
}
Element get last => _filtered.last;
}
Future<CSSStyleDeclaration> _emptyStyleFuture() {
return _createMeasurementFuture(() => new Element.tag('div').style,
new Completer<CSSStyleDeclaration>());
}
class EmptyElementRect implements ElementRect {
final ClientRect client = const _SimpleClientRect(0, 0, 0, 0);
final ClientRect offset = const _SimpleClientRect(0, 0, 0, 0);
final ClientRect scroll = const _SimpleClientRect(0, 0, 0, 0);
final ClientRect bounding = const _SimpleClientRect(0, 0, 0, 0);
final List<ClientRect> clientRects = const <ClientRect>[];
const EmptyElementRect();
}
class _FrozenCSSClassSet extends _CssClassSet {
_FrozenCSSClassSet() : super(null);
void _write(Set s) {
throw new UnsupportedError(
'frozen class set cannot be modified');
}
Set<String> _read() => new Set<String>();
bool get frozen => true;
}
class _DocumentFragmentImpl extends _NodeImpl implements DocumentFragment {
List<Element> _elements;
List<Element> get elements {
if (_elements == null) {
_elements = new _FilteredElementList(this);
}
return _elements;
}
// TODO: The type of value should be Collection<Element>. See http://b/5392897
void set elements(value) {
// Copy list first since we don't want liveness during iteration.
List copy = new List.from(value);
final elements = this.elements;
elements.clear();
elements.addAll(copy);
}
_ElementImpl query(String selectors) => $dom_querySelector(selectors);
List<Element> queryAll(String selectors) =>
new _FrozenElementList._wrap($dom_querySelectorAll(selectors));
String get innerHTML {
final e = new Element.tag("div");
e.nodes.add(this.clone(true));
return e.innerHTML;
}
String get outerHTML => innerHTML;
// TODO(nweiz): Do we want to support some variant of innerHTML for XML and/or
// SVG strings?
void set innerHTML(String value) {
this.nodes.clear();
final e = new Element.tag("div");
e.innerHTML = value;
// Copy list first since we don't want liveness during iteration.
List nodes = new List.from(e.nodes);
this.nodes.addAll(nodes);
}
Node _insertAdjacentNode(String where, Node node) {
switch (where.toLowerCase()) {
case "beforebegin": return null;
case "afterend": return null;
case "afterbegin":
var first = this.nodes.length > 0 ? this.nodes[0] : null;
this.insertBefore(node, first);
return node;
case "beforeend":
this.nodes.add(node);
return node;
default:
throw new ArgumentError("Invalid position ${where}");
}
}
Element insertAdjacentElement(String where, Element element)
=> this._insertAdjacentNode(where, element);
void insertAdjacentText(String where, String text) {
this._insertAdjacentNode(where, new Text(text));
}
void insertAdjacentHTML(String where, String text) {
this._insertAdjacentNode(where, new DocumentFragment.html(text));
}
void addText(String text) {
this.insertAdjacentText('beforeend', text);
}
void addHTML(String text) {
this.insertAdjacentHTML('beforeend', text);
}
Future<ElementRect> get rect {
return _createMeasurementFuture(() => const EmptyElementRect(),
new Completer<ElementRect>());
}
// If we can come up with a semi-reasonable default value for an Element
// getter, we'll use it. In general, these return the same values as an
// element that has no parent.
String get contentEditable => "false";
bool get isContentEditable => false;
bool get draggable => false;
bool get hidden => false;
bool get spellcheck => false;
bool get translate => false;
int get tabIndex => -1;
String get id => "";
String get title => "";
String get tagName => "";
String get webkitdropzone => "";
String get webkitRegionOverflow => "";
Element get $m_firstElementChild {
if (elements.length > 0) {
return elements[0];
}
return null;
}
Element get $m_lastElementChild() => elements.last;
Element get nextElementSibling => null;
Element get previousElementSibling => null;
Element get offsetParent => null;
Element get parent => null;
Map<String, String> get attributes => const {};
CSSClassSet get classes => new _FrozenCSSClassSet();
Map<String, String> get dataAttributes => const {};
CSSStyleDeclaration get style => new Element.tag('div').style;
Future<CSSStyleDeclaration> get computedStyle =>
_emptyStyleFuture();
Future<CSSStyleDeclaration> getComputedStyle(String pseudoElement) =>
_emptyStyleFuture();
bool matchesSelector(String selectors) => false;
// Imperative Element methods are made into no-ops, as they are on parentless
// elements.
void blur() {}
void focus() {}
void click() {}
void scrollByLines(int lines) {}
void scrollByPages(int pages) {}
void scrollIntoView([bool centerIfNeeded]) {}
void webkitRequestFullScreen(int flags) {}
void webkitRequestFullscreen() {}
// Setters throw errors rather than being no-ops because we aren't going to
// retain the values that were set, and erroring out seems clearer.
void set attributes(Map<String, String> value) {
throw new UnsupportedError(
"Attributes can't be set for document fragments.");
}
void set classes(Collection<String> value) {
throw new UnsupportedError(
"Classes can't be set for document fragments.");
}
void set dataAttributes(Map<String, String> value) {
throw new UnsupportedError(
"Data attributes can't be set for document fragments.");
}
void set contentEditable(String value) {
throw new UnsupportedError(
"Content editable can't be set for document fragments.");
}
String get dir {
throw new UnsupportedError(
"Document fragments don't support text direction.");
}
void set dir(String value) {
throw new UnsupportedError(
"Document fragments don't support text direction.");
}
void set draggable(bool value) {
throw new UnsupportedError(
"Draggable can't be set for document fragments.");
}
void set hidden(bool value) {
throw new UnsupportedError(
"Hidden can't be set for document fragments.");
}
void set id(String value) {
throw new UnsupportedError(
"ID can't be set for document fragments.");
}
String get lang {
throw new UnsupportedError(
"Document fragments don't support language.");
}
void set lang(String value) {
throw new UnsupportedError(
"Document fragments don't support language.");
}
void set scrollLeft(int value) {
throw new UnsupportedError(
"Document fragments don't support scrolling.");
}
void set scrollTop(int value) {
throw new UnsupportedError(
"Document fragments don't support scrolling.");
}
void set spellcheck(bool value) {
throw new UnsupportedError(
"Spellcheck can't be set for document fragments.");
}
void set translate(bool value) {
throw new UnsupportedError(
"Spellcheck can't be set for document fragments.");
}
void set tabIndex(int value) {
throw new UnsupportedError(
"Tab index can't be set for document fragments.");
}
void set title(String value) {
throw new UnsupportedError(
"Title can't be set for document fragments.");
}
void set webkitdropzone(String value) {
throw new UnsupportedError(
"WebKit drop zone can't be set for document fragments.");
}
void set webkitRegionOverflow(String value) {
throw new UnsupportedError(
"WebKit region overflow can't be set for document fragments.");
}
_ElementEventsImpl get on =>
new _ElementEventsImpl(this);
Element $dom_querySelector(String selectors) native "DocumentFragment_querySelector_Callback";
List<Node> $dom_querySelectorAll(String selectors) native "DocumentFragment_querySelectorAll_Callback";
}
// 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
{
_DocumentEventsImpl get on =>
new _DocumentEventsImpl(this);
Element get body native "Document_body_Getter";
void set body(Element value) native "Document_body_Setter";
String get charset native "Document_charset_Getter";
void set charset(String value) native "Document_charset_Setter";
String get cookie native "Document_cookie_Getter";
void set cookie(String value) native "Document_cookie_Setter";
Window get window native "Document_defaultView_Getter";
Element get documentElement native "Document_documentElement_Getter";
String get domain native "Document_domain_Getter";
HeadElement get head native "Document_head_Getter";
DOMImplementation get implementation native "Document_implementation_Getter";
String get lastModified native "Document_lastModified_Getter";
String get preferredStylesheetSet native "Document_preferredStylesheetSet_Getter";
String get readyState native "Document_readyState_Getter";
String get referrer native "Document_referrer_Getter";
String get selectedStylesheetSet native "Document_selectedStylesheetSet_Getter";
void set selectedStylesheetSet(String value) native "Document_selectedStylesheetSet_Setter";
List<StyleSheet> get styleSheets native "Document_styleSheets_Getter";
String get title native "Document_title_Getter";
void set title(String value) native "Document_title_Setter";
Element get webkitCurrentFullScreenElement native "Document_webkitCurrentFullScreenElement_Getter";
bool get webkitFullScreenKeyboardInputAllowed native "Document_webkitFullScreenKeyboardInputAllowed_Getter";
Element get webkitFullscreenElement native "Document_webkitFullscreenElement_Getter";
bool get webkitFullscreenEnabled native "Document_webkitFullscreenEnabled_Getter";
bool get webkitHidden native "Document_webkitHidden_Getter";
bool get webkitIsFullScreen native "Document_webkitIsFullScreen_Getter";
Element get webkitPointerLockElement native "Document_webkitPointerLockElement_Getter";
String get webkitVisibilityState native "Document_webkitVisibilityState_Getter";
Range caretRangeFromPoint(int x, int y) native "Document_caretRangeFromPoint_Callback";
CDATASection createCDATASection(String data) native "Document_createCDATASection_Callback";
DocumentFragment createDocumentFragment() native "Document_createDocumentFragment_Callback";
Element $dom_createElement(String tagName) native "Document_createElement_Callback";
Element $dom_createElementNS(String namespaceURI, String qualifiedName) native "Document_createElementNS_Callback";
Event $dom_createEvent(String eventType) native "Document_createEvent_Callback";
Range createRange() native "Document_createRange_Callback";
Text $dom_createTextNode(String data) native "Document_createTextNode_Callback";
Touch createTouch(LocalWindow window, EventTarget target, int identifier, int pageX, int pageY, int screenX, int screenY, int webkitRadiusX, int webkitRadiusY, num webkitRotationAngle, num webkitForce) native "Document_createTouch_Callback";
TouchList $dom_createTouchList() native "Document_createTouchList_Callback";
Element elementFromPoint(int x, int y) native "Document_elementFromPoint_Callback";
bool execCommand(String command, bool userInterface, String value) native "Document_execCommand_Callback";
CanvasRenderingContext getCSSCanvasContext(String contextId, String name, int width, int height) native "Document_getCSSCanvasContext_Callback";
Element $dom_getElementById(String elementId) native "Document_getElementById_Callback";
List<Node> $dom_getElementsByClassName(String tagname) native "Document_getElementsByClassName_Callback";
List<Node> $dom_getElementsByName(String elementName) native "Document_getElementsByName_Callback";
List<Node> $dom_getElementsByTagName(String tagname) native "Document_getElementsByTagName_Callback";
bool queryCommandEnabled(String command) native "Document_queryCommandEnabled_Callback";
bool queryCommandIndeterm(String command) native "Document_queryCommandIndeterm_Callback";
bool queryCommandState(String command) native "Document_queryCommandState_Callback";
bool queryCommandSupported(String command) native "Document_queryCommandSupported_Callback";
String queryCommandValue(String command) native "Document_queryCommandValue_Callback";
Element $dom_querySelector(String selectors) native "Document_querySelector_Callback";
List<Node> $dom_querySelectorAll(String selectors) native "Document_querySelectorAll_Callback";
void webkitCancelFullScreen() native "Document_webkitCancelFullScreen_Callback";
void webkitExitFullscreen() native "Document_webkitExitFullscreen_Callback";
void webkitExitPointerLock() native "Document_webkitExitPointerLock_Callback";
// 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);
}
List<Element> 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<Element>(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<Element>(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 => this['abort'];
EventListenerList get beforeCopy => this['beforecopy'];
EventListenerList get beforeCut => this['beforecut'];
EventListenerList get beforePaste => this['beforepaste'];
EventListenerList get blur => this['blur'];
EventListenerList get change => this['change'];
EventListenerList get click => this['click'];
EventListenerList get contextMenu => this['contextmenu'];
EventListenerList get copy => this['copy'];
EventListenerList get cut => this['cut'];
EventListenerList get doubleClick => this['dblclick'];
EventListenerList get drag => this['drag'];
EventListenerList get dragEnd => this['dragend'];
EventListenerList get dragEnter => this['dragenter'];
EventListenerList get dragLeave => this['dragleave'];
EventListenerList get dragOver => this['dragover'];
EventListenerList get dragStart => this['dragstart'];
EventListenerList get drop => this['drop'];
EventListenerList get error => this['error'];
EventListenerList get focus => this['focus'];
EventListenerList get input => this['input'];
EventListenerList get invalid => this['invalid'];
EventListenerList get keyDown => this['keydown'];
EventListenerList get keyPress => this['keypress'];
EventListenerList get keyUp => this['keyup'];
EventListenerList get load => this['load'];
EventListenerList get mouseDown => this['mousedown'];
EventListenerList get mouseMove => this['mousemove'];
EventListenerList get mouseOut => this['mouseout'];
EventListenerList get mouseOver => this['mouseover'];
EventListenerList get mouseUp => this['mouseup'];
EventListenerList get mouseWheel => this['mousewheel'];
EventListenerList get paste => this['paste'];
EventListenerList get readyStateChange => this['readystatechange'];
EventListenerList get reset => this['reset'];
EventListenerList get scroll => this['scroll'];
EventListenerList get search => this['search'];
EventListenerList get select => this['select'];
EventListenerList get selectionChange => this['selectionchange'];
EventListenerList get selectStart => this['selectstart'];
EventListenerList get submit => this['submit'];
EventListenerList get touchCancel => this['touchcancel'];
EventListenerList get touchEnd => this['touchend'];
EventListenerList get touchMove => this['touchmove'];
EventListenerList get touchStart => this['touchstart'];
EventListenerList get fullscreenChange => this['webkitfullscreenchange'];
EventListenerList get fullscreenError => this['webkitfullscreenerror'];
EventListenerList get pointerLockChange => this['webkitpointerlockchange'];
EventListenerList get pointerLockError => this['webkitpointerlockerror'];
}
// 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.
// WARNING: Do not edit - generated code.
class _DocumentImpl_Merged extends _DocumentImpl implements Document {
Element get activeElement native "HTMLDocument_activeElement_Getter";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName DocumentType
abstract class DocumentType implements Node {
/** @domName DocumentType.entities */
NamedNodeMap get entities;
/** @domName DocumentType.internalSubset */
String get internalSubset;
/** @domName DocumentType.name */
String get name;
/** @domName DocumentType.notations */
NamedNodeMap get notations;
/** @domName DocumentType.publicId */
String get publicId;
/** @domName DocumentType.systemId */
String get systemId;
/** @domName DocumentType.remove */
void remove();
}
// 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.
// WARNING: Do not edit - generated code.
class _DocumentTypeImpl extends _NodeImpl implements DocumentType {
NamedNodeMap get entities native "DocumentType_entities_Getter";
String get internalSubset native "DocumentType_internalSubset_Getter";
String get name native "DocumentType_name_Getter";
NamedNodeMap get notations native "DocumentType_notations_Getter";
String get publicId native "DocumentType_publicId_Getter";
String get systemId native "DocumentType_systemId_Getter";
void remove() native "DocumentType_remove_Callback";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName DynamicsCompressorNode
abstract class DynamicsCompressorNode implements AudioNode {
/** @domName DynamicsCompressorNode.attack */
AudioParam get attack;
/** @domName DynamicsCompressorNode.knee */
AudioParam get knee;
/** @domName DynamicsCompressorNode.ratio */
AudioParam get ratio;
/** @domName DynamicsCompressorNode.reduction */
AudioParam get reduction;
/** @domName DynamicsCompressorNode.release */
AudioParam get release;
/** @domName DynamicsCompressorNode.threshold */
AudioParam get threshold;
}
// 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.
// WARNING: Do not edit - generated code.
class _DynamicsCompressorNodeImpl extends _AudioNodeImpl implements DynamicsCompressorNode {
AudioParam get attack native "DynamicsCompressorNode_attack_Getter";
AudioParam get knee native "DynamicsCompressorNode_knee_Getter";
AudioParam get ratio native "DynamicsCompressorNode_ratio_Getter";
AudioParam get reduction native "DynamicsCompressorNode_reduction_Getter";
AudioParam get release native "DynamicsCompressorNode_release_Getter";
AudioParam get threshold native "DynamicsCompressorNode_threshold_Getter";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName EXTTextureFilterAnisotropic
abstract class EXTTextureFilterAnisotropic {
static const int MAX_TEXTURE_MAX_ANISOTROPY_EXT = 0x84FF;
static const int TEXTURE_MAX_ANISOTROPY_EXT = 0x84FE;
}
// 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.
// WARNING: Do not edit - generated code.
class _EXTTextureFilterAnisotropicImpl extends NativeFieldWrapperClass1 implements EXTTextureFilterAnisotropic {
}
// 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.
// WARNING: Do not edit - generated code.
/**
* All your attribute manipulation needs in one place.
* Extends the regular Map interface by automatically coercing non-string
* values to strings.
*/
abstract class AttributeMap implements Map<String, String> {
void operator []=(String key, value);
}
/**
* All your element measurement needs in one place
*/
abstract class ElementRect {
// Relative to offsetParent
ClientRect get client;
ClientRect get offset;
ClientRect get scroll;
// In global coords
ClientRect get bounding;
// In global coords
List<ClientRect> get clientRects;
}
abstract class NodeSelector {
Element query(String selectors);
List<Element> queryAll(String selectors);
}
abstract class CSSClassSet implements Set<String> {
/**
* Adds the class [token] to the element if it is not on it, removes it if it
* is.
*/
bool toggle(String token);
/**
* Returns [:true:] classes cannot be added or removed from this
* [:CSSClassSet:].
*/
bool get frozen;
}
/// @domName Element
abstract class Element implements Node, NodeSelector {
factory Element.html(String html) =>
_ElementFactoryProvider.createElement_html(html);
factory Element.tag(String tag) =>
_ElementFactoryProvider.createElement_tag(tag);
AttributeMap get attributes;
void set attributes(Map<String, String> value);
/**
* @domName childElementCount, firstElementChild, lastElementChild,
* children, Node.nodes.add
*/
List<Element> get elements;
void set elements(Collection<Element> value);
/** @domName className, classList */
CSSClassSet get classes;
void set classes(Collection<String> value);
AttributeMap get dataAttributes;
void set dataAttributes(Map<String, String> value);
/**
* Adds the specified text as a text node after the last child of this.
*/
void addText(String text);
/**
* Parses the specified text as HTML and adds the resulting node after the
* last child of this.
*/
void addHTML(String html);
/**
* @domName getClientRects, getBoundingClientRect, clientHeight, clientWidth,
* clientTop, clientLeft, offsetHeight, offsetWidth, offsetTop, offsetLeft,
* scrollHeight, scrollWidth, scrollTop, scrollLeft
*/
Future<ElementRect> get rect;
/** @domName Window.getComputedStyle */
Future<CSSStyleDeclaration> get computedStyle;
/** @domName Window.getComputedStyle */
Future<CSSStyleDeclaration> getComputedStyle(String pseudoElement);
Element clone(bool deep);
Element get parent;
/**
* Experimental support for [web components][wc]. This field stores a
* reference to the component implementation. It was inspired by Mozilla's
* [x-tags][] project. Please note: in the future it may be possible to
* `extend Element` from your class, in which case this field will be
* deprecated and will simply return this [Element] object.
*
* [wc]: http://dvcs.w3.org/hg/webcomponents/raw-file/tip/explainer/index.html
* [x-tags]: http://x-tags.org/
*/
var xtag;
/**
* @domName EventTarget.addEventListener, EventTarget.removeEventListener, EventTarget.dispatchEvent
*/
ElementEvents get on;
/** @domName HTMLElement.children */
HTMLCollection get $dom_children;
/** @domName HTMLElement.contentEditable */
String contentEditable;
/** @domName HTMLElement.dir */
String dir;
/** @domName HTMLElement.draggable */
bool draggable;
/** @domName HTMLElement.hidden */
bool hidden;
/** @domName HTMLElement.id */
String id;
/** @domName HTMLElement.innerHTML */
String innerHTML;
/** @domName HTMLElement.isContentEditable */
bool get isContentEditable;
/** @domName HTMLElement.lang */
String lang;
/** @domName HTMLElement.outerHTML */
String get outerHTML;
/** @domName HTMLElement.spellcheck */
bool spellcheck;
/** @domName HTMLElement.tabIndex */
int tabIndex;
/** @domName HTMLElement.title */
String title;
/** @domName HTMLElement.translate */
bool translate;
/** @domName HTMLElement.webkitdropzone */
String webkitdropzone;
/** @domName HTMLElement.click */
void click();
/** @domName HTMLElement.insertAdjacentElement */
Element insertAdjacentElement(String where, Element element);
/** @domName HTMLElement.insertAdjacentHTML */
void insertAdjacentHTML(String where, String html);
/** @domName HTMLElement.insertAdjacentText */
void insertAdjacentText(String where, String text);
static const int ALLOW_KEYBOARD_INPUT = 1;
/** @domName Element.childElementCount */
int get $dom_childElementCount;
/** @domName Element.className */
String $dom_className;
/** @domName Element.clientHeight */
int get clientHeight;
/** @domName Element.clientLeft */
int get clientLeft;
/** @domName Element.clientTop */
int get clientTop;
/** @domName Element.clientWidth */
int get clientWidth;
/** @domName Element.dataset */
Map<String, String> get dataset;
/** @domName Element.firstElementChild */
Element get $dom_firstElementChild;
/** @domName Element.lastElementChild */
Element get $dom_lastElementChild;
/** @domName Element.nextElementSibling */
Element get nextElementSibling;
/** @domName Element.offsetHeight */
int get offsetHeight;
/** @domName Element.offsetLeft */
int get offsetLeft;
/** @domName Element.offsetParent */
Element get offsetParent;
/** @domName Element.offsetTop */
int get offsetTop;
/** @domName Element.offsetWidth */
int get offsetWidth;
/** @domName Element.previousElementSibling */
Element get previousElementSibling;
/** @domName Element.scrollHeight */
int get scrollHeight;
/** @domName Element.scrollLeft */
int scrollLeft;
/** @domName Element.scrollTop */
int scrollTop;
/** @domName Element.scrollWidth */
int get scrollWidth;
/** @domName Element.style */
CSSStyleDeclaration get style;
/** @domName Element.tagName */
String get tagName;
/** @domName Element.blur */
void blur();
/** @domName Element.focus */
void focus();
/** @domName Element.getAttribute */
String $dom_getAttribute(String name);
/** @domName Element.getBoundingClientRect */
ClientRect getBoundingClientRect();
/** @domName Element.getClientRects */
List<ClientRect> getClientRects();
/** @domName Element.getElementsByClassName */
List<Node> $dom_getElementsByClassName(String name);
/** @domName Element.getElementsByTagName */
List<Node> $dom_getElementsByTagName(String name);
/** @domName Element.hasAttribute */
bool $dom_hasAttribute(String name);
/** @domName Element.querySelector */
Element $dom_querySelector(String selectors);
/** @domName Element.querySelectorAll */
List<Node> $dom_querySelectorAll(String selectors);
/** @domName Element.remove */
void remove();
/** @domName Element.removeAttribute */
void $dom_removeAttribute(String name);
/** @domName Element.scrollByLines */
void scrollByLines(int lines);
/** @domName Element.scrollByPages */
void scrollByPages(int pages);
/** @domName Element.scrollIntoViewIfNeeded */
void scrollIntoView([bool centerIfNeeded]);
/** @domName Element.setAttribute */
void $dom_setAttribute(String name, String value);
/** @domName Element.webkitMatchesSelector */
bool matchesSelector(String selectors);
/** @domName Element.webkitRequestFullScreen */
void webkitRequestFullScreen(int flags);
/** @domName Element.webkitRequestFullscreen */
void webkitRequestFullscreen();
/** @domName Element.webkitRequestPointerLock */
void webkitRequestPointerLock();
}
abstract class ElementEvents implements Events {
EventListenerList get abort;
EventListenerList get beforeCopy;
EventListenerList get beforeCut;
EventListenerList get beforePaste;
EventListenerList get blur;
EventListenerList get change;
EventListenerList get click;
EventListenerList get contextMenu;
EventListenerList get copy;
EventListenerList get cut;
EventListenerList get doubleClick;
EventListenerList get drag;
EventListenerList get dragEnd;
EventListenerList get dragEnter;
EventListenerList get dragLeave;
EventListenerList get dragOver;
EventListenerList get dragStart;
EventListenerList get drop;
EventListenerList get error;
EventListenerList get focus;
EventListenerList get input;
EventListenerList get invalid;
EventListenerList get keyDown;
EventListenerList get keyPress;
EventListenerList get keyUp;
EventListenerList get load;
EventListenerList get mouseDown;
EventListenerList get mouseMove;
EventListenerList get mouseOut;
EventListenerList get mouseOver;
EventListenerList get mouseUp;
EventListenerList get mouseWheel;
EventListenerList get paste;
EventListenerList get reset;
EventListenerList get scroll;
EventListenerList get search;
EventListenerList get select;
EventListenerList get selectStart;
EventListenerList get submit;
EventListenerList get touchCancel;
EventListenerList get touchEnd;
EventListenerList get touchEnter;
EventListenerList get touchLeave;
EventListenerList get touchMove;
EventListenerList get touchStart;
EventListenerList get transitionEnd;
EventListenerList get fullscreenChange;
EventListenerList get fullscreenError;
}
// 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.
// TODO(jacobr): use _Lists.dart to remove some of the duplicated
// functionality.
class _ChildrenElementList implements List {
// Raw Element.
final _ElementImpl _element;
final _HTMLCollectionImpl _childElements;
_ChildrenElementList._wrap(_ElementImpl element)
: _childElements = element.$dom_children,
_element = element;
List<Element> _toList() {
final output = new List(_childElements.length);
for (int i = 0, len = _childElements.length; i < len; i++) {
output[i] = _childElements[i];
}
return output;
}
bool contains(Element element) => _childElements.contains(element);
void forEach(void f(Element element)) {
for (_ElementImpl element in _childElements) {
f(element);
}
}
List<Element> filter(bool f(Element element)) {
final output = [];
forEach((Element element) {
if (f(element)) {
output.add(element);
}
});
return new _FrozenElementList._wrap(output);
}
bool every(bool f(Element element)) {
for (Element element in this) {
if (!f(element)) {
return false;
}
};
return true;
}
bool some(bool f(Element element)) {
for (Element element in this) {
if (f(element)) {
return true;
}
};
return false;
}
Collection map(f(Element element)) {
final out = [];
for (Element el in this) {
out.add(f(el));
}
return out;
}
bool get isEmpty {
return _element.$dom_firstElementChild == null;
}
int get length {
return _childElements.length;
}
_ElementImpl operator [](int index) {
return _childElements[index];
}
void operator []=(int index, _ElementImpl value) {
_element.$dom_replaceChild(value, _childElements[index]);
}
void set length(int newLength) {
// TODO(jacobr): remove children when length is reduced.
throw new UnsupportedError('');
}
Element add(_ElementImpl value) {
_element.$dom_appendChild(value);
return value;
}
Element addLast(_ElementImpl value) => add(value);
Iterator<Element> iterator() => _toList().iterator();
void addAll(Collection<Element> collection) {
for (_ElementImpl element in collection) {
_element.$dom_appendChild(element);
}
}
void sort([Comparator<Element> compare = Comparable.compare]) {
throw new UnsupportedError('TODO(jacobr): should we impl?');
}
void setRange(int start, int rangeLength, List from, [int startFrom = 0]) {
throw const NotImplementedException();
}
void removeRange(int start, int rangeLength) {
throw const NotImplementedException();
}
void insertRange(int start, int rangeLength, [initialValue = null]) {
throw const NotImplementedException();
}
List getRange(int start, int rangeLength) =>
new _FrozenElementList._wrap(_Lists.getRange(this, start, rangeLength,
[]));
int indexOf(Element element, [int start = 0]) {
return _Lists.indexOf(this, element, start, this.length);
}
int lastIndexOf(Element element, [int start = null]) {
if (start == null) start = length - 1;
return _Lists.lastIndexOf(this, element, start);
}
void clear() {
// It is unclear if we want to keep non element nodes?
_element.text = '';
}
Element removeLast() {
final result = this.last;
if (result != null) {
_element.$dom_removeChild(result);
}
return result;
}
Element get last {
return _element.$dom_lastElementChild;
}
}
// TODO(jacobr): this is an inefficient implementation but it is hard to see
// a better option given that we cannot quite force NodeList to be an
// ElementList as there are valid cases where a NodeList JavaScript object
// contains Node objects that are not Elements.
class _FrozenElementList implements List {
final List<Node> _nodeList;
_FrozenElementList._wrap(this._nodeList);
Element get first {
return _nodeList[0];
}
bool contains(Element element) {
for (Element el in this) {
if (el == element) return true;
}
return false;
}
void forEach(void f(Element element)) {
for (Element el in this) {
f(el);
}
}
Collection map(f(Element element)) {
final out = [];
for (Element el in this) {
out.add(f(el));
}
return out;
}
List<Element> filter(bool f(Element element)) {
final out = [];
for (Element el in this) {
if (f(el)) out.add(el);
}
return out;
}
bool every(bool f(Element element)) {
for(Element element in this) {
if (!f(element)) {
return false;
}
};
return true;
}
bool some(bool f(Element element)) {
for(Element element in this) {
if (f(element)) {
return true;
}
};
return false;
}
bool get isEmpty => _nodeList.isEmpty;
int get length => _nodeList.length;
Element operator [](int index) => _nodeList[index];
void operator []=(int index, Element value) {
throw new UnsupportedError('');
}
void set length(int newLength) {
_nodeList.length = newLength;
}
void add(Element value) {
throw new UnsupportedError('');
}
void addLast(Element value) {
throw new UnsupportedError('');
}
Iterator<Element> iterator() => new _FrozenElementListIterator(this);
void addAll(Collection<Element> collection) {
throw new UnsupportedError('');
}
void sort([Comparator<Element> compare = Comparable.compare]) {
throw new UnsupportedError('');
}
void setRange(int start, int rangeLength, List from, [int startFrom = 0]) {
throw new UnsupportedError('');
}
void removeRange(int start, int rangeLength) {
throw new UnsupportedError('');
}
void insertRange(int start, int rangeLength, [initialValue = null]) {
throw new UnsupportedError('');
}
List<Element> getRange(int start, int rangeLength) =>
new _FrozenElementList._wrap(_nodeList.getRange(start, rangeLength));
int indexOf(Element element, [int start = 0]) =>
_nodeList.indexOf(element, start);
int lastIndexOf(Element element, [int start = null]) =>
_nodeList.lastIndexOf(element, start);
void clear() {
throw new UnsupportedError('');
}
Element removeLast() {
throw new UnsupportedError('');
}
Element get last => _nodeList.last;
}
class _FrozenElementListIterator implements Iterator<Element> {
final _FrozenElementList _list;
int _index = 0;
_FrozenElementListIterator(this._list);
/**
* Gets the next element in the iteration. Throws a
* [StateError("No more elements")] if no element is left.
*/
Element next() {
if (!hasNext) {
throw new StateError("No more elements");
}
return _list[_index++];
}
/**
* Returns whether the [Iterator] has elements left.
*/
bool get hasNext => _index < _list.length;
}
class _ElementAttributeMap implements AttributeMap {
final _ElementImpl _element;
_ElementAttributeMap(this._element);
bool containsValue(String value) {
final attributes = _element.$dom_attributes;
for (int i = 0, len = attributes.length; i < len; i++) {
if(value == attributes[i].value) {
return true;
}
}
return false;
}
bool containsKey(String key) {
return _element.$dom_hasAttribute(key);
}
String operator [](String key) {
return _element.$dom_getAttribute(key);
}
void operator []=(String key, value) {
_element.$dom_setAttribute(key, '$value');
}
String putIfAbsent(String key, String ifAbsent()) {
if (!containsKey(key)) {
this[key] = ifAbsent();
}
return this[key];
}
String remove(String key) {
String value = _element.$dom_getAttribute(key);
_element.$dom_removeAttribute(key);
return value;
}
void clear() {
final attributes = _element.$dom_attributes;
for (int i = attributes.length - 1; i >= 0; i--) {
remove(attributes[i].name);
}
}
void forEach(void f(String key, String value)) {
final attributes = _element.$dom_attributes;
for (int i = 0, len = attributes.length; i < len; i++) {
final item = attributes[i];
f(item.name, item.value);
}
}
Collection<String> get keys {
// TODO(jacobr): generate a lazy collection instead.
final attributes = _element.$dom_attributes;
final keys = new List<String>(attributes.length);
for (int i = 0, len = attributes.length; i < len; i++) {
keys[i] = attributes[i].name;
}
return keys;
}
Collection<String> get values {
// TODO(jacobr): generate a lazy collection instead.
final attributes = _element.$dom_attributes;
final values = new List<String>(attributes.length);
for (int i = 0, len = attributes.length; i < len; i++) {
values[i] = attributes[i].value;
}
return values;
}
/**
* The number of {key, value} pairs in the map.
*/
int get length {
return _element.$dom_attributes.length;
}
/**
* Returns true if there is no {key, value} pair in the map.
*/
bool get isEmpty {
return length == 0;
}
}
/**
* Provides a Map abstraction on top of data-* attributes, similar to the
* dataSet in the old DOM.
*/
class _DataAttributeMap implements AttributeMap {
final Map<String, String> $dom_attributes;
_DataAttributeMap(this.$dom_attributes);
// interface Map
// TODO: Use lazy iterator when it is available on Map.
bool containsValue(String value) => values.some((v) => v == value);
bool containsKey(String key) => $dom_attributes.containsKey(_attr(key));
String operator [](String key) => $dom_attributes[_attr(key)];
void operator []=(String key, value) {
$dom_attributes[_attr(key)] = '$value';
}
String putIfAbsent(String key, String ifAbsent()) =>
$dom_attributes.putIfAbsent(_attr(key), ifAbsent);
String remove(String key) => $dom_attributes.remove(_attr(key));
void clear() {
// Needs to operate on a snapshot since we are mutating the collection.
for (String key in keys) {
remove(key);
}
}
void forEach(void f(String key, String value)) {
$dom_attributes.forEach((String key, String value) {
if (_matches(key)) {
f(_strip(key), value);
}
});
}
Collection<String> get keys {
final keys = new List<String>();
$dom_attributes.forEach((String key, String value) {
if (_matches(key)) {
keys.add(_strip(key));
}
});
return keys;
}
Collection<String> get values {
final values = new List<String>();
$dom_attributes.forEach((String key, String value) {
if (_matches(key)) {
values.add(value);
}
});
return values;
}
int get length => keys.length;
// TODO: Use lazy iterator when it is available on Map.
bool get isEmpty => length == 0;
// Helpers.
String _attr(String key) => 'data-$key';
bool _matches(String key) => key.startsWith('data-');
String _strip(String key) => key.substring(5);
}
class _CssClassSet implements CSSClassSet {
final _ElementImpl _element;
_CssClassSet(this._element);
String toString() => _formatSet(_read());
// interface Iterable - BEGIN
Iterator<String> iterator() => _read().iterator();
// interface Iterable - END
// interface Collection - BEGIN
void forEach(void f(String element)) {
_read().forEach(f);
}
Collection map(f(String element)) => _read().map(f);
Collection<String> filter(bool f(String element)) => _read().filter(f);
bool every(bool f(String element)) => _read().every(f);
bool some(bool f(String element)) => _read().some(f);
bool get isEmpty => _read().isEmpty;
bool get frozen => false;
int get length =>_read().length;
// interface Collection - END
// interface Set - BEGIN
bool contains(String value) => _read().contains(value);
void add(String value) {
// TODO - figure out if we need to do any validation here
// or if the browser natively does enough
_modify((s) => s.add(value));
}
bool remove(String value) {
Set<String> s = _read();
bool result = s.remove(value);
_write(s);
return result;
}
bool toggle(String value) {
Set<String> s = _read();
bool result = false;
if (s.contains(value)) {
s.remove(value);
} else {
s.add(value);
result = true;
}
_write(s);
return result;
}
void addAll(Collection<String> collection) {
// TODO - see comment above about validation
_modify((s) => s.addAll(collection));
}
void removeAll(Collection<String> collection) {
_modify((s) => s.removeAll(collection));
}
bool isSubsetOf(Collection<String> collection) =>
_read().isSubsetOf(collection);
bool containsAll(Collection<String> collection) =>
_read().containsAll(collection);
Set<String> intersection(Collection<String> other) =>
_read().intersection(other);
void clear() {
_modify((s) => s.clear());
}
// interface Set - END
/**
* Helper method used to modify the set of css classes on this element.
*
* f - callback with:
* s - a Set of all the css class name currently on this element.
*
* After f returns, the modified set is written to the
* className property of this element.
*/
void _modify( f(Set<String> s)) {
Set<String> s = _read();
f(s);
_write(s);
}
/**
* Read the class names from the Element class property,
* and put them into a set (duplicates are discarded).
*/
Set<String> _read() {
// TODO(mattsh) simplify this once split can take regex.
Set<String> s = new Set<String>();
for (String name in _classname().split(' ')) {
String trimmed = name.trim();
if (!trimmed.isEmpty) {
s.add(trimmed);
}
}
return s;
}
/**
* Read the class names as a space-separated string. This is meant to be
* overridden by subclasses.
*/
String _classname() => _element.$dom_className;
/**
* Join all the elements of a set into one string and write
* back to the element.
*/
void _write(Set s) {
_element.$dom_className = _formatSet(s);
}
String _formatSet(Set<String> s) {
// TODO(mattsh) should be able to pass Set to String.joins http:/b/5398605
List list = new List.from(s);
return Strings.join(list, ' ');
}
}
class _SimpleClientRect implements ClientRect {
final num left;
final num top;
final num width;
final num height;
num get right => left + width;
num get bottom => top + height;
const _SimpleClientRect(this.left, this.top, this.width, this.height);
bool operator ==(ClientRect other) {
return other != null && left == other.left && top == other.top
&& width == other.width && height == other.height;
}
String toString() => "($left, $top, $width, $height)";
}
// TODO(jacobr): we cannot currently be lazy about calculating the client
// rects as we must perform all measurement queries at a safe point to avoid
// triggering unneeded layouts.
/**
* All your element measurement needs in one place
* @domName none
*/
class _ElementRectImpl implements ElementRect {
final ClientRect client;
final ClientRect offset;
final ClientRect scroll;
// TODO(jacobr): should we move these outside of ElementRect to avoid the
// overhead of computing them every time even though they are rarely used.
final _ClientRectImpl _boundingClientRect;
final _ClientRectListImpl _clientRects;
_ElementRectImpl(_ElementImpl element) :
client = new _SimpleClientRect(element.clientLeft,
element.clientTop,
element.clientWidth,
element.clientHeight),
offset = new _SimpleClientRect(element.offsetLeft,
element.offsetTop,
element.offsetWidth,
element.offsetHeight),
scroll = new _SimpleClientRect(element.scrollLeft,
element.scrollTop,
element.scrollWidth,
element.scrollHeight),
_boundingClientRect = element.getBoundingClientRect(),
_clientRects = element.getClientRects();
_ClientRectImpl get bounding => _boundingClientRect;
// TODO(jacobr): cleanup.
List<ClientRect> get clientRects {
final out = new List(_clientRects.length);
for (num i = 0; i < _clientRects.length; i++) {
out[i] = _clientRects.item(i);
}
return out;
}
}
class _ElementImpl extends _NodeImpl implements Element {
/**
* @domName Element.hasAttribute, Element.getAttribute, Element.setAttribute,
* Element.removeAttribute
*/
_ElementAttributeMap get attributes => new _ElementAttributeMap(this);
void set attributes(Map<String, String> value) {
Map<String, String> attributes = this.attributes;
attributes.clear();
for (String key in value.keys) {
attributes[key] = value[key];
}
}
void set elements(Collection<Element> value) {
final elements = this.elements;
elements.clear();
elements.addAll(value);
}
List<Element> get elements => new _ChildrenElementList._wrap(this);
_ElementImpl query(String selectors) => $dom_querySelector(selectors);
List<Element> queryAll(String selectors) =>
new _FrozenElementList._wrap($dom_querySelectorAll(selectors));
_CssClassSet get classes => new _CssClassSet(this);
void set classes(Collection<String> value) {
_CssClassSet classSet = classes;
classSet.clear();
classSet.addAll(value);
}
Map<String, String> get dataAttributes =>
new _DataAttributeMap(attributes);
void set dataAttributes(Map<String, String> value) {
final dataAttributes = this.dataAttributes;
dataAttributes.clear();
for (String key in value.keys) {
dataAttributes[key] = value[key];
}
}
Future<ElementRect> get rect {
return _createMeasurementFuture(
() => new _ElementRectImpl(this),
new Completer<ElementRect>());
}
Future<CSSStyleDeclaration> get computedStyle {
// TODO(jacobr): last param should be null, see b/5045788
return getComputedStyle('');
}
Future<CSSStyleDeclaration> getComputedStyle(String pseudoElement) {
return _createMeasurementFuture(
() => _window.$dom_getComputedStyle(this, pseudoElement),
new Completer<CSSStyleDeclaration>());
}
void addText(String text) {
this.insertAdjacentText('beforeend', text);
}
void addHTML(String text) {
this.insertAdjacentHTML('beforeend', text);
}
// Hooks to support custom WebComponents.
var xtag;
noSuchMethod(InvocationMirror invocation) {
if (dynamicUnknownElementDispatcher == null) {
throw new NoSuchMethodError(this, invocation.memberName,
invocation.positionalArguments,
invocation.namedArguments);
} else {
String hackedName = invocation.memberName;
if (invocation.isGetter) hackedName = "get:$hackedName";
if (invocation.isSetter) hackedName = "set:$hackedName";
return dynamicUnknownElementDispatcher(this,
hackedName,
invocation.positionalArguments);
}
}
_ElementEventsImpl get on =>
new _ElementEventsImpl(this);
int get $dom_childElementCount native "Element_childElementCount_Getter";
String get $dom_className native "Element_className_Getter";
void set $dom_className(String value) native "Element_className_Setter";
int get clientHeight native "Element_clientHeight_Getter";
int get clientLeft native "Element_clientLeft_Getter";
int get clientTop native "Element_clientTop_Getter";
int get clientWidth native "Element_clientWidth_Getter";
Map<String, String> get dataset native "Element_dataset_Getter";
Element get $dom_firstElementChild native "Element_firstElementChild_Getter";
Element get $dom_lastElementChild native "Element_lastElementChild_Getter";
Element get nextElementSibling native "Element_nextElementSibling_Getter";
int get offsetHeight native "Element_offsetHeight_Getter";
int get offsetLeft native "Element_offsetLeft_Getter";
Element get offsetParent native "Element_offsetParent_Getter";
int get offsetTop native "Element_offsetTop_Getter";
int get offsetWidth native "Element_offsetWidth_Getter";
Element get previousElementSibling native "Element_previousElementSibling_Getter";
int get scrollHeight native "Element_scrollHeight_Getter";
int get scrollLeft native "Element_scrollLeft_Getter";
void set scrollLeft(int value) native "Element_scrollLeft_Setter";
int get scrollTop native "Element_scrollTop_Getter";
void set scrollTop(int value) native "Element_scrollTop_Setter";
int get scrollWidth native "Element_scrollWidth_Getter";
CSSStyleDeclaration get style native "Element_style_Getter";
String get tagName native "Element_tagName_Getter";
void blur() native "Element_blur_Callback";
void focus() native "Element_focus_Callback";
String $dom_getAttribute(String name) native "Element_getAttribute_Callback";
ClientRect getBoundingClientRect() native "Element_getBoundingClientRect_Callback";
List<ClientRect> getClientRects() native "Element_getClientRects_Callback";
List<Node> $dom_getElementsByClassName(String name) native "Element_getElementsByClassName_Callback";
List<Node> $dom_getElementsByTagName(String name) native "Element_getElementsByTagName_Callback";
bool $dom_hasAttribute(String name) native "Element_hasAttribute_Callback";
Element $dom_querySelector(String selectors) native "Element_querySelector_Callback";
List<Node> $dom_querySelectorAll(String selectors) native "Element_querySelectorAll_Callback";
void remove() native "Element_remove_Callback";
void $dom_removeAttribute(String name) native "Element_removeAttribute_Callback";
void scrollByLines(int lines) native "Element_scrollByLines_Callback";
void scrollByPages(int pages) native "Element_scrollByPages_Callback";
void scrollIntoView([/*boolean*/ centerIfNeeded]) {
if (?centerIfNeeded) {
_scrollIntoViewIfNeeded_1(centerIfNeeded);
return;
}
_scrollIntoViewIfNeeded_2();
}
void _scrollIntoViewIfNeeded_1(centerIfNeeded) native "Element_scrollIntoViewIfNeeded_1_Callback";
void _scrollIntoViewIfNeeded_2() native "Element_scrollIntoViewIfNeeded_2_Callback";
void $dom_setAttribute(String name, String value) native "Element_setAttribute_Callback";
bool matchesSelector(String selectors) native "Element_webkitMatchesSelector_Callback";
void webkitRequestFullScreen(int flags) native "Element_webkitRequestFullScreen_Callback";
void webkitRequestFullscreen() native "Element_webkitRequestFullscreen_Callback";
void webkitRequestPointerLock() native "Element_webkitRequestPointerLock_Callback";
}
// Temporary dispatch hook to support WebComponents.
Function dynamicUnknownElementDispatcher;
final _START_TAG_REGEXP = const RegExp('<(\\w+)');
class _ElementFactoryProvider {
static final _CUSTOM_PARENT_TAG_MAP = const {
'body' : 'html',
'head' : 'html',
'caption' : 'table',
'td': 'tr',
'colgroup': 'table',
'col' : 'colgroup',
'tr' : 'tbody',
'tbody' : 'table',
'tfoot' : 'table',
'thead' : 'table',
'track' : 'audio',
};
/** @domName Document.createElement */
static Element createElement_html(String html) {
// TODO(jacobr): this method can be made more robust and performant.
// 1) Cache the dummy parent elements required to use innerHTML rather than
// creating them every call.
// 2) Verify that the html does not contain leading or trailing text nodes.
// 3) Verify that the html does not contain both <head> and <body> tags.
// 4) Detatch the created element from its dummy parent.
String parentTag = 'div';
String tag;
final match = _START_TAG_REGEXP.firstMatch(html);
if (match != null) {
tag = match.group(1).toLowerCase();
if (_CUSTOM_PARENT_TAG_MAP.containsKey(tag)) {
parentTag = _CUSTOM_PARENT_TAG_MAP[tag];
}
}
final _ElementImpl temp = new Element.tag(parentTag);
temp.innerHTML = html;
Element element;
if (temp.elements.length == 1) {
element = temp.elements[0];
} else if (parentTag == 'html' && temp.elements.length == 2) {
// Work around for edge case in WebKit and possibly other browsers where
// both body and head elements are created even though the inner html
// only contains a head or body element.
element = temp.elements[tag == 'head' ? 0 : 1];
} else {
throw new ArgumentError('HTML had ${temp.elements.length} '
'top level elements but 1 expected');
}
element.remove();
return element;
}
/** @domName Document.createElement */
static Element createElement_tag(String tag) =>
_document.$dom_createElement(tag);
}
class _ElementEventsImpl extends _EventsImpl implements ElementEvents {
_ElementEventsImpl(_ptr) : super(_ptr);
EventListenerList get abort => this['abort'];
EventListenerList get beforeCopy => this['beforecopy'];
EventListenerList get beforeCut => this['beforecut'];
EventListenerList get beforePaste => this['beforepaste'];
EventListenerList get blur => this['blur'];
EventListenerList get change => this['change'];
EventListenerList get click => this['click'];
EventListenerList get contextMenu => this['contextmenu'];
EventListenerList get copy => this['copy'];
EventListenerList get cut => this['cut'];
EventListenerList get doubleClick => this['dblclick'];
EventListenerList get drag => this['drag'];
EventListenerList get dragEnd => this['dragend'];
EventListenerList get dragEnter => this['dragenter'];
EventListenerList get dragLeave => this['dragleave'];
EventListenerList get dragOver => this['dragover'];
EventListenerList get dragStart => this['dragstart'];
EventListenerList get drop => this['drop'];
EventListenerList get error => this['error'];
EventListenerList get focus => this['focus'];
EventListenerList get input => this['input'];
EventListenerList get invalid => this['invalid'];
EventListenerList get keyDown => this['keydown'];
EventListenerList get keyPress => this['keypress'];
EventListenerList get keyUp => this['keyup'];
EventListenerList get load => this['load'];
EventListenerList get mouseDown => this['mousedown'];
EventListenerList get mouseMove => this['mousemove'];
EventListenerList get mouseOut => this['mouseout'];
EventListenerList get mouseOver => this['mouseover'];
EventListenerList get mouseUp => this['mouseup'];
EventListenerList get mouseWheel => this['mousewheel'];
EventListenerList get paste => this['paste'];
EventListenerList get reset => this['reset'];
EventListenerList get scroll => this['scroll'];
EventListenerList get search => this['search'];
EventListenerList get select => this['select'];
EventListenerList get selectStart => this['selectstart'];
EventListenerList get submit => this['submit'];
EventListenerList get touchCancel => this['touchcancel'];
EventListenerList get touchEnd => this['touchend'];
EventListenerList get touchEnter => this['touchenter'];
EventListenerList get touchLeave => this['touchleave'];
EventListenerList get touchMove => this['touchmove'];
EventListenerList get touchStart => this['touchstart'];
EventListenerList get transitionEnd => this['webkitTransitionEnd'];
EventListenerList get fullscreenChange => this['webkitfullscreenchange'];
EventListenerList get fullscreenError => this['webkitfullscreenerror'];
}
// 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.
// WARNING: Do not edit - generated code.
class _ElementImpl_Merged extends _ElementImpl implements Element {
HTMLCollection get $dom_children native "HTMLElement_children_Getter";
String get contentEditable native "HTMLElement_contentEditable_Getter";
void set contentEditable(String value) native "HTMLElement_contentEditable_Setter";
String get dir native "HTMLElement_dir_Getter";
void set dir(String value) native "HTMLElement_dir_Setter";
bool get draggable native "HTMLElement_draggable_Getter";
void set draggable(bool value) native "HTMLElement_draggable_Setter";
bool get hidden native "HTMLElement_hidden_Getter";
void set hidden(bool value) native "HTMLElement_hidden_Setter";
String get id native "HTMLElement_id_Getter";
void set id(String value) native "HTMLElement_id_Setter";
String get innerHTML native "HTMLElement_innerHTML_Getter";
void set innerHTML(String value) native "HTMLElement_innerHTML_Setter";
bool get isContentEditable native "HTMLElement_isContentEditable_Getter";
String get lang native "HTMLElement_lang_Getter";
void set lang(String value) native "HTMLElement_lang_Setter";
String get outerHTML native "HTMLElement_outerHTML_Getter";
bool get spellcheck native "HTMLElement_spellcheck_Getter";
void set spellcheck(bool value) native "HTMLElement_spellcheck_Setter";
int get tabIndex native "HTMLElement_tabIndex_Getter";
void set tabIndex(int value) native "HTMLElement_tabIndex_Setter";
String get title native "HTMLElement_title_Getter";
void set title(String value) native "HTMLElement_title_Setter";
bool get translate native "HTMLElement_translate_Getter";
void set translate(bool value) native "HTMLElement_translate_Setter";
String get webkitdropzone native "HTMLElement_webkitdropzone_Getter";
void set webkitdropzone(String value) native "HTMLElement_webkitdropzone_Setter";
void click() native "HTMLElement_click_Callback";
Element insertAdjacentElement(String where, Element element) native "HTMLElement_insertAdjacentElement_Callback";
void insertAdjacentHTML(String where, String html) native "HTMLElement_insertAdjacentHTML_Callback";
void insertAdjacentText(String where, String text) native "HTMLElement_insertAdjacentText_Callback";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName ElementTimeControl
abstract class ElementTimeControl {
/** @domName ElementTimeControl.beginElement */
void beginElement();
/** @domName ElementTimeControl.beginElementAt */
void beginElementAt(num offset);
/** @domName ElementTimeControl.endElement */
void endElement();
/** @domName ElementTimeControl.endElementAt */
void endElementAt(num offset);
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName ElementTraversal
abstract class ElementTraversal {
/** @domName ElementTraversal.childElementCount */
int get childElementCount;
/** @domName ElementTraversal.firstElementChild */
Element get firstElementChild;
/** @domName ElementTraversal.lastElementChild */
Element get lastElementChild;
/** @domName ElementTraversal.nextElementSibling */
Element get nextElementSibling;
/** @domName ElementTraversal.previousElementSibling */
Element get previousElementSibling;
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName HTMLEmbedElement
abstract class EmbedElement implements Element {
factory EmbedElement() => _Elements.createEmbedElement();
/** @domName HTMLEmbedElement.align */
String align;
/** @domName HTMLEmbedElement.height */
String height;
/** @domName HTMLEmbedElement.name */
String name;
/** @domName HTMLEmbedElement.src */
String src;
/** @domName HTMLEmbedElement.type */
String type;
/** @domName HTMLEmbedElement.width */
String width;
}
// 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.
// WARNING: Do not edit - generated code.
class _EmbedElementImpl extends _ElementImpl_Merged implements EmbedElement {
String get align native "HTMLEmbedElement_align_Getter";
void set align(String value) native "HTMLEmbedElement_align_Setter";
String get height native "HTMLEmbedElement_height_Getter";
void set height(String value) native "HTMLEmbedElement_height_Setter";
String get name native "HTMLEmbedElement_name_Getter";
void set name(String value) native "HTMLEmbedElement_name_Setter";
String get src native "HTMLEmbedElement_src_Getter";
void set src(String value) native "HTMLEmbedElement_src_Setter";
String get type native "HTMLEmbedElement_type_Getter";
void set type(String value) native "HTMLEmbedElement_type_Setter";
String get width native "HTMLEmbedElement_width_Getter";
void set width(String value) native "HTMLEmbedElement_width_Setter";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName EntityReference
abstract class EntityReference implements Node {
}
// 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.
// WARNING: Do not edit - generated code.
class _EntityReferenceImpl extends _NodeImpl implements EntityReference {
}
// 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.
// WARNING: Do not edit - generated code.
typedef void EntriesCallback(List<Entry> entries);
// 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.
// WARNING: Do not edit - generated code.
/// @domName Entry
abstract class Entry {
/** @domName Entry.filesystem */
DOMFileSystem get filesystem;
/** @domName Entry.fullPath */
String get fullPath;
/** @domName Entry.isDirectory */
bool get isDirectory;
/** @domName Entry.isFile */
bool get isFile;
/** @domName Entry.name */
String get name;
/** @domName Entry.copyTo */
void copyTo(DirectoryEntry parent, [String name, EntryCallback successCallback, ErrorCallback errorCallback]);
/** @domName Entry.getMetadata */
void getMetadata(MetadataCallback successCallback, [ErrorCallback errorCallback]);
/** @domName Entry.getParent */
void getParent([EntryCallback successCallback, ErrorCallback errorCallback]);
/** @domName Entry.moveTo */
void moveTo(DirectoryEntry parent, [String name, EntryCallback successCallback, ErrorCallback errorCallback]);
/** @domName Entry.remove */
void remove(VoidCallback successCallback, [ErrorCallback errorCallback]);
/** @domName Entry.toURL */
String toURL();
}
// 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.
// WARNING: Do not edit - generated code.
class _EntryArrayImpl extends NativeFieldWrapperClass1 implements List<Entry> {
int get length native "EntryArray_length_Getter";
Entry operator[](int index) native "EntryArray_item_Callback";
void operator[]=(int index, Entry value) {
throw new UnsupportedError("Cannot assign element of immutable List.");
}
// -- start List<Entry> mixins.
// Entry is the element type.
// From Iterable<Entry>:
Iterator<Entry> 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<Entry>(this);
}
// From Collection<Entry>:
void add(Entry value) {
throw new UnsupportedError("Cannot add to immutable List.");
}
void addLast(Entry value) {
throw new UnsupportedError("Cannot add to immutable List.");
}
void addAll(Collection<Entry> collection) {
throw new UnsupportedError("Cannot add to immutable List.");
}
bool contains(Entry element) => _Collections.contains(this, element);
void forEach(void f(Entry element)) => _Collections.forEach(this, f);
Collection map(f(Entry element)) => _Collections.map(this, [], f);
Collection<Entry> filter(bool f(Entry element)) =>
_Collections.filter(this, <Entry>[], f);
bool every(bool f(Entry element)) => _Collections.every(this, f);
bool some(bool f(Entry element)) => _Collections.some(this, f);
bool get isEmpty => this.length == 0;
// From List<Entry>:
void sort([Comparator<Entry> compare = Comparable.compare]) {
throw new UnsupportedError("Cannot sort immutable List.");
}
int indexOf(Entry element, [int start = 0]) =>
_Lists.indexOf(this, element, start, this.length);
int lastIndexOf(Entry element, [int start]) {
if (start == null) start = length - 1;
return _Lists.lastIndexOf(this, element, start);
}
Entry get last => this[length - 1];
Entry removeLast() {
throw new UnsupportedError("Cannot removeLast on immutable List.");
}
void setRange(int start, int rangeLength, List<Entry> from, [int startFrom]) {
throw new UnsupportedError("Cannot setRange on immutable List.");
}
void removeRange(int start, int rangeLength) {
throw new UnsupportedError("Cannot removeRange on immutable List.");
}
void insertRange(int start, int rangeLength, [Entry initialValue]) {
throw new UnsupportedError("Cannot insertRange on immutable List.");
}
List<Entry> getRange(int start, int rangeLength) =>
_Lists.getRange(this, start, rangeLength, <Entry>[]);
// -- end List<Entry> mixins.
Entry item(int index) native "EntryArray_item_Callback";
}
// 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.
// WARNING: Do not edit - generated code.
class _EntryArraySyncImpl extends NativeFieldWrapperClass1 implements List<EntrySync> {
int get length native "EntryArraySync_length_Getter";
EntrySync operator[](int index) native "EntryArraySync_item_Callback";
void operator[]=(int index, EntrySync value) {
throw new UnsupportedError("Cannot assign element of immutable List.");
}
// -- start List<EntrySync> mixins.
// EntrySync is the element type.
// From Iterable<EntrySync>:
Iterator<EntrySync> 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<EntrySync>(this);
}
// From Collection<EntrySync>:
void add(EntrySync value) {
throw new UnsupportedError("Cannot add to immutable List.");
}
void addLast(EntrySync value) {
throw new UnsupportedError("Cannot add to immutable List.");
}
void addAll(Collection<EntrySync> collection) {
throw new UnsupportedError("Cannot add to immutable List.");
}
bool contains(EntrySync element) => _Collections.contains(this, element);
void forEach(void f(EntrySync element)) => _Collections.forEach(this, f);
Collection map(f(EntrySync element)) => _Collections.map(this, [], f);
Collection<EntrySync> filter(bool f(EntrySync element)) =>
_Collections.filter(this, <EntrySync>[], f);
bool every(bool f(EntrySync element)) => _Collections.every(this, f);
bool some(bool f(EntrySync element)) => _Collections.some(this, f);
bool get isEmpty => this.length == 0;
// From List<EntrySync>:
void sort([Comparator<EntrySync> compare = Comparable.compare]) {
throw new UnsupportedError("Cannot sort immutable List.");
}
int indexOf(EntrySync element, [int start = 0]) =>
_Lists.indexOf(this, element, start, this.length);
int lastIndexOf(EntrySync element, [int start]) {
if (start == null) start = length - 1;
return _Lists.lastIndexOf(this, element, start);
}
EntrySync get last => this[length - 1];
EntrySync removeLast() {
throw new UnsupportedError("Cannot removeLast on immutable List.");
}
void setRange(int start, int rangeLength, List<EntrySync> from, [int startFrom]) {
throw new UnsupportedError("Cannot setRange on immutable List.");
}
void removeRange(int start, int rangeLength) {
throw new UnsupportedError("Cannot removeRange on immutable List.");
}
void insertRange(int start, int rangeLength, [EntrySync initialValue]) {
throw new UnsupportedError("Cannot insertRange on immutable List.");
}
List<EntrySync> getRange(int start, int rangeLength) =>
_Lists.getRange(this, start, rangeLength, <EntrySync>[]);
// -- end List<EntrySync> mixins.
EntrySync item(int index) native "EntryArraySync_item_Callback";
}
// 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.
// WARNING: Do not edit - generated code.
typedef void EntryCallback(Entry entry);
// 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.
// WARNING: Do not edit - generated code.
class _EntryImpl extends NativeFieldWrapperClass1 implements Entry {
DOMFileSystem get filesystem native "Entry_filesystem_Getter";
String get fullPath native "Entry_fullPath_Getter";
bool get isDirectory native "Entry_isDirectory_Getter";
bool get isFile native "Entry_isFile_Getter";
String get name native "Entry_name_Getter";
void copyTo(/*DirectoryEntry*/ parent, [/*DOMString*/ name, /*EntryCallback*/ successCallback, /*ErrorCallback*/ errorCallback]) {
if (?name) {
_copyTo_1(parent, name, successCallback, errorCallback);
return;
}
_copyTo_2(parent);
}
void _copyTo_1(parent, name, successCallback, errorCallback) native "Entry_copyTo_1_Callback";
void _copyTo_2(parent) native "Entry_copyTo_2_Callback";
void getMetadata(MetadataCallback successCallback, [ErrorCallback errorCallback]) native "Entry_getMetadata_Callback";
void getParent([EntryCallback successCallback, ErrorCallback errorCallback]) native "Entry_getParent_Callback";
void moveTo(/*DirectoryEntry*/ parent, [/*DOMString*/ name, /*EntryCallback*/ successCallback, /*ErrorCallback*/ errorCallback]) {
if (?name) {
_moveTo_1(parent, name, successCallback, errorCallback);
return;
}
_moveTo_2(parent);
}
void _moveTo_1(parent, name, successCallback, errorCallback) native "Entry_moveTo_1_Callback";
void _moveTo_2(parent) native "Entry_moveTo_2_Callback";
void remove(VoidCallback successCallback, [ErrorCallback errorCallback]) native "Entry_remove_Callback";
String toURL() native "Entry_toURL_Callback";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName EntrySync
abstract class EntrySync {
/** @domName EntrySync.filesystem */
DOMFileSystemSync get filesystem;
/** @domName EntrySync.fullPath */
String get fullPath;
/** @domName EntrySync.isDirectory */
bool get isDirectory;
/** @domName EntrySync.isFile */
bool get isFile;
/** @domName EntrySync.name */
String get name;
/** @domName EntrySync.copyTo */
EntrySync copyTo(DirectoryEntrySync parent, String name);
/** @domName EntrySync.getMetadata */
Metadata getMetadata();
/** @domName EntrySync.getParent */
EntrySync getParent();
/** @domName EntrySync.moveTo */
EntrySync moveTo(DirectoryEntrySync parent, String name);
/** @domName EntrySync.remove */
void remove();
/** @domName EntrySync.toURL */
String toURL();
}
// 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.
// WARNING: Do not edit - generated code.
class _EntrySyncImpl extends NativeFieldWrapperClass1 implements EntrySync {
DOMFileSystemSync get filesystem native "EntrySync_filesystem_Getter";
String get fullPath native "EntrySync_fullPath_Getter";
bool get isDirectory native "EntrySync_isDirectory_Getter";
bool get isFile native "EntrySync_isFile_Getter";
String get name native "EntrySync_name_Getter";
EntrySync copyTo(DirectoryEntrySync parent, String name) native "EntrySync_copyTo_Callback";
Metadata getMetadata() native "EntrySync_getMetadata_Callback";
EntrySync getParent() native "EntrySync_getParent_Callback";
EntrySync moveTo(DirectoryEntrySync parent, String name) native "EntrySync_moveTo_Callback";
void remove() native "EntrySync_remove_Callback";
String toURL() native "EntrySync_toURL_Callback";
}
// 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.
// WARNING: Do not edit - generated code.
typedef void ErrorCallback(FileError error);
// 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.
// WARNING: Do not edit - generated code.
/// @domName ErrorEvent
abstract class ErrorEvent implements Event {
/** @domName ErrorEvent.filename */
String get filename;
/** @domName ErrorEvent.lineno */
int get lineno;
/** @domName ErrorEvent.message */
String get message;
}
// 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.
// WARNING: Do not edit - generated code.
class _ErrorEventImpl extends _EventImpl implements ErrorEvent {
String get filename native "ErrorEvent_filename_Getter";
int get lineno native "ErrorEvent_lineno_Getter";
String get message native "ErrorEvent_message_Getter";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName Event
abstract class Event {
// In JS, canBubble and cancelable are technically required parameters to
// init*Event. In practice, though, if they aren't provided they simply
// default to false (since that's Boolean(undefined)).
//
// Contrary to JS, we default canBubble and cancelable to true, since that's
// what people want most of the time anyway.
factory Event(String type, [bool canBubble = true, bool cancelable = true]) =>
_EventFactoryProvider.createEvent(type, canBubble, cancelable);
static const int AT_TARGET = 2;
static const int BLUR = 8192;
static const int BUBBLING_PHASE = 3;
static const int CAPTURING_PHASE = 1;
static const int CHANGE = 32768;
static const int CLICK = 64;
static const int DBLCLICK = 128;
static const int DRAGDROP = 2048;
static const int FOCUS = 4096;
static const int KEYDOWN = 256;
static const int KEYPRESS = 1024;
static const int KEYUP = 512;
static const int MOUSEDOWN = 1;
static const int MOUSEDRAG = 32;
static const int MOUSEMOVE = 16;
static const int MOUSEOUT = 8;
static const int MOUSEOVER = 4;
static const int MOUSEUP = 2;
static const int NONE = 0;
static const int SELECT = 16384;
/** @domName Event.bubbles */
bool get bubbles;
/** @domName Event.cancelBubble */
bool cancelBubble;
/** @domName Event.cancelable */
bool get cancelable;
/** @domName Event.clipboardData */
Clipboard get clipboardData;
/** @domName Event.currentTarget */
EventTarget get currentTarget;
/** @domName Event.defaultPrevented */
bool get defaultPrevented;
/** @domName Event.eventPhase */
int get eventPhase;
/** @domName Event.returnValue */
bool returnValue;
/** @domName Event.srcElement */
EventTarget get srcElement;
/** @domName Event.target */
EventTarget get target;
/** @domName Event.timeStamp */
int get timeStamp;
/** @domName Event.type */
String get type;
/** @domName Event.initEvent */
void $dom_initEvent(String eventTypeArg, bool canBubbleArg, bool cancelableArg);
/** @domName Event.preventDefault */
void preventDefault();
/** @domName Event.stopImmediatePropagation */
void stopImmediatePropagation();
/** @domName Event.stopPropagation */
void stopPropagation();
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName EventException
abstract class EventException {
static const int DISPATCH_REQUEST_ERR = 1;
static const int UNSPECIFIED_EVENT_TYPE_ERR = 0;
/** @domName EventException.code */
int get code;
/** @domName EventException.message */
String get message;
/** @domName EventException.name */
String get name;
/** @domName EventException.toString */
String toString();
}
// 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.
// WARNING: Do not edit - generated code.
class _EventExceptionImpl extends NativeFieldWrapperClass1 implements EventException {
int get code native "EventException_code_Getter";
String get message native "EventException_message_Getter";
String get name native "EventException_name_Getter";
String toString() native "EventException_toString_Callback";
}
// 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.
// WARNING: Do not edit - generated code.
class _EventImpl extends NativeFieldWrapperClass1 implements Event {
bool get bubbles native "Event_bubbles_Getter";
bool get cancelBubble native "Event_cancelBubble_Getter";
void set cancelBubble(bool value) native "Event_cancelBubble_Setter";
bool get cancelable native "Event_cancelable_Getter";
Clipboard get clipboardData native "Event_clipboardData_Getter";
EventTarget get currentTarget native "Event_currentTarget_Getter";
bool get defaultPrevented native "Event_defaultPrevented_Getter";
int get eventPhase native "Event_eventPhase_Getter";
bool get returnValue native "Event_returnValue_Getter";
void set returnValue(bool value) native "Event_returnValue_Setter";
EventTarget get srcElement native "Event_srcElement_Getter";
EventTarget get target native "Event_target_Getter";
int get timeStamp native "Event_timeStamp_Getter";
String get type native "Event_type_Getter";
void $dom_initEvent(String eventTypeArg, bool canBubbleArg, bool cancelableArg) native "Event_initEvent_Callback";
void preventDefault() native "Event_preventDefault_Callback";
void stopImmediatePropagation() native "Event_stopImmediatePropagation_Callback";
void stopPropagation() native "Event_stopPropagation_Callback";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName EventSource
abstract class EventSource implements EventTarget {
factory EventSource(String scriptUrl) => _EventSourceFactoryProvider.createEventSource(scriptUrl);
/**
* @domName EventTarget.addEventListener, EventTarget.removeEventListener, EventTarget.dispatchEvent
*/
EventSourceEvents get on;
static const int CLOSED = 2;
static const int CONNECTING = 0;
static const int OPEN = 1;
/** @domName EventSource.URL */
String get URL;
/** @domName EventSource.readyState */
int get readyState;
/** @domName EventSource.url */
String get url;
/** @domName EventSource.addEventListener */
void $dom_addEventListener(String type, EventListener listener, [bool useCapture]);
/** @domName EventSource.close */
void close();
/** @domName EventSource.dispatchEvent */
bool $dom_dispatchEvent(Event evt);
/** @domName EventSource.removeEventListener */
void $dom_removeEventListener(String type, EventListener listener, [bool useCapture]);
}
abstract class EventSourceEvents implements Events {
EventListenerList get error;
EventListenerList get message;
EventListenerList get open;
}
// 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.
// WARNING: Do not edit - generated code.
class _EventSourceImpl extends _EventTargetImpl implements EventSource {
_EventSourceEventsImpl get on =>
new _EventSourceEventsImpl(this);
String get URL native "EventSource_URL_Getter";
int get readyState native "EventSource_readyState_Getter";
String get url native "EventSource_url_Getter";
void $dom_addEventListener(String type, EventListener listener, [bool useCapture]) native "EventSource_addEventListener_Callback";
void close() native "EventSource_close_Callback";
bool $dom_dispatchEvent(Event evt) native "EventSource_dispatchEvent_Callback";
void $dom_removeEventListener(String type, EventListener listener, [bool useCapture]) native "EventSource_removeEventListener_Callback";
}
class _EventSourceEventsImpl extends _EventsImpl implements EventSourceEvents {
_EventSourceEventsImpl(_ptr) : super(_ptr);
EventListenerList get error => this['error'];
EventListenerList get message => this['message'];
EventListenerList get open => this['open'];
}
// 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.
// WARNING: Do not edit - generated code.
abstract class EventListenerList {
EventListenerList add(EventListener handler, [bool useCapture]);
EventListenerList remove(EventListener handler, [bool useCapture]);
bool dispatch(Event evt);
}
abstract class Events {
EventListenerList operator [](String type);
}
/// @domName EventTarget
abstract class EventTarget {
/** @domName EventTarget.addEventListener, EventTarget.removeEventListener, EventTarget.dispatchEvent */
abstract Events get on;
/** @domName EventTarget.addEventListener */
void $dom_addEventListener(String type, EventListener listener, [bool useCapture]);
/** @domName EventTarget.dispatchEvent */
bool $dom_dispatchEvent(Event event);
/** @domName EventTarget.removeEventListener */
void $dom_removeEventListener(String type, EventListener listener, [bool useCapture]);
}
// 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 _EventsImpl implements Events {
/* Raw event target. */
// TODO(jacobr): it would be nice if we could specify this as
// _EventTargetImpl or EventTarget
final _ptr;
_EventsImpl(this._ptr);
_EventListenerListImpl operator [](String type) {
return new _EventListenerListImpl(_ptr, type);
}
}
class _EventListenerListImpl implements EventListenerList {
// TODO(jacobr): make this _EventTargetImpl
final _ptr;
final String _type;
_EventListenerListImpl(this._ptr, this._type);
// TODO(jacobr): implement equals.
_EventListenerListImpl add(EventListener listener,
[bool useCapture = false]) {
_add(listener, useCapture);
return this;
}
_EventListenerListImpl remove(EventListener listener,
[bool useCapture = false]) {
_remove(listener, useCapture);
return this;
}
bool dispatch(Event evt) {
return _ptr.$dom_dispatchEvent(evt);
}
void _add(EventListener listener, bool useCapture) {
_ptr.$dom_addEventListener(_type, listener, useCapture);
}
void _remove(EventListener listener, bool useCapture) {
_ptr.$dom_removeEventListener(_type, listener, useCapture);
}
}
class _EventTargetImpl extends NativeFieldWrapperClass1 implements EventTarget {
Events get on => new _EventsImpl(this);
void $dom_addEventListener(String type, EventListener listener, [bool useCapture]) native "EventTarget_addEventListener_Callback";
bool $dom_dispatchEvent(Event event) native "EventTarget_dispatchEvent_Callback";
void $dom_removeEventListener(String type, EventListener listener, [bool useCapture]) native "EventTarget_removeEventListener_Callback";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName HTMLFieldSetElement
abstract class FieldSetElement implements Element {
factory FieldSetElement() => _Elements.createFieldSetElement();
/** @domName HTMLFieldSetElement.disabled */
bool disabled;
/** @domName HTMLFieldSetElement.elements */
HTMLCollection get elements;
/** @domName HTMLFieldSetElement.form */
FormElement get form;
/** @domName HTMLFieldSetElement.name */
String name;
/** @domName HTMLFieldSetElement.type */
String get type;
/** @domName HTMLFieldSetElement.validationMessage */
String get validationMessage;
/** @domName HTMLFieldSetElement.validity */
ValidityState get validity;
/** @domName HTMLFieldSetElement.willValidate */
bool get willValidate;
/** @domName HTMLFieldSetElement.checkValidity */
bool checkValidity();
/** @domName HTMLFieldSetElement.setCustomValidity */
void setCustomValidity(String error);
}
// 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.
// WARNING: Do not edit - generated code.
class _FieldSetElementImpl extends _ElementImpl_Merged implements FieldSetElement {
bool get disabled native "HTMLFieldSetElement_disabled_Getter";
void set disabled(bool value) native "HTMLFieldSetElement_disabled_Setter";
HTMLCollection get elements native "HTMLFieldSetElement_elements_Getter";
FormElement get form native "HTMLFieldSetElement_form_Getter";
String get name native "HTMLFieldSetElement_name_Getter";
void set name(String value) native "HTMLFieldSetElement_name_Setter";
String get type native "HTMLFieldSetElement_type_Getter";
String get validationMessage native "HTMLFieldSetElement_validationMessage_Getter";
ValidityState get validity native "HTMLFieldSetElement_validity_Getter";
bool get willValidate native "HTMLFieldSetElement_willValidate_Getter";
bool checkValidity() native "HTMLFieldSetElement_checkValidity_Callback";
void setCustomValidity(String error) native "HTMLFieldSetElement_setCustomValidity_Callback";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName File
abstract class File implements Blob {
/** @domName File.lastModifiedDate */
Date get lastModifiedDate;
/** @domName File.name */
String get name;
/** @domName File.webkitRelativePath */
String get webkitRelativePath;
}
// 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.
// WARNING: Do not edit - generated code.
typedef void FileCallback(File file);
// 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.
// WARNING: Do not edit - generated code.
/// @domName FileEntry
abstract class FileEntry implements Entry {
/** @domName FileEntry.createWriter */
void createWriter(FileWriterCallback successCallback, [ErrorCallback errorCallback]);
/** @domName FileEntry.file */
void file(FileCallback successCallback, [ErrorCallback errorCallback]);
}
// 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.
// WARNING: Do not edit - generated code.
class _FileEntryImpl extends _EntryImpl implements FileEntry {
void createWriter(FileWriterCallback successCallback, [ErrorCallback errorCallback]) native "FileEntry_createWriter_Callback";
void file(FileCallback successCallback, [ErrorCallback errorCallback]) native "FileEntry_file_Callback";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName FileEntrySync
abstract class FileEntrySync implements EntrySync {
/** @domName FileEntrySync.createWriter */
FileWriterSync createWriter();
/** @domName FileEntrySync.file */
File file();
}
// 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.
// WARNING: Do not edit - generated code.
class _FileEntrySyncImpl extends _EntrySyncImpl implements FileEntrySync {
FileWriterSync createWriter() native "FileEntrySync_createWriter_Callback";
File file() native "FileEntrySync_file_Callback";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName FileError
abstract class FileError {
static const int ABORT_ERR = 3;
static const int ENCODING_ERR = 5;
static const int INVALID_MODIFICATION_ERR = 9;
static const int INVALID_STATE_ERR = 7;
static const int NOT_FOUND_ERR = 1;
static const int NOT_READABLE_ERR = 4;
static const int NO_MODIFICATION_ALLOWED_ERR = 6;
static const int PATH_EXISTS_ERR = 12;
static const int QUOTA_EXCEEDED_ERR = 10;
static const int SECURITY_ERR = 2;
static const int SYNTAX_ERR = 8;
static const int TYPE_MISMATCH_ERR = 11;
/** @domName FileError.code */
int get code;
}
// 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.
// WARNING: Do not edit - generated code.
class _FileErrorImpl extends NativeFieldWrapperClass1 implements FileError {
int get code native "FileError_code_Getter";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName FileException
abstract class FileException {
static const int ABORT_ERR = 3;
static const int ENCODING_ERR = 5;
static const int INVALID_MODIFICATION_ERR = 9;
static const int INVALID_STATE_ERR = 7;
static const int NOT_FOUND_ERR = 1;
static const int NOT_READABLE_ERR = 4;
static const int NO_MODIFICATION_ALLOWED_ERR = 6;
static const int PATH_EXISTS_ERR = 12;
static const int QUOTA_EXCEEDED_ERR = 10;
static const int SECURITY_ERR = 2;
static const int SYNTAX_ERR = 8;
static const int TYPE_MISMATCH_ERR = 11;
/** @domName FileException.code */
int get code;
/** @domName FileException.message */
String get message;
/** @domName FileException.name */
String get name;
/** @domName FileException.toString */
String toString();
}
// 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.
// WARNING: Do not edit - generated code.
class _FileExceptionImpl extends NativeFieldWrapperClass1 implements FileException {
int get code native "FileException_code_Getter";
String get message native "FileException_message_Getter";
String get name native "FileException_name_Getter";
String toString() native "FileException_toString_Callback";
}
// 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.
// WARNING: Do not edit - generated code.
class _FileImpl extends _BlobImpl implements File {
Date get lastModifiedDate native "File_lastModifiedDate_Getter";
String get name native "File_name_Getter";
String get webkitRelativePath native "File_webkitRelativePath_Getter";
}
// 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.
// WARNING: Do not edit - generated code.
class _FileListImpl extends NativeFieldWrapperClass1 implements List<File> {
int get length native "FileList_length_Getter";
File operator[](int index) native "FileList_item_Callback";
void operator[]=(int index, File value) {
throw new UnsupportedError("Cannot assign element of immutable List.");
}
// -- start List<File> mixins.
// File is the element type.
// From Iterable<File>:
Iterator<File> 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<File>(this);
}
// From Collection<File>:
void add(File value) {
throw new UnsupportedError("Cannot add to immutable List.");
}
void addLast(File value) {
throw new UnsupportedError("Cannot add to immutable List.");
}
void addAll(Collection<File> collection) {
throw new UnsupportedError("Cannot add to immutable List.");
}
bool contains(File element) => _Collections.contains(this, element);
void forEach(void f(File element)) => _Collections.forEach(this, f);
Collection map(f(File element)) => _Collections.map(this, [], f);
Collection<File> filter(bool f(File element)) =>
_Collections.filter(this, <File>[], f);
bool every(bool f(File element)) => _Collections.every(this, f);
bool some(bool f(File element)) => _Collections.some(this, f);
bool get isEmpty => this.length == 0;
// From List<File>:
void sort([Comparator<File> compare = Comparable.compare]) {
throw new UnsupportedError("Cannot sort immutable List.");
}
int indexOf(File element, [int start = 0]) =>
_Lists.indexOf(this, element, start, this.length);
int lastIndexOf(File element, [int start]) {
if (start == null) start = length - 1;
return _Lists.lastIndexOf(this, element, start);
}
File get last => this[length - 1];
File removeLast() {
throw new UnsupportedError("Cannot removeLast on immutable List.");
}
void setRange(int start, int rangeLength, List<File> from, [int startFrom]) {
throw new UnsupportedError("Cannot setRange on immutable List.");
}
void removeRange(int start, int rangeLength) {
throw new UnsupportedError("Cannot removeRange on immutable List.");
}
void insertRange(int start, int rangeLength, [File initialValue]) {
throw new UnsupportedError("Cannot insertRange on immutable List.");
}
List<File> getRange(int start, int rangeLength) =>
_Lists.getRange(this, start, rangeLength, <File>[]);
// -- end List<File> mixins.
File item(int index) native "FileList_item_Callback";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName FileReader
abstract class FileReader implements EventTarget {
factory FileReader() => _FileReaderFactoryProvider.createFileReader();
/**
* @domName EventTarget.addEventListener, EventTarget.removeEventListener, EventTarget.dispatchEvent
*/
FileReaderEvents get on;
static const int DONE = 2;
static const int EMPTY = 0;
static const int LOADING = 1;
/** @domName FileReader.error */
FileError get error;
/** @domName FileReader.readyState */
int get readyState;
/** @domName FileReader.result */
Object get result;
/** @domName FileReader.abort */
void abort();
/** @domName FileReader.addEventListener */
void $dom_addEventListener(String type, EventListener listener, [bool useCapture]);
/** @domName FileReader.dispatchEvent */
bool $dom_dispatchEvent(Event evt);
/** @domName FileReader.readAsArrayBuffer */
void readAsArrayBuffer(Blob blob);
/** @domName FileReader.readAsBinaryString */
void readAsBinaryString(Blob blob);
/** @domName FileReader.readAsDataURL */
void readAsDataURL(Blob blob);
/** @domName FileReader.readAsText */
void readAsText(Blob blob, [String encoding]);
/** @domName FileReader.removeEventListener */
void $dom_removeEventListener(String type, EventListener listener, [bool useCapture]);
}
abstract class FileReaderEvents implements Events {
EventListenerList get abort;
EventListenerList get error;
EventListenerList get load;
EventListenerList get loadEnd;
EventListenerList get loadStart;
EventListenerList get progress;
}
// 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.
// WARNING: Do not edit - generated code.
class _FileReaderImpl extends _EventTargetImpl implements FileReader {
_FileReaderEventsImpl get on =>
new _FileReaderEventsImpl(this);
FileError get error native "FileReader_error_Getter";
int get readyState native "FileReader_readyState_Getter";
Object get result native "FileReader_result_Getter";
void abort() native "FileReader_abort_Callback";
void $dom_addEventListener(String type, EventListener listener, [bool useCapture]) native "FileReader_addEventListener_Callback";
bool $dom_dispatchEvent(Event evt) native "FileReader_dispatchEvent_Callback";
void readAsArrayBuffer(Blob blob) native "FileReader_readAsArrayBuffer_Callback";
void readAsBinaryString(Blob blob) native "FileReader_readAsBinaryString_Callback";
void readAsDataURL(Blob blob) native "FileReader_readAsDataURL_Callback";
void readAsText(/*Blob*/ blob, [/*DOMString*/ encoding]) {
if (?encoding) {
_readAsText_1(blob, encoding);
return;
}
_readAsText_2(blob);
}
void _readAsText_1(blob, encoding) native "FileReader_readAsText_1_Callback";
void _readAsText_2(blob) native "FileReader_readAsText_2_Callback";
void $dom_removeEventListener(String type, EventListener listener, [bool useCapture]) native "FileReader_removeEventListener_Callback";
}
class _FileReaderEventsImpl extends _EventsImpl implements FileReaderEvents {
_FileReaderEventsImpl(_ptr) : super(_ptr);
EventListenerList get abort => this['abort'];
EventListenerList get error => this['error'];
EventListenerList get load => this['load'];
EventListenerList get loadEnd => this['loadend'];
EventListenerList get loadStart => this['loadstart'];
EventListenerList get progress => this['progress'];
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName FileReaderSync
abstract class FileReaderSync {
factory FileReaderSync() => _FileReaderSyncFactoryProvider.createFileReaderSync();
/** @domName FileReaderSync.readAsArrayBuffer */
ArrayBuffer readAsArrayBuffer(Blob blob);
/** @domName FileReaderSync.readAsBinaryString */
String readAsBinaryString(Blob blob);
/** @domName FileReaderSync.readAsDataURL */
String readAsDataURL(Blob blob);
/** @domName FileReaderSync.readAsText */
String readAsText(Blob blob, [String encoding]);
}
// 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.
// WARNING: Do not edit - generated code.
class _FileReaderSyncImpl extends NativeFieldWrapperClass1 implements FileReaderSync {
ArrayBuffer readAsArrayBuffer(Blob blob) native "FileReaderSync_readAsArrayBuffer_Callback";
String readAsBinaryString(Blob blob) native "FileReaderSync_readAsBinaryString_Callback";
String readAsDataURL(Blob blob) native "FileReaderSync_readAsDataURL_Callback";
String readAsText(/*Blob*/ blob, [/*DOMString*/ encoding]) {
if (?encoding) {
return _readAsText_1(blob, encoding);
}
return _readAsText_2(blob);
}
String _readAsText_1(blob, encoding) native "FileReaderSync_readAsText_1_Callback";
String _readAsText_2(blob) native "FileReaderSync_readAsText_2_Callback";
}
// 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.
// WARNING: Do not edit - generated code.
typedef void FileSystemCallback(DOMFileSystem fileSystem);
// 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.
// WARNING: Do not edit - generated code.
/// @domName FileWriter
abstract class FileWriter implements EventTarget {
/**
* @domName EventTarget.addEventListener, EventTarget.removeEventListener, EventTarget.dispatchEvent
*/
FileWriterEvents get on;
static const int DONE = 2;
static const int INIT = 0;
static const int WRITING = 1;
/** @domName FileWriter.error */
FileError get error;
/** @domName FileWriter.length */
int get length;
/** @domName FileWriter.position */
int get position;
/** @domName FileWriter.readyState */
int get readyState;
/** @domName FileWriter.abort */
void abort();
/** @domName FileWriter.addEventListener */
void $dom_addEventListener(String type, EventListener listener, [bool useCapture]);
/** @domName FileWriter.dispatchEvent */
bool $dom_dispatchEvent(Event evt);
/** @domName FileWriter.removeEventListener */
void $dom_removeEventListener(String type, EventListener listener, [bool useCapture]);
/** @domName FileWriter.seek */
void seek(int position);
/** @domName FileWriter.truncate */
void truncate(int size);
/** @domName FileWriter.write */
void write(Blob data);
}
abstract class FileWriterEvents implements Events {
EventListenerList get abort;
EventListenerList get error;
EventListenerList get progress;
EventListenerList get write;
EventListenerList get writeEnd;
EventListenerList get writeStart;
}
// 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.
// WARNING: Do not edit - generated code.
typedef void FileWriterCallback(FileWriter fileWriter);
// 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.
// WARNING: Do not edit - generated code.
class _FileWriterImpl extends _EventTargetImpl implements FileWriter {
_FileWriterEventsImpl get on =>
new _FileWriterEventsImpl(this);
FileError get error native "FileWriter_error_Getter";
int get length native "FileWriter_length_Getter";
int get position native "FileWriter_position_Getter";
int get readyState native "FileWriter_readyState_Getter";
void abort() native "FileWriter_abort_Callback";
void $dom_addEventListener(String type, EventListener listener, [bool useCapture]) native "FileWriter_addEventListener_Callback";
bool $dom_dispatchEvent(Event evt) native "FileWriter_dispatchEvent_Callback";
void $dom_removeEventListener(String type, EventListener listener, [bool useCapture]) native "FileWriter_removeEventListener_Callback";
void seek(int position) native "FileWriter_seek_Callback";
void truncate(int size) native "FileWriter_truncate_Callback";
void write(Blob data) native "FileWriter_write_Callback";
}
class _FileWriterEventsImpl extends _EventsImpl implements FileWriterEvents {
_FileWriterEventsImpl(_ptr) : super(_ptr);
EventListenerList get abort => this['abort'];
EventListenerList get error => this['error'];
EventListenerList get progress => this['progress'];
EventListenerList get write => this['write'];
EventListenerList get writeEnd => this['writeend'];
EventListenerList get writeStart => this['writestart'];
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName FileWriterSync
abstract class FileWriterSync {
/** @domName FileWriterSync.length */
int get length;
/** @domName FileWriterSync.position */
int get position;
/** @domName FileWriterSync.seek */
void seek(int position);
/** @domName FileWriterSync.truncate */
void truncate(int size);
/** @domName FileWriterSync.write */
void write(Blob data);
}
// 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.
// WARNING: Do not edit - generated code.
class _FileWriterSyncImpl extends NativeFieldWrapperClass1 implements FileWriterSync {
int get length native "FileWriterSync_length_Getter";
int get position native "FileWriterSync_position_Getter";
void seek(int position) native "FileWriterSync_seek_Callback";
void truncate(int size) native "FileWriterSync_truncate_Callback";
void write(Blob data) native "FileWriterSync_write_Callback";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName Float32Array
abstract class Float32Array implements ArrayBufferView, List<num> {
factory Float32Array(int length) =>
_TypedArrayFactoryProvider.createFloat32Array(length);
factory Float32Array.fromList(List<num> list) =>
_TypedArrayFactoryProvider.createFloat32Array_fromList(list);
factory Float32Array.fromBuffer(ArrayBuffer buffer, [int byteOffset, int length]) =>
_TypedArrayFactoryProvider.createFloat32Array_fromBuffer(buffer, byteOffset, length);
static const int BYTES_PER_ELEMENT = 4;
/** @domName Float32Array.length */
int get length;
/** @domName Float32Array.setElements */
void setElements(Object array, [int offset]);
/** @domName Float32Array.subarray */
Float32Array subarray(int start, [int end]);
}
// 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.
// WARNING: Do not edit - generated code.
class _Float32ArrayImpl extends _ArrayBufferViewImpl implements Float32Array {
int get length native "Float32Array_length_Getter";
num operator[](int index) native "Float32Array_numericIndexGetter_Callback";
void operator[]=(int index, num value) native "Float32Array_numericIndexSetter_Callback";
// -- start List<num> mixins.
// num is the element type.
// From Iterable<num>:
Iterator<num> 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<num>(this);
}
// From Collection<num>:
void add(num value) {
throw new UnsupportedError("Cannot add to immutable List.");
}
void addLast(num value) {
throw new UnsupportedError("Cannot add to immutable List.");
}
void addAll(Collection<num> collection) {
throw new UnsupportedError("Cannot add to immutable List.");
}
bool contains(num element) => _Collections.contains(this, element);
void forEach(void f(num element)) => _Collections.forEach(this, f);
Collection map(f(num element)) => _Collections.map(this, [], f);
Collection<num> filter(bool f(num element)) =>
_Collections.filter(this, <num>[], f);
bool every(bool f(num element)) => _Collections.every(this, f);
bool some(bool f(num element)) => _Collections.some(this, f);
bool get isEmpty => this.length == 0;
// From List<num>:
void sort([Comparator<num> compare = Comparable.compare]) {
throw new UnsupportedError("Cannot sort immutable List.");
}
int indexOf(num element, [int start = 0]) =>
_Lists.indexOf(this, element, start, this.length);
int lastIndexOf(num element, [int start]) {
if (start == null) start = length - 1;
return _Lists.lastIndexOf(this, element, start);
}
num get last => this[length - 1];
num removeLast() {
throw new UnsupportedError("Cannot removeLast on immutable List.");
}
void setRange(int start, int rangeLength, List<num> from, [int startFrom]) {
throw new UnsupportedError("Cannot setRange on immutable List.");
}
void removeRange(int start, int rangeLength) {
throw new UnsupportedError("Cannot removeRange on immutable List.");
}
void insertRange(int start, int rangeLength, [num initialValue]) {
throw new UnsupportedError("Cannot insertRange on immutable List.");
}
List<num> getRange(int start, int rangeLength) =>
_Lists.getRange(this, start, rangeLength, <num>[]);
// -- end List<num> mixins.
void setElements(Object array, [int offset]) native "Float32Array_setElements_Callback";
Float32Array subarray(/*long*/ start, [/*long*/ end]) {
if (?end) {
return _subarray_1(start, end);
}
return _subarray_2(start);
}
Float32Array _subarray_1(start, end) native "Float32Array_subarray_1_Callback";
Float32Array _subarray_2(start) native "Float32Array_subarray_2_Callback";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName Float64Array
abstract class Float64Array implements ArrayBufferView, List<num> {
factory Float64Array(int length) =>
_TypedArrayFactoryProvider.createFloat64Array(length);
factory Float64Array.fromList(List<num> list) =>
_TypedArrayFactoryProvider.createFloat64Array_fromList(list);
factory Float64Array.fromBuffer(ArrayBuffer buffer, [int byteOffset, int length]) =>
_TypedArrayFactoryProvider.createFloat64Array_fromBuffer(buffer, byteOffset, length);
static const int BYTES_PER_ELEMENT = 8;
/** @domName Float64Array.length */
int get length;
/** @domName Float64Array.setElements */
void setElements(Object array, [int offset]);
/** @domName Float64Array.subarray */
Float64Array subarray(int start, [int end]);
}
// 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.
// WARNING: Do not edit - generated code.
class _Float64ArrayImpl extends _ArrayBufferViewImpl implements Float64Array {
int get length native "Float64Array_length_Getter";
num operator[](int index) native "Float64Array_numericIndexGetter_Callback";
void operator[]=(int index, num value) native "Float64Array_numericIndexSetter_Callback";
// -- start List<num> mixins.
// num is the element type.
// From Iterable<num>:
Iterator<num> 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<num>(this);
}
// From Collection<num>:
void add(num value) {
throw new UnsupportedError("Cannot add to immutable List.");
}
void addLast(num value) {
throw new UnsupportedError("Cannot add to immutable List.");
}
void addAll(Collection<num> collection) {
throw new UnsupportedError("Cannot add to immutable List.");
}
bool contains(num element) => _Collections.contains(this, element);
void forEach(void f(num element)) => _Collections.forEach(this, f);
Collection map(f(num element)) => _Collections.map(this, [], f);
Collection<num> filter(bool f(num element)) =>
_Collections.filter(this, <num>[], f);
bool every(bool f(num element)) => _Collections.every(this, f);
bool some(bool f(num element)) => _Collections.some(this, f);
bool get isEmpty => this.length == 0;
// From List<num>:
void sort([Comparator<num> compare = Comparable.compare]) {
throw new UnsupportedError("Cannot sort immutable List.");
}
int indexOf(num element, [int start = 0]) =>
_Lists.indexOf(this, element, start, this.length);
int lastIndexOf(num element, [int start]) {
if (start == null) start = length - 1;
return _Lists.lastIndexOf(this, element, start);
}
num get last => this[length - 1];
num removeLast() {
throw new UnsupportedError("Cannot removeLast on immutable List.");
}
void setRange(int start, int rangeLength, List<num> from, [int startFrom]) {
throw new UnsupportedError("Cannot setRange on immutable List.");
}
void removeRange(int start, int rangeLength) {
throw new UnsupportedError("Cannot removeRange on immutable List.");
}
void insertRange(int start, int rangeLength, [num initialValue]) {
throw new UnsupportedError("Cannot insertRange on immutable List.");
}
List<num> getRange(int start, int rangeLength) =>
_Lists.getRange(this, start, rangeLength, <num>[]);
// -- end List<num> mixins.
void setElements(Object array, [int offset]) native "Float64Array_setElements_Callback";
Float64Array subarray(/*long*/ start, [/*long*/ end]) {
if (?end) {
return _subarray_1(start, end);
}
return _subarray_2(start);
}
Float64Array _subarray_1(start, end) native "Float64Array_subarray_1_Callback";
Float64Array _subarray_2(start) native "Float64Array_subarray_2_Callback";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName HTMLFontElement
abstract class FontElement implements Element {
/** @domName HTMLFontElement.color */
String color;
/** @domName HTMLFontElement.face */
String face;
/** @domName HTMLFontElement.size */
String size;
}
// 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.
// WARNING: Do not edit - generated code.
class _FontElementImpl extends _ElementImpl_Merged implements FontElement {
String get color native "HTMLFontElement_color_Getter";
void set color(String value) native "HTMLFontElement_color_Setter";
String get face native "HTMLFontElement_face_Getter";
void set face(String value) native "HTMLFontElement_face_Setter";
String get size native "HTMLFontElement_size_Getter";
void set size(String value) native "HTMLFontElement_size_Setter";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName FormData
abstract class FormData {
factory FormData([FormElement form]) {
if (!?form) {
return _FormDataFactoryProvider.createFormData();
}
return _FormDataFactoryProvider.createFormData(form);
}
/** @domName FormData.append */
void append(String name, String value, String filename);
}
// 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.
// WARNING: Do not edit - generated code.
class _FormDataImpl extends NativeFieldWrapperClass1 implements FormData {
void append(String name, String value, String filename) native "DOMFormData_append_Callback";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName HTMLFormElement
abstract class FormElement implements Element {
factory FormElement() => _Elements.createFormElement();
/** @domName HTMLFormElement.acceptCharset */
String acceptCharset;
/** @domName HTMLFormElement.action */
String action;
/** @domName HTMLFormElement.autocomplete */
String autocomplete;
/** @domName HTMLFormElement.encoding */
String encoding;
/** @domName HTMLFormElement.enctype */
String enctype;
/** @domName HTMLFormElement.length */
int get length;
/** @domName HTMLFormElement.method */
String method;
/** @domName HTMLFormElement.name */
String name;
/** @domName HTMLFormElement.noValidate */
bool noValidate;
/** @domName HTMLFormElement.target */
String target;
/** @domName HTMLFormElement.checkValidity */
bool checkValidity();
/** @domName HTMLFormElement.reset */
void reset();
/** @domName HTMLFormElement.submit */
void submit();
}
// 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.
// WARNING: Do not edit - generated code.
class _FormElementImpl extends _ElementImpl_Merged implements FormElement {
String get acceptCharset native "HTMLFormElement_acceptCharset_Getter";
void set acceptCharset(String value) native "HTMLFormElement_acceptCharset_Setter";
String get action native "HTMLFormElement_action_Getter";
void set action(String value) native "HTMLFormElement_action_Setter";
String get autocomplete native "HTMLFormElement_autocomplete_Getter";
void set autocomplete(String value) native "HTMLFormElement_autocomplete_Setter";
String get encoding native "HTMLFormElement_encoding_Getter";
void set encoding(String value) native "HTMLFormElement_encoding_Setter";
String get enctype native "HTMLFormElement_enctype_Getter";
void set enctype(String value) native "HTMLFormElement_enctype_Setter";
int get length native "HTMLFormElement_length_Getter";
String get method native "HTMLFormElement_method_Getter";
void set method(String value) native "HTMLFormElement_method_Setter";
String get name native "HTMLFormElement_name_Getter";
void set name(String value) native "HTMLFormElement_name_Setter";
bool get noValidate native "HTMLFormElement_noValidate_Getter";
void set noValidate(bool value) native "HTMLFormElement_noValidate_Setter";
String get target native "HTMLFormElement_target_Getter";
void set target(String value) native "HTMLFormElement_target_Setter";
bool checkValidity() native "HTMLFormElement_checkValidity_Callback";
void reset() native "HTMLFormElement_reset_Callback";
void submit() native "HTMLFormElement_submit_Callback";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName HTMLFrameElement
abstract class FrameElement implements Element {
/** @domName HTMLFrameElement.contentWindow */
Window get contentWindow;
/** @domName HTMLFrameElement.frameBorder */
String frameBorder;
/** @domName HTMLFrameElement.height */
int get height;
/** @domName HTMLFrameElement.location */
String location;
/** @domName HTMLFrameElement.longDesc */
String longDesc;
/** @domName HTMLFrameElement.marginHeight */
String marginHeight;
/** @domName HTMLFrameElement.marginWidth */
String marginWidth;
/** @domName HTMLFrameElement.name */
String name;
/** @domName HTMLFrameElement.noResize */
bool noResize;
/** @domName HTMLFrameElement.scrolling */
String scrolling;
/** @domName HTMLFrameElement.src */
String src;
/** @domName HTMLFrameElement.width */
int get width;
}
// 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.
// WARNING: Do not edit - generated code.
class _FrameElementImpl extends _ElementImpl_Merged implements FrameElement {
Window get contentWindow native "HTMLFrameElement_contentWindow_Getter";
String get frameBorder native "HTMLFrameElement_frameBorder_Getter";
void set frameBorder(String value) native "HTMLFrameElement_frameBorder_Setter";
int get height native "HTMLFrameElement_height_Getter";
String get location native "HTMLFrameElement_location_Getter";
void set location(String value) native "HTMLFrameElement_location_Setter";
String get longDesc native "HTMLFrameElement_longDesc_Getter";
void set longDesc(String value) native "HTMLFrameElement_longDesc_Setter";
String get marginHeight native "HTMLFrameElement_marginHeight_Getter";
void set marginHeight(String value) native "HTMLFrameElement_marginHeight_Setter";
String get marginWidth native "HTMLFrameElement_marginWidth_Getter";
void set marginWidth(String value) native "HTMLFrameElement_marginWidth_Setter";
String get name native "HTMLFrameElement_name_Getter";
void set name(String value) native "HTMLFrameElement_name_Setter";
bool get noResize native "HTMLFrameElement_noResize_Getter";
void set noResize(bool value) native "HTMLFrameElement_noResize_Setter";
String get scrolling native "HTMLFrameElement_scrolling_Getter";
void set scrolling(String value) native "HTMLFrameElement_scrolling_Setter";
String get src native "HTMLFrameElement_src_Getter";
void set src(String value) native "HTMLFrameElement_src_Setter";
int get width native "HTMLFrameElement_width_Getter";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName HTMLFrameSetElement
abstract class FrameSetElement implements Element {
/**
* @domName EventTarget.addEventListener, EventTarget.removeEventListener, EventTarget.dispatchEvent
*/
FrameSetElementEvents get on;
/** @domName HTMLFrameSetElement.cols */
String cols;
/** @domName HTMLFrameSetElement.rows */
String rows;
}
abstract class FrameSetElementEvents implements ElementEvents {
EventListenerList get beforeUnload;
EventListenerList get blur;
EventListenerList get error;
EventListenerList get focus;
EventListenerList get hashChange;
EventListenerList get load;
EventListenerList get message;
EventListenerList get offline;
EventListenerList get online;
EventListenerList get popState;
EventListenerList get resize;
EventListenerList get storage;
EventListenerList get unload;
}
// 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.
// WARNING: Do not edit - generated code.
class _FrameSetElementImpl extends _ElementImpl_Merged implements FrameSetElement {
_FrameSetElementEventsImpl get on =>
new _FrameSetElementEventsImpl(this);
String get cols native "HTMLFrameSetElement_cols_Getter";
void set cols(String value) native "HTMLFrameSetElement_cols_Setter";
String get rows native "HTMLFrameSetElement_rows_Getter";
void set rows(String value) native "HTMLFrameSetElement_rows_Setter";
}
class _FrameSetElementEventsImpl extends _ElementEventsImpl implements FrameSetElementEvents {
_FrameSetElementEventsImpl(_ptr) : super(_ptr);
EventListenerList get beforeUnload => this['beforeunload'];
EventListenerList get blur => this['blur'];
EventListenerList get error => this['error'];
EventListenerList get focus => this['focus'];
EventListenerList get hashChange => this['hashchange'];
EventListenerList get load => this['load'];
EventListenerList get message => this['message'];
EventListenerList get offline => this['offline'];
EventListenerList get online => this['online'];
EventListenerList get popState => this['popstate'];
EventListenerList get resize => this['resize'];
EventListenerList get storage => this['storage'];
EventListenerList get unload => this['unload'];
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName GainNode
abstract class GainNode implements AudioNode {
/** @domName GainNode.gain */
AudioGain get gain;
}
// 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.
// WARNING: Do not edit - generated code.
class _GainNodeImpl extends _AudioNodeImpl implements GainNode {
AudioGain get gain native "GainNode_gain_Getter";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName Gamepad
abstract class Gamepad {
/** @domName Gamepad.axes */
List<num> get axes;
/** @domName Gamepad.buttons */
List<num> get buttons;
/** @domName Gamepad.id */
String get id;
/** @domName Gamepad.index */
int get index;
/** @domName Gamepad.timestamp */
int get timestamp;
}
// 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.
// WARNING: Do not edit - generated code.
class _GamepadImpl extends NativeFieldWrapperClass1 implements Gamepad {
List<num> get axes native "Gamepad_axes_Getter";
List<num> get buttons native "Gamepad_buttons_Getter";
String get id native "Gamepad_id_Getter";
int get index native "Gamepad_index_Getter";
int get timestamp native "Gamepad_timestamp_Getter";
}
// 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.
// WARNING: Do not edit - generated code.
class _GamepadListImpl extends NativeFieldWrapperClass1 implements List<Gamepad> {
int get length native "GamepadList_length_Getter";
Gamepad operator[](int index) native "GamepadList_item_Callback";
void operator[]=(int index, Gamepad value) {
throw new UnsupportedError("Cannot assign element of immutable List.");
}
// -- start List<Gamepad> mixins.
// Gamepad is the element type.
// From Iterable<Gamepad>:
Iterator<Gamepad> 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<Gamepad>(this);
}
// From Collection<Gamepad>:
void add(Gamepad value) {
throw new UnsupportedError("Cannot add to immutable List.");
}
void addLast(Gamepad value) {
throw new UnsupportedError("Cannot add to immutable List.");
}
void addAll(Collection<Gamepad> collection) {
throw new UnsupportedError("Cannot add to immutable List.");
}
bool contains(Gamepad element) => _Collections.contains(this, element);
void forEach(void f(Gamepad element)) => _Collections.forEach(this, f);
Collection map(f(Gamepad element)) => _Collections.map(this, [], f);
Collection<Gamepad> filter(bool f(Gamepad element)) =>
_Collections.filter(this, <Gamepad>[], f);
bool every(bool f(Gamepad element)) => _Collections.every(this, f);
bool some(bool f(Gamepad element)) => _Collections.some(this, f);
bool get isEmpty => this.length == 0;
// From List<Gamepad>:
void sort([Comparator<Gamepad> compare = Comparable.compare]) {
throw new UnsupportedError("Cannot sort immutable List.");
}
int indexOf(Gamepad element, [int start = 0]) =>
_Lists.indexOf(this, element, start, this.length);
int lastIndexOf(Gamepad element, [int start]) {
if (start == null) start = length - 1;
return _Lists.lastIndexOf(this, element, start);
}
Gamepad get last => this[length - 1];
Gamepad removeLast() {
throw new UnsupportedError("Cannot removeLast on immutable List.");
}
void setRange(int start, int rangeLength, List<Gamepad> from, [int startFrom]) {
throw new UnsupportedError("Cannot setRange on immutable List.");
}
void removeRange(int start, int rangeLength) {
throw new UnsupportedError("Cannot removeRange on immutable List.");
}
void insertRange(int start, int rangeLength, [Gamepad initialValue]) {
throw new UnsupportedError("Cannot insertRange on immutable List.");
}
List<Gamepad> getRange(int start, int rangeLength) =>
_Lists.getRange(this, start, rangeLength, <Gamepad>[]);
// -- end List<Gamepad> mixins.
Gamepad item(int index) native "GamepadList_item_Callback";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName Geolocation
abstract class Geolocation {
/** @domName Geolocation.clearWatch */
void clearWatch(int watchId);
/** @domName Geolocation.getCurrentPosition */
void getCurrentPosition(PositionCallback successCallback, [PositionErrorCallback errorCallback, Object options]);
/** @domName Geolocation.watchPosition */
int watchPosition(PositionCallback successCallback, [PositionErrorCallback errorCallback, Object options]);
}
// 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.
// WARNING: Do not edit - generated code.
class _GeolocationImpl extends NativeFieldWrapperClass1 implements Geolocation {
void clearWatch(int watchId) native "Geolocation_clearWatch_Callback";
void getCurrentPosition(PositionCallback successCallback, [PositionErrorCallback errorCallback, Object options]) native "Geolocation_getCurrentPosition_Callback";
int watchPosition(PositionCallback successCallback, [PositionErrorCallback errorCallback, Object options]) native "Geolocation_watchPosition_Callback";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName Geoposition
abstract class Geoposition {
/** @domName Geoposition.coords */
Coordinates get coords;
/** @domName Geoposition.timestamp */
int get timestamp;
}
// 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.
// WARNING: Do not edit - generated code.
class _GeopositionImpl extends NativeFieldWrapperClass1 implements Geoposition {
Coordinates get coords native "Geoposition_coords_Getter";
int get timestamp native "Geoposition_timestamp_Getter";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName HTMLHRElement
abstract class HRElement implements Element {
factory HRElement() => _Elements.createHRElement();
/** @domName HTMLHRElement.align */
String align;
/** @domName HTMLHRElement.noShade */
bool noShade;
/** @domName HTMLHRElement.size */
String size;
/** @domName HTMLHRElement.width */
String width;
}
// 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.
// WARNING: Do not edit - generated code.
class _HRElementImpl extends _ElementImpl_Merged implements HRElement {
String get align native "HTMLHRElement_align_Getter";
void set align(String value) native "HTMLHRElement_align_Setter";
bool get noShade native "HTMLHRElement_noShade_Getter";
void set noShade(bool value) native "HTMLHRElement_noShade_Setter";
String get size native "HTMLHRElement_size_Getter";
void set size(String value) native "HTMLHRElement_size_Setter";
String get width native "HTMLHRElement_width_Getter";
void set width(String value) native "HTMLHRElement_width_Setter";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName HTMLAllCollection
abstract class HTMLAllCollection implements List<Node> {
/** @domName HTMLAllCollection.length */
int get length;
/** @domName HTMLAllCollection.item */
Node item(int index);
/** @domName HTMLAllCollection.namedItem */
Node namedItem(String name);
/** @domName HTMLAllCollection.tags */
List<Node> tags(String name);
}
// 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.
// WARNING: Do not edit - generated code.
class _HTMLAllCollectionImpl extends NativeFieldWrapperClass1 implements HTMLAllCollection {
int get length native "HTMLAllCollection_length_Getter";
Node operator[](int index) native "HTMLAllCollection_item_Callback";
void operator[]=(int index, Node value) {
throw new UnsupportedError("Cannot assign element of immutable List.");
}
// -- start List<Node> mixins.
// Node is the element type.
// From Iterable<Node>:
Iterator<Node> 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<Node>(this);
}
// From Collection<Node>:
void add(Node value) {
throw new UnsupportedError("Cannot add to immutable List.");
}
void addLast(Node value) {
throw new UnsupportedError("Cannot add to immutable List.");
}
void addAll(Collection<Node> collection) {
throw new UnsupportedError("Cannot add to immutable List.");
}
bool contains(Node element) => _Collections.contains(this, element);
void forEach(void f(Node element)) => _Collections.forEach(this, f);
Collection map(f(Node element)) => _Collections.map(this, [], f);
Collection<Node> filter(bool f(Node element)) =>
_Collections.filter(this, <Node>[], f);
bool every(bool f(Node element)) => _Collections.every(this, f);
bool some(bool f(Node element)) => _Collections.some(this, f);
bool get isEmpty => this.length == 0;
// From List<Node>:
void sort([Comparator<Node> compare = Comparable.compare]) {
throw new UnsupportedError("Cannot sort immutable List.");
}
int indexOf(Node element, [int start = 0]) =>
_Lists.indexOf(this, element, start, this.length);
int lastIndexOf(Node element, [int start]) {
if (start == null) start = length - 1;
return _Lists.lastIndexOf(this, element, start);
}
Node get last => this[length - 1];
Node removeLast() {
throw new UnsupportedError("Cannot removeLast on immutable List.");
}
void setRange(int start, int rangeLength, List<Node> from, [int startFrom]) {
throw new UnsupportedError("Cannot setRange on immutable List.");
}
void removeRange(int start, int rangeLength) {
throw new UnsupportedError("Cannot removeRange on immutable List.");
}
void insertRange(int start, int rangeLength, [Node initialValue]) {
throw new UnsupportedError("Cannot insertRange on immutable List.");
}
List<Node> getRange(int start, int rangeLength) =>
_Lists.getRange(this, start, rangeLength, <Node>[]);
// -- end List<Node> mixins.
Node item(int index) native "HTMLAllCollection_item_Callback";
Node namedItem(String name) native "HTMLAllCollection_namedItem_Callback";
List<Node> tags(String name) native "HTMLAllCollection_tags_Callback";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName HTMLCollection
abstract class HTMLCollection implements List<Node> {
/** @domName HTMLCollection.length */
int get length;
/** @domName HTMLCollection.item */
Node item(int index);
/** @domName HTMLCollection.namedItem */
Node namedItem(String name);
}
// 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.
// WARNING: Do not edit - generated code.
class _HTMLCollectionImpl extends NativeFieldWrapperClass1 implements HTMLCollection {
int get length native "HTMLCollection_length_Getter";
Node operator[](int index) native "HTMLCollection_item_Callback";
void operator[]=(int index, Node value) {
throw new UnsupportedError("Cannot assign element of immutable List.");
}
// -- start List<Node> mixins.
// Node is the element type.
// From Iterable<Node>:
Iterator<Node> 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<Node>(this);
}
// From Collection<Node>:
void add(Node value) {
throw new UnsupportedError("Cannot add to immutable List.");
}
void addLast(Node value) {
throw new UnsupportedError("Cannot add to immutable List.");
}
void addAll(Collection<Node> collection) {
throw new UnsupportedError("Cannot add to immutable List.");
}
bool contains(Node element) => _Collections.contains(this, element);
void forEach(void f(Node element)) => _Collections.forEach(this, f);
Collection map(f(Node element)) => _Collections.map(this, [], f);
Collection<Node> filter(bool f(Node element)) =>
_Collections.filter(this, <Node>[], f);
bool every(bool f(Node element)) => _Collections.every(this, f);
bool some(bool f(Node element)) => _Collections.some(this, f);
bool get isEmpty => this.length == 0;
// From List<Node>:
void sort([Comparator<Node> compare = Comparable.compare]) {
throw new UnsupportedError("Cannot sort immutable List.");
}
int indexOf(Node element, [int start = 0]) =>
_Lists.indexOf(this, element, start, this.length);
int lastIndexOf(Node element, [int start]) {
if (start == null) start = length - 1;
return _Lists.lastIndexOf(this, element, start);
}
Node get last => this[length - 1];
Node removeLast() {
throw new UnsupportedError("Cannot removeLast on immutable List.");
}
void setRange(int start, int rangeLength, List<Node> from, [int startFrom]) {
throw new UnsupportedError("Cannot setRange on immutable List.");
}
void removeRange(int start, int rangeLength) {
throw new UnsupportedError("Cannot removeRange on immutable List.");
}
void insertRange(int start, int rangeLength, [Node initialValue]) {
throw new UnsupportedError("Cannot insertRange on immutable List.");
}
List<Node> getRange(int start, int rangeLength) =>
_Lists.getRange(this, start, rangeLength, <Node>[]);
// -- end List<Node> mixins.
Node item(int index) native "HTMLCollection_item_Callback";
Node namedItem(String name) native "HTMLCollection_namedItem_Callback";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName HTMLOptionsCollection
abstract class HTMLOptionsCollection implements HTMLCollection {
/** @domName HTMLOptionsCollection.length */
int length;
/** @domName HTMLOptionsCollection.selectedIndex */
int selectedIndex;
/** @domName HTMLOptionsCollection.remove */
void remove(int index);
}
// 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.
// WARNING: Do not edit - generated code.
class _HTMLOptionsCollectionImpl extends _HTMLCollectionImpl implements HTMLOptionsCollection {
int get length native "HTMLOptionsCollection_length_Getter";
void set length(int value) native "HTMLOptionsCollection_length_Setter";
int get selectedIndex native "HTMLOptionsCollection_selectedIndex_Getter";
void set selectedIndex(int value) native "HTMLOptionsCollection_selectedIndex_Setter";
void operator[]=(int index, Node value) native "HTMLOptionsCollection_numericIndexSetter_Callback";
void remove(int index) native "HTMLOptionsCollection_remove_Callback";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName HashChangeEvent
abstract class HashChangeEvent implements Event {
/** @domName HashChangeEvent.newURL */
String get newURL;
/** @domName HashChangeEvent.oldURL */
String get oldURL;
/** @domName HashChangeEvent.initHashChangeEvent */
void initHashChangeEvent(String type, bool canBubble, bool cancelable, String oldURL, String newURL);
}
// 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.
// WARNING: Do not edit - generated code.
class _HashChangeEventImpl extends _EventImpl implements HashChangeEvent {
String get newURL native "HashChangeEvent_newURL_Getter";
String get oldURL native "HashChangeEvent_oldURL_Getter";
void initHashChangeEvent(String type, bool canBubble, bool cancelable, String oldURL, String newURL) native "HashChangeEvent_initHashChangeEvent_Callback";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName HTMLHeadElement
abstract class HeadElement implements Element {
factory HeadElement() => _Elements.createHeadElement();
/** @domName HTMLHeadElement.profile */
String profile;
}
// 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.
// WARNING: Do not edit - generated code.
class _HeadElementImpl extends _ElementImpl_Merged implements HeadElement {
String get profile native "HTMLHeadElement_profile_Getter";
void set profile(String value) native "HTMLHeadElement_profile_Setter";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName HTMLHeadingElement
abstract class HeadingElement implements Element {
factory HeadingElement.h1() => _Elements.createHeadingElement_h1();
factory HeadingElement.h2() => _Elements.createHeadingElement_h2();
factory HeadingElement.h3() => _Elements.createHeadingElement_h3();
factory HeadingElement.h4() => _Elements.createHeadingElement_h4();
factory HeadingElement.h5() => _Elements.createHeadingElement_h5();
factory HeadingElement.h6() => _Elements.createHeadingElement_h6();
/** @domName HTMLHeadingElement.align */
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.
// WARNING: Do not edit - generated code.
class _HeadingElementImpl extends _ElementImpl_Merged implements HeadingElement {
String get align native "HTMLHeadingElement_align_Getter";
void set align(String value) native "HTMLHeadingElement_align_Setter";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName HTMLHtmlElement
abstract class HtmlElement implements Element {
factory HtmlElement() => _Elements.createHtmlElement();
}
// 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.
// WARNING: Do not edit - generated code.
class _HtmlElementImpl extends _ElementImpl_Merged implements HtmlElement {
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName XMLHttpRequest
abstract class HttpRequest implements EventTarget {
factory HttpRequest.get(String url, onSuccess(HttpRequest request)) =>
_HttpRequestFactoryProvider.createHttpRequest_get(url, onSuccess);
factory HttpRequest.getWithCredentials(String url, onSuccess(HttpRequest request)) =>
_HttpRequestFactoryProvider.createHttpRequest_getWithCredentials(url, onSuccess);
factory HttpRequest() => _HttpRequestFactoryProvider.createHttpRequest();
/**
* @domName EventTarget.addEventListener, EventTarget.removeEventListener, EventTarget.dispatchEvent
*/
HttpRequestEvents get on;
static const int DONE = 4;
static const int HEADERS_RECEIVED = 2;
static const int LOADING = 3;
static const int OPENED = 1;
static const int UNSENT = 0;
/** @domName XMLHttpRequest.readyState */
int get readyState;
/** @domName XMLHttpRequest.response */
Object get response;
/** @domName XMLHttpRequest.responseText */
String get responseText;
/** @domName XMLHttpRequest.responseType */
String responseType;
/** @domName XMLHttpRequest.responseXML */
Document get responseXML;
/** @domName XMLHttpRequest.status */
int get status;
/** @domName XMLHttpRequest.statusText */
String get statusText;
/** @domName XMLHttpRequest.upload */
HttpRequestUpload get upload;
/** @domName XMLHttpRequest.withCredentials */
bool withCredentials;
/** @domName XMLHttpRequest.abort */
void abort();
/** @domName XMLHttpRequest.addEventListener */
void $dom_addEventListener(String type, EventListener listener, [bool useCapture]);
/** @domName XMLHttpRequest.dispatchEvent */
bool $dom_dispatchEvent(Event evt);
/** @domName XMLHttpRequest.getAllResponseHeaders */
String getAllResponseHeaders();
/** @domName XMLHttpRequest.getResponseHeader */
String getResponseHeader(String header);
/** @domName XMLHttpRequest.open */
void open(String method, String url, [bool async, String user, String password]);
/** @domName XMLHttpRequest.overrideMimeType */
void overrideMimeType(String override);
/** @domName XMLHttpRequest.removeEventListener */
void $dom_removeEventListener(String type, EventListener listener, [bool useCapture]);
/** @domName XMLHttpRequest.send */
void send([data]);
/** @domName XMLHttpRequest.setRequestHeader */
void setRequestHeader(String header, String value);
}
abstract class HttpRequestEvents implements Events {
EventListenerList get abort;
EventListenerList get error;
EventListenerList get load;
EventListenerList get loadEnd;
EventListenerList get loadStart;
EventListenerList get progress;
EventListenerList get readyStateChange;
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName XMLHttpRequestException
abstract class HttpRequestException {
static const int ABORT_ERR = 102;
static const int NETWORK_ERR = 101;
/** @domName XMLHttpRequestException.code */
int get code;
/** @domName XMLHttpRequestException.message */
String get message;
/** @domName XMLHttpRequestException.name */
String get name;
/** @domName XMLHttpRequestException.toString */
String toString();
}
// 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.
// WARNING: Do not edit - generated code.
class _HttpRequestExceptionImpl extends NativeFieldWrapperClass1 implements HttpRequestException {
int get code native "XMLHttpRequestException_code_Getter";
String get message native "XMLHttpRequestException_message_Getter";
String get name native "XMLHttpRequestException_name_Getter";
String toString() native "XMLHttpRequestException_toString_Callback";
}
// 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.
// WARNING: Do not edit - generated code.
class _HttpRequestImpl extends _EventTargetImpl implements HttpRequest {
_HttpRequestEventsImpl get on =>
new _HttpRequestEventsImpl(this);
int get readyState native "XMLHttpRequest_readyState_Getter";
Object get response native "XMLHttpRequest_response_Getter";
String get responseText native "XMLHttpRequest_responseText_Getter";
String get responseType native "XMLHttpRequest_responseType_Getter";
void set responseType(String value) native "XMLHttpRequest_responseType_Setter";
Document get responseXML native "XMLHttpRequest_responseXML_Getter";
int get status native "XMLHttpRequest_status_Getter";
String get statusText native "XMLHttpRequest_statusText_Getter";
HttpRequestUpload get upload native "XMLHttpRequest_upload_Getter";
bool get withCredentials native "XMLHttpRequest_withCredentials_Getter";
void set withCredentials(bool value) native "XMLHttpRequest_withCredentials_Setter";
void abort() native "XMLHttpRequest_abort_Callback";
void $dom_addEventListener(String type, EventListener listener, [bool useCapture]) native "XMLHttpRequest_addEventListener_Callback";
bool $dom_dispatchEvent(Event evt) native "XMLHttpRequest_dispatchEvent_Callback";
String getAllResponseHeaders() native "XMLHttpRequest_getAllResponseHeaders_Callback";
String getResponseHeader(String header) native "XMLHttpRequest_getResponseHeader_Callback";
void open(String method, String url, [bool async, String user, String password]) native "XMLHttpRequest_open_Callback";
void overrideMimeType(String override) native "XMLHttpRequest_overrideMimeType_Callback";
void $dom_removeEventListener(String type, EventListener listener, [bool useCapture]) native "XMLHttpRequest_removeEventListener_Callback";
void send([data]) native "XMLHttpRequest_send_Callback";
void setRequestHeader(String header, String value) native "XMLHttpRequest_setRequestHeader_Callback";
}
class _HttpRequestEventsImpl extends _EventsImpl implements HttpRequestEvents {
_HttpRequestEventsImpl(_ptr) : super(_ptr);
EventListenerList get abort => this['abort'];
EventListenerList get error => this['error'];
EventListenerList get load => this['load'];
EventListenerList get loadEnd => this['loadend'];
EventListenerList get loadStart => this['loadstart'];
EventListenerList get progress => this['progress'];
EventListenerList get readyStateChange => this['readystatechange'];
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName XMLHttpRequestProgressEvent
abstract class HttpRequestProgressEvent implements ProgressEvent {
/** @domName XMLHttpRequestProgressEvent.position */
int get position;
/** @domName XMLHttpRequestProgressEvent.totalSize */
int get totalSize;
}
// 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.
// WARNING: Do not edit - generated code.
class _HttpRequestProgressEventImpl extends _ProgressEventImpl implements HttpRequestProgressEvent {
int get position native "XMLHttpRequestProgressEvent_position_Getter";
int get totalSize native "XMLHttpRequestProgressEvent_totalSize_Getter";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName XMLHttpRequestUpload
abstract class HttpRequestUpload implements EventTarget {
/**
* @domName EventTarget.addEventListener, EventTarget.removeEventListener, EventTarget.dispatchEvent
*/
HttpRequestUploadEvents get on;
/** @domName XMLHttpRequestUpload.addEventListener */
void $dom_addEventListener(String type, EventListener listener, [bool useCapture]);
/** @domName XMLHttpRequestUpload.dispatchEvent */
bool $dom_dispatchEvent(Event evt);
/** @domName XMLHttpRequestUpload.removeEventListener */
void $dom_removeEventListener(String type, EventListener listener, [bool useCapture]);
}
abstract class HttpRequestUploadEvents implements Events {
EventListenerList get abort;
EventListenerList get error;
EventListenerList get load;
EventListenerList get loadEnd;
EventListenerList get loadStart;
EventListenerList get progress;
}
// 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.
// WARNING: Do not edit - generated code.
class _HttpRequestUploadImpl extends _EventTargetImpl implements HttpRequestUpload {
_HttpRequestUploadEventsImpl get on =>
new _HttpRequestUploadEventsImpl(this);
void $dom_addEventListener(String type, EventListener listener, [bool useCapture]) native "XMLHttpRequestUpload_addEventListener_Callback";
bool $dom_dispatchEvent(Event evt) native "XMLHttpRequestUpload_dispatchEvent_Callback";
void $dom_removeEventListener(String type, EventListener listener, [bool useCapture]) native "XMLHttpRequestUpload_removeEventListener_Callback";
}
class _HttpRequestUploadEventsImpl extends _EventsImpl implements HttpRequestUploadEvents {
_HttpRequestUploadEventsImpl(_ptr) : super(_ptr);
EventListenerList get abort => this['abort'];
EventListenerList get error => this['error'];
EventListenerList get load => this['load'];
EventListenerList get loadEnd => this['loadend'];
EventListenerList get loadStart => this['loadstart'];
EventListenerList get progress => this['progress'];
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName IDBAny
abstract class IDBAny {
}
// 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.
// WARNING: Do not edit - generated code.
class _IDBAnyImpl extends NativeFieldWrapperClass1 implements IDBAny {
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName IDBCursor
abstract class IDBCursor {
static const int NEXT = 0;
static const int NEXT_NO_DUPLICATE = 1;
static const int PREV = 2;
static const int PREV_NO_DUPLICATE = 3;
/** @domName IDBCursor.direction */
String get direction;
/** @domName IDBCursor.key */
Object get key;
/** @domName IDBCursor.primaryKey */
Object get primaryKey;
/** @domName IDBCursor.source */
dynamic get source;
/** @domName IDBCursor.advance */
void advance(int count);
/** @domName IDBCursor.continueFunction */
void continueFunction([/*IDBKey*/ key]);
/** @domName IDBCursor.delete */
IDBRequest delete();
/** @domName IDBCursor.update */
IDBRequest update(Object value);
}
// 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.
// WARNING: Do not edit - generated code.
class _IDBCursorImpl extends NativeFieldWrapperClass1 implements IDBCursor {
String get direction native "IDBCursor_direction_Getter";
Object get key native "IDBCursor_key_Getter";
Object get primaryKey native "IDBCursor_primaryKey_Getter";
dynamic get source native "IDBCursor_source_Getter";
void advance(int count) native "IDBCursor_advance_Callback";
void continueFunction([/*IDBKey*/ key]) {
if (?key) {
_continue_1(key);
return;
}
_continue_2();
}
void _continue_1(key) native "IDBCursor_continue_1_Callback";
void _continue_2() native "IDBCursor_continue_2_Callback";
IDBRequest delete() native "IDBCursor_delete_Callback";
IDBRequest update(Object value) native "IDBCursor_update_Callback";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName IDBCursorWithValue
abstract class IDBCursorWithValue implements IDBCursor {
/** @domName IDBCursorWithValue.value */
Object get value;
}
// 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.
// WARNING: Do not edit - generated code.
class _IDBCursorWithValueImpl extends _IDBCursorImpl implements IDBCursorWithValue {
Object get value native "IDBCursorWithValue_value_Getter";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName IDBDatabase
abstract class IDBDatabase implements EventTarget {
/**
* @domName EventTarget.addEventListener, EventTarget.removeEventListener, EventTarget.dispatchEvent
*/
IDBDatabaseEvents get on;
/** @domName IDBDatabase.name */
String get name;
/** @domName IDBDatabase.objectStoreNames */
List<String> get objectStoreNames;
/** @domName IDBDatabase.version */
dynamic get version;
/** @domName IDBDatabase.addEventListener */
void $dom_addEventListener(String type, EventListener listener, [bool useCapture]);
/** @domName IDBDatabase.close */
void close();
/** @domName IDBDatabase.createObjectStore */
IDBObjectStore createObjectStore(String name, [Map options]);
/** @domName IDBDatabase.deleteObjectStore */
void deleteObjectStore(String name);
/** @domName IDBDatabase.dispatchEvent */
bool $dom_dispatchEvent(Event evt);
/** @domName IDBDatabase.removeEventListener */
void $dom_removeEventListener(String type, EventListener listener, [bool useCapture]);
/** @domName IDBDatabase.setVersion */
IDBVersionChangeRequest setVersion(String version);
/** @domName IDBDatabase.transaction */
IDBTransaction transaction(storeName_OR_storeNames, String mode);
}
abstract class IDBDatabaseEvents implements Events {
EventListenerList get abort;
EventListenerList get error;
EventListenerList get versionChange;
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName IDBDatabaseException
abstract class IDBDatabaseException {
static const int ABORT_ERR = 20;
static const int CONSTRAINT_ERR = 4;
static const int DATA_ERR = 5;
static const int NON_TRANSIENT_ERR = 2;
static const int NOT_ALLOWED_ERR = 6;
static const int NOT_FOUND_ERR = 8;
static const int NO_ERR = 0;
static const int QUOTA_ERR = 22;
static const int READ_ONLY_ERR = 9;
static const int TIMEOUT_ERR = 23;
static const int TRANSACTION_INACTIVE_ERR = 7;
static const int UNKNOWN_ERR = 1;
static const int VER_ERR = 12;
/** @domName IDBDatabaseException.code */
int get code;
/** @domName IDBDatabaseException.message */
String get message;
/** @domName IDBDatabaseException.name */
String get name;
/** @domName IDBDatabaseException.toString */
String toString();
}
// 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.
// WARNING: Do not edit - generated code.
class _IDBDatabaseExceptionImpl extends NativeFieldWrapperClass1 implements IDBDatabaseException {
int get code native "IDBDatabaseException_code_Getter";
String get message native "IDBDatabaseException_message_Getter";
String get name native "IDBDatabaseException_name_Getter";
String toString() native "IDBDatabaseException_toString_Callback";
}
// 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.
// WARNING: Do not edit - generated code.
class _IDBDatabaseImpl extends _EventTargetImpl implements IDBDatabase {
_IDBDatabaseEventsImpl get on =>
new _IDBDatabaseEventsImpl(this);
String get name native "IDBDatabase_name_Getter";
List<String> get objectStoreNames native "IDBDatabase_objectStoreNames_Getter";
dynamic get version native "IDBDatabase_version_Getter";
void $dom_addEventListener(String type, EventListener listener, [bool useCapture]) native "IDBDatabase_addEventListener_Callback";
void close() native "IDBDatabase_close_Callback";
IDBObjectStore createObjectStore(String name, [Map options]) native "IDBDatabase_createObjectStore_Callback";
void deleteObjectStore(String name) native "IDBDatabase_deleteObjectStore_Callback";
bool $dom_dispatchEvent(Event evt) native "IDBDatabase_dispatchEvent_Callback";
void $dom_removeEventListener(String type, EventListener listener, [bool useCapture]) native "IDBDatabase_removeEventListener_Callback";
IDBVersionChangeRequest setVersion(String version) native "IDBDatabase_setVersion_Callback";
IDBTransaction transaction(storeName_OR_storeNames, /*DOMString*/ mode) {
if ((storeName_OR_storeNames is List<String> || storeName_OR_storeNames == null) && (mode is String || mode == null)) {
return _transaction_1(storeName_OR_storeNames, mode);
}
if ((storeName_OR_storeNames is List<String> || storeName_OR_storeNames == null) && (mode is String || mode == null)) {
return _transaction_2(storeName_OR_storeNames, mode);
}
if ((storeName_OR_storeNames is String || storeName_OR_storeNames == null) && (mode is String || mode == null)) {
return _transaction_3(storeName_OR_storeNames, mode);
}
throw "Incorrect number or type of arguments";
}
IDBTransaction _transaction_1(storeName_OR_storeNames, mode) native "IDBDatabase_transaction_1_Callback";
IDBTransaction _transaction_2(storeName_OR_storeNames, mode) native "IDBDatabase_transaction_2_Callback";
IDBTransaction _transaction_3(storeName_OR_storeNames, mode) native "IDBDatabase_transaction_3_Callback";
}
class _IDBDatabaseEventsImpl extends _EventsImpl implements IDBDatabaseEvents {
_IDBDatabaseEventsImpl(_ptr) : super(_ptr);
EventListenerList get abort => this['abort'];
EventListenerList get error => this['error'];
EventListenerList get versionChange => this['versionchange'];
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName IDBFactory
abstract class IDBFactory {
/** @domName IDBFactory.cmp */
int cmp(/*IDBKey*/ first, /*IDBKey*/ second);
/** @domName IDBFactory.deleteDatabase */
IDBVersionChangeRequest deleteDatabase(String name);
/** @domName IDBFactory.open */
IDBOpenDBRequest open(String name, [int version]);
/** @domName IDBFactory.webkitGetDatabaseNames */
IDBRequest webkitGetDatabaseNames();
}
// 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.
// WARNING: Do not edit - generated code.
class _IDBFactoryImpl extends NativeFieldWrapperClass1 implements IDBFactory {
int cmp(/*IDBKey*/ first, /*IDBKey*/ second) native "IDBFactory_cmp_Callback";
IDBVersionChangeRequest deleteDatabase(String name) native "IDBFactory_deleteDatabase_Callback";
IDBOpenDBRequest open(/*DOMString*/ name, [/*long long*/ version]) {
if (?version) {
return _open_1(name, version);
}
return _open_2(name);
}
IDBOpenDBRequest _open_1(name, version) native "IDBFactory_open_1_Callback";
IDBOpenDBRequest _open_2(name) native "IDBFactory_open_2_Callback";
IDBRequest webkitGetDatabaseNames() native "IDBFactory_webkitGetDatabaseNames_Callback";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName IDBIndex
abstract class IDBIndex {
/** @domName IDBIndex.keyPath */
dynamic get keyPath;
/** @domName IDBIndex.multiEntry */
bool get multiEntry;
/** @domName IDBIndex.name */
String get name;
/** @domName IDBIndex.objectStore */
IDBObjectStore get objectStore;
/** @domName IDBIndex.unique */
bool get unique;
/** @domName IDBIndex.count */
IDBRequest count([key_OR_range]);
/** @domName IDBIndex.get */
IDBRequest get(key);
/** @domName IDBIndex.getKey */
IDBRequest getKey(key);
/** @domName IDBIndex.openCursor */
IDBRequest openCursor([key_OR_range, String direction]);
/** @domName IDBIndex.openKeyCursor */
IDBRequest openKeyCursor([key_OR_range, String direction]);
}
// 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.
// WARNING: Do not edit - generated code.
class _IDBIndexImpl extends NativeFieldWrapperClass1 implements IDBIndex {
dynamic get keyPath native "IDBIndex_keyPath_Getter";
bool get multiEntry native "IDBIndex_multiEntry_Getter";
String get name native "IDBIndex_name_Getter";
IDBObjectStore get objectStore native "IDBIndex_objectStore_Getter";
bool get unique native "IDBIndex_unique_Getter";
IDBRequest count([key_OR_range]) {
if (!?key_OR_range) {
return _count_1();
}
if ((key_OR_range is IDBKeyRange || key_OR_range == null)) {
return _count_2(key_OR_range);
}
return _count_3(key_OR_range);
throw "Incorrect number or type of arguments";
}
IDBRequest _count_1() native "IDBIndex_count_1_Callback";
IDBRequest _count_2(key_OR_range) native "IDBIndex_count_2_Callback";
IDBRequest _count_3(key_OR_range) native "IDBIndex_count_3_Callback";
IDBRequest get(key) {
if ((key is IDBKeyRange || key == null)) {
return _get_1(key);
}
return _get_2(key);
throw "Incorrect number or type of arguments";
}
IDBRequest _get_1(key) native "IDBIndex_get_1_Callback";
IDBRequest _get_2(key) native "IDBIndex_get_2_Callback";
IDBRequest getKey(key) {
if ((key is IDBKeyRange || key == null)) {
return _getKey_1(key);
}
return _getKey_2(key);
throw "Incorrect number or type of arguments";
}
IDBRequest _getKey_1(key) native "IDBIndex_getKey_1_Callback";
IDBRequest _getKey_2(key) native "IDBIndex_getKey_2_Callback";
IDBRequest openCursor([key_OR_range, /*DOMString*/ direction]) {
if (!?key_OR_range && !?direction) {
return _openCursor_1();
}
if ((key_OR_range is IDBKeyRange || key_OR_range == null) && !?direction) {
return _openCursor_2(key_OR_range);
}
if ((key_OR_range is IDBKeyRange || key_OR_range == null) && (direction is String || direction == null)) {
return _openCursor_3(key_OR_range, direction);
}
if (!?direction) {
return _openCursor_4(key_OR_range);
}
if ((direction is String || direction == null)) {
return _openCursor_5(key_OR_range, direction);
}
throw "Incorrect number or type of arguments";
}
IDBRequest _openCursor_1() native "IDBIndex_openCursor_1_Callback";
IDBRequest _openCursor_2(key_OR_range) native "IDBIndex_openCursor_2_Callback";
IDBRequest _openCursor_3(key_OR_range, direction) native "IDBIndex_openCursor_3_Callback";
IDBRequest _openCursor_4(key_OR_range) native "IDBIndex_openCursor_4_Callback";
IDBRequest _openCursor_5(key_OR_range, direction) native "IDBIndex_openCursor_5_Callback";
IDBRequest openKeyCursor([key_OR_range, /*DOMString*/ direction]) {
if (!?key_OR_range && !?direction) {
return _openKeyCursor_1();
}
if ((key_OR_range is IDBKeyRange || key_OR_range == null) && !?direction) {
return _openKeyCursor_2(key_OR_range);
}
if ((key_OR_range is IDBKeyRange || key_OR_range == null) && (direction is String || direction == null)) {
return _openKeyCursor_3(key_OR_range, direction);
}
if (!?direction) {
return _openKeyCursor_4(key_OR_range);
}
if ((direction is String || direction == null)) {
return _openKeyCursor_5(key_OR_range, direction);
}
throw "Incorrect number or type of arguments";
}
IDBRequest _openKeyCursor_1() native "IDBIndex_openKeyCursor_1_Callback";
IDBRequest _openKeyCursor_2(key_OR_range) native "IDBIndex_openKeyCursor_2_Callback";
IDBRequest _openKeyCursor_3(key_OR_range, direction) native "IDBIndex_openKeyCursor_3_Callback";
IDBRequest _openKeyCursor_4(key_OR_range) native "IDBIndex_openKeyCursor_4_Callback";
IDBRequest _openKeyCursor_5(key_OR_range, direction) native "IDBIndex_openKeyCursor_5_Callback";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName IDBKey
abstract class IDBKey {
}
// 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.
// WARNING: Do not edit - generated code.
class _IDBKeyImpl extends NativeFieldWrapperClass1 implements IDBKey {
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName IDBKeyRange
abstract class IDBKeyRange {
/**
* @domName IDBKeyRange.only
*/
factory IDBKeyRange.only(/*IDBKey*/ value) =>
_IDBKeyRangeFactoryProvider.createIDBKeyRange_only(value);
/**
* @domName IDBKeyRange.lowerBound
*/
factory IDBKeyRange.lowerBound(/*IDBKey*/ bound, [bool open = false]) =>
_IDBKeyRangeFactoryProvider.createIDBKeyRange_lowerBound(bound, open);
/**
* @domName IDBKeyRange.upperBound
*/
factory IDBKeyRange.upperBound(/*IDBKey*/ bound, [bool open = false]) =>
_IDBKeyRangeFactoryProvider.createIDBKeyRange_upperBound(bound, open);
/**
* @domName IDBKeyRange.bound
*/
factory IDBKeyRange.bound(/*IDBKey*/ lower, /*IDBKey*/ upper,
[bool lowerOpen = false, bool upperOpen = false]) =>
_IDBKeyRangeFactoryProvider.createIDBKeyRange_bound(
lower, upper, lowerOpen, upperOpen);
/** @domName IDBKeyRange.lower */
dynamic get lower;
/** @domName IDBKeyRange.lowerOpen */
bool get lowerOpen;
/** @domName IDBKeyRange.upper */
dynamic get upper;
/** @domName IDBKeyRange.upperOpen */
bool get upperOpen;
/** @domName IDBKeyRange.bound_ */
static final bound_ = _IDBKeyRangeImpl.bound_;
/** @domName IDBKeyRange.lowerBound_ */
static final lowerBound_ = _IDBKeyRangeImpl.lowerBound_;
/** @domName IDBKeyRange.only_ */
static final only_ = _IDBKeyRangeImpl.only_;
/** @domName IDBKeyRange.upperBound_ */
static final upperBound_ = _IDBKeyRangeImpl.upperBound_;
}
// 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.
// WARNING: Do not edit - generated code.
class _IDBKeyRangeImpl extends NativeFieldWrapperClass1 implements IDBKeyRange {
dynamic get lower native "IDBKeyRange_lower_Getter";
bool get lowerOpen native "IDBKeyRange_lowerOpen_Getter";
dynamic get upper native "IDBKeyRange_upper_Getter";
bool get upperOpen native "IDBKeyRange_upperOpen_Getter";
static IDBKeyRange bound_(/*IDBKey*/ lower, /*IDBKey*/ upper, [/*boolean*/ lowerOpen, /*boolean*/ upperOpen]) {
if (?upperOpen) {
return _bound_1(lower, upper, lowerOpen, upperOpen);
}
if (?lowerOpen) {
return _bound_2(lower, upper, lowerOpen);
}
return _bound_3(lower, upper);
}
static IDBKeyRange _bound_1(lower, upper, lowerOpen, upperOpen) native "IDBKeyRange_bound_1_Callback";
static IDBKeyRange _bound_2(lower, upper, lowerOpen) native "IDBKeyRange_bound_2_Callback";
static IDBKeyRange _bound_3(lower, upper) native "IDBKeyRange_bound_3_Callback";
static IDBKeyRange lowerBound_(/*IDBKey*/ bound, [/*boolean*/ open]) {
if (?open) {
return _lowerBound_1(bound, open);
}
return _lowerBound_2(bound);
}
static IDBKeyRange _lowerBound_1(bound, open) native "IDBKeyRange_lowerBound_1_Callback";
static IDBKeyRange _lowerBound_2(bound) native "IDBKeyRange_lowerBound_2_Callback";
static IDBKeyRange only_(/*IDBKey*/ value) native "IDBKeyRange_only__Callback";
static IDBKeyRange upperBound_(/*IDBKey*/ bound, [/*boolean*/ open]) {
if (?open) {
return _upperBound_1(bound, open);
}
return _upperBound_2(bound);
}
static IDBKeyRange _upperBound_1(bound, open) native "IDBKeyRange_upperBound_1_Callback";
static IDBKeyRange _upperBound_2(bound) native "IDBKeyRange_upperBound_2_Callback";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName IDBObjectStore
abstract class IDBObjectStore {
/** @domName IDBObjectStore.autoIncrement */
bool get autoIncrement;
/** @domName IDBObjectStore.indexNames */
List<String> get indexNames;
/** @domName IDBObjectStore.keyPath */
dynamic get keyPath;
/** @domName IDBObjectStore.name */
String get name;
/** @domName IDBObjectStore.transaction */
IDBTransaction get transaction;
/** @domName IDBObjectStore.add */
IDBRequest add(Object value, [/*IDBKey*/ key]);
/** @domName IDBObjectStore.clear */
IDBRequest clear();
/** @domName IDBObjectStore.count */
IDBRequest count([key_OR_range]);
/** @domName IDBObjectStore.createIndex */
IDBIndex createIndex(String name, keyPath, [Map options]);
/** @domName IDBObjectStore.delete */
IDBRequest delete(key_OR_keyRange);
/** @domName IDBObjectStore.deleteIndex */
void deleteIndex(String name);
/** @domName IDBObjectStore.getObject */
IDBRequest getObject(key);
/** @domName IDBObjectStore.index */
IDBIndex index(String name);
/** @domName IDBObjectStore.openCursor */
IDBRequest openCursor([key_OR_range, String direction]);
/** @domName IDBObjectStore.put */
IDBRequest put(Object value, [/*IDBKey*/ key]);
}
// 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.
// WARNING: Do not edit - generated code.
class _IDBObjectStoreImpl extends NativeFieldWrapperClass1 implements IDBObjectStore {
bool get autoIncrement native "IDBObjectStore_autoIncrement_Getter";
List<String> get indexNames native "IDBObjectStore_indexNames_Getter";
dynamic get keyPath native "IDBObjectStore_keyPath_Getter";
String get name native "IDBObjectStore_name_Getter";
IDBTransaction get transaction native "IDBObjectStore_transaction_Getter";
IDBRequest add(/*any*/ value, [/*IDBKey*/ key]) {
if (?key) {
return _add_1(value, key);
}
return _add_2(value);
}
IDBRequest _add_1(value, key) native "IDBObjectStore_add_1_Callback";
IDBRequest _add_2(value) native "IDBObjectStore_add_2_Callback";
IDBRequest clear() native "IDBObjectStore_clear_Callback";
IDBRequest count([key_OR_range]) {
if (!?key_OR_range) {
return _count_1();
}
if ((key_OR_range is IDBKeyRange || key_OR_range == null)) {
return _count_2(key_OR_range);
}
return _count_3(key_OR_range);
throw "Incorrect number or type of arguments";
}
IDBRequest _count_1() native "IDBObjectStore_count_1_Callback";
IDBRequest _count_2(key_OR_range) native "IDBObjectStore_count_2_Callback";
IDBRequest _count_3(key_OR_range) native "IDBObjectStore_count_3_Callback";
IDBIndex createIndex(/*DOMString*/ name, keyPath, [/*Dictionary*/ options]) {
if ((name is String || name == null) && (keyPath is List<String> || keyPath == null) && (options is Map || options == null)) {
return _createIndex_1(name, keyPath, options);
}
if ((name is String || name == null) && (keyPath is String || keyPath == null) && (options is Map || options == null)) {
return _createIndex_2(name, keyPath, options);
}
throw "Incorrect number or type of arguments";
}
IDBIndex _createIndex_1(name, keyPath, options) native "IDBObjectStore_createIndex_1_Callback";
IDBIndex _createIndex_2(name, keyPath, options) native "IDBObjectStore_createIndex_2_Callback";
IDBRequest delete(key_OR_keyRange) {
if ((key_OR_keyRange is IDBKeyRange || key_OR_keyRange == null)) {
return _delete_1(key_OR_keyRange);
}
return _delete_2(key_OR_keyRange);
throw "Incorrect number or type of arguments";
}
IDBRequest _delete_1(key_OR_keyRange) native "IDBObjectStore_delete_1_Callback";
IDBRequest _delete_2(key_OR_keyRange) native "IDBObjectStore_delete_2_Callback";
void deleteIndex(String name) native "IDBObjectStore_deleteIndex_Callback";
IDBRequest getObject(key) {
if ((key is IDBKeyRange || key == null)) {
return _get_1(key);
}
return _get_2(key);
throw "Incorrect number or type of arguments";
}
IDBRequest _get_1(key) native "IDBObjectStore_get_1_Callback";
IDBRequest _get_2(key) native "IDBObjectStore_get_2_Callback";
IDBIndex index(String name) native "IDBObjectStore_index_Callback";
IDBRequest openCursor([key_OR_range, /*DOMString*/ direction]) {
if (!?key_OR_range && !?direction) {
return _openCursor_1();
}
if ((key_OR_range is IDBKeyRange || key_OR_range == null) && !?direction) {
return _openCursor_2(key_OR_range);
}
if ((key_OR_range is IDBKeyRange || key_OR_range == null) && (direction is String || direction == null)) {
return _openCursor_3(key_OR_range, direction);
}
if (!?direction) {
return _openCursor_4(key_OR_range);
}
if ((direction is String || direction == null)) {
return _openCursor_5(key_OR_range, direction);
}
throw "Incorrect number or type of arguments";
}
IDBRequest _openCursor_1() native "IDBObjectStore_openCursor_1_Callback";
IDBRequest _openCursor_2(key_OR_range) native "IDBObjectStore_openCursor_2_Callback";
IDBRequest _openCursor_3(key_OR_range, direction) native "IDBObjectStore_openCursor_3_Callback";
IDBRequest _openCursor_4(key_OR_range) native "IDBObjectStore_openCursor_4_Callback";
IDBRequest _openCursor_5(key_OR_range, direction) native "IDBObjectStore_openCursor_5_Callback";
IDBRequest put(/*any*/ value, [/*IDBKey*/ key]) {
if (?key) {
return _put_1(value, key);
}
return _put_2(value);
}
IDBRequest _put_1(value, key) native "IDBObjectStore_put_1_Callback";
IDBRequest _put_2(value) native "IDBObjectStore_put_2_Callback";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName IDBOpenDBRequest
abstract class IDBOpenDBRequest implements IDBRequest, EventTarget {
/**
* @domName EventTarget.addEventListener, EventTarget.removeEventListener, EventTarget.dispatchEvent
*/
IDBOpenDBRequestEvents get on;
}
abstract class IDBOpenDBRequestEvents implements IDBRequestEvents {
EventListenerList get blocked;
EventListenerList get upgradeNeeded;
}
// 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.
// WARNING: Do not edit - generated code.
class _IDBOpenDBRequestImpl extends _IDBRequestImpl implements IDBOpenDBRequest {
_IDBOpenDBRequestEventsImpl get on =>
new _IDBOpenDBRequestEventsImpl(this);
}
class _IDBOpenDBRequestEventsImpl extends _IDBRequestEventsImpl implements IDBOpenDBRequestEvents {
_IDBOpenDBRequestEventsImpl(_ptr) : super(_ptr);
EventListenerList get blocked => this['blocked'];
EventListenerList get upgradeNeeded => this['upgradeneeded'];
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName IDBRequest
abstract class IDBRequest implements EventTarget {
/**
* @domName EventTarget.addEventListener, EventTarget.removeEventListener, EventTarget.dispatchEvent
*/
IDBRequestEvents get on;
/** @domName IDBRequest.error */
DOMError get error;
/** @domName IDBRequest.errorCode */
int get errorCode;
/** @domName IDBRequest.readyState */
String get readyState;
/** @domName IDBRequest.result */
dynamic get result;
/** @domName IDBRequest.source */
dynamic get source;
/** @domName IDBRequest.transaction */
IDBTransaction get transaction;
/** @domName IDBRequest.webkitErrorMessage */
String get webkitErrorMessage;
/** @domName IDBRequest.addEventListener */
void $dom_addEventListener(String type, EventListener listener, [bool useCapture]);
/** @domName IDBRequest.dispatchEvent */
bool $dom_dispatchEvent(Event evt);
/** @domName IDBRequest.removeEventListener */
void $dom_removeEventListener(String type, EventListener listener, [bool useCapture]);
}
abstract class IDBRequestEvents implements Events {
EventListenerList get error;
EventListenerList get success;
}
// 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.
// WARNING: Do not edit - generated code.
class _IDBRequestImpl extends _EventTargetImpl implements IDBRequest {
_IDBRequestEventsImpl get on =>
new _IDBRequestEventsImpl(this);
DOMError get error native "IDBRequest_error_Getter";
int get errorCode native "IDBRequest_errorCode_Getter";
String get readyState native "IDBRequest_readyState_Getter";
dynamic get result native "IDBRequest_result_Getter";
dynamic get source native "IDBRequest_source_Getter";
IDBTransaction get transaction native "IDBRequest_transaction_Getter";
String get webkitErrorMessage native "IDBRequest_webkitErrorMessage_Getter";
void $dom_addEventListener(String type, EventListener listener, [bool useCapture]) native "IDBRequest_addEventListener_Callback";
bool $dom_dispatchEvent(Event evt) native "IDBRequest_dispatchEvent_Callback";
void $dom_removeEventListener(String type, EventListener listener, [bool useCapture]) native "IDBRequest_removeEventListener_Callback";
}
class _IDBRequestEventsImpl extends _EventsImpl implements IDBRequestEvents {
_IDBRequestEventsImpl(_ptr) : super(_ptr);
EventListenerList get error => this['error'];
EventListenerList get success => this['success'];
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName IDBTransaction
abstract class IDBTransaction implements EventTarget {
/**
* @domName EventTarget.addEventListener, EventTarget.removeEventListener, EventTarget.dispatchEvent
*/
IDBTransactionEvents get on;
static const int READ_ONLY = 0;
static const int READ_WRITE = 1;
static const int VERSION_CHANGE = 2;
/** @domName IDBTransaction.db */
IDBDatabase get db;
/** @domName IDBTransaction.error */
DOMError get error;
/** @domName IDBTransaction.mode */
String get mode;
/** @domName IDBTransaction.abort */
void abort();
/** @domName IDBTransaction.addEventListener */
void $dom_addEventListener(String type, EventListener listener, [bool useCapture]);
/** @domName IDBTransaction.dispatchEvent */
bool $dom_dispatchEvent(Event evt);
/** @domName IDBTransaction.objectStore */
IDBObjectStore objectStore(String name);
/** @domName IDBTransaction.removeEventListener */
void $dom_removeEventListener(String type, EventListener listener, [bool useCapture]);
}
abstract class IDBTransactionEvents implements Events {
EventListenerList get abort;
EventListenerList get complete;
EventListenerList get error;
}
// 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.
// WARNING: Do not edit - generated code.
class _IDBTransactionImpl extends _EventTargetImpl implements IDBTransaction {
_IDBTransactionEventsImpl get on =>
new _IDBTransactionEventsImpl(this);
IDBDatabase get db native "IDBTransaction_db_Getter";
DOMError get error native "IDBTransaction_error_Getter";
String get mode native "IDBTransaction_mode_Getter";
void abort() native "IDBTransaction_abort_Callback";
void $dom_addEventListener(String type, EventListener listener, [bool useCapture]) native "IDBTransaction_addEventListener_Callback";
bool $dom_dispatchEvent(Event evt) native "IDBTransaction_dispatchEvent_Callback";
IDBObjectStore objectStore(String name) native "IDBTransaction_objectStore_Callback";
void $dom_removeEventListener(String type, EventListener listener, [bool useCapture]) native "IDBTransaction_removeEventListener_Callback";
}
class _IDBTransactionEventsImpl extends _EventsImpl implements IDBTransactionEvents {
_IDBTransactionEventsImpl(_ptr) : super(_ptr);
EventListenerList get abort => this['abort'];
EventListenerList get complete => this['complete'];
EventListenerList get error => this['error'];
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName IDBVersionChangeEvent
abstract class IDBUpgradeNeededEvent implements Event {
/** @domName IDBVersionChangeEvent.newVersion */
int get newVersion;
/** @domName IDBVersionChangeEvent.oldVersion */
int get oldVersion;
}
// 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.
// WARNING: Do not edit - generated code.
class _IDBUpgradeNeededEventImpl extends _EventImpl implements IDBUpgradeNeededEvent {
int get newVersion native "IDBUpgradeNeededEvent_newVersion_Getter";
int get oldVersion native "IDBUpgradeNeededEvent_oldVersion_Getter";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName IDBVersionChangeEvent
abstract class IDBVersionChangeEvent implements Event {
/** @domName IDBVersionChangeEvent.version */
String get version;
}
// 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.
// WARNING: Do not edit - generated code.
class _IDBVersionChangeEventImpl extends _EventImpl implements IDBVersionChangeEvent {
String get version native "IDBVersionChangeEvent_version_Getter";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName IDBVersionChangeRequest
abstract class IDBVersionChangeRequest implements IDBRequest, EventTarget {
/**
* @domName EventTarget.addEventListener, EventTarget.removeEventListener, EventTarget.dispatchEvent
*/
IDBVersionChangeRequestEvents get on;
}
abstract class IDBVersionChangeRequestEvents implements IDBRequestEvents {
EventListenerList get blocked;
}
// 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.
// WARNING: Do not edit - generated code.
class _IDBVersionChangeRequestImpl extends _IDBRequestImpl implements IDBVersionChangeRequest {
_IDBVersionChangeRequestEventsImpl get on =>
new _IDBVersionChangeRequestEventsImpl(this);
}
class _IDBVersionChangeRequestEventsImpl extends _IDBRequestEventsImpl implements IDBVersionChangeRequestEvents {
_IDBVersionChangeRequestEventsImpl(_ptr) : super(_ptr);
EventListenerList get blocked => this['blocked'];
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName HTMLIFrameElement
abstract class IFrameElement implements Element {
factory IFrameElement() => _Elements.createIFrameElement();
/** @domName HTMLIFrameElement.align */
String align;
/** @domName HTMLIFrameElement.contentWindow */
Window get contentWindow;
/** @domName HTMLIFrameElement.frameBorder */
String frameBorder;
/** @domName HTMLIFrameElement.height */
String height;
/** @domName HTMLIFrameElement.longDesc */
String longDesc;
/** @domName HTMLIFrameElement.marginHeight */
String marginHeight;
/** @domName HTMLIFrameElement.marginWidth */
String marginWidth;
/** @domName HTMLIFrameElement.name */
String name;
/** @domName HTMLIFrameElement.sandbox */
String sandbox;
/** @domName HTMLIFrameElement.scrolling */
String scrolling;
/** @domName HTMLIFrameElement.src */
String src;
/** @domName HTMLIFrameElement.srcdoc */
String srcdoc;
/** @domName HTMLIFrameElement.width */
String width;
}
// 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.
// WARNING: Do not edit - generated code.
class _IFrameElementImpl extends _ElementImpl_Merged implements IFrameElement {
String get align native "HTMLIFrameElement_align_Getter";
void set align(String value) native "HTMLIFrameElement_align_Setter";
Window get contentWindow native "HTMLIFrameElement_contentWindow_Getter";
String get frameBorder native "HTMLIFrameElement_frameBorder_Getter";
void set frameBorder(String value) native "HTMLIFrameElement_frameBorder_Setter";
String get height native "HTMLIFrameElement_height_Getter";
void set height(String value) native "HTMLIFrameElement_height_Setter";
String get longDesc native "HTMLIFrameElement_longDesc_Getter";
void set longDesc(String value) native "HTMLIFrameElement_longDesc_Setter";
String get marginHeight native "HTMLIFrameElement_marginHeight_Getter";
void set marginHeight(String value) native "HTMLIFrameElement_marginHeight_Setter";
String get marginWidth native "HTMLIFrameElement_marginWidth_Getter";
void set marginWidth(String value) native "HTMLIFrameElement_marginWidth_Setter";
String get name native "HTMLIFrameElement_name_Getter";
void set name(String value) native "HTMLIFrameElement_name_Setter";
String get sandbox native "HTMLIFrameElement_sandbox_Getter";
void set sandbox(String value) native "HTMLIFrameElement_sandbox_Setter";
String get scrolling native "HTMLIFrameElement_scrolling_Getter";
void set scrolling(String value) native "HTMLIFrameElement_scrolling_Setter";
String get src native "HTMLIFrameElement_src_Getter";
void set src(String value) native "HTMLIFrameElement_src_Setter";
String get srcdoc native "HTMLIFrameElement_srcdoc_Getter";
void set srcdoc(String value) native "HTMLIFrameElement_srcdoc_Setter";
String get width native "HTMLIFrameElement_width_Getter";
void set width(String value) native "HTMLIFrameElement_width_Setter";
}
// 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.
// WARNING: Do not edit - generated code.
typedef void IceCallback(IceCandidate candidate, bool moreToFollow, PeerConnection00 source);
// 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.
// WARNING: Do not edit - generated code.
/// @domName IceCandidate
abstract class IceCandidate {
factory IceCandidate(String label, String candidateLine) => _IceCandidateFactoryProvider.createIceCandidate(label, candidateLine);
/** @domName IceCandidate.label */
String get label;
/** @domName IceCandidate.toSdp */
String toSdp();
}
// 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.
// WARNING: Do not edit - generated code.
class _IceCandidateImpl extends NativeFieldWrapperClass1 implements IceCandidate {
String get label native "IceCandidate_label_Getter";
String toSdp() native "IceCandidate_toSdp_Callback";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName ImageData
abstract class ImageData {
/** @domName ImageData.data */
Uint8ClampedArray get data;
/** @domName ImageData.height */
int get height;
/** @domName ImageData.width */
int get width;
}
// 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.
// WARNING: Do not edit - generated code.
class _ImageDataImpl extends NativeFieldWrapperClass1 implements ImageData {
Uint8ClampedArray get data native "ImageData_data_Getter";
int get height native "ImageData_height_Getter";
int get width native "ImageData_width_Getter";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName HTMLImageElement
abstract class ImageElement implements Element {
factory ImageElement({String src, int width, int height}) {
if (!?src) {
return _Elements.createImageElement();
}
if (!?width) {
return _Elements.createImageElement(src);
}
if (!?height) {
return _Elements.createImageElement(src, width);
}
return _Elements.createImageElement(src, width, height);
}
/** @domName HTMLImageElement.align */
String align;
/** @domName HTMLImageElement.alt */
String alt;
/** @domName HTMLImageElement.border */
String border;
/** @domName HTMLImageElement.complete */
bool get complete;
/** @domName HTMLImageElement.crossOrigin */
String crossOrigin;
/** @domName HTMLImageElement.height */
int height;
/** @domName HTMLImageElement.hspace */
int hspace;
/** @domName HTMLImageElement.isMap */
bool isMap;
/** @domName HTMLImageElement.longDesc */
String longDesc;
/** @domName HTMLImageElement.lowsrc */
String lowsrc;
/** @domName HTMLImageElement.name */
String name;
/** @domName HTMLImageElement.naturalHeight */
int get naturalHeight;
/** @domName HTMLImageElement.naturalWidth */
int get naturalWidth;
/** @domName HTMLImageElement.src */
String src;
/** @domName HTMLImageElement.useMap */
String useMap;
/** @domName HTMLImageElement.vspace */
int vspace;
/** @domName HTMLImageElement.width */
int width;
/** @domName HTMLImageElement.x */
int get x;
/** @domName HTMLImageElement.y */
int get y;
}
// 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.
// WARNING: Do not edit - generated code.
class _ImageElementImpl extends _ElementImpl_Merged implements ImageElement {
String get align native "HTMLImageElement_align_Getter";
void set align(String value) native "HTMLImageElement_align_Setter";
String get alt native "HTMLImageElement_alt_Getter";
void set alt(String value) native "HTMLImageElement_alt_Setter";
String get border native "HTMLImageElement_border_Getter";
void set border(String value) native "HTMLImageElement_border_Setter";
bool get complete native "HTMLImageElement_complete_Getter";
String get crossOrigin native "HTMLImageElement_crossOrigin_Getter";
void set crossOrigin(String value) native "HTMLImageElement_crossOrigin_Setter";
int get height native "HTMLImageElement_height_Getter";
void set height(int value) native "HTMLImageElement_height_Setter";
int get hspace native "HTMLImageElement_hspace_Getter";
void set hspace(int value) native "HTMLImageElement_hspace_Setter";
bool get isMap native "HTMLImageElement_isMap_Getter";
void set isMap(bool value) native "HTMLImageElement_isMap_Setter";
String get longDesc native "HTMLImageElement_longDesc_Getter";
void set longDesc(String value) native "HTMLImageElement_longDesc_Setter";
String get lowsrc native "HTMLImageElement_lowsrc_Getter";
void set lowsrc(String value) native "HTMLImageElement_lowsrc_Setter";
String get name native "HTMLImageElement_name_Getter";
void set name(String value) native "HTMLImageElement_name_Setter";
int get naturalHeight native "HTMLImageElement_naturalHeight_Getter";
int get naturalWidth native "HTMLImageElement_naturalWidth_Getter";
String get src native "HTMLImageElement_src_Getter";
void set src(String value) native "HTMLImageElement_src_Setter";
String get useMap native "HTMLImageElement_useMap_Getter";
void set useMap(String value) native "HTMLImageElement_useMap_Setter";
int get vspace native "HTMLImageElement_vspace_Getter";
void set vspace(int value) native "HTMLImageElement_vspace_Setter";
int get width native "HTMLImageElement_width_Getter";
void set width(int value) native "HTMLImageElement_width_Setter";
int get x native "HTMLImageElement_x_Getter";
int get y native "HTMLImageElement_y_Getter";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName HTMLInputElement
abstract class InputElement implements Element {
factory InputElement({String type}) {
if (!?type) {
return _Elements.createInputElement();
}
return _Elements.createInputElement(type);
}
/**
* @domName EventTarget.addEventListener, EventTarget.removeEventListener, EventTarget.dispatchEvent
*/
InputElementEvents get on;
/** @domName HTMLInputElement.accept */
String accept;
/** @domName HTMLInputElement.align */
String align;
/** @domName HTMLInputElement.alt */
String alt;
/** @domName HTMLInputElement.autocomplete */
String autocomplete;
/** @domName HTMLInputElement.autofocus */
bool autofocus;
/** @domName HTMLInputElement.checked */
bool checked;
/** @domName HTMLInputElement.defaultChecked */
bool defaultChecked;
/** @domName HTMLInputElement.defaultValue */
String defaultValue;
/** @domName HTMLInputElement.dirName */
String dirName;
/** @domName HTMLInputElement.disabled */
bool disabled;
/** @domName HTMLInputElement.files */
List<File> files;
/** @domName HTMLInputElement.form */
FormElement get form;
/** @domName HTMLInputElement.formAction */
String formAction;
/** @domName HTMLInputElement.formEnctype */
String formEnctype;
/** @domName HTMLInputElement.formMethod */
String formMethod;
/** @domName HTMLInputElement.formNoValidate */
bool formNoValidate;
/** @domName HTMLInputElement.formTarget */
String formTarget;
/** @domName HTMLInputElement.height */
int height;
/** @domName HTMLInputElement.incremental */
bool incremental;
/** @domName HTMLInputElement.indeterminate */
bool indeterminate;
/** @domName HTMLInputElement.labels */
List<Node> get labels;
/** @domName HTMLInputElement.list */
Element get list;
/** @domName HTMLInputElement.max */
String max;
/** @domName HTMLInputElement.maxLength */
int maxLength;
/** @domName HTMLInputElement.min */
String min;
/** @domName HTMLInputElement.multiple */
bool multiple;
/** @domName HTMLInputElement.name */
String name;
/** @domName HTMLInputElement.pattern */
String pattern;
/** @domName HTMLInputElement.placeholder */
String placeholder;
/** @domName HTMLInputElement.readOnly */
bool readOnly;
/** @domName HTMLInputElement.required */
bool required;
/** @domName HTMLInputElement.selectionDirection */
String selectionDirection;
/** @domName HTMLInputElement.selectionEnd */
int selectionEnd;
/** @domName HTMLInputElement.selectionStart */
int selectionStart;
/** @domName HTMLInputElement.size */
int size;
/** @domName HTMLInputElement.src */
String src;
/** @domName HTMLInputElement.step */
String step;
/** @domName HTMLInputElement.type */
String type;
/** @domName HTMLInputElement.useMap */
String useMap;
/** @domName HTMLInputElement.validationMessage */
String get validationMessage;
/** @domName HTMLInputElement.validity */
ValidityState get validity;
/** @domName HTMLInputElement.value */
String value;
/** @domName HTMLInputElement.valueAsDate */
Date valueAsDate;
/** @domName HTMLInputElement.valueAsNumber */
num valueAsNumber;
/** @domName HTMLInputElement.webkitEntries */
List<Entry> get webkitEntries;
/** @domName HTMLInputElement.webkitGrammar */
bool webkitGrammar;
/** @domName HTMLInputElement.webkitSpeech */
bool webkitSpeech;
/** @domName HTMLInputElement.webkitdirectory */
bool webkitdirectory;
/** @domName HTMLInputElement.width */
int width;
/** @domName HTMLInputElement.willValidate */
bool get willValidate;
/** @domName HTMLInputElement.checkValidity */
bool checkValidity();
/** @domName HTMLInputElement.select */
void select();
/** @domName HTMLInputElement.setCustomValidity */
void setCustomValidity(String error);
/** @domName HTMLInputElement.setRangeText */
void setRangeText(String replacement, [int start, int end, String selectionMode]);
/** @domName HTMLInputElement.setSelectionRange */
void setSelectionRange(int start, int end, [String direction]);
/** @domName HTMLInputElement.stepDown */
void stepDown([int n]);
/** @domName HTMLInputElement.stepUp */
void stepUp([int n]);
}
abstract class InputElementEvents implements ElementEvents {
EventListenerList get speechChange;
}
// 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.
// WARNING: Do not edit - generated code.
class _InputElementImpl extends _ElementImpl_Merged implements InputElement {
_InputElementEventsImpl get on =>
new _InputElementEventsImpl(this);
String get accept native "HTMLInputElement_accept_Getter";
void set accept(String value) native "HTMLInputElement_accept_Setter";
String get align native "HTMLInputElement_align_Getter";
void set align(String value) native "HTMLInputElement_align_Setter";
String get alt native "HTMLInputElement_alt_Getter";
void set alt(String value) native "HTMLInputElement_alt_Setter";
String get autocomplete native "HTMLInputElement_autocomplete_Getter";
void set autocomplete(String value) native "HTMLInputElement_autocomplete_Setter";
bool get autofocus native "HTMLInputElement_autofocus_Getter";
void set autofocus(bool value) native "HTMLInputElement_autofocus_Setter";
bool get checked native "HTMLInputElement_checked_Getter";
void set checked(bool value) native "HTMLInputElement_checked_Setter";
bool get defaultChecked native "HTMLInputElement_defaultChecked_Getter";
void set defaultChecked(bool value) native "HTMLInputElement_defaultChecked_Setter";
String get defaultValue native "HTMLInputElement_defaultValue_Getter";
void set defaultValue(String value) native "HTMLInputElement_defaultValue_Setter";
String get dirName native "HTMLInputElement_dirName_Getter";
void set dirName(String value) native "HTMLInputElement_dirName_Setter";
bool get disabled native "HTMLInputElement_disabled_Getter";
void set disabled(bool value) native "HTMLInputElement_disabled_Setter";
List<File> get files native "HTMLInputElement_files_Getter";
void set files(List<File> value) native "HTMLInputElement_files_Setter";
FormElement get form native "HTMLInputElement_form_Getter";
String get formAction native "HTMLInputElement_formAction_Getter";
void set formAction(String value) native "HTMLInputElement_formAction_Setter";
String get formEnctype native "HTMLInputElement_formEnctype_Getter";
void set formEnctype(String value) native "HTMLInputElement_formEnctype_Setter";
String get formMethod native "HTMLInputElement_formMethod_Getter";
void set formMethod(String value) native "HTMLInputElement_formMethod_Setter";
bool get formNoValidate native "HTMLInputElement_formNoValidate_Getter";
void set formNoValidate(bool value) native "HTMLInputElement_formNoValidate_Setter";
String get formTarget native "HTMLInputElement_formTarget_Getter";
void set formTarget(String value) native "HTMLInputElement_formTarget_Setter";
int get height native "HTMLInputElement_height_Getter";
void set height(int value) native "HTMLInputElement_height_Setter";
bool get incremental native "HTMLInputElement_incremental_Getter";
void set incremental(bool value) native "HTMLInputElement_incremental_Setter";
bool get indeterminate native "HTMLInputElement_indeterminate_Getter";
void set indeterminate(bool value) native "HTMLInputElement_indeterminate_Setter";
List<Node> get labels native "HTMLInputElement_labels_Getter";
Element get list native "HTMLInputElement_list_Getter";
String get max native "HTMLInputElement_max_Getter";
void set max(String value) native "HTMLInputElement_max_Setter";
int get maxLength native "HTMLInputElement_maxLength_Getter";
void set maxLength(int value) native "HTMLInputElement_maxLength_Setter";
String get min native "HTMLInputElement_min_Getter";
void set min(String value) native "HTMLInputElement_min_Setter";
bool get multiple native "HTMLInputElement_multiple_Getter";
void set multiple(bool value) native "HTMLInputElement_multiple_Setter";
String get name native "HTMLInputElement_name_Getter";
void set name(String value) native "HTMLInputElement_name_Setter";
String get pattern native "HTMLInputElement_pattern_Getter";
void set pattern(String value) native "HTMLInputElement_pattern_Setter";
String get placeholder native "HTMLInputElement_placeholder_Getter";
void set placeholder(String value) native "HTMLInputElement_placeholder_Setter";
bool get readOnly native "HTMLInputElement_readOnly_Getter";
void set readOnly(bool value) native "HTMLInputElement_readOnly_Setter";
bool get required native "HTMLInputElement_required_Getter";
void set required(bool value) native "HTMLInputElement_required_Setter";
String get selectionDirection native "HTMLInputElement_selectionDirection_Getter";
void set selectionDirection(String value) native "HTMLInputElement_selectionDirection_Setter";
int get selectionEnd native "HTMLInputElement_selectionEnd_Getter";
void set selectionEnd(int value) native "HTMLInputElement_selectionEnd_Setter";
int get selectionStart native "HTMLInputElement_selectionStart_Getter";
void set selectionStart(int value) native "HTMLInputElement_selectionStart_Setter";
int get size native "HTMLInputElement_size_Getter";
void set size(int value) native "HTMLInputElement_size_Setter";
String get src native "HTMLInputElement_src_Getter";
void set src(String value) native "HTMLInputElement_src_Setter";
String get step native "HTMLInputElement_step_Getter";
void set step(String value) native "HTMLInputElement_step_Setter";
String get type native "HTMLInputElement_type_Getter";
void set type(String value) native "HTMLInputElement_type_Setter";
String get useMap native "HTMLInputElement_useMap_Getter";
void set useMap(String value) native "HTMLInputElement_useMap_Setter";
String get validationMessage native "HTMLInputElement_validationMessage_Getter";
ValidityState get validity native "HTMLInputElement_validity_Getter";
String get value native "HTMLInputElement_value_Getter";
void set value(String value) native "HTMLInputElement_value_Setter";
Date get valueAsDate native "HTMLInputElement_valueAsDate_Getter";
void set valueAsDate(Date value) native "HTMLInputElement_valueAsDate_Setter";
num get valueAsNumber native "HTMLInputElement_valueAsNumber_Getter";
void set valueAsNumber(num value) native "HTMLInputElement_valueAsNumber_Setter";
List<Entry> get webkitEntries native "HTMLInputElement_webkitEntries_Getter";
bool get webkitGrammar native "HTMLInputElement_webkitGrammar_Getter";
void set webkitGrammar(bool value) native "HTMLInputElement_webkitGrammar_Setter";
bool get webkitSpeech native "HTMLInputElement_webkitSpeech_Getter";
void set webkitSpeech(bool value) native "HTMLInputElement_webkitSpeech_Setter";
bool get webkitdirectory native "HTMLInputElement_webkitdirectory_Getter";
void set webkitdirectory(bool value) native "HTMLInputElement_webkitdirectory_Setter";
int get width native "HTMLInputElement_width_Getter";
void set width(int value) native "HTMLInputElement_width_Setter";
bool get willValidate native "HTMLInputElement_willValidate_Getter";
bool checkValidity() native "HTMLInputElement_checkValidity_Callback";
void select() native "HTMLInputElement_select_Callback";
void setCustomValidity(String error) native "HTMLInputElement_setCustomValidity_Callback";
void setRangeText(/*DOMString*/ replacement, [/*unsigned long*/ start, /*unsigned long*/ end, /*DOMString*/ selectionMode]) {
if ((replacement is String || replacement == null) && !?start && !?end && !?selectionMode) {
_setRangeText_1(replacement);
return;
}
if ((replacement is String || replacement == null) && (start is int || start == null) && (end is int || end == null) && (selectionMode is String || selectionMode == null)) {
_setRangeText_2(replacement, start, end, selectionMode);
return;
}
throw "Incorrect number or type of arguments";
}
void _setRangeText_1(replacement) native "HTMLInputElement_setRangeText_1_Callback";
void _setRangeText_2(replacement, start, end, selectionMode) native "HTMLInputElement_setRangeText_2_Callback";
void setSelectionRange(int start, int end, [String direction]) native "HTMLInputElement_setSelectionRange_Callback";
void stepDown([/*long*/ n]) {
if (?n) {
_stepDown_1(n);
return;
}
_stepDown_2();
}
void _stepDown_1(n) native "HTMLInputElement_stepDown_1_Callback";
void _stepDown_2() native "HTMLInputElement_stepDown_2_Callback";
void stepUp([/*long*/ n]) {
if (?n) {
_stepUp_1(n);
return;
}
_stepUp_2();
}
void _stepUp_1(n) native "HTMLInputElement_stepUp_1_Callback";
void _stepUp_2() native "HTMLInputElement_stepUp_2_Callback";
}
class _InputElementEventsImpl extends _ElementEventsImpl implements InputElementEvents {
_InputElementEventsImpl(_ptr) : super(_ptr);
EventListenerList get speechChange => this['webkitSpeechChange'];
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName Int16Array
abstract class Int16Array implements ArrayBufferView, List<int> {
factory Int16Array(int length) =>
_TypedArrayFactoryProvider.createInt16Array(length);
factory Int16Array.fromList(List<int> list) =>
_TypedArrayFactoryProvider.createInt16Array_fromList(list);
factory Int16Array.fromBuffer(ArrayBuffer buffer, [int byteOffset, int length]) =>
_TypedArrayFactoryProvider.createInt16Array_fromBuffer(buffer, byteOffset, length);
static const int BYTES_PER_ELEMENT = 2;
/** @domName Int16Array.length */
int get length;
/** @domName Int16Array.setElements */
void setElements(Object array, [int offset]);
/** @domName Int16Array.subarray */
Int16Array subarray(int start, [int end]);
}
// 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.
// WARNING: Do not edit - generated code.
class _Int16ArrayImpl extends _ArrayBufferViewImpl implements Int16Array {
int get length native "Int16Array_length_Getter";
int operator[](int index) native "Int16Array_numericIndexGetter_Callback";
void operator[]=(int index, int value) native "Int16Array_numericIndexSetter_Callback";
// -- start List<int> mixins.
// int is the element type.
// From Iterable<int>:
Iterator<int> 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<int>(this);
}
// From Collection<int>:
void add(int value) {
throw new UnsupportedError("Cannot add to immutable List.");
}
void addLast(int value) {
throw new UnsupportedError("Cannot add to immutable List.");
}
void addAll(Collection<int> collection) {
throw new UnsupportedError("Cannot add to immutable List.");
}
bool contains(int element) => _Collections.contains(this, element);
void forEach(void f(int element)) => _Collections.forEach(this, f);
Collection map(f(int element)) => _Collections.map(this, [], f);
Collection<int> filter(bool f(int element)) =>
_Collections.filter(this, <int>[], f);
bool every(bool f(int element)) => _Collections.every(this, f);
bool some(bool f(int element)) => _Collections.some(this, f);
bool get isEmpty => this.length == 0;
// From List<int>:
void sort([Comparator<int> compare = Comparable.compare]) {
throw new UnsupportedError("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 get last => this[length - 1];
int removeLast() {
throw new UnsupportedError("Cannot removeLast on immutable List.");
}
void setRange(int start, int rangeLength, List<int> from, [int startFrom]) {
throw new UnsupportedError("Cannot setRange on immutable List.");
}
void removeRange(int start, int rangeLength) {
throw new UnsupportedError("Cannot removeRange on immutable List.");
}
void insertRange(int start, int rangeLength, [int initialValue]) {
throw new UnsupportedError("Cannot insertRange on immutable List.");
}
List<int> getRange(int start, int rangeLength) =>
_Lists.getRange(this, start, rangeLength, <int>[]);
// -- end List<int> mixins.
void setElements(Object array, [int offset]) native "Int16Array_setElements_Callback";
Int16Array subarray(/*long*/ start, [/*long*/ end]) {
if (?end) {
return _subarray_1(start, end);
}
return _subarray_2(start);
}
Int16Array _subarray_1(start, end) native "Int16Array_subarray_1_Callback";
Int16Array _subarray_2(start) native "Int16Array_subarray_2_Callback";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName Int32Array
abstract class Int32Array implements ArrayBufferView, List<int> {
factory Int32Array(int length) =>
_TypedArrayFactoryProvider.createInt32Array(length);
factory Int32Array.fromList(List<int> list) =>
_TypedArrayFactoryProvider.createInt32Array_fromList(list);
factory Int32Array.fromBuffer(ArrayBuffer buffer, [int byteOffset, int length]) =>
_TypedArrayFactoryProvider.createInt32Array_fromBuffer(buffer, byteOffset, length);
static const int BYTES_PER_ELEMENT = 4;
/** @domName Int32Array.length */
int get length;
/** @domName Int32Array.setElements */
void setElements(Object array, [int offset]);
/** @domName Int32Array.subarray */
Int32Array subarray(int start, [int end]);
}
// 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.
// WARNING: Do not edit - generated code.
class _Int32ArrayImpl extends _ArrayBufferViewImpl implements Int32Array {
int get length native "Int32Array_length_Getter";
int operator[](int index) native "Int32Array_numericIndexGetter_Callback";
void operator[]=(int index, int value) native "Int32Array_numericIndexSetter_Callback";
// -- start List<int> mixins.
// int is the element type.
// From Iterable<int>:
Iterator<int> 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<int>(this);
}
// From Collection<int>:
void add(int value) {
throw new UnsupportedError("Cannot add to immutable List.");
}
void addLast(int value) {
throw new UnsupportedError("Cannot add to immutable List.");
}
void addAll(Collection<int> collection) {
throw new UnsupportedError("Cannot add to immutable List.");
}
bool contains(int element) => _Collections.contains(this, element);
void forEach(void f(int element)) => _Collections.forEach(this, f);
Collection map(f(int element)) => _Collections.map(this, [], f);
Collection<int> filter(bool f(int element)) =>
_Collections.filter(this, <int>[], f);
bool every(bool f(int element)) => _Collections.every(this, f);
bool some(bool f(int element)) => _Collections.some(this, f);
bool get isEmpty => this.length == 0;
// From List<int>:
void sort([Comparator<int> compare = Comparable.compare]) {
throw new UnsupportedError("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 get last => this[length - 1];
int removeLast() {
throw new UnsupportedError("Cannot removeLast on immutable List.");
}
void setRange(int start, int rangeLength, List<int> from, [int startFrom]) {
throw new UnsupportedError("Cannot setRange on immutable List.");
}
void removeRange(int start, int rangeLength) {
throw new UnsupportedError("Cannot removeRange on immutable List.");
}
void insertRange(int start, int rangeLength, [int initialValue]) {
throw new UnsupportedError("Cannot insertRange on immutable List.");
}
List<int> getRange(int start, int rangeLength) =>
_Lists.getRange(this, start, rangeLength, <int>[]);
// -- end List<int> mixins.
void setElements(Object array, [int offset]) native "Int32Array_setElements_Callback";
Int32Array subarray(/*long*/ start, [/*long*/ end]) {
if (?end) {
return _subarray_1(start, end);
}
return _subarray_2(start);
}
Int32Array _subarray_1(start, end) native "Int32Array_subarray_1_Callback";
Int32Array _subarray_2(start) native "Int32Array_subarray_2_Callback";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName Int8Array
abstract class Int8Array implements ArrayBufferView, List<int> {
factory Int8Array(int length) =>
_TypedArrayFactoryProvider.createInt8Array(length);
factory Int8Array.fromList(List<int> list) =>
_TypedArrayFactoryProvider.createInt8Array_fromList(list);
factory Int8Array.fromBuffer(ArrayBuffer buffer, [int byteOffset, int length]) =>
_TypedArrayFactoryProvider.createInt8Array_fromBuffer(buffer, byteOffset, length);
static const int BYTES_PER_ELEMENT = 1;
/** @domName Int8Array.length */
int get length;
/** @domName Int8Array.setElements */
void setElements(Object array, [int offset]);
/** @domName Int8Array.subarray */
Int8Array subarray(int start, [int end]);
}
// 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.
// WARNING: Do not edit - generated code.
class _Int8ArrayImpl extends _ArrayBufferViewImpl implements Int8Array {
int get length native "Int8Array_length_Getter";
int operator[](int index) native "Int8Array_numericIndexGetter_Callback";
void operator[]=(int index, int value) native "Int8Array_numericIndexSetter_Callback";
// -- start List<int> mixins.
// int is the element type.
// From Iterable<int>:
Iterator<int> 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<int>(this);
}
// From Collection<int>:
void add(int value) {
throw new UnsupportedError("Cannot add to immutable List.");
}
void addLast(int value) {
throw new UnsupportedError("Cannot add to immutable List.");
}
void addAll(Collection<int> collection) {
throw new UnsupportedError("Cannot add to immutable List.");
}
bool contains(int element) => _Collections.contains(this, element);
void forEach(void f(int element)) => _Collections.forEach(this, f);
Collection map(f(int element)) => _Collections.map(this, [], f);
Collection<int> filter(bool f(int element)) =>
_Collections.filter(this, <int>[], f);
bool every(bool f(int element)) => _Collections.every(this, f);
bool some(bool f(int element)) => _Collections.some(this, f);
bool get isEmpty => this.length == 0;
// From List<int>:
void sort([Comparator<int> compare = Comparable.compare]) {
throw new UnsupportedError("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 get last => this[length - 1];
int removeLast() {
throw new UnsupportedError("Cannot removeLast on immutable List.");
}
void setRange(int start, int rangeLength, List<int> from, [int startFrom]) {
throw new UnsupportedError("Cannot setRange on immutable List.");
}
void removeRange(int start, int rangeLength) {
throw new UnsupportedError("Cannot removeRange on immutable List.");
}
void insertRange(int start, int rangeLength, [int initialValue]) {
throw new UnsupportedError("Cannot insertRange on immutable List.");
}
List<int> getRange(int start, int rangeLength) =>
_Lists.getRange(this, start, rangeLength, <int>[]);
// -- end List<int> mixins.
void setElements(Object array, [int offset]) native "Int8Array_setElements_Callback";
Int8Array subarray(/*long*/ start, [/*long*/ end]) {
if (?end) {
return _subarray_1(start, end);
}
return _subarray_2(start);
}
Int8Array _subarray_1(start, end) native "Int8Array_subarray_1_Callback";
Int8Array _subarray_2(start) native "Int8Array_subarray_2_Callback";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName JavaScriptCallFrame
abstract class JavaScriptCallFrame {
static const int CATCH_SCOPE = 4;
static const int CLOSURE_SCOPE = 3;
static const int GLOBAL_SCOPE = 0;
static const int LOCAL_SCOPE = 1;
static const int WITH_SCOPE = 2;
/** @domName JavaScriptCallFrame.caller */
JavaScriptCallFrame get caller;
/** @domName JavaScriptCallFrame.column */
int get column;
/** @domName JavaScriptCallFrame.functionName */
String get functionName;
/** @domName JavaScriptCallFrame.line */
int get line;
/** @domName JavaScriptCallFrame.scopeChain */
List get scopeChain;
/** @domName JavaScriptCallFrame.sourceID */
int get sourceID;
/** @domName JavaScriptCallFrame.thisObject */
Object get thisObject;
/** @domName JavaScriptCallFrame.type */
String get type;
/** @domName JavaScriptCallFrame.evaluate */
void evaluate(String script);
/** @domName JavaScriptCallFrame.restart */
Object restart();
/** @domName JavaScriptCallFrame.scopeType */
int scopeType(int scopeIndex);
}
// 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.
// WARNING: Do not edit - generated code.
class _JavaScriptCallFrameImpl extends NativeFieldWrapperClass1 implements JavaScriptCallFrame {
JavaScriptCallFrame get caller native "JavaScriptCallFrame_caller_Getter";
int get column native "JavaScriptCallFrame_column_Getter";
String get functionName native "JavaScriptCallFrame_functionName_Getter";
int get line native "JavaScriptCallFrame_line_Getter";
List get scopeChain native "JavaScriptCallFrame_scopeChain_Getter";
int get sourceID native "JavaScriptCallFrame_sourceID_Getter";
Object get thisObject native "JavaScriptCallFrame_thisObject_Getter";
String get type native "JavaScriptCallFrame_type_Getter";
void evaluate(String script) native "JavaScriptCallFrame_evaluate_Callback";
Object restart() native "JavaScriptCallFrame_restart_Callback";
int scopeType(int scopeIndex) native "JavaScriptCallFrame_scopeType_Callback";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName KeyboardEvent
abstract class KeyboardEvent implements UIEvent {
/** @domName KeyboardEvent.altGraphKey */
bool get altGraphKey;
/** @domName KeyboardEvent.altKey */
bool get altKey;
/** @domName KeyboardEvent.ctrlKey */
bool get ctrlKey;
/** @domName KeyboardEvent.keyIdentifier */
String get keyIdentifier;
/** @domName KeyboardEvent.keyLocation */
int get keyLocation;
/** @domName KeyboardEvent.metaKey */
bool get metaKey;
/** @domName KeyboardEvent.shiftKey */
bool get shiftKey;
/** @domName KeyboardEvent.initKeyboardEvent */
void initKeyboardEvent(String type, bool canBubble, bool cancelable, LocalWindow view, String keyIdentifier, int keyLocation, bool ctrlKey, bool altKey, bool shiftKey, bool metaKey, bool altGraphKey);
}
// 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.
// WARNING: Do not edit - generated code.
class _KeyboardEventImpl extends _UIEventImpl implements KeyboardEvent {
bool get altGraphKey native "KeyboardEvent_altGraphKey_Getter";
bool get altKey native "KeyboardEvent_altKey_Getter";
bool get ctrlKey native "KeyboardEvent_ctrlKey_Getter";
String get keyIdentifier native "KeyboardEvent_keyIdentifier_Getter";
int get keyLocation native "KeyboardEvent_keyLocation_Getter";
bool get metaKey native "KeyboardEvent_metaKey_Getter";
bool get shiftKey native "KeyboardEvent_shiftKey_Getter";
void initKeyboardEvent(String type, bool canBubble, bool cancelable, LocalWindow view, String keyIdentifier, int keyLocation, bool ctrlKey, bool altKey, bool shiftKey, bool metaKey, bool altGraphKey) native "KeyboardEvent_initKeyboardEvent_Callback";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName HTMLKeygenElement
abstract class KeygenElement implements Element {
factory KeygenElement() => _Elements.createKeygenElement();
/** @domName HTMLKeygenElement.autofocus */
bool autofocus;
/** @domName HTMLKeygenElement.challenge */
String challenge;
/** @domName HTMLKeygenElement.disabled */
bool disabled;
/** @domName HTMLKeygenElement.form */
FormElement get form;
/** @domName HTMLKeygenElement.keytype */
String keytype;
/** @domName HTMLKeygenElement.labels */
List<Node> get labels;
/** @domName HTMLKeygenElement.name */
String name;
/** @domName HTMLKeygenElement.type */
String get type;
/** @domName HTMLKeygenElement.validationMessage */
String get validationMessage;
/** @domName HTMLKeygenElement.validity */
ValidityState get validity;
/** @domName HTMLKeygenElement.willValidate */
bool get willValidate;
/** @domName HTMLKeygenElement.checkValidity */
bool checkValidity();
/** @domName HTMLKeygenElement.setCustomValidity */
void setCustomValidity(String error);
}
// 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.
// WARNING: Do not edit - generated code.
class _KeygenElementImpl extends _ElementImpl_Merged implements KeygenElement {
bool get autofocus native "HTMLKeygenElement_autofocus_Getter";
void set autofocus(bool value) native "HTMLKeygenElement_autofocus_Setter";
String get challenge native "HTMLKeygenElement_challenge_Getter";
void set challenge(String value) native "HTMLKeygenElement_challenge_Setter";
bool get disabled native "HTMLKeygenElement_disabled_Getter";
void set disabled(bool value) native "HTMLKeygenElement_disabled_Setter";
FormElement get form native "HTMLKeygenElement_form_Getter";
String get keytype native "HTMLKeygenElement_keytype_Getter";
void set keytype(String value) native "HTMLKeygenElement_keytype_Setter";
List<Node> get labels native "HTMLKeygenElement_labels_Getter";
String get name native "HTMLKeygenElement_name_Getter";
void set name(String value) native "HTMLKeygenElement_name_Setter";
String get type native "HTMLKeygenElement_type_Getter";
String get validationMessage native "HTMLKeygenElement_validationMessage_Getter";
ValidityState get validity native "HTMLKeygenElement_validity_Getter";
bool get willValidate native "HTMLKeygenElement_willValidate_Getter";
bool checkValidity() native "HTMLKeygenElement_checkValidity_Callback";
void setCustomValidity(String error) native "HTMLKeygenElement_setCustomValidity_Callback";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName HTMLLIElement
abstract class LIElement implements Element {
factory LIElement() => _Elements.createLIElement();
/** @domName HTMLLIElement.type */
String type;
/** @domName HTMLLIElement.value */
int value;
}
// 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.
// WARNING: Do not edit - generated code.
class _LIElementImpl extends _ElementImpl_Merged implements LIElement {
String get type native "HTMLLIElement_type_Getter";
void set type(String value) native "HTMLLIElement_type_Setter";
int get value native "HTMLLIElement_value_Getter";
void set value(int value) native "HTMLLIElement_value_Setter";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName HTMLLabelElement
abstract class LabelElement implements Element {
factory LabelElement() => _Elements.createLabelElement();
/** @domName HTMLLabelElement.control */
Element get control;
/** @domName HTMLLabelElement.form */
FormElement get form;
/** @domName HTMLLabelElement.htmlFor */
String htmlFor;
}
// 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.
// WARNING: Do not edit - generated code.
class _LabelElementImpl extends _ElementImpl_Merged implements LabelElement {
Element get control native "HTMLLabelElement_control_Getter";
FormElement get form native "HTMLLabelElement_form_Getter";
String get htmlFor native "HTMLLabelElement_htmlFor_Getter";
void set htmlFor(String value) native "HTMLLabelElement_htmlFor_Setter";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName HTMLLegendElement
abstract class LegendElement implements Element {
factory LegendElement() => _Elements.createLegendElement();
/** @domName HTMLLegendElement.align */
String align;
/** @domName HTMLLegendElement.form */
FormElement get form;
}
// 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.
// WARNING: Do not edit - generated code.
class _LegendElementImpl extends _ElementImpl_Merged implements LegendElement {
String get align native "HTMLLegendElement_align_Getter";
void set align(String value) native "HTMLLegendElement_align_Setter";
FormElement get form native "HTMLLegendElement_form_Getter";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName HTMLLinkElement
abstract class LinkElement implements Element {
factory LinkElement() => _Elements.createLinkElement();
/** @domName HTMLLinkElement.charset */
String charset;
/** @domName HTMLLinkElement.disabled */
bool disabled;
/** @domName HTMLLinkElement.href */
String href;
/** @domName HTMLLinkElement.hreflang */
String hreflang;
/** @domName HTMLLinkElement.media */
String media;
/** @domName HTMLLinkElement.rel */
String rel;
/** @domName HTMLLinkElement.rev */
String rev;
/** @domName HTMLLinkElement.sheet */
StyleSheet get sheet;
/** @domName HTMLLinkElement.sizes */
DOMSettableTokenList sizes;
/** @domName HTMLLinkElement.target */
String target;
/** @domName HTMLLinkElement.type */
String type;
}
// 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.
// WARNING: Do not edit - generated code.
class _LinkElementImpl extends _ElementImpl_Merged implements LinkElement {
String get charset native "HTMLLinkElement_charset_Getter";
void set charset(String value) native "HTMLLinkElement_charset_Setter";
bool get disabled native "HTMLLinkElement_disabled_Getter";
void set disabled(bool value) native "HTMLLinkElement_disabled_Setter";
String get href native "HTMLLinkElement_href_Getter";
void set href(String value) native "HTMLLinkElement_href_Setter";
String get hreflang native "HTMLLinkElement_hreflang_Getter";
void set hreflang(String value) native "HTMLLinkElement_hreflang_Setter";
String get media native "HTMLLinkElement_media_Getter";
void set media(String value) native "HTMLLinkElement_media_Setter";
String get rel native "HTMLLinkElement_rel_Getter";
void set rel(String value) native "HTMLLinkElement_rel_Setter";
String get rev native "HTMLLinkElement_rev_Getter";
void set rev(String value) native "HTMLLinkElement_rev_Setter";
StyleSheet get sheet native "HTMLLinkElement_sheet_Getter";
DOMSettableTokenList get sizes native "HTMLLinkElement_sizes_Getter";
void set sizes(DOMSettableTokenList value) native "HTMLLinkElement_sizes_Setter";
String get target native "HTMLLinkElement_target_Getter";
void set target(String value) native "HTMLLinkElement_target_Setter";
String get type native "HTMLLinkElement_type_Getter";
void set type(String value) native "HTMLLinkElement_type_Setter";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName History
abstract class LocalHistory implements History {
/** @domName History.length */
int get length;
/** @domName History.state */
dynamic get state;
/** @domName History.back */
void back();
/** @domName History.forward */
void forward();
/** @domName History.go */
void go(int distance);
/** @domName History.pushState */
void pushState(Object data, String title, [String url]);
/** @domName History.replaceState */
void replaceState(Object data, String title, [String url]);
}
// 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.
// WARNING: Do not edit - generated code.
class _LocalHistoryImpl extends NativeFieldWrapperClass1 implements LocalHistory {
int get length native "History_length_Getter";
dynamic get state native "History_state_Getter";
void back() native "History_back_Callback";
void forward() native "History_forward_Callback";
void go(int distance) native "History_go_Callback";
void pushState(Object data, String title, [String url]) native "History_pushState_Callback";
void replaceState(Object data, String title, [String url]) native "History_replaceState_Callback";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName Location
abstract class LocalLocation implements Location {
/** @domName Location.ancestorOrigins */
List<String> get ancestorOrigins;
/** @domName Location.hash */
String hash;
/** @domName Location.host */
String host;
/** @domName Location.hostname */
String hostname;
/** @domName Location.href */
String href;
/** @domName Location.origin */
String get origin;
/** @domName Location.pathname */
String pathname;
/** @domName Location.port */
String port;
/** @domName Location.protocol */
String protocol;
/** @domName Location.search */
String search;
/** @domName Location.assign */
void assign(String url);
/** @domName Location.reload */
void reload();
/** @domName Location.replace */
void replace(String url);
/** @domName Location.toString */
String toString();
}
// 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.
// WARNING: Do not edit - generated code.
class _LocalLocationImpl extends NativeFieldWrapperClass1 implements LocalLocation {
List<String> get ancestorOrigins native "Location_ancestorOrigins_Getter";
String get hash native "Location_hash_Getter";
void set hash(String value) native "Location_hash_Setter";
String get host native "Location_host_Getter";
void set host(String value) native "Location_host_Setter";
String get hostname native "Location_hostname_Getter";
void set hostname(String value) native "Location_hostname_Setter";
String get href native "Location_href_Getter";
void set href(String value) native "Location_href_Setter";
String get origin native "Location_origin_Getter";
String get pathname native "Location_pathname_Getter";
void set pathname(String value) native "Location_pathname_Setter";
String get port native "Location_port_Getter";
void set port(String value) native "Location_port_Setter";
String get protocol native "Location_protocol_Getter";
void set protocol(String value) native "Location_protocol_Setter";
String get search native "Location_search_Getter";
void set search(String value) native "Location_search_Setter";
void assign(String url) native "Location_assign_Callback";
void reload() native "Location_reload_Callback";
void replace(String url) native "Location_replace_Callback";
String toString() native "Location_toString_Callback";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName LocalMediaStream
abstract class LocalMediaStream implements MediaStream, EventTarget {
/** @domName LocalMediaStream.stop */
void stop();
}
// 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.
// WARNING: Do not edit - generated code.
class _LocalMediaStreamImpl extends _MediaStreamImpl implements LocalMediaStream {
void stop() native "LocalMediaStream_stop_Callback";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName Window
abstract class LocalWindow implements EventTarget, Window {
/**
* Register a [port] on this window under the given [name]. This
* port may be retrieved by any isolate (or JavaScript script)
* running in this window.
*/
void registerPort(String name, SendPortSync port);
/**
* Lookup a port by its [name]. Return null if no port is
* registered under [name].
*/
SendPortSync lookupPort(String name);
/**
* Executes a [callback] after the next batch of browser layout measurements
* has completed or would have completed if any browser layout measurements
* had been scheduled.
*/
void requestLayoutFrame(TimeoutHandler callback);
/**
* Creates a new object URL for the specified object. The URL will be
* available until revokeObjectUrl is called.
* [object] can be a Blob, MediaStream or MediaSource.
*/
String createObjectUrl(object);
/** @domName DOMURL.revokeObjectURL */
void revokeObjectUrl(String objectUrl);
/**
* @domName EventTarget.addEventListener, EventTarget.removeEventListener, EventTarget.dispatchEvent
*/
LocalWindowEvents get on;
static const int PERSISTENT = 1;
static const int TEMPORARY = 0;
/** @domName Window.applicationCache */
DOMApplicationCache get applicationCache;
/** @domName Window.clientInformation */
Navigator get clientInformation;
/** @domName Window.closed */
bool get closed;
/** @domName Window.console */
Console get console;
/** @domName Window.crypto */
Crypto get crypto;
/** @domName Window.defaultStatus */
String defaultStatus;
/** @domName Window.defaultstatus */
String defaultstatus;
/** @domName Window.devicePixelRatio */
num get devicePixelRatio;
/** @domName Window.document */
Document get document;
/** @domName Window.event */
Event get event;
/** @domName Window.history */
LocalHistory get history;
/** @domName DOMWindow.indexedDB */
IDBFactory get indexedDB;
/** @domName Window.innerHeight */
int get innerHeight;
/** @domName Window.innerWidth */
int get innerWidth;
/** @domName Window.localStorage */
Storage get localStorage;
/** @domName Window.location */
LocalLocation location;
/** @domName Window.locationbar */
BarInfo get locationbar;
/** @domName Window.menubar */
BarInfo get menubar;
/** @domName Window.name */
String name;
/** @domName Window.navigator */
Navigator get navigator;
/** @domName Window.offscreenBuffering */
bool get offscreenBuffering;
/** @domName Window.opener */
Window get opener;
/** @domName Window.outerHeight */
int get outerHeight;
/** @domName Window.outerWidth */
int get outerWidth;
/** @domName DOMWindow.pagePopupController */
PagePopupController get pagePopupController;
/** @domName Window.pageXOffset */
int get pageXOffset;
/** @domName Window.pageYOffset */
int get pageYOffset;
/** @domName Window.parent */
Window get parent;
/** @domName Window.performance */
Performance get performance;
/** @domName Window.personalbar */
BarInfo get personalbar;
/** @domName Window.screen */
Screen get screen;
/** @domName Window.screenLeft */
int get screenLeft;
/** @domName Window.screenTop */
int get screenTop;
/** @domName Window.screenX */
int get screenX;
/** @domName Window.screenY */
int get screenY;
/** @domName Window.scrollX */
int get scrollX;
/** @domName Window.scrollY */
int get scrollY;
/** @domName Window.scrollbars */
BarInfo get scrollbars;
/** @domName Window.self */
Window get self;
/** @domName Window.sessionStorage */
Storage get sessionStorage;
/** @domName Window.status */
String status;
/** @domName Window.statusbar */
BarInfo get statusbar;
/** @domName Window.styleMedia */
StyleMedia get styleMedia;
/** @domName Window.toolbar */
BarInfo get toolbar;
/** @domName Window.top */
Window get top;
/** @domName DOMWindow.webkitIndexedDB */
IDBFactory get webkitIndexedDB;
/** @domName DOMWindow.webkitNotifications */
NotificationCenter get webkitNotifications;
/** @domName DOMWindow.webkitStorageInfo */
StorageInfo get webkitStorageInfo;
/** @domName Window.window */
Window get window;
/** @domName Window.addEventListener */
void $dom_addEventListener(String type, EventListener listener, [bool useCapture]);
/** @domName Window.alert */
void alert(String message);
/** @domName Window.atob */
String atob(String string);
/** @domName Window.blur */
void blur();
/** @domName Window.btoa */
String btoa(String string);
/** @domName Window.cancelAnimationFrame */
void cancelAnimationFrame(int id);
/** @domName Window.captureEvents */
void captureEvents();
/** @domName Window.clearInterval */
void clearInterval(int handle);
/** @domName Window.clearTimeout */
void clearTimeout(int handle);
/** @domName Window.close */
void close();
/** @domName Window.confirm */
bool confirm(String message);
/** @domName Window.dispatchEvent */
bool $dom_dispatchEvent(Event evt);
/** @domName Window.find */
bool find(String string, bool caseSensitive, bool backwards, bool wrap, bool wholeWord, bool searchInFrames, bool showDialog);
/** @domName Window.focus */
void focus();
/** @domName Window.getComputedStyle */
CSSStyleDeclaration $dom_getComputedStyle(Element element, String pseudoElement);
/** @domName Window.getMatchedCSSRules */
List<CSSRule> getMatchedCSSRules(Element element, String pseudoElement);
/** @domName Window.getSelection */
DOMSelection getSelection();
/** @domName Window.matchMedia */
MediaQueryList matchMedia(String query);
/** @domName Window.moveBy */
void moveBy(num x, num y);
/** @domName Window.moveTo */
void moveTo(num x, num y);
/** @domName Window.open */
Window open(String url, String name, [String options]);
/** @domName DOMWindow.openDatabase */
Database openDatabase(String name, String version, String displayName, int estimatedSize, [DatabaseCallback creationCallback]);
/** @domName Window.postMessage */
void postMessage(/*SerializedScriptValue*/ message, String targetOrigin, [List messagePorts]);
/** @domName Window.print */
void print();
/** @domName Window.prompt */
String prompt(String message, String defaultValue);
/** @domName Window.releaseEvents */
void releaseEvents();
/** @domName Window.removeEventListener */
void $dom_removeEventListener(String type, EventListener listener, [bool useCapture]);
/** @domName Window.requestAnimationFrame */
int requestAnimationFrame(RequestAnimationFrameCallback callback);
/** @domName Window.resizeBy */
void resizeBy(num x, num y);
/** @domName Window.resizeTo */
void resizeTo(num width, num height);
/** @domName Window.scroll */
void scroll(int x, int y);
/** @domName Window.scrollBy */
void scrollBy(int x, int y);
/** @domName Window.scrollTo */
void scrollTo(int x, int y);
/** @domName Window.setInterval */
int setInterval(TimeoutHandler handler, int timeout);
/** @domName Window.setTimeout */
int setTimeout(TimeoutHandler handler, int timeout);
/** @domName Window.showModalDialog */
Object showModalDialog(String url, [Object dialogArgs, String featureArgs]);
/** @domName Window.stop */
void stop();
/** @domName Window.webkitCancelAnimationFrame */
void webkitCancelAnimationFrame(int id);
/** @domName Window.webkitConvertPointFromNodeToPage */
Point webkitConvertPointFromNodeToPage(Node node, Point p);
/** @domName Window.webkitConvertPointFromPageToNode */
Point webkitConvertPointFromPageToNode(Node node, Point p);
/** @domName Window.webkitRequestAnimationFrame */
int webkitRequestAnimationFrame(RequestAnimationFrameCallback callback);
/** @domName DOMWindow.webkitRequestFileSystem */
void webkitRequestFileSystem(int type, int size, FileSystemCallback successCallback, [ErrorCallback errorCallback]);
/** @domName DOMWindow.webkitResolveLocalFileSystemURL */
void webkitResolveLocalFileSystemURL(String url, EntryCallback successCallback, [ErrorCallback errorCallback]);
}
abstract class LocalWindowEvents implements Events {
EventListenerList get abort;
EventListenerList get beforeUnload;
EventListenerList get blur;
EventListenerList get canPlay;
EventListenerList get canPlayThrough;
EventListenerList get change;
EventListenerList get click;
EventListenerList get contextMenu;
EventListenerList get doubleClick;
EventListenerList get deviceMotion;
EventListenerList get deviceOrientation;
EventListenerList get drag;
EventListenerList get dragEnd;
EventListenerList get dragEnter;
EventListenerList get dragLeave;
EventListenerList get dragOver;
EventListenerList get dragStart;
EventListenerList get drop;
EventListenerList get durationChange;
EventListenerList get emptied;
EventListenerList get ended;
EventListenerList get error;
EventListenerList get focus;
EventListenerList get hashChange;
EventListenerList get input;
EventListenerList get invalid;
EventListenerList get keyDown;
EventListenerList get keyPress;
EventListenerList get keyUp;
EventListenerList get load;
EventListenerList get loadedData;
EventListenerList get loadedMetadata;
EventListenerList get loadStart;
EventListenerList get message;
EventListenerList get mouseDown;
EventListenerList get mouseMove;
EventListenerList get mouseOut;
EventListenerList get mouseOver;
EventListenerList get mouseUp;
EventListenerList get mouseWheel;
EventListenerList get offline;
EventListenerList get online;
EventListenerList get pageHide;
EventListenerList get pageShow;
EventListenerList get pause;
EventListenerList get play;
EventListenerList get playing;
EventListenerList get popState;
EventListenerList get progress;
EventListenerList get rateChange;
EventListenerList get reset;
EventListenerList get resize;
EventListenerList get scroll;
EventListenerList get search;
EventListenerList get seeked;
EventListenerList get seeking;
EventListenerList get select;
EventListenerList get stalled;
EventListenerList get storage;
EventListenerList get submit;
EventListenerList get suspend;
EventListenerList get timeUpdate;
EventListenerList get touchCancel;
EventListenerList get touchEnd;
EventListenerList get touchMove;
EventListenerList get touchStart;
EventListenerList get unload;
EventListenerList get volumeChange;
EventListenerList get waiting;
EventListenerList get animationEnd;
EventListenerList get animationIteration;
EventListenerList get animationStart;
EventListenerList get transitionEnd;
}
// 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 _LocalWindowImpl extends _EventTargetImpl implements LocalWindow {
void requestLayoutFrame(TimeoutHandler callback) {
_addMeasurementFrameCallback(callback);
}
// TODO(kasperl): Document these.
lookupPort(String name) {
var port = JSON.parse(localStorage['dart-port:$name']);
return _deserialize(port);
}
registerPort(String name, var port) {
var serialized = _serialize(port);
localStorage['dart-port:$name'] = JSON.stringify(serialized);
}
String createObjectUrl(object) => DOMURL.createObjectURL(object);
void revokeObjectUrl(String url) {
DOMURL.revokeObjectURL(url);
}
_LocalWindowEventsImpl get on =>
new _LocalWindowEventsImpl(this);
DOMApplicationCache get applicationCache native "DOMWindow_applicationCache_Getter";
Navigator get clientInformation native "DOMWindow_clientInformation_Getter";
bool get closed native "DOMWindow_closed_Getter";
Console get console native "DOMWindow_console_Getter";
Crypto get crypto native "DOMWindow_crypto_Getter";
String get defaultStatus native "DOMWindow_defaultStatus_Getter";
void set defaultStatus(String value) native "DOMWindow_defaultStatus_Setter";
String get defaultstatus native "DOMWindow_defaultstatus_Getter";
void set defaultstatus(String value) native "DOMWindow_defaultstatus_Setter";
num get devicePixelRatio native "DOMWindow_devicePixelRatio_Getter";
Document get document native "DOMWindow_document_Getter";
Event get event native "DOMWindow_event_Getter";
LocalHistory get history native "DOMWindow_history_Getter";
IDBFactory get indexedDB native "DOMWindow_indexedDB_Getter";
int get innerHeight native "DOMWindow_innerHeight_Getter";
int get innerWidth native "DOMWindow_innerWidth_Getter";
Storage get localStorage native "DOMWindow_localStorage_Getter";
LocalLocation get location native "DOMWindow_location_Getter";
void set location(LocalLocation value) native "DOMWindow_location_Setter";
BarInfo get locationbar native "DOMWindow_locationbar_Getter";
BarInfo get menubar native "DOMWindow_menubar_Getter";
String get name native "DOMWindow_name_Getter";
void set name(String value) native "DOMWindow_name_Setter";
Navigator get navigator native "DOMWindow_navigator_Getter";
bool get offscreenBuffering native "DOMWindow_offscreenBuffering_Getter";
Window get opener native "DOMWindow_opener_Getter";
int get outerHeight native "DOMWindow_outerHeight_Getter";
int get outerWidth native "DOMWindow_outerWidth_Getter";
PagePopupController get pagePopupController native "DOMWindow_pagePopupController_Getter";
int get pageXOffset native "DOMWindow_pageXOffset_Getter";
int get pageYOffset native "DOMWindow_pageYOffset_Getter";
Window get parent native "DOMWindow_parent_Getter";
Performance get performance native "DOMWindow_performance_Getter";
BarInfo get personalbar native "DOMWindow_personalbar_Getter";
Screen get screen native "DOMWindow_screen_Getter";
int get screenLeft native "DOMWindow_screenLeft_Getter";
int get screenTop native "DOMWindow_screenTop_Getter";
int get screenX native "DOMWindow_screenX_Getter";
int get screenY native "DOMWindow_screenY_Getter";
int get scrollX native "DOMWindow_scrollX_Getter";
int get scrollY native "DOMWindow_scrollY_Getter";
BarInfo get scrollbars native "DOMWindow_scrollbars_Getter";
Window get self native "DOMWindow_self_Getter";
Storage get sessionStorage native "DOMWindow_sessionStorage_Getter";
String get status native "DOMWindow_status_Getter";
void set status(String value) native "DOMWindow_status_Setter";
BarInfo get statusbar native "DOMWindow_statusbar_Getter";
StyleMedia get styleMedia native "DOMWindow_styleMedia_Getter";
BarInfo get toolbar native "DOMWindow_toolbar_Getter";
Window get top native "DOMWindow_top_Getter";
IDBFactory get webkitIndexedDB native "DOMWindow_webkitIndexedDB_Getter";
NotificationCenter get webkitNotifications native "DOMWindow_webkitNotifications_Getter";
StorageInfo get webkitStorageInfo native "DOMWindow_webkitStorageInfo_Getter";
Window get window native "DOMWindow_window_Getter";
void $dom_addEventListener(String type, EventListener listener, [bool useCapture]) native "DOMWindow_addEventListener_Callback";
void alert(String message) native "DOMWindow_alert_Callback";
String atob(String string) native "DOMWindow_atob_Callback";
void blur() native "DOMWindow_blur_Callback";
String btoa(String string) native "DOMWindow_btoa_Callback";
void cancelAnimationFrame(int id) native "DOMWindow_cancelAnimationFrame_Callback";
void captureEvents() native "DOMWindow_captureEvents_Callback";
void clearInterval(int handle) native "DOMWindow_clearInterval_Callback";
void clearTimeout(int handle) native "DOMWindow_clearTimeout_Callback";
void close() native "DOMWindow_close_Callback";
bool confirm(String message) native "DOMWindow_confirm_Callback";
bool $dom_dispatchEvent(Event evt) native "DOMWindow_dispatchEvent_Callback";
bool find(String string, bool caseSensitive, bool backwards, bool wrap, bool wholeWord, bool searchInFrames, bool showDialog) native "DOMWindow_find_Callback";
void focus() native "DOMWindow_focus_Callback";
CSSStyleDeclaration $dom_getComputedStyle(Element element, String pseudoElement) native "DOMWindow_getComputedStyle_Callback";
List<CSSRule> getMatchedCSSRules(Element element, String pseudoElement) native "DOMWindow_getMatchedCSSRules_Callback";
DOMSelection getSelection() native "DOMWindow_getSelection_Callback";
MediaQueryList matchMedia(String query) native "DOMWindow_matchMedia_Callback";
void moveBy(num x, num y) native "DOMWindow_moveBy_Callback";
void moveTo(num x, num y) native "DOMWindow_moveTo_Callback";
Window open(String url, String name, [String options]) native "DOMWindow_open_Callback";
Database openDatabase(String name, String version, String displayName, int estimatedSize, [DatabaseCallback creationCallback]) native "DOMWindow_openDatabase_Callback";
void postMessage(/*SerializedScriptValue*/ message, String targetOrigin, [List messagePorts]) native "DOMWindow_postMessage_Callback";
void print() native "DOMWindow_print_Callback";
String prompt(String message, String defaultValue) native "DOMWindow_prompt_Callback";
void releaseEvents() native "DOMWindow_releaseEvents_Callback";
void $dom_removeEventListener(String type, EventListener listener, [bool useCapture]) native "DOMWindow_removeEventListener_Callback";
int requestAnimationFrame(RequestAnimationFrameCallback callback) native "DOMWindow_requestAnimationFrame_Callback";
void resizeBy(num x, num y) native "DOMWindow_resizeBy_Callback";
void resizeTo(num width, num height) native "DOMWindow_resizeTo_Callback";
void scroll(int x, int y) native "DOMWindow_scroll_Callback";
void scrollBy(int x, int y) native "DOMWindow_scrollBy_Callback";
void scrollTo(int x, int y) native "DOMWindow_scrollTo_Callback";
int setInterval(TimeoutHandler handler, int timeout) native "DOMWindow_setInterval_Callback";
int setTimeout(TimeoutHandler handler, int timeout) native "DOMWindow_setTimeout_Callback";
Object showModalDialog(String url, [Object dialogArgs, String featureArgs]) native "DOMWindow_showModalDialog_Callback";
void stop() native "DOMWindow_stop_Callback";
void webkitCancelAnimationFrame(int id) native "DOMWindow_webkitCancelAnimationFrame_Callback";
Point webkitConvertPointFromNodeToPage(Node node, Point p) native "DOMWindow_webkitConvertPointFromNodeToPage_Callback";
Point webkitConvertPointFromPageToNode(Node node, Point p) native "DOMWindow_webkitConvertPointFromPageToNode_Callback";
int webkitRequestAnimationFrame(RequestAnimationFrameCallback callback) native "DOMWindow_webkitRequestAnimationFrame_Callback";
void webkitRequestFileSystem(int type, int size, FileSystemCallback successCallback, [ErrorCallback errorCallback]) native "DOMWindow_webkitRequestFileSystem_Callback";
void webkitResolveLocalFileSystemURL(String url, EntryCallback successCallback, [ErrorCallback errorCallback]) native "DOMWindow_webkitResolveLocalFileSystemURL_Callback";
}
class _LocalWindowEventsImpl extends _EventsImpl implements LocalWindowEvents {
_LocalWindowEventsImpl(_ptr) : super(_ptr);
EventListenerList get abort => this['abort'];
EventListenerList get beforeUnload => this['beforeunload'];
EventListenerList get blur => this['blur'];
EventListenerList get canPlay => this['canplay'];
EventListenerList get canPlayThrough => this['canplaythrough'];
EventListenerList get change => this['change'];
EventListenerList get click => this['click'];
EventListenerList get contextMenu => this['contextmenu'];
EventListenerList get doubleClick => this['dblclick'];
EventListenerList get deviceMotion => this['devicemotion'];
EventListenerList get deviceOrientation => this['deviceorientation'];
EventListenerList get drag => this['drag'];
EventListenerList get dragEnd => this['dragend'];
EventListenerList get dragEnter => this['dragenter'];
EventListenerList get dragLeave => this['dragleave'];
EventListenerList get dragOver => this['dragover'];
EventListenerList get dragStart => this['dragstart'];
EventListenerList get drop => this['drop'];
EventListenerList get durationChange => this['durationchange'];
EventListenerList get emptied => this['emptied'];
EventListenerList get ended => this['ended'];
EventListenerList get error => this['error'];
EventListenerList get focus => this['focus'];
EventListenerList get hashChange => this['hashchange'];
EventListenerList get input => this['input'];
EventListenerList get invalid => this['invalid'];
EventListenerList get keyDown => this['keydown'];
EventListenerList get keyPress => this['keypress'];
EventListenerList get keyUp => this['keyup'];
EventListenerList get load => this['load'];
EventListenerList get loadedData => this['loadeddata'];
EventListenerList get loadedMetadata => this['loadedmetadata'];
EventListenerList get loadStart => this['loadstart'];
EventListenerList get message => this['message'];
EventListenerList get mouseDown => this['mousedown'];
EventListenerList get mouseMove => this['mousemove'];
EventListenerList get mouseOut => this['mouseout'];
EventListenerList get mouseOver => this['mouseover'];
EventListenerList get mouseUp => this['mouseup'];
EventListenerList get mouseWheel => this['mousewheel'];
EventListenerList get offline => this['offline'];
EventListenerList get online => this['online'];
EventListenerList get pageHide => this['pagehide'];
EventListenerList get pageShow => this['pageshow'];
EventListenerList get pause => this['pause'];
EventListenerList get play => this['play'];
EventListenerList get playing => this['playing'];
EventListenerList get popState => this['popstate'];
EventListenerList get progress => this['progress'];
EventListenerList get rateChange => this['ratechange'];
EventListenerList get reset => this['reset'];
EventListenerList get resize => this['resize'];
EventListenerList get scroll => this['scroll'];
EventListenerList get search => this['search'];
EventListenerList get seeked => this['seeked'];
EventListenerList get seeking => this['seeking'];
EventListenerList get select => this['select'];
EventListenerList get stalled => this['stalled'];
EventListenerList get storage => this['storage'];
EventListenerList get submit => this['submit'];
EventListenerList get suspend => this['suspend'];
EventListenerList get timeUpdate => this['timeupdate'];
EventListenerList get touchCancel => this['touchcancel'];
EventListenerList get touchEnd => this['touchend'];
EventListenerList get touchMove => this['touchmove'];
EventListenerList get touchStart => this['touchstart'];
EventListenerList get unload => this['unload'];
EventListenerList get volumeChange => this['volumechange'];
EventListenerList get waiting => this['waiting'];
EventListenerList get animationEnd => this['webkitAnimationEnd'];
EventListenerList get animationIteration => this['webkitAnimationIteration'];
EventListenerList get animationStart => this['webkitAnimationStart'];
EventListenerList get transitionEnd => this['webkitTransitionEnd'];
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName HTMLMapElement
abstract class MapElement implements Element {
factory MapElement() => _Elements.createMapElement();
/** @domName HTMLMapElement.areas */
HTMLCollection get areas;
/** @domName HTMLMapElement.name */
String name;
}
// 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.
// WARNING: Do not edit - generated code.
class _MapElementImpl extends _ElementImpl_Merged implements MapElement {
HTMLCollection get areas native "HTMLMapElement_areas_Getter";
String get name native "HTMLMapElement_name_Getter";
void set name(String value) native "HTMLMapElement_name_Setter";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName HTMLMarqueeElement
abstract class MarqueeElement implements Element {
/** @domName HTMLMarqueeElement.behavior */
String behavior;
/** @domName HTMLMarqueeElement.bgColor */
String bgColor;
/** @domName HTMLMarqueeElement.direction */
String direction;
/** @domName HTMLMarqueeElement.height */
String height;
/** @domName HTMLMarqueeElement.hspace */
int hspace;
/** @domName HTMLMarqueeElement.loop */
int loop;
/** @domName HTMLMarqueeElement.scrollAmount */
int scrollAmount;
/** @domName HTMLMarqueeElement.scrollDelay */
int scrollDelay;
/** @domName HTMLMarqueeElement.trueSpeed */
bool trueSpeed;
/** @domName HTMLMarqueeElement.vspace */
int vspace;
/** @domName HTMLMarqueeElement.width */
String width;
/** @domName HTMLMarqueeElement.start */
void start();
/** @domName HTMLMarqueeElement.stop */
void stop();
}
// 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.
// WARNING: Do not edit - generated code.
class _MarqueeElementImpl extends _ElementImpl_Merged implements MarqueeElement {
String get behavior native "HTMLMarqueeElement_behavior_Getter";
void set behavior(String value) native "HTMLMarqueeElement_behavior_Setter";
String get bgColor native "HTMLMarqueeElement_bgColor_Getter";
void set bgColor(String value) native "HTMLMarqueeElement_bgColor_Setter";
String get direction native "HTMLMarqueeElement_direction_Getter";
void set direction(String value) native "HTMLMarqueeElement_direction_Setter";
String get height native "HTMLMarqueeElement_height_Getter";
void set height(String value) native "HTMLMarqueeElement_height_Setter";
int get hspace native "HTMLMarqueeElement_hspace_Getter";
void set hspace(int value) native "HTMLMarqueeElement_hspace_Setter";
int get loop native "HTMLMarqueeElement_loop_Getter";
void set loop(int value) native "HTMLMarqueeElement_loop_Setter";
int get scrollAmount native "HTMLMarqueeElement_scrollAmount_Getter";
void set scrollAmount(int value) native "HTMLMarqueeElement_scrollAmount_Setter";
int get scrollDelay native "HTMLMarqueeElement_scrollDelay_Getter";
void set scrollDelay(int value) native "HTMLMarqueeElement_scrollDelay_Setter";
bool get trueSpeed native "HTMLMarqueeElement_trueSpeed_Getter";
void set trueSpeed(bool value) native "HTMLMarqueeElement_trueSpeed_Setter";
int get vspace native "HTMLMarqueeElement_vspace_Getter";
void set vspace(int value) native "HTMLMarqueeElement_vspace_Setter";
String get width native "HTMLMarqueeElement_width_Getter";
void set width(String value) native "HTMLMarqueeElement_width_Setter";
void start() native "HTMLMarqueeElement_start_Callback";
void stop() native "HTMLMarqueeElement_stop_Callback";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName MediaController
abstract class MediaController implements EventTarget {
factory MediaController() => _MediaControllerFactoryProvider.createMediaController();
/** @domName MediaController.buffered */
TimeRanges get buffered;
/** @domName MediaController.currentTime */
num currentTime;
/** @domName MediaController.defaultPlaybackRate */
num defaultPlaybackRate;
/** @domName MediaController.duration */
num get duration;
/** @domName MediaController.muted */
bool muted;
/** @domName MediaController.paused */
bool get paused;
/** @domName MediaController.playbackRate */
num playbackRate;
/** @domName MediaController.played */
TimeRanges get played;
/** @domName MediaController.seekable */
TimeRanges get seekable;
/** @domName MediaController.volume */
num volume;
/** @domName MediaController.addEventListener */
void $dom_addEventListener(String type, EventListener listener, [bool useCapture]);
/** @domName MediaController.dispatchEvent */
bool $dom_dispatchEvent(Event evt);
/** @domName MediaController.pause */
void pause();
/** @domName MediaController.play */
void play();
/** @domName MediaController.removeEventListener */
void $dom_removeEventListener(String type, EventListener listener, [bool useCapture]);
}
// 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.
// WARNING: Do not edit - generated code.
class _MediaControllerImpl extends _EventTargetImpl implements MediaController {
TimeRanges get buffered native "MediaController_buffered_Getter";
num get currentTime native "MediaController_currentTime_Getter";
void set currentTime(num value) native "MediaController_currentTime_Setter";
num get defaultPlaybackRate native "MediaController_defaultPlaybackRate_Getter";
void set defaultPlaybackRate(num value) native "MediaController_defaultPlaybackRate_Setter";
num get duration native "MediaController_duration_Getter";
bool get muted native "MediaController_muted_Getter";
void set muted(bool value) native "MediaController_muted_Setter";
bool get paused native "MediaController_paused_Getter";
num get playbackRate native "MediaController_playbackRate_Getter";
void set playbackRate(num value) native "MediaController_playbackRate_Setter";
TimeRanges get played native "MediaController_played_Getter";
TimeRanges get seekable native "MediaController_seekable_Getter";
num get volume native "MediaController_volume_Getter";
void set volume(num value) native "MediaController_volume_Setter";
void $dom_addEventListener(String type, EventListener listener, [bool useCapture]) native "MediaController_addEventListener_Callback";
bool $dom_dispatchEvent(Event evt) native "MediaController_dispatchEvent_Callback";
void pause() native "MediaController_pause_Callback";
void play() native "MediaController_play_Callback";
void $dom_removeEventListener(String type, EventListener listener, [bool useCapture]) native "MediaController_removeEventListener_Callback";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName HTMLMediaElement
abstract class MediaElement implements Element {
/**
* @domName EventTarget.addEventListener, EventTarget.removeEventListener, EventTarget.dispatchEvent
*/
MediaElementEvents get on;
static const int HAVE_CURRENT_DATA = 2;
static const int HAVE_ENOUGH_DATA = 4;
static const int HAVE_FUTURE_DATA = 3;
static const int HAVE_METADATA = 1;
static const int HAVE_NOTHING = 0;
static const int NETWORK_EMPTY = 0;
static const int NETWORK_IDLE = 1;
static const int NETWORK_LOADING = 2;
static const int NETWORK_NO_SOURCE = 3;
/** @domName HTMLMediaElement.autoplay */
bool autoplay;
/** @domName HTMLMediaElement.buffered */
TimeRanges get buffered;
/** @domName HTMLMediaElement.controller */
MediaController controller;
/** @domName HTMLMediaElement.controls */
bool controls;
/** @domName HTMLMediaElement.currentSrc */
String get currentSrc;
/** @domName HTMLMediaElement.currentTime */
num currentTime;
/** @domName HTMLMediaElement.defaultMuted */
bool defaultMuted;
/** @domName HTMLMediaElement.defaultPlaybackRate */
num defaultPlaybackRate;
/** @domName HTMLMediaElement.duration */
num get duration;
/** @domName HTMLMediaElement.ended */
bool get ended;
/** @domName HTMLMediaElement.error */
MediaError get error;
/** @domName HTMLMediaElement.initialTime */
num get initialTime;
/** @domName HTMLMediaElement.loop */
bool loop;
/** @domName HTMLMediaElement.mediaGroup */
String mediaGroup;
/** @domName HTMLMediaElement.muted */
bool muted;
/** @domName HTMLMediaElement.networkState */
int get networkState;
/** @domName HTMLMediaElement.paused */
bool get paused;
/** @domName HTMLMediaElement.playbackRate */
num playbackRate;
/** @domName HTMLMediaElement.played */
TimeRanges get played;
/** @domName HTMLMediaElement.preload */
String preload;
/** @domName HTMLMediaElement.readyState */
int get readyState;
/** @domName HTMLMediaElement.seekable */
TimeRanges get seekable;
/** @domName HTMLMediaElement.seeking */
bool get seeking;
/** @domName HTMLMediaElement.src */
String src;
/** @domName HTMLMediaElement.startTime */
num get startTime;
/** @domName HTMLMediaElement.textTracks */
TextTrackList get textTracks;
/** @domName HTMLMediaElement.volume */
num volume;
/** @domName HTMLMediaElement.webkitAudioDecodedByteCount */
int get webkitAudioDecodedByteCount;
/** @domName HTMLMediaElement.webkitClosedCaptionsVisible */
bool webkitClosedCaptionsVisible;
/** @domName HTMLMediaElement.webkitHasClosedCaptions */
bool get webkitHasClosedCaptions;
/** @domName HTMLMediaElement.webkitPreservesPitch */
bool webkitPreservesPitch;
/** @domName HTMLMediaElement.webkitVideoDecodedByteCount */
int get webkitVideoDecodedByteCount;
/** @domName HTMLMediaElement.addTextTrack */
TextTrack addTextTrack(String kind, [String label, String language]);
/** @domName HTMLMediaElement.canPlayType */
String canPlayType(String type, String keySystem);
/** @domName HTMLMediaElement.load */
void load();
/** @domName HTMLMediaElement.pause */
void pause();
/** @domName HTMLMediaElement.play */
void play();
/** @domName HTMLMediaElement.webkitAddKey */
void webkitAddKey(String keySystem, Uint8Array key, [Uint8Array initData, String sessionId]);
/** @domName HTMLMediaElement.webkitCancelKeyRequest */
void webkitCancelKeyRequest(String keySystem, String sessionId);
/** @domName HTMLMediaElement.webkitGenerateKeyRequest */
void webkitGenerateKeyRequest(String keySystem, [Uint8Array initData]);
}
abstract class MediaElementEvents implements ElementEvents {
EventListenerList get canPlay;
EventListenerList get canPlayThrough;
EventListenerList get durationChange;
EventListenerList get emptied;
EventListenerList get ended;
EventListenerList get loadedData;
EventListenerList get loadedMetadata;
EventListenerList get loadStart;
EventListenerList get pause;
EventListenerList get play;
EventListenerList get playing;
EventListenerList get progress;
EventListenerList get rateChange;
EventListenerList get seeked;
EventListenerList get seeking;
EventListenerList get show;
EventListenerList get stalled;
EventListenerList get suspend;
EventListenerList get timeUpdate;
EventListenerList get volumeChange;
EventListenerList get waiting;
EventListenerList get keyAdded;
EventListenerList get keyError;
EventListenerList get keyMessage;
EventListenerList get needKey;
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName MediaElementAudioSourceNode
abstract class MediaElementAudioSourceNode implements AudioSourceNode {
/** @domName MediaElementAudioSourceNode.mediaElement */
MediaElement get mediaElement;
}
// 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.
// WARNING: Do not edit - generated code.
class _MediaElementAudioSourceNodeImpl extends _AudioSourceNodeImpl implements MediaElementAudioSourceNode {
MediaElement get mediaElement native "MediaElementAudioSourceNode_mediaElement_Getter";
}
// 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.
// WARNING: Do not edit - generated code.
class _MediaElementImpl extends _ElementImpl_Merged implements MediaElement {
_MediaElementEventsImpl get on =>
new _MediaElementEventsImpl(this);
bool get autoplay native "HTMLMediaElement_autoplay_Getter";
void set autoplay(bool value) native "HTMLMediaElement_autoplay_Setter";
TimeRanges get buffered native "HTMLMediaElement_buffered_Getter";
MediaController get controller native "HTMLMediaElement_controller_Getter";
void set controller(MediaController value) native "HTMLMediaElement_controller_Setter";
bool get controls native "HTMLMediaElement_controls_Getter";
void set controls(bool value) native "HTMLMediaElement_controls_Setter";
String get currentSrc native "HTMLMediaElement_currentSrc_Getter";
num get currentTime native "HTMLMediaElement_currentTime_Getter";
void set currentTime(num value) native "HTMLMediaElement_currentTime_Setter";
bool get defaultMuted native "HTMLMediaElement_defaultMuted_Getter";
void set defaultMuted(bool value) native "HTMLMediaElement_defaultMuted_Setter";
num get defaultPlaybackRate native "HTMLMediaElement_defaultPlaybackRate_Getter";
void set defaultPlaybackRate(num value) native "HTMLMediaElement_defaultPlaybackRate_Setter";
num get duration native "HTMLMediaElement_duration_Getter";
bool get ended native "HTMLMediaElement_ended_Getter";
MediaError get error native "HTMLMediaElement_error_Getter";
num get initialTime native "HTMLMediaElement_initialTime_Getter";
bool get loop native "HTMLMediaElement_loop_Getter";
void set loop(bool value) native "HTMLMediaElement_loop_Setter";
String get mediaGroup native "HTMLMediaElement_mediaGroup_Getter";
void set mediaGroup(String value) native "HTMLMediaElement_mediaGroup_Setter";
bool get muted native "HTMLMediaElement_muted_Getter";
void set muted(bool value) native "HTMLMediaElement_muted_Setter";
int get networkState native "HTMLMediaElement_networkState_Getter";
bool get paused native "HTMLMediaElement_paused_Getter";
num get playbackRate native "HTMLMediaElement_playbackRate_Getter";
void set playbackRate(num value) native "HTMLMediaElement_playbackRate_Setter";
TimeRanges get played native "HTMLMediaElement_played_Getter";
String get preload native "HTMLMediaElement_preload_Getter";
void set preload(String value) native "HTMLMediaElement_preload_Setter";
int get readyState native "HTMLMediaElement_readyState_Getter";
TimeRanges get seekable native "HTMLMediaElement_seekable_Getter";
bool get seeking native "HTMLMediaElement_seeking_Getter";
String get src native "HTMLMediaElement_src_Getter";
void set src(String value) native "HTMLMediaElement_src_Setter";
num get startTime native "HTMLMediaElement_startTime_Getter";
TextTrackList get textTracks native "HTMLMediaElement_textTracks_Getter";
num get volume native "HTMLMediaElement_volume_Getter";
void set volume(num value) native "HTMLMediaElement_volume_Setter";
int get webkitAudioDecodedByteCount native "HTMLMediaElement_webkitAudioDecodedByteCount_Getter";
bool get webkitClosedCaptionsVisible native "HTMLMediaElement_webkitClosedCaptionsVisible_Getter";
void set webkitClosedCaptionsVisible(bool value) native "HTMLMediaElement_webkitClosedCaptionsVisible_Setter";
bool get webkitHasClosedCaptions native "HTMLMediaElement_webkitHasClosedCaptions_Getter";
bool get webkitPreservesPitch native "HTMLMediaElement_webkitPreservesPitch_Getter";
void set webkitPreservesPitch(bool value) native "HTMLMediaElement_webkitPreservesPitch_Setter";
int get webkitVideoDecodedByteCount native "HTMLMediaElement_webkitVideoDecodedByteCount_Getter";
TextTrack addTextTrack(/*DOMString*/ kind, [/*DOMString*/ label, /*DOMString*/ language]) {
if (?language) {
return _addTextTrack_1(kind, label, language);
}
if (?label) {
return _addTextTrack_2(kind, label);
}
return _addTextTrack_3(kind);
}
TextTrack _addTextTrack_1(kind, label, language) native "HTMLMediaElement_addTextTrack_1_Callback";
TextTrack _addTextTrack_2(kind, label) native "HTMLMediaElement_addTextTrack_2_Callback";
TextTrack _addTextTrack_3(kind) native "HTMLMediaElement_addTextTrack_3_Callback";
String canPlayType(String type, String keySystem) native "HTMLMediaElement_canPlayType_Callback";
void load() native "HTMLMediaElement_load_Callback";
void pause() native "HTMLMediaElement_pause_Callback";
void play() native "HTMLMediaElement_play_Callback";
void webkitAddKey(/*DOMString*/ keySystem, /*Uint8Array*/ key, [/*Uint8Array*/ initData, /*DOMString*/ sessionId]) {
if (?initData) {
_webkitAddKey_1(keySystem, key, initData, sessionId);
return;
}
_webkitAddKey_2(keySystem, key);
}
void _webkitAddKey_1(keySystem, key, initData, sessionId) native "HTMLMediaElement_webkitAddKey_1_Callback";
void _webkitAddKey_2(keySystem, key) native "HTMLMediaElement_webkitAddKey_2_Callback";
void webkitCancelKeyRequest(String keySystem, String sessionId) native "HTMLMediaElement_webkitCancelKeyRequest_Callback";
void webkitGenerateKeyRequest(/*DOMString*/ keySystem, [/*Uint8Array*/ initData]) {
if (?initData) {
_webkitGenerateKeyRequest_1(keySystem, initData);
return;
}
_webkitGenerateKeyRequest_2(keySystem);
}
void _webkitGenerateKeyRequest_1(keySystem, initData) native "HTMLMediaElement_webkitGenerateKeyRequest_1_Callback";
void _webkitGenerateKeyRequest_2(keySystem) native "HTMLMediaElement_webkitGenerateKeyRequest_2_Callback";
}
class _MediaElementEventsImpl extends _ElementEventsImpl implements MediaElementEvents {
_MediaElementEventsImpl(_ptr) : super(_ptr);
EventListenerList get canPlay => this['canplay'];
EventListenerList get canPlayThrough => this['canplaythrough'];
EventListenerList get durationChange => this['durationchange'];
EventListenerList get emptied => this['emptied'];
EventListenerList get ended => this['ended'];
EventListenerList get loadedData => this['loadeddata'];
EventListenerList get loadedMetadata => this['loadedmetadata'];
EventListenerList get loadStart => this['loadstart'];
EventListenerList get pause => this['pause'];
EventListenerList get play => this['play'];
EventListenerList get playing => this['playing'];
EventListenerList get progress => this['progress'];
EventListenerList get rateChange => this['ratechange'];
EventListenerList get seeked => this['seeked'];
EventListenerList get seeking => this['seeking'];
EventListenerList get show => this['show'];
EventListenerList get stalled => this['stalled'];
EventListenerList get suspend => this['suspend'];
EventListenerList get timeUpdate => this['timeupdate'];
EventListenerList get volumeChange => this['volumechange'];
EventListenerList get waiting => this['waiting'];
EventListenerList get keyAdded => this['webkitkeyadded'];
EventListenerList get keyError => this['webkitkeyerror'];
EventListenerList get keyMessage => this['webkitkeymessage'];
EventListenerList get needKey => this['webkitneedkey'];
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName MediaError
abstract class MediaError {
static const int MEDIA_ERR_ABORTED = 1;
static const int MEDIA_ERR_DECODE = 3;
static const int MEDIA_ERR_ENCRYPTED = 5;
static const int MEDIA_ERR_NETWORK = 2;
static const int MEDIA_ERR_SRC_NOT_SUPPORTED = 4;
/** @domName MediaError.code */
int get code;
}
// 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.
// WARNING: Do not edit - generated code.
class _MediaErrorImpl extends NativeFieldWrapperClass1 implements MediaError {
int get code native "MediaError_code_Getter";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName MediaKeyError
abstract class MediaKeyError {
static const int MEDIA_KEYERR_CLIENT = 2;
static const int MEDIA_KEYERR_DOMAIN = 6;
static const int MEDIA_KEYERR_HARDWARECHANGE = 5;
static const int MEDIA_KEYERR_OUTPUT = 4;
static const int MEDIA_KEYERR_SERVICE = 3;
static const int MEDIA_KEYERR_UNKNOWN = 1;
/** @domName MediaKeyError.code */
int get code;
}
// 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.
// WARNING: Do not edit - generated code.
class _MediaKeyErrorImpl extends NativeFieldWrapperClass1 implements MediaKeyError {
int get code native "MediaKeyError_code_Getter";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName MediaKeyEvent
abstract class MediaKeyEvent implements Event {
/** @domName MediaKeyEvent.defaultURL */
String get defaultURL;
/** @domName MediaKeyEvent.errorCode */
MediaKeyError get errorCode;
/** @domName MediaKeyEvent.initData */
Uint8Array get initData;
/** @domName MediaKeyEvent.keySystem */
String get keySystem;
/** @domName MediaKeyEvent.message */
Uint8Array get message;
/** @domName MediaKeyEvent.sessionId */
String get sessionId;
/** @domName MediaKeyEvent.systemCode */
int get systemCode;
}
// 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.
// WARNING: Do not edit - generated code.
class _MediaKeyEventImpl extends _EventImpl implements MediaKeyEvent {
String get defaultURL native "MediaKeyEvent_defaultURL_Getter";
MediaKeyError get errorCode native "MediaKeyEvent_errorCode_Getter";
Uint8Array get initData native "MediaKeyEvent_initData_Getter";
String get keySystem native "MediaKeyEvent_keySystem_Getter";
Uint8Array get message native "MediaKeyEvent_message_Getter";
String get sessionId native "MediaKeyEvent_sessionId_Getter";
int get systemCode native "MediaKeyEvent_systemCode_Getter";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName MediaList
abstract class MediaList {
/** @domName MediaList.length */
int get length;
/** @domName MediaList.mediaText */
String mediaText;
/** @domName MediaList.appendMedium */
void appendMedium(String newMedium);
/** @domName MediaList.deleteMedium */
void deleteMedium(String oldMedium);
/** @domName MediaList.item */
String item(int index);
}
// 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.
// WARNING: Do not edit - generated code.
class _MediaListImpl extends NativeFieldWrapperClass1 implements MediaList {
int get length native "MediaList_length_Getter";
String get mediaText native "MediaList_mediaText_Getter";
void set mediaText(String value) native "MediaList_mediaText_Setter";
void appendMedium(String newMedium) native "MediaList_appendMedium_Callback";
void deleteMedium(String oldMedium) native "MediaList_deleteMedium_Callback";
String item(int index) native "MediaList_item_Callback";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName MediaQueryList
abstract class MediaQueryList {
/** @domName MediaQueryList.matches */
bool get matches;
/** @domName MediaQueryList.media */
String get media;
/** @domName MediaQueryList.addListener */
void addListener(MediaQueryListListener listener);
/** @domName MediaQueryList.removeListener */
void removeListener(MediaQueryListListener listener);
}
// 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.
// WARNING: Do not edit - generated code.
class _MediaQueryListImpl extends NativeFieldWrapperClass1 implements MediaQueryList {
bool get matches native "MediaQueryList_matches_Getter";
String get media native "MediaQueryList_media_Getter";
void addListener(MediaQueryListListener listener) native "MediaQueryList_addListener_Callback";
void removeListener(MediaQueryListListener listener) native "MediaQueryList_removeListener_Callback";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName MediaQueryListListener
abstract class MediaQueryListListener {
/** @domName MediaQueryListListener.queryChanged */
void queryChanged(MediaQueryList list);
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName MediaSource
abstract class MediaSource implements EventTarget {
factory MediaSource() => _MediaSourceFactoryProvider.createMediaSource();
/** @domName MediaSource.activeSourceBuffers */
SourceBufferList get activeSourceBuffers;
/** @domName MediaSource.duration */
num duration;
/** @domName MediaSource.readyState */
String get readyState;
/** @domName MediaSource.sourceBuffers */
SourceBufferList get sourceBuffers;
/** @domName MediaSource.addEventListener */
void $dom_addEventListener(String type, EventListener listener, [bool useCapture]);
/** @domName MediaSource.addSourceBuffer */
SourceBuffer addSourceBuffer(String type);
/** @domName MediaSource.dispatchEvent */
bool $dom_dispatchEvent(Event event);
/** @domName MediaSource.endOfStream */
void endOfStream(String error);
/** @domName MediaSource.removeEventListener */
void $dom_removeEventListener(String type, EventListener listener, [bool useCapture]);
/** @domName MediaSource.removeSourceBuffer */
void removeSourceBuffer(SourceBuffer buffer);
}
// 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.
// WARNING: Do not edit - generated code.
class _MediaSourceImpl extends _EventTargetImpl implements MediaSource {
SourceBufferList get activeSourceBuffers native "MediaSource_activeSourceBuffers_Getter";
num get duration native "MediaSource_duration_Getter";
void set duration(num value) native "MediaSource_duration_Setter";
String get readyState native "MediaSource_readyState_Getter";
SourceBufferList get sourceBuffers native "MediaSource_sourceBuffers_Getter";
void $dom_addEventListener(String type, EventListener listener, [bool useCapture]) native "MediaSource_addEventListener_Callback";
SourceBuffer addSourceBuffer(String type) native "MediaSource_addSourceBuffer_Callback";
bool $dom_dispatchEvent(Event event) native "MediaSource_dispatchEvent_Callback";
void endOfStream(String error) native "MediaSource_endOfStream_Callback";
void $dom_removeEventListener(String type, EventListener listener, [bool useCapture]) native "MediaSource_removeEventListener_Callback";
void removeSourceBuffer(SourceBuffer buffer) native "MediaSource_removeSourceBuffer_Callback";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName MediaStream
abstract class MediaStream implements EventTarget {
factory MediaStream(MediaStreamTrackList audioTracks, MediaStreamTrackList videoTracks) => _MediaStreamFactoryProvider.createMediaStream(audioTracks, videoTracks);
/**
* @domName EventTarget.addEventListener, EventTarget.removeEventListener, EventTarget.dispatchEvent
*/
MediaStreamEvents get on;
static const int ENDED = 2;
static const int LIVE = 1;
/** @domName MediaStream.audioTracks */
MediaStreamTrackList get audioTracks;
/** @domName MediaStream.label */
String get label;
/** @domName MediaStream.readyState */
int get readyState;
/** @domName MediaStream.videoTracks */
MediaStreamTrackList get videoTracks;
/** @domName MediaStream.addEventListener */
void $dom_addEventListener(String type, EventListener listener, [bool useCapture]);
/** @domName MediaStream.dispatchEvent */
bool $dom_dispatchEvent(Event event);
/** @domName MediaStream.removeEventListener */
void $dom_removeEventListener(String type, EventListener listener, [bool useCapture]);
}
abstract class MediaStreamEvents implements Events {
EventListenerList get ended;
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName MediaStreamAudioSourceNode
abstract class MediaStreamAudioSourceNode implements AudioSourceNode {
/** @domName MediaStreamAudioSourceNode.mediaStream */
MediaStream get mediaStream;
}
// 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.
// WARNING: Do not edit - generated code.
class _MediaStreamAudioSourceNodeImpl extends _AudioSourceNodeImpl implements MediaStreamAudioSourceNode {
MediaStream get mediaStream native "MediaStreamAudioSourceNode_mediaStream_Getter";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName MediaStreamEvent
abstract class MediaStreamEvent implements Event {
/** @domName MediaStreamEvent.stream */
MediaStream get stream;
}
// 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.
// WARNING: Do not edit - generated code.
class _MediaStreamEventImpl extends _EventImpl implements MediaStreamEvent {
MediaStream get stream native "MediaStreamEvent_stream_Getter";
}
// 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.
// WARNING: Do not edit - generated code.
class _MediaStreamImpl extends _EventTargetImpl implements MediaStream {
_MediaStreamEventsImpl get on =>
new _MediaStreamEventsImpl(this);
MediaStreamTrackList get audioTracks native "MediaStream_audioTracks_Getter";
String get label native "MediaStream_label_Getter";
int get readyState native "MediaStream_readyState_Getter";
MediaStreamTrackList get videoTracks native "MediaStream_videoTracks_Getter";
void $dom_addEventListener(String type, EventListener listener, [bool useCapture]) native "MediaStream_addEventListener_Callback";
bool $dom_dispatchEvent(Event event) native "MediaStream_dispatchEvent_Callback";
void $dom_removeEventListener(String type, EventListener listener, [bool useCapture]) native "MediaStream_removeEventListener_Callback";
}
class _MediaStreamEventsImpl extends _EventsImpl implements MediaStreamEvents {
_MediaStreamEventsImpl(_ptr) : super(_ptr);
EventListenerList get ended => this['ended'];
}
// 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.
// WARNING: Do not edit - generated code.
class _MediaStreamListImpl extends NativeFieldWrapperClass1 implements List<MediaStream> {
int get length native "MediaStreamList_length_Getter";
MediaStream operator[](int index) native "MediaStreamList_item_Callback";
void operator[]=(int index, MediaStream value) {
throw new UnsupportedError("Cannot assign element of immutable List.");
}
// -- start List<MediaStream> mixins.
// MediaStream is the element type.
// From Iterable<MediaStream>:
Iterator<MediaStream> 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<MediaStream>(this);
}
// From Collection<MediaStream>:
void add(MediaStream value) {
throw new UnsupportedError("Cannot add to immutable List.");
}
void addLast(MediaStream value) {
throw new UnsupportedError("Cannot add to immutable List.");
}
void addAll(Collection<MediaStream> collection) {
throw new UnsupportedError("Cannot add to immutable List.");
}
bool contains(MediaStream element) => _Collections.contains(this, element);
void forEach(void f(MediaStream element)) => _Collections.forEach(this, f);
Collection map(f(MediaStream element)) => _Collections.map(this, [], f);
Collection<MediaStream> filter(bool f(MediaStream element)) =>
_Collections.filter(this, <MediaStream>[], f);
bool every(bool f(MediaStream element)) => _Collections.every(this, f);
bool some(bool f(MediaStream element)) => _Collections.some(this, f);
bool get isEmpty => this.length == 0;
// From List<MediaStream>:
void sort([Comparator<MediaStream> compare = Comparable.compare]) {
throw new UnsupportedError("Cannot sort immutable List.");
}
int indexOf(MediaStream element, [int start = 0]) =>
_Lists.indexOf(this, element, start, this.length);
int lastIndexOf(MediaStream element, [int start]) {
if (start == null) start = length - 1;
return _Lists.lastIndexOf(this, element, start);
}
MediaStream get last => this[length - 1];
MediaStream removeLast() {
throw new UnsupportedError("Cannot removeLast on immutable List.");
}
void setRange(int start, int rangeLength, List<MediaStream> from, [int startFrom]) {
throw new UnsupportedError("Cannot setRange on immutable List.");
}
void removeRange(int start, int rangeLength) {
throw new UnsupportedError("Cannot removeRange on immutable List.");
}
void insertRange(int start, int rangeLength, [MediaStream initialValue]) {
throw new UnsupportedError("Cannot insertRange on immutable List.");
}
List<MediaStream> getRange(int start, int rangeLength) =>
_Lists.getRange(this, start, rangeLength, <MediaStream>[]);
// -- end List<MediaStream> mixins.
MediaStream item(int index) native "MediaStreamList_item_Callback";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName MediaStreamTrack
abstract class MediaStreamTrack implements EventTarget {
/**
* @domName EventTarget.addEventListener, EventTarget.removeEventListener, EventTarget.dispatchEvent
*/
MediaStreamTrackEvents get on;
static const int ENDED = 2;
static const int LIVE = 0;
static const int MUTED = 1;
/** @domName MediaStreamTrack.enabled */
bool enabled;
/** @domName MediaStreamTrack.kind */
String get kind;
/** @domName MediaStreamTrack.label */
String get label;
/** @domName MediaStreamTrack.readyState */
int get readyState;
/** @domName MediaStreamTrack.addEventListener */
void $dom_addEventListener(String type, EventListener listener, [bool useCapture]);
/** @domName MediaStreamTrack.dispatchEvent */
bool $dom_dispatchEvent(Event event);
/** @domName MediaStreamTrack.removeEventListener */
void $dom_removeEventListener(String type, EventListener listener, [bool useCapture]);
}
abstract class MediaStreamTrackEvents implements Events {
EventListenerList get ended;
EventListenerList get mute;
EventListenerList get unmute;
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName MediaStreamTrackEvent
abstract class MediaStreamTrackEvent implements Event {
/** @domName MediaStreamTrackEvent.track */
MediaStreamTrack get track;
}
// 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.
// WARNING: Do not edit - generated code.
class _MediaStreamTrackEventImpl extends _EventImpl implements MediaStreamTrackEvent {
MediaStreamTrack get track native "MediaStreamTrackEvent_track_Getter";
}
// 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.
// WARNING: Do not edit - generated code.
class _MediaStreamTrackImpl extends _EventTargetImpl implements MediaStreamTrack {
_MediaStreamTrackEventsImpl get on =>
new _MediaStreamTrackEventsImpl(this);
bool get enabled native "MediaStreamTrack_enabled_Getter";
void set enabled(bool value) native "MediaStreamTrack_enabled_Setter";
String get kind native "MediaStreamTrack_kind_Getter";
String get label native "MediaStreamTrack_label_Getter";
int get readyState native "MediaStreamTrack_readyState_Getter";
void $dom_addEventListener(String type, EventListener listener, [bool useCapture]) native "MediaStreamTrack_addEventListener_Callback";
bool $dom_dispatchEvent(Event event) native "MediaStreamTrack_dispatchEvent_Callback";
void $dom_removeEventListener(String type, EventListener listener, [bool useCapture]) native "MediaStreamTrack_removeEventListener_Callback";
}
class _MediaStreamTrackEventsImpl extends _EventsImpl implements MediaStreamTrackEvents {
_MediaStreamTrackEventsImpl(_ptr) : super(_ptr);
EventListenerList get ended => this['ended'];
EventListenerList get mute => this['mute'];
EventListenerList get unmute => this['unmute'];
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName MediaStreamTrackList
abstract class MediaStreamTrackList implements EventTarget {
/**
* @domName EventTarget.addEventListener, EventTarget.removeEventListener, EventTarget.dispatchEvent
*/
MediaStreamTrackListEvents get on;
/** @domName MediaStreamTrackList.length */
int get length;
/** @domName MediaStreamTrackList.add */
void add(MediaStreamTrack track);
/** @domName MediaStreamTrackList.addEventListener */
void $dom_addEventListener(String type, EventListener listener, [bool useCapture]);
/** @domName MediaStreamTrackList.dispatchEvent */
bool $dom_dispatchEvent(Event event);
/** @domName MediaStreamTrackList.item */
MediaStreamTrack item(int index);
/** @domName MediaStreamTrackList.remove */
void remove(MediaStreamTrack track);
/** @domName MediaStreamTrackList.removeEventListener */
void $dom_removeEventListener(String type, EventListener listener, [bool useCapture]);
}
abstract class MediaStreamTrackListEvents implements Events {
EventListenerList get addTrack;
EventListenerList get removeTrack;
}
// 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.
// WARNING: Do not edit - generated code.
class _MediaStreamTrackListImpl extends _EventTargetImpl implements MediaStreamTrackList {
_MediaStreamTrackListEventsImpl get on =>
new _MediaStreamTrackListEventsImpl(this);
int get length native "MediaStreamTrackList_length_Getter";
void add(MediaStreamTrack track) native "MediaStreamTrackList_add_Callback";
void $dom_addEventListener(String type, EventListener listener, [bool useCapture]) native "MediaStreamTrackList_addEventListener_Callback";
bool $dom_dispatchEvent(Event event) native "MediaStreamTrackList_dispatchEvent_Callback";
MediaStreamTrack item(int index) native "MediaStreamTrackList_item_Callback";
void remove(MediaStreamTrack track) native "MediaStreamTrackList_remove_Callback";
void $dom_removeEventListener(String type, EventListener listener, [bool useCapture]) native "MediaStreamTrackList_removeEventListener_Callback";
}
class _MediaStreamTrackListEventsImpl extends _EventsImpl implements MediaStreamTrackListEvents {
_MediaStreamTrackListEventsImpl(_ptr) : super(_ptr);
EventListenerList get addTrack => this['addtrack'];
EventListenerList get removeTrack => this['removetrack'];
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName MemoryInfo
abstract class MemoryInfo {
/** @domName MemoryInfo.jsHeapSizeLimit */
int get jsHeapSizeLimit;
/** @domName MemoryInfo.totalJSHeapSize */
int get totalJSHeapSize;
/** @domName MemoryInfo.usedJSHeapSize */
int get usedJSHeapSize;
}
// 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.
// WARNING: Do not edit - generated code.
class _MemoryInfoImpl extends NativeFieldWrapperClass1 implements MemoryInfo {
int get jsHeapSizeLimit native "MemoryInfo_jsHeapSizeLimit_Getter";
int get totalJSHeapSize native "MemoryInfo_totalJSHeapSize_Getter";
int get usedJSHeapSize native "MemoryInfo_usedJSHeapSize_Getter";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName HTMLMenuElement
abstract class MenuElement implements Element {
factory MenuElement() => _Elements.createMenuElement();
/** @domName HTMLMenuElement.compact */
bool compact;
}
// 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.
// WARNING: Do not edit - generated code.
class _MenuElementImpl extends _ElementImpl_Merged implements MenuElement {
bool get compact native "HTMLMenuElement_compact_Getter";
void set compact(bool value) native "HTMLMenuElement_compact_Setter";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName MessageChannel
abstract class MessageChannel {
factory MessageChannel() => _MessageChannelFactoryProvider.createMessageChannel();
/** @domName MessageChannel.port1 */
MessagePort get port1;
/** @domName MessageChannel.port2 */
MessagePort get port2;
}
// 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.
// WARNING: Do not edit - generated code.
class _MessageChannelImpl extends NativeFieldWrapperClass1 implements MessageChannel {
MessagePort get port1 native "MessageChannel_port1_Getter";
MessagePort get port2 native "MessageChannel_port2_Getter";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName MessageEvent
abstract class MessageEvent implements Event {
/** @domName MessageEvent.data */
Object get data;
/** @domName MessageEvent.lastEventId */
String get lastEventId;
/** @domName MessageEvent.origin */
String get origin;
/** @domName MessageEvent.ports */
List get ports;
/** @domName MessageEvent.source */
Window get source;
/** @domName MessageEvent.initMessageEvent */
void initMessageEvent(String typeArg, bool canBubbleArg, bool cancelableArg, Object dataArg, String originArg, String lastEventIdArg, LocalWindow sourceArg, List messagePorts);
/** @domName MessageEvent.webkitInitMessageEvent */
void webkitInitMessageEvent(String typeArg, bool canBubbleArg, bool cancelableArg, Object dataArg, String originArg, String lastEventIdArg, LocalWindow sourceArg, List transferables);
}
// 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.
// WARNING: Do not edit - generated code.
class _MessageEventImpl extends _EventImpl implements MessageEvent {
Object get data native "MessageEvent_data_Getter";
String get lastEventId native "MessageEvent_lastEventId_Getter";
String get origin native "MessageEvent_origin_Getter";
List get ports native "MessageEvent_ports_Getter";
Window get source native "MessageEvent_source_Getter";
void initMessageEvent(String typeArg, bool canBubbleArg, bool cancelableArg, Object dataArg, String originArg, String lastEventIdArg, LocalWindow sourceArg, List messagePorts) native "MessageEvent_initMessageEvent_Callback";
void webkitInitMessageEvent(String typeArg, bool canBubbleArg, bool cancelableArg, Object dataArg, String originArg, String lastEventIdArg, LocalWindow sourceArg, List transferables) native "MessageEvent_webkitInitMessageEvent_Callback";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName MessagePort
abstract class MessagePort implements EventTarget {
/**
* @domName EventTarget.addEventListener, EventTarget.removeEventListener, EventTarget.dispatchEvent
*/
MessagePortEvents get on;
/** @domName MessagePort.addEventListener */
void $dom_addEventListener(String type, EventListener listener, [bool useCapture]);
/** @domName MessagePort.close */
void close();
/** @domName MessagePort.dispatchEvent */
bool $dom_dispatchEvent(Event evt);
/** @domName MessagePort.postMessage */
void postMessage(Object message, [List messagePorts]);
/** @domName MessagePort.removeEventListener */
void $dom_removeEventListener(String type, EventListener listener, [bool useCapture]);
/** @domName MessagePort.start */
void start();
}
abstract class MessagePortEvents implements Events {
EventListenerList get message;
}
// 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.
// WARNING: Do not edit - generated code.
class _MessagePortImpl extends _EventTargetImpl implements MessagePort {
_MessagePortEventsImpl get on =>
new _MessagePortEventsImpl(this);
void $dom_addEventListener(String type, EventListener listener, [bool useCapture]) native "MessagePort_addEventListener_Callback";
void close() native "MessagePort_close_Callback";
bool $dom_dispatchEvent(Event evt) native "MessagePort_dispatchEvent_Callback";
void postMessage(Object message, [List messagePorts]) native "MessagePort_postMessage_Callback";
void $dom_removeEventListener(String type, EventListener listener, [bool useCapture]) native "MessagePort_removeEventListener_Callback";
void start() native "MessagePort_start_Callback";
}
class _MessagePortEventsImpl extends _EventsImpl implements MessagePortEvents {
_MessagePortEventsImpl(_ptr) : super(_ptr);
EventListenerList get message => this['message'];
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName HTMLMetaElement
abstract class MetaElement implements Element {
/** @domName HTMLMetaElement.content */
String content;
/** @domName HTMLMetaElement.httpEquiv */
String httpEquiv;
/** @domName HTMLMetaElement.name */
String name;
/** @domName HTMLMetaElement.scheme */
String scheme;
}
// 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.
// WARNING: Do not edit - generated code.
class _MetaElementImpl extends _ElementImpl_Merged implements MetaElement {
String get content native "HTMLMetaElement_content_Getter";
void set content(String value) native "HTMLMetaElement_content_Setter";
String get httpEquiv native "HTMLMetaElement_httpEquiv_Getter";
void set httpEquiv(String value) native "HTMLMetaElement_httpEquiv_Setter";
String get name native "HTMLMetaElement_name_Getter";
void set name(String value) native "HTMLMetaElement_name_Setter";
String get scheme native "HTMLMetaElement_scheme_Getter";
void set scheme(String value) native "HTMLMetaElement_scheme_Setter";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName Metadata
abstract class Metadata {
/** @domName Metadata.modificationTime */
Date get modificationTime;
/** @domName Metadata.size */
int get size;
}
// 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.
// WARNING: Do not edit - generated code.
typedef void MetadataCallback(Metadata metadata);
// 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.
// WARNING: Do not edit - generated code.
class _MetadataImpl extends NativeFieldWrapperClass1 implements Metadata {
Date get modificationTime native "Metadata_modificationTime_Getter";
int get size native "Metadata_size_Getter";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName HTMLMeterElement
abstract class MeterElement implements Element {
factory MeterElement() => _Elements.createMeterElement();
/** @domName HTMLMeterElement.high */
num high;
/** @domName HTMLMeterElement.labels */
List<Node> get labels;
/** @domName HTMLMeterElement.low */
num low;
/** @domName HTMLMeterElement.max */
num max;
/** @domName HTMLMeterElement.min */
num min;
/** @domName HTMLMeterElement.optimum */
num optimum;
/** @domName HTMLMeterElement.value */
num value;
}
// 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.
// WARNING: Do not edit - generated code.
class _MeterElementImpl extends _ElementImpl_Merged implements MeterElement {
num get high native "HTMLMeterElement_high_Getter";
void set high(num value) native "HTMLMeterElement_high_Setter";
List<Node> get labels native "HTMLMeterElement_labels_Getter";
num get low native "HTMLMeterElement_low_Getter";
void set low(num value) native "HTMLMeterElement_low_Setter";
num get max native "HTMLMeterElement_max_Getter";
void set max(num value) native "HTMLMeterElement_max_Setter";
num get min native "HTMLMeterElement_min_Getter";
void set min(num value) native "HTMLMeterElement_min_Setter";
num get optimum native "HTMLMeterElement_optimum_Getter";
void set optimum(num value) native "HTMLMeterElement_optimum_Setter";
num get value native "HTMLMeterElement_value_Getter";
void set value(num value) native "HTMLMeterElement_value_Setter";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName HTMLModElement
abstract class ModElement implements Element {
/** @domName HTMLModElement.cite */
String cite;
/** @domName HTMLModElement.dateTime */
String dateTime;
}
// 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.
// WARNING: Do not edit - generated code.
class _ModElementImpl extends _ElementImpl_Merged implements ModElement {
String get cite native "HTMLModElement_cite_Getter";
void set cite(String value) native "HTMLModElement_cite_Setter";
String get dateTime native "HTMLModElement_dateTime_Getter";
void set dateTime(String value) native "HTMLModElement_dateTime_Setter";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName MouseEvent
abstract class MouseEvent implements UIEvent {
factory MouseEvent(String type, Window view, int detail, int screenX, int screenY,
int clientX, int clientY, int button, [bool canBubble = true,
bool cancelable = true, bool ctrlKey = false, bool altKey = false,
bool shiftKey = false, bool metaKey = false,
EventTarget relatedTarget = null]) =>
_MouseEventFactoryProvider.createMouseEvent(
type, view, detail, screenX, screenY,
clientX, clientY, button, canBubble, cancelable,
ctrlKey, altKey, shiftKey, metaKey,
relatedTarget);
/** @domName MouseEvent.altKey */
bool get altKey;
/** @domName MouseEvent.button */
int get button;
/** @domName MouseEvent.clientX */
int get clientX;
/** @domName MouseEvent.clientY */
int get clientY;
/** @domName MouseEvent.ctrlKey */
bool get ctrlKey;
/** @domName MouseEvent.dataTransfer */
Clipboard get dataTransfer;
/** @domName MouseEvent.fromElement */
Node get fromElement;
/** @domName MouseEvent.metaKey */
bool get metaKey;
/** @domName MouseEvent.offsetX */
int get offsetX;
/** @domName MouseEvent.offsetY */
int get offsetY;
/** @domName MouseEvent.relatedTarget */
EventTarget get relatedTarget;
/** @domName MouseEvent.screenX */
int get screenX;
/** @domName MouseEvent.screenY */
int get screenY;
/** @domName MouseEvent.shiftKey */
bool get shiftKey;
/** @domName MouseEvent.toElement */
Node get toElement;
/** @domName MouseEvent.webkitMovementX */
int get webkitMovementX;
/** @domName MouseEvent.webkitMovementY */
int get webkitMovementY;
/** @domName MouseEvent.x */
int get x;
/** @domName MouseEvent.y */
int get y;
/** @domName MouseEvent.initMouseEvent */
void $dom_initMouseEvent(String type, bool canBubble, bool cancelable, LocalWindow view, int detail, int screenX, int screenY, int clientX, int clientY, bool ctrlKey, bool altKey, bool shiftKey, bool metaKey, int button, EventTarget relatedTarget);
}
// 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.
// WARNING: Do not edit - generated code.
class _MouseEventImpl extends _UIEventImpl implements MouseEvent {
bool get altKey native "MouseEvent_altKey_Getter";
int get button native "MouseEvent_button_Getter";
int get clientX native "MouseEvent_clientX_Getter";
int get clientY native "MouseEvent_clientY_Getter";
bool get ctrlKey native "MouseEvent_ctrlKey_Getter";
Clipboard get dataTransfer native "MouseEvent_dataTransfer_Getter";
Node get fromElement native "MouseEvent_fromElement_Getter";
bool get metaKey native "MouseEvent_metaKey_Getter";
int get offsetX native "MouseEvent_offsetX_Getter";
int get offsetY native "MouseEvent_offsetY_Getter";
EventTarget get relatedTarget native "MouseEvent_relatedTarget_Getter";
int get screenX native "MouseEvent_screenX_Getter";
int get screenY native "MouseEvent_screenY_Getter";
bool get shiftKey native "MouseEvent_shiftKey_Getter";
Node get toElement native "MouseEvent_toElement_Getter";
int get webkitMovementX native "MouseEvent_webkitMovementX_Getter";
int get webkitMovementY native "MouseEvent_webkitMovementY_Getter";
int get x native "MouseEvent_x_Getter";
int get y native "MouseEvent_y_Getter";
void $dom_initMouseEvent(String type, bool canBubble, bool cancelable, LocalWindow view, int detail, int screenX, int screenY, int clientX, int clientY, bool ctrlKey, bool altKey, bool shiftKey, bool metaKey, int button, EventTarget relatedTarget) native "MouseEvent_initMouseEvent_Callback";
}
// 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.
// WARNING: Do not edit - generated code.
typedef void MutationCallback(List<MutationRecord> mutations, MutationObserver observer);
// 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.
// WARNING: Do not edit - generated code.
/// @domName MutationEvent
abstract class MutationEvent implements Event {
static const int ADDITION = 2;
static const int MODIFICATION = 1;
static const int REMOVAL = 3;
/** @domName MutationEvent.attrChange */
int get attrChange;
/** @domName MutationEvent.attrName */
String get attrName;
/** @domName MutationEvent.newValue */
String get newValue;
/** @domName MutationEvent.prevValue */
String get prevValue;
/** @domName MutationEvent.relatedNode */
Node get relatedNode;
/** @domName MutationEvent.initMutationEvent */
void initMutationEvent(String type, bool canBubble, bool cancelable, Node relatedNode, String prevValue, String newValue, String attrName, int attrChange);
}
// 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.
// WARNING: Do not edit - generated code.
class _MutationEventImpl extends _EventImpl implements MutationEvent {
int get attrChange native "MutationEvent_attrChange_Getter";
String get attrName native "MutationEvent_attrName_Getter";
String get newValue native "MutationEvent_newValue_Getter";
String get prevValue native "MutationEvent_prevValue_Getter";
Node get relatedNode native "MutationEvent_relatedNode_Getter";
void initMutationEvent(String type, bool canBubble, bool cancelable, Node relatedNode, String prevValue, String newValue, String attrName, int attrChange) native "MutationEvent_initMutationEvent_Callback";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName MutationObserver
abstract class MutationObserver {
factory MutationObserver(MutationCallback callback) => _MutationObserverFactoryProvider.createMutationObserver(callback);
/** @domName MutationObserver.disconnect */
void disconnect();
/** @domName MutationObserver.takeRecords */
List<MutationRecord> takeRecords();
void observe(Node target,
{Map options,
bool childList,
bool attributes,
bool characterData,
bool subtree,
bool attributeOldValue,
bool characterDataOldValue,
List<String> attributeFilter});
}
// 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 _MutationObserverImpl extends NativeFieldWrapperClass1 implements MutationObserver {
void disconnect() native "MutationObserver_disconnect_Callback";
void _observe(Node target, Map options) native "MutationObserver__observe_Callback";
List<MutationRecord> takeRecords() native "MutationObserver_takeRecords_Callback";
void observe(Node target,
{Map options,
bool childList,
bool attributes,
bool characterData,
bool subtree,
bool attributeOldValue,
bool characterDataOldValue,
List<String> attributeFilter}) {
// Parse options into map of known type.
var parsedOptions = _createDict();
if (options != null) {
options.forEach((k, v) {
if (_boolKeys.containsKey(k)) {
_add(parsedOptions, k, true == v);
} else if (k == 'attributeFilter') {
_add(parsedOptions, k, _fixupList(v));
} else {
throw new ArgumentError(
"Illegal MutationObserver.observe option '$k'");
}
});
}
// Override options passed in the map with named optional arguments.
override(key, value) {
if (value != null) _add(parsedOptions, key, value);
}
override('childList', childList);
override('attributes', attributes);
override('characterData', characterData);
override('subtree', subtree);
override('attributeOldValue', attributeOldValue);
override('characterDataOldValue', characterDataOldValue);
if (attributeFilter != null) {
override('attributeFilter', _fixupList(attributeFilter));
}
_call(target, parsedOptions);
}
// TODO: Change to a set when const Sets are available.
static final _boolKeys =
const {'childList': true,
'attributes': true,
'characterData': true,
'subtree': true,
'attributeOldValue': true,
'characterDataOldValue': true };
static _createDict() => {};
static _add(m, String key, value) { m[key] = value; }
static _fixupList(list) => list;
_call(Node target, options) {
_observe(target, options);
}
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName MutationRecord
abstract class MutationRecord {
/** @domName MutationRecord.addedNodes */
List<Node> get addedNodes;
/** @domName MutationRecord.attributeName */
String get attributeName;
/** @domName MutationRecord.attributeNamespace */
String get attributeNamespace;
/** @domName MutationRecord.nextSibling */
Node get nextSibling;
/** @domName MutationRecord.oldValue */
String get oldValue;
/** @domName MutationRecord.previousSibling */
Node get previousSibling;
/** @domName MutationRecord.removedNodes */
List<Node> get removedNodes;
/** @domName MutationRecord.target */
Node get target;
/** @domName MutationRecord.type */
String get type;
}
// 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.
// WARNING: Do not edit - generated code.
class _MutationRecordImpl extends NativeFieldWrapperClass1 implements MutationRecord {
List<Node> get addedNodes native "MutationRecord_addedNodes_Getter";
String get attributeName native "MutationRecord_attributeName_Getter";
String get attributeNamespace native "MutationRecord_attributeNamespace_Getter";
Node get nextSibling native "MutationRecord_nextSibling_Getter";
String get oldValue native "MutationRecord_oldValue_Getter";
Node get previousSibling native "MutationRecord_previousSibling_Getter";
List<Node> get removedNodes native "MutationRecord_removedNodes_Getter";
Node get target native "MutationRecord_target_Getter";
String get type native "MutationRecord_type_Getter";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName NamedNodeMap
abstract class NamedNodeMap implements List<Node> {
/** @domName NamedNodeMap.length */
int get length;
/** @domName NamedNodeMap.getNamedItem */
Node getNamedItem(String name);
/** @domName NamedNodeMap.getNamedItemNS */
Node getNamedItemNS(String namespaceURI, String localName);
/** @domName NamedNodeMap.item */
Node item(int index);
/** @domName NamedNodeMap.removeNamedItem */
Node removeNamedItem(String name);
/** @domName NamedNodeMap.removeNamedItemNS */
Node removeNamedItemNS(String namespaceURI, String localName);
/** @domName NamedNodeMap.setNamedItem */
Node setNamedItem(Node node);
/** @domName NamedNodeMap.setNamedItemNS */
Node setNamedItemNS(Node node);
}
// 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.
// WARNING: Do not edit - generated code.
class _NamedNodeMapImpl extends NativeFieldWrapperClass1 implements NamedNodeMap {
int get length native "NamedNodeMap_length_Getter";
Node operator[](int index) native "NamedNodeMap_item_Callback";
void operator[]=(int index, Node value) {
throw new UnsupportedError("Cannot assign element of immutable List.");
}
// -- start List<Node> mixins.
// Node is the element type.
// From Iterable<Node>:
Iterator<Node> 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<Node>(this);
}
// From Collection<Node>:
void add(Node value) {
throw new UnsupportedError("Cannot add to immutable List.");
}
void addLast(Node value) {
throw new UnsupportedError("Cannot add to immutable List.");
}
void addAll(Collection<Node> collection) {
throw new UnsupportedError("Cannot add to immutable List.");
}
bool contains(Node element) => _Collections.contains(this, element);
void forEach(void f(Node element)) => _Collections.forEach(this, f);
Collection map(f(Node element)) => _Collections.map(this, [], f);
Collection<Node> filter(bool f(Node element)) =>
_Collections.filter(this, <Node>[], f);
bool every(bool f(Node element)) => _Collections.every(this, f);
bool some(bool f(Node element)) => _Collections.some(this, f);
bool get isEmpty => this.length == 0;
// From List<Node>:
void sort([Comparator<Node> compare = Comparable.compare]) {
throw new UnsupportedError("Cannot sort immutable List.");
}
int indexOf(Node element, [int start = 0]) =>
_Lists.indexOf(this, element, start, this.length);
int lastIndexOf(Node element, [int start]) {
if (start == null) start = length - 1;
return _Lists.lastIndexOf(this, element, start);
}
Node get last => this[length - 1];
Node removeLast() {
throw new UnsupportedError("Cannot removeLast on immutable List.");
}
void setRange(int start, int rangeLength, List<Node> from, [int startFrom]) {
throw new UnsupportedError("Cannot setRange on immutable List.");
}
void removeRange(int start, int rangeLength) {
throw new UnsupportedError("Cannot removeRange on immutable List.");
}
void insertRange(int start, int rangeLength, [Node initialValue]) {
throw new UnsupportedError("Cannot insertRange on immutable List.");
}
List<Node> getRange(int start, int rangeLength) =>
_Lists.getRange(this, start, rangeLength, <Node>[]);
// -- end List<Node> mixins.
Node getNamedItem(String name) native "NamedNodeMap_getNamedItem_Callback";
Node getNamedItemNS(String namespaceURI, String localName) native "NamedNodeMap_getNamedItemNS_Callback";
Node item(int index) native "NamedNodeMap_item_Callback";
Node removeNamedItem(String name) native "NamedNodeMap_removeNamedItem_Callback";
Node removeNamedItemNS(String namespaceURI, String localName) native "NamedNodeMap_removeNamedItemNS_Callback";
Node setNamedItem(Node node) native "NamedNodeMap_setNamedItem_Callback";
Node setNamedItemNS(Node node) native "NamedNodeMap_setNamedItemNS_Callback";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName Navigator
abstract class Navigator {
/** @domName Navigator.appCodeName */
String get appCodeName;
/** @domName Navigator.appName */
String get appName;
/** @domName Navigator.appVersion */
String get appVersion;
/** @domName Navigator.cookieEnabled */
bool get cookieEnabled;
/** @domName Navigator.geolocation */
Geolocation get geolocation;
/** @domName Navigator.language */
String get language;
/** @domName Navigator.mimeTypes */
DOMMimeTypeArray get mimeTypes;
/** @domName Navigator.onLine */
bool get onLine;
/** @domName Navigator.platform */
String get platform;
/** @domName Navigator.plugins */
DOMPluginArray get plugins;
/** @domName Navigator.product */
String get product;
/** @domName Navigator.productSub */
String get productSub;
/** @domName Navigator.userAgent */
String get userAgent;
/** @domName Navigator.vendor */
String get vendor;
/** @domName Navigator.vendorSub */
String get vendorSub;
/** @domName Navigator.webkitBattery */
BatteryManager get webkitBattery;
/** @domName Navigator.getStorageUpdates */
void getStorageUpdates();
/** @domName Navigator.javaEnabled */
bool javaEnabled();
/** @domName Navigator.webkitGetGamepads */
List<Gamepad> webkitGetGamepads();
/** @domName Navigator.webkitGetUserMedia */
void webkitGetUserMedia(Map options, NavigatorUserMediaSuccessCallback successCallback, [NavigatorUserMediaErrorCallback errorCallback]);
}
// 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.
// WARNING: Do not edit - generated code.
class _NavigatorImpl extends NativeFieldWrapperClass1 implements Navigator {
String get appCodeName native "Navigator_appCodeName_Getter";
String get appName native "Navigator_appName_Getter";
String get appVersion native "Navigator_appVersion_Getter";
bool get cookieEnabled native "Navigator_cookieEnabled_Getter";
Geolocation get geolocation native "Navigator_geolocation_Getter";
String get language native "Navigator_language_Getter";
DOMMimeTypeArray get mimeTypes native "Navigator_mimeTypes_Getter";
bool get onLine native "Navigator_onLine_Getter";
String get platform native "Navigator_platform_Getter";
DOMPluginArray get plugins native "Navigator_plugins_Getter";
String get product native "Navigator_product_Getter";
String get productSub native "Navigator_productSub_Getter";
String get userAgent native "Navigator_userAgent_Getter";
String get vendor native "Navigator_vendor_Getter";
String get vendorSub native "Navigator_vendorSub_Getter";
BatteryManager get webkitBattery native "Navigator_webkitBattery_Getter";
void getStorageUpdates() native "Navigator_getStorageUpdates_Callback";
bool javaEnabled() native "Navigator_javaEnabled_Callback";
List<Gamepad> webkitGetGamepads() native "Navigator_webkitGetGamepads_Callback";
void webkitGetUserMedia(Map options, NavigatorUserMediaSuccessCallback successCallback, [NavigatorUserMediaErrorCallback errorCallback]) native "Navigator_webkitGetUserMedia_Callback";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName NavigatorUserMediaError
abstract class NavigatorUserMediaError {
static const int PERMISSION_DENIED = 1;
/** @domName NavigatorUserMediaError.code */
int get code;
}
// 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.
// WARNING: Do not edit - generated code.
typedef void NavigatorUserMediaErrorCallback(NavigatorUserMediaError error);
// 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.
// WARNING: Do not edit - generated code.
class _NavigatorUserMediaErrorImpl extends NativeFieldWrapperClass1 implements NavigatorUserMediaError {
int get code native "NavigatorUserMediaError_code_Getter";
}
// 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.
// WARNING: Do not edit - generated code.
typedef void NavigatorUserMediaSuccessCallback(LocalMediaStream stream);
// 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.
// WARNING: Do not edit - generated code.
/// @domName Node
abstract class Node implements EventTarget {
List<Node> get nodes;
void set nodes(Collection<Node> value);
/**
* Replaces this node with another node.
* @domName Node.replaceChild
*/
Node replaceWith(Node otherNode);
/**
* Removes this node from the DOM.
* @domName Node.removeChild
*/
void remove();
static const int ATTRIBUTE_NODE = 2;
static const int CDATA_SECTION_NODE = 4;
static const int COMMENT_NODE = 8;
static const int DOCUMENT_FRAGMENT_NODE = 11;
static const int DOCUMENT_NODE = 9;
static const int DOCUMENT_POSITION_CONTAINED_BY = 0x10;
static const int DOCUMENT_POSITION_CONTAINS = 0x08;
static const int DOCUMENT_POSITION_DISCONNECTED = 0x01;
static const int DOCUMENT_POSITION_FOLLOWING = 0x04;
static const int DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC = 0x20;
static const int DOCUMENT_POSITION_PRECEDING = 0x02;
static const int DOCUMENT_TYPE_NODE = 10;
static const int ELEMENT_NODE = 1;
static const int ENTITY_NODE = 6;
static const int ENTITY_REFERENCE_NODE = 5;
static const int NOTATION_NODE = 12;
static const int PROCESSING_INSTRUCTION_NODE = 7;
static const int TEXT_NODE = 3;
/** @domName Node.attributes */
NamedNodeMap get $dom_attributes;
/** @domName Node.childNodes */
List<Node> get $dom_childNodes;
/** @domName Node.firstChild */
Node get $dom_firstChild;
/** @domName Node.lastChild */
Node get $dom_lastChild;
/** @domName Node.nextSibling */
Node get nextNode;
/** @domName Node.nodeType */
int get $dom_nodeType;
/** @domName Node.ownerDocument */
Document get document;
/** @domName Node.parentNode */
Node get parent;
/** @domName Node.previousSibling */
Node get previousNode;
/** @domName Node.textContent */
String text;
/** @domName Node.addEventListener */
void $dom_addEventListener(String type, EventListener listener, [bool useCapture]);
/** @domName Node.appendChild */
Node $dom_appendChild(Node newChild);
/** @domName Node.cloneNode */
Node clone(bool deep);
/** @domName Node.contains */
bool contains(Node other);
/** @domName Node.dispatchEvent */
bool $dom_dispatchEvent(Event event);
/** @domName Node.hasChildNodes */
bool hasChildNodes();
/** @domName Node.insertBefore */
Node insertBefore(Node newChild, Node refChild);
/** @domName Node.removeChild */
Node $dom_removeChild(Node oldChild);
/** @domName Node.removeEventListener */
void $dom_removeEventListener(String type, EventListener listener, [bool useCapture]);
/** @domName Node.replaceChild */
Node $dom_replaceChild(Node newChild, Node oldChild);
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName NodeFilter
abstract class NodeFilter {
static const int FILTER_ACCEPT = 1;
static const int FILTER_REJECT = 2;
static const int FILTER_SKIP = 3;
static const int SHOW_ALL = 0xFFFFFFFF;
static const int SHOW_ATTRIBUTE = 0x00000002;
static const int SHOW_CDATA_SECTION = 0x00000008;
static const int SHOW_COMMENT = 0x00000080;
static const int SHOW_DOCUMENT = 0x00000100;
static const int SHOW_DOCUMENT_FRAGMENT = 0x00000400;
static const int SHOW_DOCUMENT_TYPE = 0x00000200;
static const int SHOW_ELEMENT = 0x00000001;
static const int SHOW_ENTITY = 0x00000020;
static const int SHOW_ENTITY_REFERENCE = 0x00000010;
static const int SHOW_NOTATION = 0x00000800;
static const int SHOW_PROCESSING_INSTRUCTION = 0x00000040;
static const int SHOW_TEXT = 0x00000004;
/** @domName NodeFilter.acceptNode */
int acceptNode(Node n);
}
// 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.
// WARNING: Do not edit - generated code.
class _NodeFilterImpl extends NativeFieldWrapperClass1 implements NodeFilter {
int acceptNode(Node n) native "NodeFilter_acceptNode_Callback";
}
// 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.
/**
* Lazy implementation of the child nodes of an element that does not request
* the actual child nodes of an element until strictly necessary greatly
* improving performance for the typical cases where it is not required.
*/
class _ChildNodeListLazy implements List {
final _NodeImpl _this;
_ChildNodeListLazy(this._this);
_NodeImpl get first => _this.$dom_firstChild;
_NodeImpl get last => _this.$dom_lastChild;
void add(_NodeImpl value) {
_this.$dom_appendChild(value);
}
void addLast(_NodeImpl value) {
_this.$dom_appendChild(value);
}
void addAll(Collection<_NodeImpl> collection) {
for (_NodeImpl node in collection) {
_this.$dom_appendChild(node);
}
}
_NodeImpl removeLast() {
final result = last;
if (result != null) {
_this.$dom_removeChild(result);
}
return result;
}
void clear() {
_this.text = '';
}
void operator []=(int index, _NodeImpl value) {
_this.$dom_replaceChild(value, this[index]);
}
Iterator<Node> iterator() => _this.$dom_childNodes.iterator();
// TODO(jacobr): We can implement these methods much more efficiently by
// looking up the nodeList only once instead of once per iteration.
bool contains(Node element) => _Collections.contains(this, element);
void forEach(void f(Node element)) => _Collections.forEach(this, f);
Collection map(f(Node element)) => _Collections.map(this, [], f);
Collection<Node> filter(bool f(Node element)) =>
new _NodeListWrapper(_Collections.filter(this, <Node>[], f));
bool every(bool f(Node element)) => _Collections.every(this, f);
bool some(bool f(Node element)) => _Collections.some(this, f);
bool get isEmpty => this.length == 0;
// From List<Node>:
// TODO(jacobr): this could be implemented for child node lists.
// The exception we throw here is misleading.
void sort([Comparator<Node> compare = Comparable.compare]) {
throw new UnsupportedError("Cannot sort immutable List.");
}
int indexOf(Node element, [int start = 0]) =>
_Lists.indexOf(this, element, start, this.length);
int lastIndexOf(Node element, [int start = 0]) =>
_Lists.lastIndexOf(this, element, start);
// FIXME: implement these.
void setRange(int start, int rangeLength, List<Node> from, [int startFrom]) {
throw new UnsupportedError(
"Cannot setRange on immutable List.");
}
void removeRange(int start, int rangeLength) {
throw new UnsupportedError(
"Cannot removeRange on immutable List.");
}
void insertRange(int start, int rangeLength, [Node initialValue]) {
throw new UnsupportedError(
"Cannot insertRange on immutable List.");
}
List<Node> getRange(int start, int rangeLength) =>
new _NodeListWrapper(_Lists.getRange(this, start, rangeLength, <Node>[]));
// -- end List<Node> mixins.
// TODO(jacobr): benchmark whether this is more efficient or whether caching
// a local copy of $dom_childNodes is more efficient.
int get length => _this.$dom_childNodes.length;
_NodeImpl operator[](int index) => _this.$dom_childNodes[index];
}
class _NodeImpl extends _EventTargetImpl implements Node {
_ChildNodeListLazy get nodes {
return new _ChildNodeListLazy(this);
}
void set nodes(Collection<Node> value) {
// Copy list first since we don't want liveness during iteration.
// TODO(jacobr): there is a better way to do this.
List copy = new List.from(value);
text = '';
for (Node node in copy) {
$dom_appendChild(node);
}
}
// TODO(jacobr): should we throw an exception if parent is already null?
// TODO(vsm): Use the native remove when available.
void remove() {
if (this.parent != null) {
final _NodeImpl parent = this.parent;
parent.$dom_removeChild(this);
}
}
_NodeImpl replaceWith(Node otherNode) {
try {
final _NodeImpl parent = this.parent;
parent.$dom_replaceChild(otherNode, this);
} catch (e) {
};
return this;
}
NamedNodeMap get $dom_attributes native "Node_attributes_Getter";
List<Node> get $dom_childNodes native "Node_childNodes_Getter";
Node get $dom_firstChild native "Node_firstChild_Getter";
Node get $dom_lastChild native "Node_lastChild_Getter";
Node get nextNode native "Node_nextSibling_Getter";
int get $dom_nodeType native "Node_nodeType_Getter";
Document get document native "Node_ownerDocument_Getter";
Node get parent native "Node_parentNode_Getter";
Node get previousNode native "Node_previousSibling_Getter";
String get text native "Node_textContent_Getter";
void set text(String value) native "Node_textContent_Setter";
void $dom_addEventListener(String type, EventListener listener, [bool useCapture]) native "Node_addEventListener_Callback";
Node $dom_appendChild(Node newChild) native "Node_appendChild_Callback";
Node clone(bool deep) native "Node_cloneNode_Callback";
bool contains(Node other) native "Node_contains_Callback";
bool $dom_dispatchEvent(Event event) native "Node_dispatchEvent_Callback";
bool hasChildNodes() native "Node_hasChildNodes_Callback";
Node insertBefore(Node newChild, Node refChild) native "Node_insertBefore_Callback";
Node $dom_removeChild(Node oldChild) native "Node_removeChild_Callback";
void $dom_removeEventListener(String type, EventListener listener, [bool useCapture]) native "Node_removeEventListener_Callback";
Node $dom_replaceChild(Node newChild, Node oldChild) native "Node_replaceChild_Callback";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName NodeIterator
abstract class NodeIterator {
/** @domName NodeIterator.expandEntityReferences */
bool get expandEntityReferences;
/** @domName NodeIterator.filter */
NodeFilter get filter;
/** @domName NodeIterator.pointerBeforeReferenceNode */
bool get pointerBeforeReferenceNode;
/** @domName NodeIterator.referenceNode */
Node get referenceNode;
/** @domName NodeIterator.root */
Node get root;
/** @domName NodeIterator.whatToShow */
int get whatToShow;
/** @domName NodeIterator.detach */
void detach();
/** @domName NodeIterator.nextNode */
Node nextNode();
/** @domName NodeIterator.previousNode */
Node previousNode();
}
// 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.
// WARNING: Do not edit - generated code.
class _NodeIteratorImpl extends NativeFieldWrapperClass1 implements NodeIterator {
bool get expandEntityReferences native "NodeIterator_expandEntityReferences_Getter";
NodeFilter get filter native "NodeIterator_filter_Getter";
bool get pointerBeforeReferenceNode native "NodeIterator_pointerBeforeReferenceNode_Getter";
Node get referenceNode native "NodeIterator_referenceNode_Getter";
Node get root native "NodeIterator_root_Getter";
int get whatToShow native "NodeIterator_whatToShow_Getter";
void detach() native "NodeIterator_detach_Callback";
Node nextNode() native "NodeIterator_nextNode_Callback";
Node previousNode() native "NodeIterator_previousNode_Callback";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName NodeList
abstract class NodeList implements List<Node> {
List<Node> filter(bool f(Node element));
List<Node> getRange(int start, int length);
Node get first;
/** @domName NodeList.length */
int get length;
}
// 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.
// TODO(nweiz): when all implementations we target have the same name for the
// coreimpl implementation of List<E>, extend that rather than wrapping.
class _ListWrapper<E> implements List<E> {
List _list;
_ListWrapper(List this._list);
Iterator<E> iterator() => _list.iterator();
bool contains(E element) => _list.contains(element);
void forEach(void f(E element)) => _list.forEach(f);
Collection map(f(E element)) => _list.map(f);
List<E> filter(bool f(E element)) => _list.filter(f);
bool every(bool f(E element)) => _list.every(f);
bool some(bool f(E element)) => _list.some(f);
bool get isEmpty => _list.isEmpty;
int get length => _list.length;
E operator [](int index) => _list[index];
void operator []=(int index, E value) { _list[index] = value; }
void set length(int newLength) { _list.length = newLength; }
void add(E value) => _list.add(value);
void addLast(E value) => _list.addLast(value);
void addAll(Collection<E> collection) => _list.addAll(collection);
void sort([Comparator<E> compare = Comparable.compare]) => _list.sort(compare);
int indexOf(E element, [int start = 0]) => _list.indexOf(element, start);
int lastIndexOf(E element, [int start = 0]) =>
_list.lastIndexOf(element, start);
void clear() => _list.clear();
E removeLast() => _list.removeLast();
E get last => _list.last;
List<E> getRange(int start, int rangeLength) =>
_list.getRange(start, rangeLength);
void setRange(int start, int rangeLength, List<E> from, [int startFrom = 0])
=> _list.setRange(start, rangeLength, from, startFrom);
void removeRange(int start, int rangeLength) =>
_list.removeRange(start, rangeLength);
void insertRange(int start, int rangeLength, [E initialValue = null]) =>
_list.insertRange(start, rangeLength, initialValue);
E get first => _list[0];
}
/**
* This class is used to insure the results of list operations are NodeLists
* instead of lists.
*/
class _NodeListWrapper extends _ListWrapper<Node> implements List {
_NodeListWrapper(List list) : super(list);
List<Node> filter(bool f(Node element)) =>
new _NodeListWrapper(_list.filter(f));
List<Node> getRange(int start, int rangeLength) =>
new _NodeListWrapper(_list.getRange(start, rangeLength));
}
class _NodeListImpl extends NativeFieldWrapperClass1 implements NodeList {
_NodeImpl _parent;
// -- start List<Node> mixins.
// Node is the element type.
// From Iterable<Node>:
Iterator<Node> 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<Node>(this);
}
// From Collection<Node>:
void add(_NodeImpl value) {
_parent.$dom_appendChild(value);
}
void addLast(_NodeImpl value) {
_parent.$dom_appendChild(value);
}
void addAll(Collection<_NodeImpl> collection) {
for (_NodeImpl node in collection) {
_parent.$dom_appendChild(node);
}
}
_NodeImpl removeLast() {
final result = this.last;
if (result != null) {
_parent.$dom_removeChild(result);
}
return result;
}
void clear() {
_parent.text = '';
}
void operator []=(int index, _NodeImpl value) {
_parent.$dom_replaceChild(value, this[index]);
}
bool contains(Node element) => _Collections.contains(this, element);
void forEach(void f(Node element)) => _Collections.forEach(this, f);
Collection map(f(Node element)) => _Collections.map(this, [], f);
Collection<Node> filter(bool f(Node element)) =>
new _NodeListWrapper(_Collections.filter(this, <Node>[], f));
bool every(bool f(Node element)) => _Collections.every(this, f);
bool some(bool f(Node element)) => _Collections.some(this, f);
bool get isEmpty => this.length == 0;
// From List<Node>:
void sort([Comparator<Node> compare = Comparable.compare]) {
throw new UnsupportedError("Cannot sort immutable List.");
}
int indexOf(Node element, [int start = 0]) =>
_Lists.indexOf(this, element, start, this.length);
int lastIndexOf(Node element, [int start = 0]) =>
_Lists.lastIndexOf(this, element, start);
Node get last => this[length - 1];
Node get first => this[0];
// FIXME: implement thesee.
void setRange(int start, int rangeLength, List<Node> from, [int startFrom]) {
throw new UnsupportedError("Cannot setRange on immutable List.");
}
void removeRange(int start, int rangeLength) {
throw new UnsupportedError("Cannot removeRange on immutable List.");
}
void insertRange(int start, int rangeLength, [Node initialValue]) {
throw new UnsupportedError("Cannot insertRange on immutable List.");
}
List<Node> getRange(int start, int rangeLength) =>
new _NodeListWrapper(_Lists.getRange(this, start, rangeLength, <Node>[]));
// -- end List<Node> mixins.
int get length native "NodeList_length_Getter";
Node operator[](int index) native "NodeList_item_Callback";
Node _item(int index) native "NodeList_item_Callback";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName Notation
abstract class Notation implements Node {
/** @domName Notation.publicId */
String get publicId;
/** @domName Notation.systemId */
String get systemId;
}
// 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.
// WARNING: Do not edit - generated code.
class _NotationImpl extends _NodeImpl implements Notation {
String get publicId native "Notation_publicId_Getter";
String get systemId native "Notation_systemId_Getter";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName Notification
abstract class Notification implements EventTarget {
factory Notification(String title, [Map options]) {
if (!?options) {
return _NotificationFactoryProvider.createNotification(title);
}
return _NotificationFactoryProvider.createNotification(title, options);
}
/**
* @domName EventTarget.addEventListener, EventTarget.removeEventListener, EventTarget.dispatchEvent
*/
NotificationEvents get on;
/** @domName Notification.dir */
String dir;
/** @domName Notification.permission */
String get permission;
/** @domName Notification.replaceId */
String replaceId;
/** @domName Notification.tag */
String tag;
/** @domName Notification.addEventListener */
void $dom_addEventListener(String type, EventListener listener, [bool useCapture]);
/** @domName Notification.cancel */
void cancel();
/** @domName Notification.close */
void close();
/** @domName Notification.dispatchEvent */
bool $dom_dispatchEvent(Event evt);
/** @domName Notification.removeEventListener */
void $dom_removeEventListener(String type, EventListener listener, [bool useCapture]);
/** @domName Notification.requestPermission */
static final requestPermission = _NotificationImpl.requestPermission;
/** @domName Notification.show */
void show();
}
abstract class NotificationEvents implements Events {
EventListenerList get click;
EventListenerList get close;
EventListenerList get display;
EventListenerList get error;
EventListenerList get show;
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName NotificationCenter
abstract class NotificationCenter {
/** @domName NotificationCenter.checkPermission */
int checkPermission();
/** @domName NotificationCenter.createHTMLNotification */
Notification createHTMLNotification(String url);
/** @domName NotificationCenter.createNotification */
Notification createNotification(String iconUrl, String title, String body);
/** @domName NotificationCenter.requestPermission */
void requestPermission(VoidCallback callback);
}
// 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.
// WARNING: Do not edit - generated code.
class _NotificationCenterImpl extends NativeFieldWrapperClass1 implements NotificationCenter {
int checkPermission() native "NotificationCenter_checkPermission_Callback";
Notification createHTMLNotification(String url) native "NotificationCenter_createHTMLNotification_Callback";
Notification createNotification(String iconUrl, String title, String body) native "NotificationCenter_createNotification_Callback";
void requestPermission(VoidCallback callback) native "NotificationCenter_requestPermission_Callback";
}
// 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.
// WARNING: Do not edit - generated code.
class _NotificationImpl extends _EventTargetImpl implements Notification {
_NotificationEventsImpl get on =>
new _NotificationEventsImpl(this);
String get dir native "Notification_dir_Getter";
void set dir(String value) native "Notification_dir_Setter";
String get permission native "Notification_permission_Getter";
String get replaceId native "Notification_replaceId_Getter";
void set replaceId(String value) native "Notification_replaceId_Setter";
String get tag native "Notification_tag_Getter";
void set tag(String value) native "Notification_tag_Setter";
void $dom_addEventListener(String type, EventListener listener, [bool useCapture]) native "Notification_addEventListener_Callback";
void cancel() native "Notification_cancel_Callback";
void close() native "Notification_close_Callback";
bool $dom_dispatchEvent(Event evt) native "Notification_dispatchEvent_Callback";
void $dom_removeEventListener(String type, EventListener listener, [bool useCapture]) native "Notification_removeEventListener_Callback";
static void requestPermission(NotificationPermissionCallback callback) native "Notification_requestPermission_Callback";
void show() native "Notification_show_Callback";
}
class _NotificationEventsImpl extends _EventsImpl implements NotificationEvents {
_NotificationEventsImpl(_ptr) : super(_ptr);
EventListenerList get click => this['click'];
EventListenerList get close => this['close'];
EventListenerList get display => this['display'];
EventListenerList get error => this['error'];
EventListenerList get show => this['show'];
}
// 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.
// WARNING: Do not edit - generated code.
typedef void NotificationPermissionCallback(String permission);
// 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.
// WARNING: Do not edit - generated code.
/// @domName OESElementIndexUint
abstract class OESElementIndexUint {
}
// 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.
// WARNING: Do not edit - generated code.
class _OESElementIndexUintImpl extends NativeFieldWrapperClass1 implements OESElementIndexUint {
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName OESStandardDerivatives
abstract class OESStandardDerivatives {
static const int FRAGMENT_SHADER_DERIVATIVE_HINT_OES = 0x8B8B;
}
// 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.
// WARNING: Do not edit - generated code.
class _OESStandardDerivativesImpl extends NativeFieldWrapperClass1 implements OESStandardDerivatives {
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName OESTextureFloat
abstract class OESTextureFloat {
}
// 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.
// WARNING: Do not edit - generated code.
class _OESTextureFloatImpl extends NativeFieldWrapperClass1 implements OESTextureFloat {
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName OESVertexArrayObject
abstract class OESVertexArrayObject {
static const int VERTEX_ARRAY_BINDING_OES = 0x85B5;
/** @domName OESVertexArrayObject.bindVertexArrayOES */
void bindVertexArrayOES(WebGLVertexArrayObjectOES arrayObject);
/** @domName OESVertexArrayObject.createVertexArrayOES */
WebGLVertexArrayObjectOES createVertexArrayOES();
/** @domName OESVertexArrayObject.deleteVertexArrayOES */
void deleteVertexArrayOES(WebGLVertexArrayObjectOES arrayObject);
/** @domName OESVertexArrayObject.isVertexArrayOES */
bool isVertexArrayOES(WebGLVertexArrayObjectOES arrayObject);
}
// 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.
// WARNING: Do not edit - generated code.
class _OESVertexArrayObjectImpl extends NativeFieldWrapperClass1 implements OESVertexArrayObject {
void bindVertexArrayOES(WebGLVertexArrayObjectOES arrayObject) native "OESVertexArrayObject_bindVertexArrayOES_Callback";
WebGLVertexArrayObjectOES createVertexArrayOES() native "OESVertexArrayObject_createVertexArrayOES_Callback";
void deleteVertexArrayOES(WebGLVertexArrayObjectOES arrayObject) native "OESVertexArrayObject_deleteVertexArrayOES_Callback";
bool isVertexArrayOES(WebGLVertexArrayObjectOES arrayObject) native "OESVertexArrayObject_isVertexArrayOES_Callback";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName HTMLOListElement
abstract class OListElement implements Element {
factory OListElement() => _Elements.createOListElement();
/** @domName HTMLOListElement.compact */
bool compact;
/** @domName HTMLOListElement.reversed */
bool reversed;
/** @domName HTMLOListElement.start */
int start;
/** @domName HTMLOListElement.type */
String type;
}
// 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.
// WARNING: Do not edit - generated code.
class _OListElementImpl extends _ElementImpl_Merged implements OListElement {
bool get compact native "HTMLOListElement_compact_Getter";
void set compact(bool value) native "HTMLOListElement_compact_Setter";
bool get reversed native "HTMLOListElement_reversed_Getter";
void set reversed(bool value) native "HTMLOListElement_reversed_Setter";
int get start native "HTMLOListElement_start_Getter";
void set start(int value) native "HTMLOListElement_start_Setter";
String get type native "HTMLOListElement_type_Getter";
void set type(String value) native "HTMLOListElement_type_Setter";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName HTMLObjectElement
abstract class ObjectElement implements Element {
factory ObjectElement() => _Elements.createObjectElement();
/** @domName HTMLObjectElement.align */
String align;
/** @domName HTMLObjectElement.archive */
String archive;
/** @domName HTMLObjectElement.border */
String border;
/** @domName HTMLObjectElement.code */
String code;
/** @domName HTMLObjectElement.codeBase */
String codeBase;
/** @domName HTMLObjectElement.codeType */
String codeType;
/** @domName HTMLObjectElement.data */
String data;
/** @domName HTMLObjectElement.declare */
bool declare;
/** @domName HTMLObjectElement.form */
FormElement get form;
/** @domName HTMLObjectElement.height */
String height;
/** @domName HTMLObjectElement.hspace */
int hspace;
/** @domName HTMLObjectElement.name */
String name;
/** @domName HTMLObjectElement.standby */
String standby;
/** @domName HTMLObjectElement.type */
String type;
/** @domName HTMLObjectElement.useMap */
String useMap;
/** @domName HTMLObjectElement.validationMessage */
String get validationMessage;
/** @domName HTMLObjectElement.validity */
ValidityState get validity;
/** @domName HTMLObjectElement.vspace */
int vspace;
/** @domName HTMLObjectElement.width */
String width;
/** @domName HTMLObjectElement.willValidate */
bool get willValidate;
/** @domName HTMLObjectElement.checkValidity */
bool checkValidity();
/** @domName HTMLObjectElement.setCustomValidity */
void setCustomValidity(String error);
}
// 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.
// WARNING: Do not edit - generated code.
class _ObjectElementImpl extends _ElementImpl_Merged implements ObjectElement {
String get align native "HTMLObjectElement_align_Getter";
void set align(String value) native "HTMLObjectElement_align_Setter";
String get archive native "HTMLObjectElement_archive_Getter";
void set archive(String value) native "HTMLObjectElement_archive_Setter";
String get border native "HTMLObjectElement_border_Getter";
void set border(String value) native "HTMLObjectElement_border_Setter";
String get code native "HTMLObjectElement_code_Getter";
void set code(String value) native "HTMLObjectElement_code_Setter";
String get codeBase native "HTMLObjectElement_codeBase_Getter";
void set codeBase(String value) native "HTMLObjectElement_codeBase_Setter";
String get codeType native "HTMLObjectElement_codeType_Getter";
void set codeType(String value) native "HTMLObjectElement_codeType_Setter";
String get data native "HTMLObjectElement_data_Getter";
void set data(String value) native "HTMLObjectElement_data_Setter";
bool get declare native "HTMLObjectElement_declare_Getter";
void set declare(bool value) native "HTMLObjectElement_declare_Setter";
FormElement get form native "HTMLObjectElement_form_Getter";
String get height native "HTMLObjectElement_height_Getter";
void set height(String value) native "HTMLObjectElement_height_Setter";
int get hspace native "HTMLObjectElement_hspace_Getter";
void set hspace(int value) native "HTMLObjectElement_hspace_Setter";
String get name native "HTMLObjectElement_name_Getter";
void set name(String value) native "HTMLObjectElement_name_Setter";
String get standby native "HTMLObjectElement_standby_Getter";
void set standby(String value) native "HTMLObjectElement_standby_Setter";
String get type native "HTMLObjectElement_type_Getter";
void set type(String value) native "HTMLObjectElement_type_Setter";
String get useMap native "HTMLObjectElement_useMap_Getter";
void set useMap(String value) native "HTMLObjectElement_useMap_Setter";
String get validationMessage native "HTMLObjectElement_validationMessage_Getter";
ValidityState get validity native "HTMLObjectElement_validity_Getter";
int get vspace native "HTMLObjectElement_vspace_Getter";
void set vspace(int value) native "HTMLObjectElement_vspace_Setter";
String get width native "HTMLObjectElement_width_Getter";
void set width(String value) native "HTMLObjectElement_width_Setter";
bool get willValidate native "HTMLObjectElement_willValidate_Getter";
bool checkValidity() native "HTMLObjectElement_checkValidity_Callback";
void setCustomValidity(String error) native "HTMLObjectElement_setCustomValidity_Callback";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName OfflineAudioCompletionEvent
abstract class OfflineAudioCompletionEvent implements Event {
/** @domName OfflineAudioCompletionEvent.renderedBuffer */
AudioBuffer get renderedBuffer;
}
// 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.
// WARNING: Do not edit - generated code.
class _OfflineAudioCompletionEventImpl extends _EventImpl implements OfflineAudioCompletionEvent {
AudioBuffer get renderedBuffer native "OfflineAudioCompletionEvent_renderedBuffer_Getter";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName HTMLOptGroupElement
abstract class OptGroupElement implements Element {
factory OptGroupElement() => _Elements.createOptGroupElement();
/** @domName HTMLOptGroupElement.disabled */
bool disabled;
/** @domName HTMLOptGroupElement.label */
String label;
}
// 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.
// WARNING: Do not edit - generated code.
class _OptGroupElementImpl extends _ElementImpl_Merged implements OptGroupElement {
bool get disabled native "HTMLOptGroupElement_disabled_Getter";
void set disabled(bool value) native "HTMLOptGroupElement_disabled_Setter";
String get label native "HTMLOptGroupElement_label_Getter";
void set label(String value) native "HTMLOptGroupElement_label_Setter";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName HTMLOptionElement
abstract class OptionElement implements Element {
factory OptionElement([String data, String value, bool defaultSelected, bool selected]) {
if (!?data) {
return _OptionElementFactoryProvider.createOptionElement();
}
if (!?value) {
return _OptionElementFactoryProvider.createOptionElement(data);
}
if (!?defaultSelected) {
return _OptionElementFactoryProvider.createOptionElement(data, value);
}
if (!?selected) {
return _OptionElementFactoryProvider.createOptionElement(data, value, defaultSelected);
}
return _OptionElementFactoryProvider.createOptionElement(data, value, defaultSelected, selected);
}
/** @domName HTMLOptionElement.defaultSelected */
bool defaultSelected;
/** @domName HTMLOptionElement.disabled */
bool disabled;
/** @domName HTMLOptionElement.form */
FormElement get form;
/** @domName HTMLOptionElement.index */
int get index;
/** @domName HTMLOptionElement.label */
String label;
/** @domName HTMLOptionElement.selected */
bool selected;
/** @domName HTMLOptionElement.value */
String value;
}
// 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.
// WARNING: Do not edit - generated code.
class _OptionElementImpl extends _ElementImpl_Merged implements OptionElement {
bool get defaultSelected native "HTMLOptionElement_defaultSelected_Getter";
void set defaultSelected(bool value) native "HTMLOptionElement_defaultSelected_Setter";
bool get disabled native "HTMLOptionElement_disabled_Getter";
void set disabled(bool value) native "HTMLOptionElement_disabled_Setter";
FormElement get form native "HTMLOptionElement_form_Getter";
int get index native "HTMLOptionElement_index_Getter";
String get label native "HTMLOptionElement_label_Getter";
void set label(String value) native "HTMLOptionElement_label_Setter";
bool get selected native "HTMLOptionElement_selected_Getter";
void set selected(bool value) native "HTMLOptionElement_selected_Setter";
String get value native "HTMLOptionElement_value_Getter";
void set value(String value) native "HTMLOptionElement_value_Setter";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName OscillatorNode
abstract class OscillatorNode implements AudioSourceNode {
static const int CUSTOM = 4;
static const int FINISHED_STATE = 3;
static const int PLAYING_STATE = 2;
static const int SAWTOOTH = 2;
static const int SCHEDULED_STATE = 1;
static const int SINE = 0;
static const int SQUARE = 1;
static const int TRIANGLE = 3;
static const int UNSCHEDULED_STATE = 0;
/** @domName OscillatorNode.detune */
AudioParam get detune;
/** @domName OscillatorNode.frequency */
AudioParam get frequency;
/** @domName OscillatorNode.playbackState */
int get playbackState;
/** @domName OscillatorNode.type */
int type;
/** @domName OscillatorNode.setWaveTable */
void setWaveTable(WaveTable waveTable);
/** @domName OscillatorNode.start */
void start(num when);
/** @domName OscillatorNode.stop */
void stop(num when);
}
// 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.
// WARNING: Do not edit - generated code.
class _OscillatorNodeImpl extends _AudioSourceNodeImpl implements OscillatorNode {
AudioParam get detune native "OscillatorNode_detune_Getter";
AudioParam get frequency native "OscillatorNode_frequency_Getter";
int get playbackState native "OscillatorNode_playbackState_Getter";
int get type native "OscillatorNode_type_Getter";
void set type(int value) native "OscillatorNode_type_Setter";
void setWaveTable(WaveTable waveTable) native "OscillatorNode_setWaveTable_Callback";
void start(num when) native "OscillatorNode_start_Callback";
void stop(num when) native "OscillatorNode_stop_Callback";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName HTMLOutputElement
abstract class OutputElement implements Element {
factory OutputElement() => _Elements.createOutputElement();
/** @domName HTMLOutputElement.defaultValue */
String defaultValue;
/** @domName HTMLOutputElement.form */
FormElement get form;
/** @domName HTMLOutputElement.htmlFor */
DOMSettableTokenList htmlFor;
/** @domName HTMLOutputElement.labels */
List<Node> get labels;
/** @domName HTMLOutputElement.name */
String name;
/** @domName HTMLOutputElement.type */
String get type;
/** @domName HTMLOutputElement.validationMessage */
String get validationMessage;
/** @domName HTMLOutputElement.validity */
ValidityState get validity;
/** @domName HTMLOutputElement.value */
String value;
/** @domName HTMLOutputElement.willValidate */
bool get willValidate;
/** @domName HTMLOutputElement.checkValidity */
bool checkValidity();
/** @domName HTMLOutputElement.setCustomValidity */
void setCustomValidity(String error);
}
// 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.
// WARNING: Do not edit - generated code.
class _OutputElementImpl extends _ElementImpl_Merged implements OutputElement {
String get defaultValue native "HTMLOutputElement_defaultValue_Getter";
void set defaultValue(String value) native "HTMLOutputElement_defaultValue_Setter";
FormElement get form native "HTMLOutputElement_form_Getter";
DOMSettableTokenList get htmlFor native "HTMLOutputElement_htmlFor_Getter";
void set htmlFor(DOMSettableTokenList value) native "HTMLOutputElement_htmlFor_Setter";
List<Node> get labels native "HTMLOutputElement_labels_Getter";
String get name native "HTMLOutputElement_name_Getter";
void set name(String value) native "HTMLOutputElement_name_Setter";
String get type native "HTMLOutputElement_type_Getter";
String get validationMessage native "HTMLOutputElement_validationMessage_Getter";
ValidityState get validity native "HTMLOutputElement_validity_Getter";
String get value native "HTMLOutputElement_value_Getter";
void set value(String value) native "HTMLOutputElement_value_Setter";
bool get willValidate native "HTMLOutputElement_willValidate_Getter";
bool checkValidity() native "HTMLOutputElement_checkValidity_Callback";
void setCustomValidity(String error) native "HTMLOutputElement_setCustomValidity_Callback";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName OverflowEvent
abstract class OverflowEvent implements Event {
static const int BOTH = 2;
static const int HORIZONTAL = 0;
static const int VERTICAL = 1;
/** @domName OverflowEvent.horizontalOverflow */
bool get horizontalOverflow;
/** @domName OverflowEvent.orient */
int get orient;
/** @domName OverflowEvent.verticalOverflow */
bool get verticalOverflow;
}
// 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.
// WARNING: Do not edit - generated code.
class _OverflowEventImpl extends _EventImpl implements OverflowEvent {
bool get horizontalOverflow native "OverflowEvent_horizontalOverflow_Getter";
int get orient native "OverflowEvent_orient_Getter";
bool get verticalOverflow native "OverflowEvent_verticalOverflow_Getter";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName PagePopupController
abstract class PagePopupController {
/** @domName PagePopupController.localizeNumberString */
String localizeNumberString(String numberString);
/** @domName PagePopupController.setValueAndClosePopup */
void setValueAndClosePopup(int numberValue, String stringValue);
}
// 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.
// WARNING: Do not edit - generated code.
class _PagePopupControllerImpl extends NativeFieldWrapperClass1 implements PagePopupController {
String localizeNumberString(String numberString) native "PagePopupController_localizeNumberString_Callback";
void setValueAndClosePopup(int numberValue, String stringValue) native "PagePopupController_setValueAndClosePopup_Callback";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName PageTransitionEvent
abstract class PageTransitionEvent implements Event {
/** @domName PageTransitionEvent.persisted */
bool get persisted;
}
// 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.
// WARNING: Do not edit - generated code.
class _PageTransitionEventImpl extends _EventImpl implements PageTransitionEvent {
bool get persisted native "PageTransitionEvent_persisted_Getter";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName PannerNode
abstract class PannerNode implements AudioNode {
static const int EQUALPOWER = 0;
static const int EXPONENTIAL_DISTANCE = 2;
static const int HRTF = 1;
static const int INVERSE_DISTANCE = 1;
static const int LINEAR_DISTANCE = 0;
static const int SOUNDFIELD = 2;
/** @domName PannerNode.coneGain */
AudioGain get coneGain;
/** @domName PannerNode.coneInnerAngle */
num coneInnerAngle;
/** @domName PannerNode.coneOuterAngle */
num coneOuterAngle;
/** @domName PannerNode.coneOuterGain */
num coneOuterGain;
/** @domName PannerNode.distanceGain */
AudioGain get distanceGain;
/** @domName PannerNode.distanceModel */
int distanceModel;
/** @domName PannerNode.maxDistance */
num maxDistance;
/** @domName PannerNode.panningModel */
int panningModel;
/** @domName PannerNode.refDistance */
num refDistance;
/** @domName PannerNode.rolloffFactor */
num rolloffFactor;
/** @domName PannerNode.setOrientation */
void setOrientation(num x, num y, num z);
/** @domName PannerNode.setPosition */
void setPosition(num x, num y, num z);
/** @domName PannerNode.setVelocity */
void setVelocity(num x, num y, num z);
}
// 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.
// WARNING: Do not edit - generated code.
class _PannerNodeImpl extends _AudioNodeImpl implements PannerNode {
AudioGain get coneGain native "PannerNode_coneGain_Getter";
num get coneInnerAngle native "PannerNode_coneInnerAngle_Getter";
void set coneInnerAngle(num value) native "PannerNode_coneInnerAngle_Setter";
num get coneOuterAngle native "PannerNode_coneOuterAngle_Getter";
void set coneOuterAngle(num value) native "PannerNode_coneOuterAngle_Setter";
num get coneOuterGain native "PannerNode_coneOuterGain_Getter";
void set coneOuterGain(num value) native "PannerNode_coneOuterGain_Setter";
AudioGain get distanceGain native "PannerNode_distanceGain_Getter";
int get distanceModel native "PannerNode_distanceModel_Getter";
void set distanceModel(int value) native "PannerNode_distanceModel_Setter";
num get maxDistance native "PannerNode_maxDistance_Getter";
void set maxDistance(num value) native "PannerNode_maxDistance_Setter";
int get panningModel native "PannerNode_panningModel_Getter";
void set panningModel(int value) native "PannerNode_panningModel_Setter";
num get refDistance native "PannerNode_refDistance_Getter";
void set refDistance(num value) native "PannerNode_refDistance_Setter";
num get rolloffFactor native "PannerNode_rolloffFactor_Getter";
void set rolloffFactor(num value) native "PannerNode_rolloffFactor_Setter";
void setOrientation(num x, num y, num z) native "PannerNode_setOrientation_Callback";
void setPosition(num x, num y, num z) native "PannerNode_setPosition_Callback";
void setVelocity(num x, num y, num z) native "PannerNode_setVelocity_Callback";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName HTMLParagraphElement
abstract class ParagraphElement implements Element {
factory ParagraphElement() => _Elements.createParagraphElement();
/** @domName HTMLParagraphElement.align */
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.
// WARNING: Do not edit - generated code.
class _ParagraphElementImpl extends _ElementImpl_Merged implements ParagraphElement {
String get align native "HTMLParagraphElement_align_Getter";
void set align(String value) native "HTMLParagraphElement_align_Setter";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName HTMLParamElement
abstract class ParamElement implements Element {
factory ParamElement() => _Elements.createParamElement();
/** @domName HTMLParamElement.name */
String name;
/** @domName HTMLParamElement.type */
String type;
/** @domName HTMLParamElement.value */
String value;
/** @domName HTMLParamElement.valueType */
String valueType;
}
// 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.
// WARNING: Do not edit - generated code.
class _ParamElementImpl extends _ElementImpl_Merged implements ParamElement {
String get name native "HTMLParamElement_name_Getter";
void set name(String value) native "HTMLParamElement_name_Setter";
String get type native "HTMLParamElement_type_Getter";
void set type(String value) native "HTMLParamElement_type_Setter";
String get value native "HTMLParamElement_value_Getter";
void set value(String value) native "HTMLParamElement_value_Setter";
String get valueType native "HTMLParamElement_valueType_Getter";
void set valueType(String value) native "HTMLParamElement_valueType_Setter";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName PeerConnection00
abstract class PeerConnection00 implements EventTarget {
factory PeerConnection00(String serverConfiguration, IceCallback iceCallback) => _PeerConnection00FactoryProvider.createPeerConnection00(serverConfiguration, iceCallback);
/**
* @domName EventTarget.addEventListener, EventTarget.removeEventListener, EventTarget.dispatchEvent
*/
PeerConnection00Events get on;
static const int ACTIVE = 2;
static const int CLOSED = 3;
static const int ICE_CHECKING = 0x300;
static const int ICE_CLOSED = 0x700;
static const int ICE_COMPLETED = 0x500;
static const int ICE_CONNECTED = 0x400;
static const int ICE_FAILED = 0x600;
static const int ICE_GATHERING = 0x100;
static const int ICE_WAITING = 0x200;
static const int NEW = 0;
static const int OPENING = 1;
static const int SDP_ANSWER = 0x300;
static const int SDP_OFFER = 0x100;
static const int SDP_PRANSWER = 0x200;
/** @domName PeerConnection00.iceState */
int get iceState;
/** @domName PeerConnection00.localDescription */
SessionDescription get localDescription;
/** @domName PeerConnection00.localStreams */
List<MediaStream> get localStreams;
/** @domName PeerConnection00.readyState */
int get readyState;
/** @domName PeerConnection00.remoteDescription */
SessionDescription get remoteDescription;
/** @domName PeerConnection00.remoteStreams */
List<MediaStream> get remoteStreams;
/** @domName PeerConnection00.addEventListener */
void $dom_addEventListener(String type, EventListener listener, [bool useCapture]);
/** @domName PeerConnection00.addStream */
void addStream(MediaStream stream, [Map mediaStreamHints]);
/** @domName PeerConnection00.close */
void close();
/** @domName PeerConnection00.createAnswer */
SessionDescription createAnswer(String offer, [Map mediaHints]);
/** @domName PeerConnection00.createOffer */
SessionDescription createOffer([Map mediaHints]);
/** @domName PeerConnection00.dispatchEvent */
bool $dom_dispatchEvent(Event event);
/** @domName PeerConnection00.processIceMessage */
void processIceMessage(IceCandidate candidate);
/** @domName PeerConnection00.removeEventListener */
void $dom_removeEventListener(String type, EventListener listener, [bool useCapture]);
/** @domName PeerConnection00.removeStream */
void removeStream(MediaStream stream);
/** @domName PeerConnection00.setLocalDescription */
void setLocalDescription(int action, SessionDescription desc);
/** @domName PeerConnection00.setRemoteDescription */
void setRemoteDescription(int action, SessionDescription desc);
/** @domName PeerConnection00.startIce */
void startIce([Map iceOptions]);
}
abstract class PeerConnection00Events implements Events {
EventListenerList get addStream;
EventListenerList get connecting;
EventListenerList get open;
EventListenerList get removeStream;
EventListenerList get stateChange;
}
// 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.
// WARNING: Do not edit - generated code.
class _PeerConnection00Impl extends _EventTargetImpl implements PeerConnection00 {
_PeerConnection00EventsImpl get on =>
new _PeerConnection00EventsImpl(this);
int get iceState native "PeerConnection00_iceState_Getter";
SessionDescription get localDescription native "PeerConnection00_localDescription_Getter";
List<MediaStream> get localStreams native "PeerConnection00_localStreams_Getter";
int get readyState native "PeerConnection00_readyState_Getter";
SessionDescription get remoteDescription native "PeerConnection00_remoteDescription_Getter";
List<MediaStream> get remoteStreams native "PeerConnection00_remoteStreams_Getter";
void $dom_addEventListener(String type, EventListener listener, [bool useCapture]) native "PeerConnection00_addEventListener_Callback";
void addStream(MediaStream stream, [Map mediaStreamHints]) native "PeerConnection00_addStream_Callback";
void close() native "PeerConnection00_close_Callback";
SessionDescription createAnswer(String offer, [Map mediaHints]) native "PeerConnection00_createAnswer_Callback";
SessionDescription createOffer([Map mediaHints]) native "PeerConnection00_createOffer_Callback";
bool $dom_dispatchEvent(Event event) native "PeerConnection00_dispatchEvent_Callback";
void processIceMessage(IceCandidate candidate) native "PeerConnection00_processIceMessage_Callback";
void $dom_removeEventListener(String type, EventListener listener, [bool useCapture]) native "PeerConnection00_removeEventListener_Callback";
void removeStream(MediaStream stream) native "PeerConnection00_removeStream_Callback";
void setLocalDescription(int action, SessionDescription desc) native "PeerConnection00_setLocalDescription_Callback";
void setRemoteDescription(int action, SessionDescription desc) native "PeerConnection00_setRemoteDescription_Callback";
void startIce([Map iceOptions]) native "PeerConnection00_startIce_Callback";
}
class _PeerConnection00EventsImpl extends _EventsImpl implements PeerConnection00Events {
_PeerConnection00EventsImpl(_ptr) : super(_ptr);
EventListenerList get addStream => this['addstream'];
EventListenerList get connecting => this['connecting'];
EventListenerList get open => this['open'];
EventListenerList get removeStream => this['removestream'];
EventListenerList get stateChange => this['statechange'];
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName Performance
abstract class Performance implements EventTarget {
/** @domName Performance.memory */
MemoryInfo get memory;
/** @domName Performance.navigation */
PerformanceNavigation get navigation;
/** @domName Performance.timing */
PerformanceTiming get timing;
/** @domName Performance.now */
num now();
}
// 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.
// WARNING: Do not edit - generated code.
class _PerformanceImpl extends _EventTargetImpl implements Performance {
MemoryInfo get memory native "Performance_memory_Getter";
PerformanceNavigation get navigation native "Performance_navigation_Getter";
PerformanceTiming get timing native "Performance_timing_Getter";
num now() native "Performance_now_Callback";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName PerformanceNavigation
abstract class PerformanceNavigation {
static const int TYPE_BACK_FORWARD = 2;
static const int TYPE_NAVIGATE = 0;
static const int TYPE_RELOAD = 1;
static const int TYPE_RESERVED = 255;
/** @domName PerformanceNavigation.redirectCount */
int get redirectCount;
/** @domName PerformanceNavigation.type */
int get type;
}
// 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.
// WARNING: Do not edit - generated code.
class _PerformanceNavigationImpl extends NativeFieldWrapperClass1 implements PerformanceNavigation {
int get redirectCount native "PerformanceNavigation_redirectCount_Getter";
int get type native "PerformanceNavigation_type_Getter";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName PerformanceTiming
abstract class PerformanceTiming {
/** @domName PerformanceTiming.connectEnd */
int get connectEnd;
/** @domName PerformanceTiming.connectStart */
int get connectStart;
/** @domName PerformanceTiming.domComplete */
int get domComplete;
/** @domName PerformanceTiming.domContentLoadedEventEnd */
int get domContentLoadedEventEnd;
/** @domName PerformanceTiming.domContentLoadedEventStart */
int get domContentLoadedEventStart;
/** @domName PerformanceTiming.domInteractive */
int get domInteractive;
/** @domName PerformanceTiming.domLoading */
int get domLoading;
/** @domName PerformanceTiming.domainLookupEnd */
int get domainLookupEnd;
/** @domName PerformanceTiming.domainLookupStart */
int get domainLookupStart;
/** @domName PerformanceTiming.fetchStart */
int get fetchStart;
/** @domName PerformanceTiming.loadEventEnd */
int get loadEventEnd;
/** @domName PerformanceTiming.loadEventStart */
int get loadEventStart;
/** @domName PerformanceTiming.navigationStart */
int get navigationStart;
/** @domName PerformanceTiming.redirectEnd */
int get redirectEnd;
/** @domName PerformanceTiming.redirectStart */
int get redirectStart;
/** @domName PerformanceTiming.requestStart */
int get requestStart;
/** @domName PerformanceTiming.responseEnd */
int get responseEnd;
/** @domName PerformanceTiming.responseStart */
int get responseStart;
/** @domName PerformanceTiming.secureConnectionStart */
int get secureConnectionStart;
/** @domName PerformanceTiming.unloadEventEnd */
int get unloadEventEnd;
/** @domName PerformanceTiming.unloadEventStart */
int get unloadEventStart;
}
// 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.
// WARNING: Do not edit - generated code.
class _PerformanceTimingImpl extends NativeFieldWrapperClass1 implements PerformanceTiming {
int get connectEnd native "PerformanceTiming_connectEnd_Getter";
int get connectStart native "PerformanceTiming_connectStart_Getter";
int get domComplete native "PerformanceTiming_domComplete_Getter";
int get domContentLoadedEventEnd native "PerformanceTiming_domContentLoadedEventEnd_Getter";
int get domContentLoadedEventStart native "PerformanceTiming_domContentLoadedEventStart_Getter";
int get domInteractive native "PerformanceTiming_domInteractive_Getter";
int get domLoading native "PerformanceTiming_domLoading_Getter";
int get domainLookupEnd native "PerformanceTiming_domainLookupEnd_Getter";
int get domainLookupStart native "PerformanceTiming_domainLookupStart_Getter";
int get fetchStart native "PerformanceTiming_fetchStart_Getter";
int get loadEventEnd native "PerformanceTiming_loadEventEnd_Getter";
int get loadEventStart native "PerformanceTiming_loadEventStart_Getter";
int get navigationStart native "PerformanceTiming_navigationStart_Getter";
int get redirectEnd native "PerformanceTiming_redirectEnd_Getter";
int get redirectStart native "PerformanceTiming_redirectStart_Getter";
int get requestStart native "PerformanceTiming_requestStart_Getter";
int get responseEnd native "PerformanceTiming_responseEnd_Getter";
int get responseStart native "PerformanceTiming_responseStart_Getter";
int get secureConnectionStart native "PerformanceTiming_secureConnectionStart_Getter";
int get unloadEventEnd native "PerformanceTiming_unloadEventEnd_Getter";
int get unloadEventStart native "PerformanceTiming_unloadEventStart_Getter";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName WebKitPoint
abstract class Point {
factory Point(num x, num y) => _PointFactoryProvider.createPoint(x, y);
/** @domName WebKitPoint.x */
num x;
/** @domName WebKitPoint.y */
num y;
}
// 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.
// WARNING: Do not edit - generated code.
class _PointImpl extends NativeFieldWrapperClass1 implements Point {
num get x native "WebKitPoint_x_Getter";
void set x(num value) native "WebKitPoint_x_Setter";
num get y native "WebKitPoint_y_Getter";
void set y(num value) native "WebKitPoint_y_Setter";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName PopStateEvent
abstract class PopStateEvent implements Event {
/** @domName PopStateEvent.state */
Object get state;
}
// 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.
// WARNING: Do not edit - generated code.
class _PopStateEventImpl extends _EventImpl implements PopStateEvent {
Object get state native "PopStateEvent_state_Getter";
}
// 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.
// WARNING: Do not edit - generated code.
typedef void PositionCallback(Geoposition position);
// 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.
// WARNING: Do not edit - generated code.
/// @domName PositionError
abstract class PositionError {
static const int PERMISSION_DENIED = 1;
static const int POSITION_UNAVAILABLE = 2;
static const int TIMEOUT = 3;
/** @domName PositionError.code */
int get code;
/** @domName PositionError.message */
String get message;
}
// 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.
// WARNING: Do not edit - generated code.
typedef void PositionErrorCallback(PositionError error);
// 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.
// WARNING: Do not edit - generated code.
class _PositionErrorImpl extends NativeFieldWrapperClass1 implements PositionError {
int get code native "PositionError_code_Getter";
String get message native "PositionError_message_Getter";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName HTMLPreElement
abstract class PreElement implements Element {
factory PreElement() => _Elements.createPreElement();
/** @domName HTMLPreElement.width */
int width;
/** @domName HTMLPreElement.wrap */
bool wrap;
}
// 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.
// WARNING: Do not edit - generated code.
class _PreElementImpl extends _ElementImpl_Merged implements PreElement {
int get width native "HTMLPreElement_width_Getter";
void set width(int value) native "HTMLPreElement_width_Setter";
bool get wrap native "HTMLPreElement_wrap_Getter";
void set wrap(bool value) native "HTMLPreElement_wrap_Setter";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName ProcessingInstruction
abstract class ProcessingInstruction implements Node {
/** @domName ProcessingInstruction.data */
String data;
/** @domName ProcessingInstruction.sheet */
StyleSheet get sheet;
/** @domName ProcessingInstruction.target */
String get target;
}
// 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.
// WARNING: Do not edit - generated code.
class _ProcessingInstructionImpl extends _NodeImpl implements ProcessingInstruction {
String get data native "ProcessingInstruction_data_Getter";
void set data(String value) native "ProcessingInstruction_data_Setter";
StyleSheet get sheet native "ProcessingInstruction_sheet_Getter";
String get target native "ProcessingInstruction_target_Getter";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName HTMLProgressElement
abstract class ProgressElement implements Element {
factory ProgressElement() => _Elements.createProgressElement();
/** @domName HTMLProgressElement.labels */
List<Node> get labels;
/** @domName HTMLProgressElement.max */
num max;
/** @domName HTMLProgressElement.position */
num get position;
/** @domName HTMLProgressElement.value */
num value;
}
// 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.
// WARNING: Do not edit - generated code.
class _ProgressElementImpl extends _ElementImpl_Merged implements ProgressElement {
List<Node> get labels native "HTMLProgressElement_labels_Getter";
num get max native "HTMLProgressElement_max_Getter";
void set max(num value) native "HTMLProgressElement_max_Setter";
num get position native "HTMLProgressElement_position_Getter";
num get value native "HTMLProgressElement_value_Getter";
void set value(num value) native "HTMLProgressElement_value_Setter";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName ProgressEvent
abstract class ProgressEvent implements Event {
/** @domName ProgressEvent.lengthComputable */
bool get lengthComputable;
/** @domName ProgressEvent.loaded */
int get loaded;
/** @domName ProgressEvent.total */
int get total;
}
// 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.
// WARNING: Do not edit - generated code.
class _ProgressEventImpl extends _EventImpl implements ProgressEvent {
bool get lengthComputable native "ProgressEvent_lengthComputable_Getter";
int get loaded native "ProgressEvent_loaded_Getter";
int get total native "ProgressEvent_total_Getter";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName HTMLQuoteElement
abstract class QuoteElement implements Element {
/** @domName HTMLQuoteElement.cite */
String cite;
}
// 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.
// WARNING: Do not edit - generated code.
class _QuoteElementImpl extends _ElementImpl_Merged implements QuoteElement {
String get cite native "HTMLQuoteElement_cite_Getter";
void set cite(String value) native "HTMLQuoteElement_cite_Setter";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName RGBColor
abstract class RGBColor {
/** @domName RGBColor.blue */
CSSPrimitiveValue get blue;
/** @domName RGBColor.green */
CSSPrimitiveValue get green;
/** @domName RGBColor.red */
CSSPrimitiveValue get red;
}
// 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.
// WARNING: Do not edit - generated code.
class _RGBColorImpl extends NativeFieldWrapperClass1 implements RGBColor {
CSSPrimitiveValue get blue native "RGBColor_blue_Getter";
CSSPrimitiveValue get green native "RGBColor_green_Getter";
CSSPrimitiveValue get red native "RGBColor_red_Getter";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName RTCDataChannel
abstract class RTCDataChannel implements EventTarget {
/**
* @domName EventTarget.addEventListener, EventTarget.removeEventListener, EventTarget.dispatchEvent
*/
RTCDataChannelEvents get on;
/** @domName RTCDataChannel.binaryType */
String binaryType;
/** @domName RTCDataChannel.bufferedAmount */
int get bufferedAmount;
/** @domName RTCDataChannel.label */
String get label;
/** @domName RTCDataChannel.readyState */
String get readyState;
/** @domName RTCDataChannel.reliable */
bool get reliable;
/** @domName RTCDataChannel.addEventListener */
void $dom_addEventListener(String type, EventListener listener, [bool useCapture]);
/** @domName RTCDataChannel.close */
void close();
/** @domName RTCDataChannel.dispatchEvent */
bool $dom_dispatchEvent(Event event);
/** @domName RTCDataChannel.removeEventListener */
void $dom_removeEventListener(String type, EventListener listener, [bool useCapture]);
/** @domName RTCDataChannel.send */
void send(data);
}
abstract class RTCDataChannelEvents implements Events {
EventListenerList get close;
EventListenerList get error;
EventListenerList get message;
EventListenerList get open;
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName RTCDataChannelEvent
abstract class RTCDataChannelEvent implements Event {
/** @domName RTCDataChannelEvent.channel */
RTCDataChannel get channel;
}
// 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.
// WARNING: Do not edit - generated code.
class _RTCDataChannelEventImpl extends _EventImpl implements RTCDataChannelEvent {
RTCDataChannel get channel native "RTCDataChannelEvent_channel_Getter";
}
// 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.
// WARNING: Do not edit - generated code.
class _RTCDataChannelImpl extends _EventTargetImpl implements RTCDataChannel {
_RTCDataChannelEventsImpl get on =>
new _RTCDataChannelEventsImpl(this);
String get binaryType native "RTCDataChannel_binaryType_Getter";
void set binaryType(String value) native "RTCDataChannel_binaryType_Setter";
int get bufferedAmount native "RTCDataChannel_bufferedAmount_Getter";
String get label native "RTCDataChannel_label_Getter";
String get readyState native "RTCDataChannel_readyState_Getter";
bool get reliable native "RTCDataChannel_reliable_Getter";
void $dom_addEventListener(String type, EventListener listener, [bool useCapture]) native "RTCDataChannel_addEventListener_Callback";
void close() native "RTCDataChannel_close_Callback";
bool $dom_dispatchEvent(Event event) native "RTCDataChannel_dispatchEvent_Callback";
void $dom_removeEventListener(String type, EventListener listener, [bool useCapture]) native "RTCDataChannel_removeEventListener_Callback";
void send(data) {
if ((data is ArrayBuffer || data == null)) {
_send_1(data);
return;
}
if ((data is ArrayBufferView || data == null)) {
_send_2(data);
return;
}
if ((data is Blob || data == null)) {
_send_3(data);
return;
}
if ((data is String || data == null)) {
_send_4(data);
return;
}
throw "Incorrect number or type of arguments";
}
void _send_1(data) native "RTCDataChannel_send_1_Callback";
void _send_2(data) native "RTCDataChannel_send_2_Callback";
void _send_3(data) native "RTCDataChannel_send_3_Callback";
void _send_4(data) native "RTCDataChannel_send_4_Callback";
}
class _RTCDataChannelEventsImpl extends _EventsImpl implements RTCDataChannelEvents {
_RTCDataChannelEventsImpl(_ptr) : super(_ptr);
EventListenerList get close => this['close'];
EventListenerList get error => this['error'];
EventListenerList get message => this['message'];
EventListenerList get open => this['open'];
}
// 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.
// WARNING: Do not edit - generated code.
typedef void RTCErrorCallback(String errorInformation);
// 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.
// WARNING: Do not edit - generated code.
/// @domName RTCIceCandidate
abstract class RTCIceCandidate {
factory RTCIceCandidate(Map dictionary) => _RTCIceCandidateFactoryProvider.createRTCIceCandidate(dictionary);
/** @domName RTCIceCandidate.candidate */
String get candidate;
/** @domName RTCIceCandidate.sdpMLineIndex */
int get sdpMLineIndex;
/** @domName RTCIceCandidate.sdpMid */
String get sdpMid;
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName RTCIceCandidateEvent
abstract class RTCIceCandidateEvent implements Event {
/** @domName RTCIceCandidateEvent.candidate */
RTCIceCandidate get candidate;
}
// 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.
// WARNING: Do not edit - generated code.
class _RTCIceCandidateEventImpl extends _EventImpl implements RTCIceCandidateEvent {
RTCIceCandidate get candidate native "RTCIceCandidateEvent_candidate_Getter";
}
// 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.
// WARNING: Do not edit - generated code.
class _RTCIceCandidateImpl extends NativeFieldWrapperClass1 implements RTCIceCandidate {
String get candidate native "RTCIceCandidate_candidate_Getter";
int get sdpMLineIndex native "RTCIceCandidate_sdpMLineIndex_Getter";
String get sdpMid native "RTCIceCandidate_sdpMid_Getter";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName RTCPeerConnection
abstract class RTCPeerConnection implements EventTarget {
factory RTCPeerConnection(Map rtcIceServers, [Map mediaConstraints]) {
if (!?mediaConstraints) {
return _RTCPeerConnectionFactoryProvider.createRTCPeerConnection(rtcIceServers);
}
return _RTCPeerConnectionFactoryProvider.createRTCPeerConnection(rtcIceServers, mediaConstraints);
}
/**
* @domName EventTarget.addEventListener, EventTarget.removeEventListener, EventTarget.dispatchEvent
*/
RTCPeerConnectionEvents get on;
/** @domName RTCPeerConnection.iceState */
String get iceState;
/** @domName RTCPeerConnection.localDescription */
RTCSessionDescription get localDescription;
/** @domName RTCPeerConnection.localStreams */
List<MediaStream> get localStreams;
/** @domName RTCPeerConnection.readyState */
String get readyState;
/** @domName RTCPeerConnection.remoteDescription */
RTCSessionDescription get remoteDescription;
/** @domName RTCPeerConnection.remoteStreams */
List<MediaStream> get remoteStreams;
/** @domName RTCPeerConnection.addEventListener */
void $dom_addEventListener(String type, EventListener listener, [bool useCapture]);
/** @domName RTCPeerConnection.addIceCandidate */
void addIceCandidate(RTCIceCandidate candidate);
/** @domName RTCPeerConnection.addStream */
void addStream(MediaStream stream, [Map mediaConstraints]);
/** @domName RTCPeerConnection.close */
void close();
/** @domName RTCPeerConnection.createAnswer */
void createAnswer(RTCSessionDescriptionCallback successCallback, [RTCErrorCallback failureCallback, Map mediaConstraints]);
/** @domName RTCPeerConnection.createDataChannel */
RTCDataChannel createDataChannel(String label, [Map options]);
/** @domName RTCPeerConnection.createOffer */
void createOffer(RTCSessionDescriptionCallback successCallback, [RTCErrorCallback failureCallback, Map mediaConstraints]);
/** @domName RTCPeerConnection.dispatchEvent */
bool $dom_dispatchEvent(Event event);
/** @domName RTCPeerConnection.getStats */
void getStats(RTCStatsCallback successCallback, MediaStreamTrack selector);
/** @domName RTCPeerConnection.removeEventListener */
void $dom_removeEventListener(String type, EventListener listener, [bool useCapture]);
/** @domName RTCPeerConnection.removeStream */
void removeStream(MediaStream stream);
/** @domName RTCPeerConnection.setLocalDescription */
void setLocalDescription(RTCSessionDescription description, [VoidCallback successCallback, RTCErrorCallback failureCallback]);
/** @domName RTCPeerConnection.setRemoteDescription */
void setRemoteDescription(RTCSessionDescription description, [VoidCallback successCallback, RTCErrorCallback failureCallback]);
/** @domName RTCPeerConnection.updateIce */
void updateIce([Map configuration, Map mediaConstraints]);
}
abstract class RTCPeerConnectionEvents implements Events {
EventListenerList get addStream;
EventListenerList get iceCandidate;
EventListenerList get iceChange;
EventListenerList get negotiationNeeded;
EventListenerList get open;
EventListenerList get removeStream;
EventListenerList get stateChange;
}
// 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.
// WARNING: Do not edit - generated code.
class _RTCPeerConnectionImpl extends _EventTargetImpl implements RTCPeerConnection {
_RTCPeerConnectionEventsImpl get on =>
new _RTCPeerConnectionEventsImpl(this);
String get iceState native "RTCPeerConnection_iceState_Getter";
RTCSessionDescription get localDescription native "RTCPeerConnection_localDescription_Getter";
List<MediaStream> get localStreams native "RTCPeerConnection_localStreams_Getter";
String get readyState native "RTCPeerConnection_readyState_Getter";
RTCSessionDescription get remoteDescription native "RTCPeerConnection_remoteDescription_Getter";
List<MediaStream> get remoteStreams native "RTCPeerConnection_remoteStreams_Getter";
void $dom_addEventListener(String type, EventListener listener, [bool useCapture]) native "RTCPeerConnection_addEventListener_Callback";
void addIceCandidate(RTCIceCandidate candidate) native "RTCPeerConnection_addIceCandidate_Callback";
void addStream(MediaStream stream, [Map mediaConstraints]) native "RTCPeerConnection_addStream_Callback";
void close() native "RTCPeerConnection_close_Callback";
void createAnswer(RTCSessionDescriptionCallback successCallback, [RTCErrorCallback failureCallback, Map mediaConstraints]) native "RTCPeerConnection_createAnswer_Callback";
RTCDataChannel createDataChannel(String label, [Map options]) native "RTCPeerConnection_createDataChannel_Callback";
void createOffer(RTCSessionDescriptionCallback successCallback, [RTCErrorCallback failureCallback, Map mediaConstraints]) native "RTCPeerConnection_createOffer_Callback";
bool $dom_dispatchEvent(Event event) native "RTCPeerConnection_dispatchEvent_Callback";
void getStats(RTCStatsCallback successCallback, MediaStreamTrack selector) native "RTCPeerConnection_getStats_Callback";
void $dom_removeEventListener(String type, EventListener listener, [bool useCapture]) native "RTCPeerConnection_removeEventListener_Callback";
void removeStream(MediaStream stream) native "RTCPeerConnection_removeStream_Callback";
void setLocalDescription(RTCSessionDescription description, [VoidCallback successCallback, RTCErrorCallback failureCallback]) native "RTCPeerConnection_setLocalDescription_Callback";
void setRemoteDescription(RTCSessionDescription description, [VoidCallback successCallback, RTCErrorCallback failureCallback]) native "RTCPeerConnection_setRemoteDescription_Callback";
void updateIce([Map configuration, Map mediaConstraints]) native "RTCPeerConnection_updateIce_Callback";
}
class _RTCPeerConnectionEventsImpl extends _EventsImpl implements RTCPeerConnectionEvents {
_RTCPeerConnectionEventsImpl(_ptr) : super(_ptr);
EventListenerList get addStream => this['addstream'];
EventListenerList get iceCandidate => this['icecandidate'];
EventListenerList get iceChange => this['icechange'];
EventListenerList get negotiationNeeded => this['negotiationneeded'];
EventListenerList get open => this['open'];
EventListenerList get removeStream => this['removestream'];
EventListenerList get stateChange => this['statechange'];
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName RTCSessionDescription
abstract class RTCSessionDescription {
factory RTCSessionDescription(Map dictionary) => _RTCSessionDescriptionFactoryProvider.createRTCSessionDescription(dictionary);
/** @domName RTCSessionDescription.sdp */
String sdp;
/** @domName RTCSessionDescription.type */
String type;
}
// 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.
// WARNING: Do not edit - generated code.
typedef void RTCSessionDescriptionCallback(RTCSessionDescription sdp);
// 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.
// WARNING: Do not edit - generated code.
class _RTCSessionDescriptionImpl extends NativeFieldWrapperClass1 implements RTCSessionDescription {
String get sdp native "RTCSessionDescription_sdp_Getter";
void set sdp(String value) native "RTCSessionDescription_sdp_Setter";
String get type native "RTCSessionDescription_type_Getter";
void set type(String value) native "RTCSessionDescription_type_Setter";
}
// 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.
// WARNING: Do not edit - generated code.
typedef void RTCStatsCallback(RTCStatsResponse response);
// 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.
// WARNING: Do not edit - generated code.
/// @domName RTCStatsElement
abstract class RTCStatsElement {
/** @domName RTCStatsElement.timestamp */
Date get timestamp;
/** @domName RTCStatsElement.stat */
String stat(String name);
}
// 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.
// WARNING: Do not edit - generated code.
class _RTCStatsElementImpl extends NativeFieldWrapperClass1 implements RTCStatsElement {
Date get timestamp native "RTCStatsElement_timestamp_Getter";
String stat(String name) native "RTCStatsElement_stat_Callback";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName RTCStatsReport
abstract class RTCStatsReport {
/** @domName RTCStatsReport.local */
RTCStatsElement get local;
/** @domName RTCStatsReport.remote */
RTCStatsElement get remote;
}
// 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.
// WARNING: Do not edit - generated code.
class _RTCStatsReportImpl extends NativeFieldWrapperClass1 implements RTCStatsReport {
RTCStatsElement get local native "RTCStatsReport_local_Getter";
RTCStatsElement get remote native "RTCStatsReport_remote_Getter";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName RTCStatsResponse
abstract class RTCStatsResponse {
/** @domName RTCStatsResponse.result */
List<RTCStatsReport> result();
}
// 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.
// WARNING: Do not edit - generated code.
class _RTCStatsResponseImpl extends NativeFieldWrapperClass1 implements RTCStatsResponse {
List<RTCStatsReport> result() native "RTCStatsResponse_result_Callback";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName RadioNodeList
abstract class RadioNodeList implements NodeList {
/** @domName RadioNodeList.value */
String value;
}
// 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.
// WARNING: Do not edit - generated code.
class _RadioNodeListImpl extends _NodeListImpl implements RadioNodeList {
String get value native "RadioNodeList_value_Getter";
void set value(String value) native "RadioNodeList_value_Setter";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName Range
abstract class Range {
static const int END_TO_END = 2;
static const int END_TO_START = 3;
static const int NODE_AFTER = 1;
static const int NODE_BEFORE = 0;
static const int NODE_BEFORE_AND_AFTER = 2;
static const int NODE_INSIDE = 3;
static const int START_TO_END = 1;
static const int START_TO_START = 0;
/** @domName Range.collapsed */
bool get collapsed;
/** @domName Range.commonAncestorContainer */
Node get commonAncestorContainer;
/** @domName Range.endContainer */
Node get endContainer;
/** @domName Range.endOffset */
int get endOffset;
/** @domName Range.startContainer */
Node get startContainer;
/** @domName Range.startOffset */
int get startOffset;
/** @domName Range.cloneContents */
DocumentFragment cloneContents();
/** @domName Range.cloneRange */
Range cloneRange();
/** @domName Range.collapse */
void collapse(bool toStart);
/** @domName Range.compareNode */
int compareNode(Node refNode);
/** @domName Range.comparePoint */
int comparePoint(Node refNode, int offset);
/** @domName Range.createContextualFragment */
DocumentFragment createContextualFragment(String html);
/** @domName Range.deleteContents */
void deleteContents();
/** @domName Range.detach */
void detach();
/** @domName Range.expand */
void expand(String unit);
/** @domName Range.extractContents */
DocumentFragment extractContents();
/** @domName Range.getBoundingClientRect */
ClientRect getBoundingClientRect();
/** @domName Range.getClientRects */
List<ClientRect> getClientRects();
/** @domName Range.insertNode */
void insertNode(Node newNode);
/** @domName Range.intersectsNode */
bool intersectsNode(Node refNode);
/** @domName Range.isPointInRange */
bool isPointInRange(Node refNode, int offset);
/** @domName Range.selectNode */
void selectNode(Node refNode);
/** @domName Range.selectNodeContents */
void selectNodeContents(Node refNode);
/** @domName Range.setEnd */
void setEnd(Node refNode, int offset);
/** @domName Range.setEndAfter */
void setEndAfter(Node refNode);
/** @domName Range.setEndBefore */
void setEndBefore(Node refNode);
/** @domName Range.setStart */
void setStart(Node refNode, int offset);
/** @domName Range.setStartAfter */
void setStartAfter(Node refNode);
/** @domName Range.setStartBefore */
void setStartBefore(Node refNode);
/** @domName Range.surroundContents */
void surroundContents(Node newParent);
/** @domName Range.toString */
String toString();
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName RangeException
abstract class RangeException {
static const int BAD_BOUNDARYPOINTS_ERR = 1;
static const int INVALID_NODE_TYPE_ERR = 2;
/** @domName RangeException.code */
int get code;
/** @domName RangeException.message */
String get message;
/** @domName RangeException.name */
String get name;
/** @domName RangeException.toString */
String toString();
}
// 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.
// WARNING: Do not edit - generated code.
class _RangeExceptionImpl extends NativeFieldWrapperClass1 implements RangeException {
int get code native "RangeException_code_Getter";
String get message native "RangeException_message_Getter";
String get name native "RangeException_name_Getter";
String toString() native "RangeException_toString_Callback";
}
// 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.
// WARNING: Do not edit - generated code.
class _RangeImpl extends NativeFieldWrapperClass1 implements Range {
bool get collapsed native "Range_collapsed_Getter";
Node get commonAncestorContainer native "Range_commonAncestorContainer_Getter";
Node get endContainer native "Range_endContainer_Getter";
int get endOffset native "Range_endOffset_Getter";
Node get startContainer native "Range_startContainer_Getter";
int get startOffset native "Range_startOffset_Getter";
DocumentFragment cloneContents() native "Range_cloneContents_Callback";
Range cloneRange() native "Range_cloneRange_Callback";
void collapse(bool toStart) native "Range_collapse_Callback";
int compareNode(Node refNode) native "Range_compareNode_Callback";
int comparePoint(Node refNode, int offset) native "Range_comparePoint_Callback";
DocumentFragment createContextualFragment(String html) native "Range_createContextualFragment_Callback";
void deleteContents() native "Range_deleteContents_Callback";
void detach() native "Range_detach_Callback";
void expand(String unit) native "Range_expand_Callback";
DocumentFragment extractContents() native "Range_extractContents_Callback";
ClientRect getBoundingClientRect() native "Range_getBoundingClientRect_Callback";
List<ClientRect> getClientRects() native "Range_getClientRects_Callback";
void insertNode(Node newNode) native "Range_insertNode_Callback";
bool intersectsNode(Node refNode) native "Range_intersectsNode_Callback";
bool isPointInRange(Node refNode, int offset) native "Range_isPointInRange_Callback";
void selectNode(Node refNode) native "Range_selectNode_Callback";
void selectNodeContents(Node refNode) native "Range_selectNodeContents_Callback";
void setEnd(Node refNode, int offset) native "Range_setEnd_Callback";
void setEndAfter(Node refNode) native "Range_setEndAfter_Callback";
void setEndBefore(Node refNode) native "Range_setEndBefore_Callback";
void setStart(Node refNode, int offset) native "Range_setStart_Callback";
void setStartAfter(Node refNode) native "Range_setStartAfter_Callback";
void setStartBefore(Node refNode) native "Range_setStartBefore_Callback";
void surroundContents(Node newParent) native "Range_surroundContents_Callback";
String toString() native "Range_toString_Callback";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName Rect
abstract class Rect {
/** @domName Rect.bottom */
CSSPrimitiveValue get bottom;
/** @domName Rect.left */
CSSPrimitiveValue get left;
/** @domName Rect.right */
CSSPrimitiveValue get right;
/** @domName Rect.top */
CSSPrimitiveValue get top;
}
// 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.
// WARNING: Do not edit - generated code.
class _RectImpl extends NativeFieldWrapperClass1 implements Rect {
CSSPrimitiveValue get bottom native "Rect_bottom_Getter";
CSSPrimitiveValue get left native "Rect_left_Getter";
CSSPrimitiveValue get right native "Rect_right_Getter";
CSSPrimitiveValue get top native "Rect_top_Getter";
}
// 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.
// WARNING: Do not edit - generated code.
typedef void RequestAnimationFrameCallback(num highResTime);
// 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.
// WARNING: Do not edit - generated code.
/// @domName SQLError
abstract class SQLError {
static const int CONSTRAINT_ERR = 6;
static const int DATABASE_ERR = 1;
static const int QUOTA_ERR = 4;
static const int SYNTAX_ERR = 5;
static const int TIMEOUT_ERR = 7;
static const int TOO_LARGE_ERR = 3;
static const int UNKNOWN_ERR = 0;
static const int VERSION_ERR = 2;
/** @domName SQLError.code */
int get code;
/** @domName SQLError.message */
String get message;
}
// 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.
// WARNING: Do not edit - generated code.
class _SQLErrorImpl extends NativeFieldWrapperClass1 implements SQLError {
int get code native "SQLError_code_Getter";
String get message native "SQLError_message_Getter";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName SQLException
abstract class SQLException {
static const int CONSTRAINT_ERR = 6;
static const int DATABASE_ERR = 1;
static const int QUOTA_ERR = 4;
static const int SYNTAX_ERR = 5;
static const int TIMEOUT_ERR = 7;
static const int TOO_LARGE_ERR = 3;
static const int UNKNOWN_ERR = 0;
static const int VERSION_ERR = 2;
/** @domName SQLException.code */
int get code;
/** @domName SQLException.message */
String get message;
}
// 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.
// WARNING: Do not edit - generated code.
class _SQLExceptionImpl extends NativeFieldWrapperClass1 implements SQLException {
int get code native "SQLException_code_Getter";
String get message native "SQLException_message_Getter";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName SQLResultSet
abstract class SQLResultSet {
/** @domName SQLResultSet.insertId */
int get insertId;
/** @domName SQLResultSet.rows */
SQLResultSetRowList get rows;
/** @domName SQLResultSet.rowsAffected */
int get rowsAffected;
}
// 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.
// WARNING: Do not edit - generated code.
class _SQLResultSetImpl extends NativeFieldWrapperClass1 implements SQLResultSet {
int get insertId native "SQLResultSet_insertId_Getter";
SQLResultSetRowList get rows native "SQLResultSet_rows_Getter";
int get rowsAffected native "SQLResultSet_rowsAffected_Getter";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName SQLResultSetRowList
abstract class SQLResultSetRowList implements List<Map> {
/** @domName SQLResultSetRowList.length */
int get length;
/** @domName SQLResultSetRowList.item */
Map item(int index);
}
// 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.
// WARNING: Do not edit - generated code.
class _SQLResultSetRowListImpl extends NativeFieldWrapperClass1 implements SQLResultSetRowList {
int get length native "SQLResultSetRowList_length_Getter";
Map operator[](int index) native "SQLResultSetRowList_item_Callback";
void operator[]=(int index, Map value) {
throw new UnsupportedError("Cannot assign element of immutable List.");
}
// -- start List<Map> mixins.
// Map is the element type.
// From Iterable<Map>:
Iterator<Map> 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<Map>(this);
}
// From Collection<Map>:
void add(Map value) {
throw new UnsupportedError("Cannot add to immutable List.");
}
void addLast(Map value) {
throw new UnsupportedError("Cannot add to immutable List.");
}
void addAll(Collection<Map> collection) {
throw new UnsupportedError("Cannot add to immutable List.");
}
bool contains(Map element) => _Collections.contains(this, element);
void forEach(void f(Map element)) => _Collections.forEach(this, f);
Collection map(f(Map element)) => _Collections.map(this, [], f);
Collection<Map> filter(bool f(Map element)) =>
_Collections.filter(this, <Map>[], f);
bool every(bool f(Map element)) => _Collections.every(this, f);
bool some(bool f(Map element)) => _Collections.some(this, f);
bool get isEmpty => this.length == 0;
// From List<Map>:
void sort([Comparator<Map> compare = Comparable.compare]) {
throw new UnsupportedError("Cannot sort immutable List.");
}
int indexOf(Map element, [int start = 0]) =>
_Lists.indexOf(this, element, start, this.length);
int lastIndexOf(Map element, [int start]) {
if (start == null) start = length - 1;
return _Lists.lastIndexOf(this, element, start);
}
Map get last => this[length - 1];
Map removeLast() {
throw new UnsupportedError("Cannot removeLast on immutable List.");
}
void setRange(int start, int rangeLength, List<Map> from, [int startFrom]) {
throw new UnsupportedError("Cannot setRange on immutable List.");
}
void removeRange(int start, int rangeLength) {
throw new UnsupportedError("Cannot removeRange on immutable List.");
}
void insertRange(int start, int rangeLength, [Map initialValue]) {
throw new UnsupportedError("Cannot insertRange on immutable List.");
}
List<Map> getRange(int start, int rangeLength) =>
_Lists.getRange(this, start, rangeLength, <Map>[]);
// -- end List<Map> mixins.
Map item(int index) native "SQLResultSetRowList_item_Callback";
}
// 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.
// WARNING: Do not edit - generated code.
typedef void SQLStatementCallback(SQLTransaction transaction, SQLResultSet resultSet);
// 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.
// WARNING: Do not edit - generated code.
typedef void SQLStatementErrorCallback(SQLTransaction transaction, SQLError error);
// 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.
// WARNING: Do not edit - generated code.
/// @domName SQLTransaction
abstract class SQLTransaction {
/** @domName SQLTransaction.executeSql */
void executeSql(String sqlStatement, List arguments, [SQLStatementCallback callback, SQLStatementErrorCallback errorCallback]);
}
// 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.
// WARNING: Do not edit - generated code.
typedef void SQLTransactionCallback(SQLTransaction transaction);
// 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.
// WARNING: Do not edit - generated code.
typedef void SQLTransactionErrorCallback(SQLError error);
// 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.
// WARNING: Do not edit - generated code.
class _SQLTransactionImpl extends NativeFieldWrapperClass1 implements SQLTransaction {
void executeSql(String sqlStatement, List arguments, [SQLStatementCallback callback, SQLStatementErrorCallback errorCallback]) native "SQLTransaction_executeSql_Callback";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName SQLTransactionSync
abstract class SQLTransactionSync {
/** @domName SQLTransactionSync.executeSql */
SQLResultSet executeSql(String sqlStatement, List arguments);
}
// 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.
// WARNING: Do not edit - generated code.
typedef void SQLTransactionSyncCallback(SQLTransactionSync transaction);
// 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.
// WARNING: Do not edit - generated code.
class _SQLTransactionSyncImpl extends NativeFieldWrapperClass1 implements SQLTransactionSync {
SQLResultSet executeSql(String sqlStatement, List arguments) native "SQLTransactionSync_executeSql_Callback";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName SVGAElement
abstract class SVGAElement implements SVGElement, SVGURIReference, SVGTests, SVGLangSpace, SVGExternalResourcesRequired, SVGStylable, SVGTransformable {
/** @domName SVGAElement.target */
SVGAnimatedString get target;
}
// 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.
// WARNING: Do not edit - generated code.
class _SVGAElementImpl extends _SVGElementImpl implements SVGAElement {
SVGAnimatedString get target native "SVGAElement_target_Getter";
SVGAnimatedBoolean get externalResourcesRequired native "SVGAElement_externalResourcesRequired_Getter";
String get xmllang native "SVGAElement_xmllang_Getter";
void set xmllang(String value) native "SVGAElement_xmllang_Setter";
String get xmlspace native "SVGAElement_xmlspace_Getter";
void set xmlspace(String value) native "SVGAElement_xmlspace_Setter";
SVGElement get farthestViewportElement native "SVGAElement_farthestViewportElement_Getter";
SVGElement get nearestViewportElement native "SVGAElement_nearestViewportElement_Getter";
SVGRect getBBox() native "SVGAElement_getBBox_Callback";
SVGMatrix getCTM() native "SVGAElement_getCTM_Callback";
SVGMatrix getScreenCTM() native "SVGAElement_getScreenCTM_Callback";
SVGMatrix getTransformToElement(SVGElement element) native "SVGAElement_getTransformToElement_Callback";
SVGAnimatedString get $dom_svgClassName native "SVGAElement_className_Getter";
CSSStyleDeclaration get style native "SVGAElement_style_Getter";
CSSValue getPresentationAttribute(String name) native "SVGAElement_getPresentationAttribute_Callback";
SVGStringList get requiredExtensions native "SVGAElement_requiredExtensions_Getter";
SVGStringList get requiredFeatures native "SVGAElement_requiredFeatures_Getter";
SVGStringList get systemLanguage native "SVGAElement_systemLanguage_Getter";
bool hasExtension(String extension) native "SVGAElement_hasExtension_Callback";
SVGAnimatedTransformList get transform native "SVGAElement_transform_Getter";
SVGAnimatedString get href native "SVGAElement_href_Getter";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName SVGAltGlyphDefElement
abstract class SVGAltGlyphDefElement implements SVGElement {
}
// 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.
// WARNING: Do not edit - generated code.
class _SVGAltGlyphDefElementImpl extends _SVGElementImpl implements SVGAltGlyphDefElement {
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName SVGAltGlyphElement
abstract class SVGAltGlyphElement implements SVGTextPositioningElement, SVGURIReference {
/** @domName SVGAltGlyphElement.format */
String format;
/** @domName SVGAltGlyphElement.glyphRef */
String glyphRef;
}
// 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.
// WARNING: Do not edit - generated code.
class _SVGAltGlyphElementImpl extends _SVGTextPositioningElementImpl implements SVGAltGlyphElement {
String get format native "SVGAltGlyphElement_format_Getter";
void set format(String value) native "SVGAltGlyphElement_format_Setter";
String get glyphRef native "SVGAltGlyphElement_glyphRef_Getter";
void set glyphRef(String value) native "SVGAltGlyphElement_glyphRef_Setter";
SVGAnimatedString get href native "SVGAltGlyphElement_href_Getter";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName SVGAltGlyphItemElement
abstract class SVGAltGlyphItemElement implements SVGElement {
}
// 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.
// WARNING: Do not edit - generated code.
class _SVGAltGlyphItemElementImpl extends _SVGElementImpl implements SVGAltGlyphItemElement {
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName SVGAngle
abstract class SVGAngle {
static const int SVG_ANGLETYPE_DEG = 2;
static const int SVG_ANGLETYPE_GRAD = 4;
static const int SVG_ANGLETYPE_RAD = 3;
static const int SVG_ANGLETYPE_UNKNOWN = 0;
static const int SVG_ANGLETYPE_UNSPECIFIED = 1;
/** @domName SVGAngle.unitType */
int get unitType;
/** @domName SVGAngle.value */
num value;
/** @domName SVGAngle.valueAsString */
String valueAsString;
/** @domName SVGAngle.valueInSpecifiedUnits */
num valueInSpecifiedUnits;
/** @domName SVGAngle.convertToSpecifiedUnits */
void convertToSpecifiedUnits(int unitType);
/** @domName SVGAngle.newValueSpecifiedUnits */
void newValueSpecifiedUnits(int unitType, num valueInSpecifiedUnits);
}
// 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.
// WARNING: Do not edit - generated code.
class _SVGAngleImpl extends NativeFieldWrapperClass1 implements SVGAngle {
int get unitType native "SVGAngle_unitType_Getter";
num get value native "SVGAngle_value_Getter";
void set value(num value) native "SVGAngle_value_Setter";
String get valueAsString native "SVGAngle_valueAsString_Getter";
void set valueAsString(String value) native "SVGAngle_valueAsString_Setter";
num get valueInSpecifiedUnits native "SVGAngle_valueInSpecifiedUnits_Getter";
void set valueInSpecifiedUnits(num value) native "SVGAngle_valueInSpecifiedUnits_Setter";
void convertToSpecifiedUnits(int unitType) native "SVGAngle_convertToSpecifiedUnits_Callback";
void newValueSpecifiedUnits(int unitType, num valueInSpecifiedUnits) native "SVGAngle_newValueSpecifiedUnits_Callback";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName SVGAnimateColorElement
abstract class SVGAnimateColorElement implements SVGAnimationElement {
}
// 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.
// WARNING: Do not edit - generated code.
class _SVGAnimateColorElementImpl extends _SVGAnimationElementImpl implements SVGAnimateColorElement {
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName SVGAnimateElement
abstract class SVGAnimateElement implements SVGAnimationElement {
}
// 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.
// WARNING: Do not edit - generated code.
class _SVGAnimateElementImpl extends _SVGAnimationElementImpl implements SVGAnimateElement {
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName SVGAnimateMotionElement
abstract class SVGAnimateMotionElement implements SVGAnimationElement {
}
// 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.
// WARNING: Do not edit - generated code.
class _SVGAnimateMotionElementImpl extends _SVGAnimationElementImpl implements SVGAnimateMotionElement {
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName SVGAnimateTransformElement
abstract class SVGAnimateTransformElement implements SVGAnimationElement {
}
// 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.
// WARNING: Do not edit - generated code.
class _SVGAnimateTransformElementImpl extends _SVGAnimationElementImpl implements SVGAnimateTransformElement {
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName SVGAnimatedAngle
abstract class SVGAnimatedAngle {
/** @domName SVGAnimatedAngle.animVal */
SVGAngle get animVal;
/** @domName SVGAnimatedAngle.baseVal */
SVGAngle get baseVal;
}
// 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.
// WARNING: Do not edit - generated code.
class _SVGAnimatedAngleImpl extends NativeFieldWrapperClass1 implements SVGAnimatedAngle {
SVGAngle get animVal native "SVGAnimatedAngle_animVal_Getter";
SVGAngle get baseVal native "SVGAnimatedAngle_baseVal_Getter";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName SVGAnimatedBoolean
abstract class SVGAnimatedBoolean {
/** @domName SVGAnimatedBoolean.animVal */
bool get animVal;
/** @domName SVGAnimatedBoolean.baseVal */
bool baseVal;
}
// 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.
// WARNING: Do not edit - generated code.
class _SVGAnimatedBooleanImpl extends NativeFieldWrapperClass1 implements SVGAnimatedBoolean {
bool get animVal native "SVGAnimatedBoolean_animVal_Getter";
bool get baseVal native "SVGAnimatedBoolean_baseVal_Getter";
void set baseVal(bool value) native "SVGAnimatedBoolean_baseVal_Setter";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName SVGAnimatedEnumeration
abstract class SVGAnimatedEnumeration {
/** @domName SVGAnimatedEnumeration.animVal */
int get animVal;
/** @domName SVGAnimatedEnumeration.baseVal */
int baseVal;
}
// 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.
// WARNING: Do not edit - generated code.
class _SVGAnimatedEnumerationImpl extends NativeFieldWrapperClass1 implements SVGAnimatedEnumeration {
int get animVal native "SVGAnimatedEnumeration_animVal_Getter";
int get baseVal native "SVGAnimatedEnumeration_baseVal_Getter";
void set baseVal(int value) native "SVGAnimatedEnumeration_baseVal_Setter";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName SVGAnimatedInteger
abstract class SVGAnimatedInteger {
/** @domName SVGAnimatedInteger.animVal */
int get animVal;
/** @domName SVGAnimatedInteger.baseVal */
int baseVal;
}
// 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.
// WARNING: Do not edit - generated code.
class _SVGAnimatedIntegerImpl extends NativeFieldWrapperClass1 implements SVGAnimatedInteger {
int get animVal native "SVGAnimatedInteger_animVal_Getter";
int get baseVal native "SVGAnimatedInteger_baseVal_Getter";
void set baseVal(int value) native "SVGAnimatedInteger_baseVal_Setter";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName SVGAnimatedLength
abstract class SVGAnimatedLength {
/** @domName SVGAnimatedLength.animVal */
SVGLength get animVal;
/** @domName SVGAnimatedLength.baseVal */
SVGLength get baseVal;
}
// 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.
// WARNING: Do not edit - generated code.
class _SVGAnimatedLengthImpl extends NativeFieldWrapperClass1 implements SVGAnimatedLength {
SVGLength get animVal native "SVGAnimatedLength_animVal_Getter";
SVGLength get baseVal native "SVGAnimatedLength_baseVal_Getter";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName SVGAnimatedLengthList
abstract class SVGAnimatedLengthList implements List<SVGAnimatedLength> {
/** @domName SVGAnimatedLengthList.animVal */
SVGLengthList get animVal;
/** @domName SVGAnimatedLengthList.baseVal */
SVGLengthList get baseVal;
}
// 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.
// WARNING: Do not edit - generated code.
class _SVGAnimatedLengthListImpl extends NativeFieldWrapperClass1 implements SVGAnimatedLengthList {
SVGLengthList get animVal native "SVGAnimatedLengthList_animVal_Getter";
SVGLengthList get baseVal native "SVGAnimatedLengthList_baseVal_Getter";
SVGAnimatedLength operator[](int index) native "SVGAnimatedLengthList_item_Callback";
void operator[]=(int index, SVGAnimatedLength value) {
throw new UnsupportedError("Cannot assign element of immutable List.");
}
// -- start List<SVGAnimatedLength> mixins.
// SVGAnimatedLength is the element type.
// From Iterable<SVGAnimatedLength>:
Iterator<SVGAnimatedLength> 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<SVGAnimatedLength>(this);
}
// From Collection<SVGAnimatedLength>:
void add(SVGAnimatedLength value) {
throw new UnsupportedError("Cannot add to immutable List.");
}
void addLast(SVGAnimatedLength value) {
throw new UnsupportedError("Cannot add to immutable List.");
}
void addAll(Collection<SVGAnimatedLength> collection) {
throw new UnsupportedError("Cannot add to immutable List.");
}
bool contains(SVGAnimatedLength element) => _Collections.contains(this, element);
void forEach(void f(SVGAnimatedLength element)) => _Collections.forEach(this, f);
Collection map(f(SVGAnimatedLength element)) => _Collections.map(this, [], f);
Collection<SVGAnimatedLength> filter(bool f(SVGAnimatedLength element)) =>
_Collections.filter(this, <SVGAnimatedLength>[], f);
bool every(bool f(SVGAnimatedLength element)) => _Collections.every(this, f);
bool some(bool f(SVGAnimatedLength element)) => _Collections.some(this, f);
bool get isEmpty => this.length == 0;
// From List<SVGAnimatedLength>:
void sort([Comparator<SVGAnimatedLength> compare = Comparable.compare]) {
throw new UnsupportedError("Cannot sort immutable List.");
}
int indexOf(SVGAnimatedLength element, [int start = 0]) =>
_Lists.indexOf(this, element, start, this.length);
int lastIndexOf(SVGAnimatedLength element, [int start]) {
if (start == null) start = length - 1;
return _Lists.lastIndexOf(this, element, start);
}
SVGAnimatedLength get last => this[length - 1];
SVGAnimatedLength removeLast() {
throw new UnsupportedError("Cannot removeLast on immutable List.");
}
void setRange(int start, int rangeLength, List<SVGAnimatedLength> from, [int startFrom]) {
throw new UnsupportedError("Cannot setRange on immutable List.");
}
void removeRange(int start, int rangeLength) {
throw new UnsupportedError("Cannot removeRange on immutable List.");
}
void insertRange(int start, int rangeLength, [SVGAnimatedLength initialValue]) {
throw new UnsupportedError("Cannot insertRange on immutable List.");
}
List<SVGAnimatedLength> getRange(int start, int rangeLength) =>
_Lists.getRange(this, start, rangeLength, <SVGAnimatedLength>[]);
// -- end List<SVGAnimatedLength> mixins.
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName SVGAnimatedNumber
abstract class SVGAnimatedNumber {
/** @domName SVGAnimatedNumber.animVal */
num get animVal;
/** @domName SVGAnimatedNumber.baseVal */
num baseVal;
}
// 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.
// WARNING: Do not edit - generated code.
class _SVGAnimatedNumberImpl extends NativeFieldWrapperClass1 implements SVGAnimatedNumber {
num get animVal native "SVGAnimatedNumber_animVal_Getter";
num get baseVal native "SVGAnimatedNumber_baseVal_Getter";
void set baseVal(num value) native "SVGAnimatedNumber_baseVal_Setter";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName SVGAnimatedNumberList
abstract class SVGAnimatedNumberList implements List<SVGAnimatedNumber> {
/** @domName SVGAnimatedNumberList.animVal */
SVGNumberList get animVal;
/** @domName SVGAnimatedNumberList.baseVal */
SVGNumberList get baseVal;
}
// 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.
// WARNING: Do not edit - generated code.
class _SVGAnimatedNumberListImpl extends NativeFieldWrapperClass1 implements SVGAnimatedNumberList {
SVGNumberList get animVal native "SVGAnimatedNumberList_animVal_Getter";
SVGNumberList get baseVal native "SVGAnimatedNumberList_baseVal_Getter";
SVGAnimatedNumber operator[](int index) native "SVGAnimatedNumberList_item_Callback";
void operator[]=(int index, SVGAnimatedNumber value) {
throw new UnsupportedError("Cannot assign element of immutable List.");
}
// -- start List<SVGAnimatedNumber> mixins.
// SVGAnimatedNumber is the element type.
// From Iterable<SVGAnimatedNumber>:
Iterator<SVGAnimatedNumber> 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<SVGAnimatedNumber>(this);
}
// From Collection<SVGAnimatedNumber>:
void add(SVGAnimatedNumber value) {
throw new UnsupportedError("Cannot add to immutable List.");
}
void addLast(SVGAnimatedNumber value) {
throw new UnsupportedError("Cannot add to immutable List.");
}
void addAll(Collection<SVGAnimatedNumber> collection) {
throw new UnsupportedError("Cannot add to immutable List.");
}
bool contains(SVGAnimatedNumber element) => _Collections.contains(this, element);
void forEach(void f(SVGAnimatedNumber element)) => _Collections.forEach(this, f);
Collection map(f(SVGAnimatedNumber element)) => _Collections.map(this, [], f);
Collection<SVGAnimatedNumber> filter(bool f(SVGAnimatedNumber element)) =>
_Collections.filter(this, <SVGAnimatedNumber>[], f);
bool every(bool f(SVGAnimatedNumber element)) => _Collections.every(this, f);
bool some(bool f(SVGAnimatedNumber element)) => _Collections.some(this, f);
bool get isEmpty => this.length == 0;
// From List<SVGAnimatedNumber>:
void sort([Comparator<SVGAnimatedNumber> compare = Comparable.compare]) {
throw new UnsupportedError("Cannot sort immutable List.");
}
int indexOf(SVGAnimatedNumber element, [int start = 0]) =>
_Lists.indexOf(this, element, start, this.length);
int lastIndexOf(SVGAnimatedNumber element, [int start]) {
if (start == null) start = length - 1;
return _Lists.lastIndexOf(this, element, start);
}
SVGAnimatedNumber get last => this[length - 1];
SVGAnimatedNumber removeLast() {
throw new UnsupportedError("Cannot removeLast on immutable List.");
}
void setRange(int start, int rangeLength, List<SVGAnimatedNumber> from, [int startFrom]) {
throw new UnsupportedError("Cannot setRange on immutable List.");
}
void removeRange(int start, int rangeLength) {
throw new UnsupportedError("Cannot removeRange on immutable List.");
}
void insertRange(int start, int rangeLength, [SVGAnimatedNumber initialValue]) {
throw new UnsupportedError("Cannot insertRange on immutable List.");
}
List<SVGAnimatedNumber> getRange(int start, int rangeLength) =>
_Lists.getRange(this, start, rangeLength, <SVGAnimatedNumber>[]);
// -- end List<SVGAnimatedNumber> mixins.
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName SVGAnimatedPreserveAspectRatio
abstract class SVGAnimatedPreserveAspectRatio {
/** @domName SVGAnimatedPreserveAspectRatio.animVal */
SVGPreserveAspectRatio get animVal;
/** @domName SVGAnimatedPreserveAspectRatio.baseVal */
SVGPreserveAspectRatio get baseVal;
}
// 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.
// WARNING: Do not edit - generated code.
class _SVGAnimatedPreserveAspectRatioImpl extends NativeFieldWrapperClass1 implements SVGAnimatedPreserveAspectRatio {
SVGPreserveAspectRatio get animVal native "SVGAnimatedPreserveAspectRatio_animVal_Getter";
SVGPreserveAspectRatio get baseVal native "SVGAnimatedPreserveAspectRatio_baseVal_Getter";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName SVGAnimatedRect
abstract class SVGAnimatedRect {
/** @domName SVGAnimatedRect.animVal */
SVGRect get animVal;
/** @domName SVGAnimatedRect.baseVal */
SVGRect get baseVal;
}
// 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.
// WARNING: Do not edit - generated code.
class _SVGAnimatedRectImpl extends NativeFieldWrapperClass1 implements SVGAnimatedRect {
SVGRect get animVal native "SVGAnimatedRect_animVal_Getter";
SVGRect get baseVal native "SVGAnimatedRect_baseVal_Getter";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName SVGAnimatedString
abstract class SVGAnimatedString {
/** @domName SVGAnimatedString.animVal */
String get animVal;
/** @domName SVGAnimatedString.baseVal */
String baseVal;
}
// 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.
// WARNING: Do not edit - generated code.
class _SVGAnimatedStringImpl extends NativeFieldWrapperClass1 implements SVGAnimatedString {
String get animVal native "SVGAnimatedString_animVal_Getter";
String get baseVal native "SVGAnimatedString_baseVal_Getter";
void set baseVal(String value) native "SVGAnimatedString_baseVal_Setter";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName SVGAnimatedTransformList
abstract class SVGAnimatedTransformList implements List<SVGAnimateTransformElement> {
/** @domName SVGAnimatedTransformList.animVal */
SVGTransformList get animVal;
/** @domName SVGAnimatedTransformList.baseVal */
SVGTransformList get baseVal;
}
// 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.
// WARNING: Do not edit - generated code.
class _SVGAnimatedTransformListImpl extends NativeFieldWrapperClass1 implements SVGAnimatedTransformList {
SVGTransformList get animVal native "SVGAnimatedTransformList_animVal_Getter";
SVGTransformList get baseVal native "SVGAnimatedTransformList_baseVal_Getter";
SVGAnimateTransformElement operator[](int index) native "SVGAnimatedTransformList_item_Callback";
void operator[]=(int index, SVGAnimateTransformElement value) {
throw new UnsupportedError("Cannot assign element of immutable List.");
}
// -- start List<SVGAnimateTransformElement> mixins.
// SVGAnimateTransformElement is the element type.
// From Iterable<SVGAnimateTransformElement>:
Iterator<SVGAnimateTransformElement> 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<SVGAnimateTransformElement>(this);
}
// From Collection<SVGAnimateTransformElement>:
void add(SVGAnimateTransformElement value) {
throw new UnsupportedError("Cannot add to immutable List.");
}
void addLast(SVGAnimateTransformElement value) {
throw new UnsupportedError("Cannot add to immutable List.");
}
void addAll(Collection<SVGAnimateTransformElement> collection) {
throw new UnsupportedError("Cannot add to immutable List.");
}
bool contains(SVGAnimateTransformElement element) => _Collections.contains(this, element);
void forEach(void f(SVGAnimateTransformElement element)) => _Collections.forEach(this, f);
Collection map(f(SVGAnimateTransformElement element)) => _Collections.map(this, [], f);
Collection<SVGAnimateTransformElement> filter(bool f(SVGAnimateTransformElement element)) =>
_Collections.filter(this, <SVGAnimateTransformElement>[], f);
bool every(bool f(SVGAnimateTransformElement element)) => _Collections.every(this, f);
bool some(bool f(SVGAnimateTransformElement element)) => _Collections.some(this, f);
bool get isEmpty => this.length == 0;
// From List<SVGAnimateTransformElement>:
void sort([Comparator<SVGAnimateTransformElement> compare = Comparable.compare]) {
throw new UnsupportedError("Cannot sort immutable List.");
}
int indexOf(SVGAnimateTransformElement element, [int start = 0]) =>
_Lists.indexOf(this, element, start, this.length);
int lastIndexOf(SVGAnimateTransformElement element, [int start]) {
if (start == null) start = length - 1;
return _Lists.lastIndexOf(this, element, start);
}
SVGAnimateTransformElement get last => this[length - 1];
SVGAnimateTransformElement removeLast() {
throw new UnsupportedError("Cannot removeLast on immutable List.");
}
void setRange(int start, int rangeLength, List<SVGAnimateTransformElement> from, [int startFrom]) {
throw new UnsupportedError("Cannot setRange on immutable List.");
}
void removeRange(int start, int rangeLength) {
throw new UnsupportedError("Cannot removeRange on immutable List.");
}
void insertRange(int start, int rangeLength, [SVGAnimateTransformElement initialValue]) {
throw new UnsupportedError("Cannot insertRange on immutable List.");
}
List<SVGAnimateTransformElement> getRange(int start, int rangeLength) =>
_Lists.getRange(this, start, rangeLength, <SVGAnimateTransformElement>[]);
// -- end List<SVGAnimateTransformElement> mixins.
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName SVGAnimationElement
abstract class SVGAnimationElement implements SVGElement, SVGTests, SVGExternalResourcesRequired, ElementTimeControl {
/** @domName SVGAnimationElement.targetElement */
SVGElement get targetElement;
/** @domName SVGAnimationElement.getCurrentTime */
num getCurrentTime();
/** @domName SVGAnimationElement.getSimpleDuration */
num getSimpleDuration();
/** @domName SVGAnimationElement.getStartTime */
num getStartTime();
}
// 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.
// WARNING: Do not edit - generated code.
class _SVGAnimationElementImpl extends _SVGElementImpl implements SVGAnimationElement {
SVGElement get targetElement native "SVGAnimationElement_targetElement_Getter";
num getCurrentTime() native "SVGAnimationElement_getCurrentTime_Callback";
num getSimpleDuration() native "SVGAnimationElement_getSimpleDuration_Callback";
num getStartTime() native "SVGAnimationElement_getStartTime_Callback";
void beginElement() native "SVGAnimationElement_beginElement_Callback";
void beginElementAt(num offset) native "SVGAnimationElement_beginElementAt_Callback";
void endElement() native "SVGAnimationElement_endElement_Callback";
void endElementAt(num offset) native "SVGAnimationElement_endElementAt_Callback";
SVGAnimatedBoolean get externalResourcesRequired native "SVGAnimationElement_externalResourcesRequired_Getter";
SVGStringList get requiredExtensions native "SVGAnimationElement_requiredExtensions_Getter";
SVGStringList get requiredFeatures native "SVGAnimationElement_requiredFeatures_Getter";
SVGStringList get systemLanguage native "SVGAnimationElement_systemLanguage_Getter";
bool hasExtension(String extension) native "SVGAnimationElement_hasExtension_Callback";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName SVGCircleElement
abstract class SVGCircleElement implements SVGElement, SVGTests, SVGLangSpace, SVGExternalResourcesRequired, SVGStylable, SVGTransformable {
/** @domName SVGCircleElement.cx */
SVGAnimatedLength get cx;
/** @domName SVGCircleElement.cy */
SVGAnimatedLength get cy;
/** @domName SVGCircleElement.r */
SVGAnimatedLength get r;
}
// 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.
// WARNING: Do not edit - generated code.
class _SVGCircleElementImpl extends _SVGElementImpl implements SVGCircleElement {
SVGAnimatedLength get cx native "SVGCircleElement_cx_Getter";
SVGAnimatedLength get cy native "SVGCircleElement_cy_Getter";
SVGAnimatedLength get r native "SVGCircleElement_r_Getter";
SVGAnimatedBoolean get externalResourcesRequired native "SVGCircleElement_externalResourcesRequired_Getter";
String get xmllang native "SVGCircleElement_xmllang_Getter";
void set xmllang(String value) native "SVGCircleElement_xmllang_Setter";
String get xmlspace native "SVGCircleElement_xmlspace_Getter";
void set xmlspace(String value) native "SVGCircleElement_xmlspace_Setter";
SVGElement get farthestViewportElement native "SVGCircleElement_farthestViewportElement_Getter";
SVGElement get nearestViewportElement native "SVGCircleElement_nearestViewportElement_Getter";
SVGRect getBBox() native "SVGCircleElement_getBBox_Callback";
SVGMatrix getCTM() native "SVGCircleElement_getCTM_Callback";
SVGMatrix getScreenCTM() native "SVGCircleElement_getScreenCTM_Callback";
SVGMatrix getTransformToElement(SVGElement element) native "SVGCircleElement_getTransformToElement_Callback";
SVGAnimatedString get $dom_svgClassName native "SVGCircleElement_className_Getter";
CSSStyleDeclaration get style native "SVGCircleElement_style_Getter";
CSSValue getPresentationAttribute(String name) native "SVGCircleElement_getPresentationAttribute_Callback";
SVGStringList get requiredExtensions native "SVGCircleElement_requiredExtensions_Getter";
SVGStringList get requiredFeatures native "SVGCircleElement_requiredFeatures_Getter";
SVGStringList get systemLanguage native "SVGCircleElement_systemLanguage_Getter";
bool hasExtension(String extension) native "SVGCircleElement_hasExtension_Callback";
SVGAnimatedTransformList get transform native "SVGCircleElement_transform_Getter";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName SVGClipPathElement
abstract class SVGClipPathElement implements SVGElement, SVGTests, SVGLangSpace, SVGExternalResourcesRequired, SVGStylable, SVGTransformable {
/** @domName SVGClipPathElement.clipPathUnits */
SVGAnimatedEnumeration get clipPathUnits;
}
// 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.
// WARNING: Do not edit - generated code.
class _SVGClipPathElementImpl extends _SVGElementImpl implements SVGClipPathElement {
SVGAnimatedEnumeration get clipPathUnits native "SVGClipPathElement_clipPathUnits_Getter";
SVGAnimatedBoolean get externalResourcesRequired native "SVGClipPathElement_externalResourcesRequired_Getter";
String get xmllang native "SVGClipPathElement_xmllang_Getter";
void set xmllang(String value) native "SVGClipPathElement_xmllang_Setter";
String get xmlspace native "SVGClipPathElement_xmlspace_Getter";
void set xmlspace(String value) native "SVGClipPathElement_xmlspace_Setter";
SVGElement get farthestViewportElement native "SVGClipPathElement_farthestViewportElement_Getter";
SVGElement get nearestViewportElement native "SVGClipPathElement_nearestViewportElement_Getter";
SVGRect getBBox() native "SVGClipPathElement_getBBox_Callback";
SVGMatrix getCTM() native "SVGClipPathElement_getCTM_Callback";
SVGMatrix getScreenCTM() native "SVGClipPathElement_getScreenCTM_Callback";
SVGMatrix getTransformToElement(SVGElement element) native "SVGClipPathElement_getTransformToElement_Callback";
SVGAnimatedString get $dom_svgClassName native "SVGClipPathElement_className_Getter";
CSSStyleDeclaration get style native "SVGClipPathElement_style_Getter";
CSSValue getPresentationAttribute(String name) native "SVGClipPathElement_getPresentationAttribute_Callback";
SVGStringList get requiredExtensions native "SVGClipPathElement_requiredExtensions_Getter";
SVGStringList get requiredFeatures native "SVGClipPathElement_requiredFeatures_Getter";
SVGStringList get systemLanguage native "SVGClipPathElement_systemLanguage_Getter";
bool hasExtension(String extension) native "SVGClipPathElement_hasExtension_Callback";
SVGAnimatedTransformList get transform native "SVGClipPathElement_transform_Getter";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName SVGColor
abstract class SVGColor implements CSSValue {
static const int SVG_COLORTYPE_CURRENTCOLOR = 3;
static const int SVG_COLORTYPE_RGBCOLOR = 1;
static const int SVG_COLORTYPE_RGBCOLOR_ICCCOLOR = 2;
static const int SVG_COLORTYPE_UNKNOWN = 0;
/** @domName SVGColor.colorType */
int get colorType;
/** @domName SVGColor.rgbColor */
RGBColor get rgbColor;
/** @domName SVGColor.setColor */
void setColor(int colorType, String rgbColor, String iccColor);
/** @domName SVGColor.setRGBColor */
void setRGBColor(String rgbColor);
/** @domName SVGColor.setRGBColorICCColor */
void setRGBColorICCColor(String rgbColor, String iccColor);
}
// 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.
// WARNING: Do not edit - generated code.
class _SVGColorImpl extends _CSSValueImpl implements SVGColor {
int get colorType native "SVGColor_colorType_Getter";
RGBColor get rgbColor native "SVGColor_rgbColor_Getter";
void setColor(int colorType, String rgbColor, String iccColor) native "SVGColor_setColor_Callback";
void setRGBColor(String rgbColor) native "SVGColor_setRGBColor_Callback";
void setRGBColorICCColor(String rgbColor, String iccColor) native "SVGColor_setRGBColorICCColor_Callback";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName SVGComponentTransferFunctionElement
abstract class SVGComponentTransferFunctionElement implements SVGElement {
static const int SVG_FECOMPONENTTRANSFER_TYPE_DISCRETE = 3;
static const int SVG_FECOMPONENTTRANSFER_TYPE_GAMMA = 5;
static const int SVG_FECOMPONENTTRANSFER_TYPE_IDENTITY = 1;
static const int SVG_FECOMPONENTTRANSFER_TYPE_LINEAR = 4;
static const int SVG_FECOMPONENTTRANSFER_TYPE_TABLE = 2;
static const int SVG_FECOMPONENTTRANSFER_TYPE_UNKNOWN = 0;
/** @domName SVGComponentTransferFunctionElement.amplitude */
SVGAnimatedNumber get amplitude;
/** @domName SVGComponentTransferFunctionElement.exponent */
SVGAnimatedNumber get exponent;
/** @domName SVGComponentTransferFunctionElement.intercept */
SVGAnimatedNumber get intercept;
/** @domName SVGComponentTransferFunctionElement.offset */
SVGAnimatedNumber get offset;
/** @domName SVGComponentTransferFunctionElement.slope */
SVGAnimatedNumber get slope;
/** @domName SVGComponentTransferFunctionElement.tableValues */
SVGAnimatedNumberList get tableValues;
/** @domName SVGComponentTransferFunctionElement.type */
SVGAnimatedEnumeration get type;
}
// 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.
// WARNING: Do not edit - generated code.
class _SVGComponentTransferFunctionElementImpl extends _SVGElementImpl implements SVGComponentTransferFunctionElement {
SVGAnimatedNumber get amplitude native "SVGComponentTransferFunctionElement_amplitude_Getter";
SVGAnimatedNumber get exponent native "SVGComponentTransferFunctionElement_exponent_Getter";
SVGAnimatedNumber get intercept native "SVGComponentTransferFunctionElement_intercept_Getter";
SVGAnimatedNumber get offset native "SVGComponentTransferFunctionElement_offset_Getter";
SVGAnimatedNumber get slope native "SVGComponentTransferFunctionElement_slope_Getter";
SVGAnimatedNumberList get tableValues native "SVGComponentTransferFunctionElement_tableValues_Getter";
SVGAnimatedEnumeration get type native "SVGComponentTransferFunctionElement_type_Getter";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName SVGCursorElement
abstract class SVGCursorElement implements SVGElement, SVGURIReference, SVGTests, SVGExternalResourcesRequired {
/** @domName SVGCursorElement.x */
SVGAnimatedLength get x;
/** @domName SVGCursorElement.y */
SVGAnimatedLength get y;
}
// 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.
// WARNING: Do not edit - generated code.
class _SVGCursorElementImpl extends _SVGElementImpl implements SVGCursorElement {
SVGAnimatedLength get x native "SVGCursorElement_x_Getter";
SVGAnimatedLength get y native "SVGCursorElement_y_Getter";
SVGAnimatedBoolean get externalResourcesRequired native "SVGCursorElement_externalResourcesRequired_Getter";
SVGStringList get requiredExtensions native "SVGCursorElement_requiredExtensions_Getter";
SVGStringList get requiredFeatures native "SVGCursorElement_requiredFeatures_Getter";
SVGStringList get systemLanguage native "SVGCursorElement_systemLanguage_Getter";
bool hasExtension(String extension) native "SVGCursorElement_hasExtension_Callback";
SVGAnimatedString get href native "SVGCursorElement_href_Getter";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName SVGDefsElement
abstract class SVGDefsElement implements SVGElement, SVGTests, SVGLangSpace, SVGExternalResourcesRequired, SVGStylable, SVGTransformable {
}
// 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.
// WARNING: Do not edit - generated code.
class _SVGDefsElementImpl extends _SVGElementImpl implements SVGDefsElement {
SVGAnimatedBoolean get externalResourcesRequired native "SVGDefsElement_externalResourcesRequired_Getter";
String get xmllang native "SVGDefsElement_xmllang_Getter";
void set xmllang(String value) native "SVGDefsElement_xmllang_Setter";
String get xmlspace native "SVGDefsElement_xmlspace_Getter";
void set xmlspace(String value) native "SVGDefsElement_xmlspace_Setter";
SVGElement get farthestViewportElement native "SVGDefsElement_farthestViewportElement_Getter";
SVGElement get nearestViewportElement native "SVGDefsElement_nearestViewportElement_Getter";
SVGRect getBBox() native "SVGDefsElement_getBBox_Callback";
SVGMatrix getCTM() native "SVGDefsElement_getCTM_Callback";
SVGMatrix getScreenCTM() native "SVGDefsElement_getScreenCTM_Callback";
SVGMatrix getTransformToElement(SVGElement element) native "SVGDefsElement_getTransformToElement_Callback";
SVGAnimatedString get $dom_svgClassName native "SVGDefsElement_className_Getter";
CSSStyleDeclaration get style native "SVGDefsElement_style_Getter";
CSSValue getPresentationAttribute(String name) native "SVGDefsElement_getPresentationAttribute_Callback";
SVGStringList get requiredExtensions native "SVGDefsElement_requiredExtensions_Getter";
SVGStringList get requiredFeatures native "SVGDefsElement_requiredFeatures_Getter";
SVGStringList get systemLanguage native "SVGDefsElement_systemLanguage_Getter";
bool hasExtension(String extension) native "SVGDefsElement_hasExtension_Callback";
SVGAnimatedTransformList get transform native "SVGDefsElement_transform_Getter";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName SVGDescElement
abstract class SVGDescElement implements SVGElement, SVGLangSpace, SVGStylable {
}
// 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.
// WARNING: Do not edit - generated code.
class _SVGDescElementImpl extends _SVGElementImpl implements SVGDescElement {
String get xmllang native "SVGDescElement_xmllang_Getter";
void set xmllang(String value) native "SVGDescElement_xmllang_Setter";
String get xmlspace native "SVGDescElement_xmlspace_Getter";
void set xmlspace(String value) native "SVGDescElement_xmlspace_Setter";
SVGAnimatedString get $dom_svgClassName native "SVGDescElement_className_Getter";
CSSStyleDeclaration get style native "SVGDescElement_style_Getter";
CSSValue getPresentationAttribute(String name) native "SVGDescElement_getPresentationAttribute_Callback";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName SVGDocument
abstract class SVGDocument implements Document {
/** @domName SVGDocument.rootElement */
SVGSVGElement get rootElement;
/** @domName SVGDocument.createEvent */
Event $dom_createEvent(String eventType);
}
// 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.
// WARNING: Do not edit - generated code.
class _SVGDocumentImpl extends _DocumentImpl implements SVGDocument {
SVGSVGElement get rootElement native "SVGDocument_rootElement_Getter";
Event $dom_createEvent(String eventType) native "SVGDocument_createEvent_Callback";
}
// 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.
/// @domName SVGElement
abstract class SVGElement implements Element {
factory SVGElement.tag(String tag) =>
_SVGElementFactoryProvider.createSVGElement_tag(tag);
factory SVGElement.svg(String svg) =>
_SVGElementFactoryProvider.createSVGElement_svg(svg);
SVGElement clone(bool deep);
/** @domName SVGElement.id */
String id;
/** @domName SVGElement.ownerSVGElement */
SVGSVGElement get ownerSVGElement;
/** @domName SVGElement.viewportElement */
SVGElement get viewportElement;
/** @domName SVGElement.xmlbase */
String xmlbase;
}
// 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 _AttributeClassSet extends _CssClassSet {
_AttributeClassSet(element) : super(element);
String $dom_className() => _element.attributes['class'];
void _write(Set s) {
_element.attributes['class'] = _formatSet(s);
}
}
class _SVGElementImpl extends _ElementImpl implements SVGElement {
CSSClassSet get classes {
if (_cssClassSet == null) {
_cssClassSet = new _AttributeClassSet(_ptr);
}
return _cssClassSet;
}
List<Element> get elements => new _FilteredElementList(this);
void set elements(Collection<Element> value) {
final elements = this.elements;
elements.clear();
elements.addAll(value);
}
String get outerHTML {
final container = new Element.tag("div");
final SVGElement cloned = this.clone(true);
container.elements.add(cloned);
return container.innerHTML;
}
String get innerHTML {
final container = new Element.tag("div");
final SVGElement cloned = this.clone(true);
container.elements.addAll(cloned.elements);
return container.innerHTML;
}
void set innerHTML(String svg) {
final container = new Element.tag("div");
// Wrap the SVG string in <svg> so that SVGElements are created, rather than
// HTMLElements.
container.innerHTML = '<svg version="1.1">$svg</svg>';
this.elements = container.elements[0].elements;
}
String get id native "SVGElement_id_Getter";
void set id(String value) native "SVGElement_id_Setter";
SVGSVGElement get ownerSVGElement native "SVGElement_ownerSVGElement_Getter";
SVGElement get viewportElement native "SVGElement_viewportElement_Getter";
String get xmlbase native "SVGElement_xmlbase_Getter";
void set xmlbase(String value) native "SVGElement_xmlbase_Setter";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName SVGElementInstance
abstract class SVGElementInstance implements EventTarget {
/**
* @domName EventTarget.addEventListener, EventTarget.removeEventListener, EventTarget.dispatchEvent
*/
SVGElementInstanceEvents get on;
/** @domName SVGElementInstance.childNodes */
List<SVGElementInstance> get childNodes;
/** @domName SVGElementInstance.correspondingElement */
SVGElement get correspondingElement;
/** @domName SVGElementInstance.correspondingUseElement */
SVGUseElement get correspondingUseElement;
/** @domName SVGElementInstance.firstChild */
SVGElementInstance get firstChild;
/** @domName SVGElementInstance.lastChild */
SVGElementInstance get lastChild;
/** @domName SVGElementInstance.nextSibling */
SVGElementInstance get nextSibling;
/** @domName SVGElementInstance.parentNode */
SVGElementInstance get parentNode;
/** @domName SVGElementInstance.previousSibling */
SVGElementInstance get previousSibling;
}
abstract class SVGElementInstanceEvents implements Events {
EventListenerList get abort;
EventListenerList get beforeCopy;
EventListenerList get beforeCut;
EventListenerList get beforePaste;
EventListenerList get blur;
EventListenerList get change;
EventListenerList get click;
EventListenerList get contextMenu;
EventListenerList get copy;
EventListenerList get cut;
EventListenerList get doubleClick;
EventListenerList get drag;
EventListenerList get dragEnd;
EventListenerList get dragEnter;
EventListenerList get dragLeave;
EventListenerList get dragOver;
EventListenerList get dragStart;
EventListenerList get drop;
EventListenerList get error;
EventListenerList get focus;
EventListenerList get input;
EventListenerList get keyDown;
EventListenerList get keyPress;
EventListenerList get keyUp;
EventListenerList get load;
EventListenerList get mouseDown;
EventListenerList get mouseMove;
EventListenerList get mouseOut;
EventListenerList get mouseOver;
EventListenerList get mouseUp;
EventListenerList get mouseWheel;
EventListenerList get paste;
EventListenerList get reset;
EventListenerList get resize;
EventListenerList get scroll;
EventListenerList get search;
EventListenerList get select;
EventListenerList get selectStart;
EventListenerList get submit;
EventListenerList get unload;
}
// 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.
// WARNING: Do not edit - generated code.
class _SVGElementInstanceImpl extends _EventTargetImpl implements SVGElementInstance {
_SVGElementInstanceEventsImpl get on =>
new _SVGElementInstanceEventsImpl(this);
List<SVGElementInstance> get childNodes native "SVGElementInstance_childNodes_Getter";
SVGElement get correspondingElement native "SVGElementInstance_correspondingElement_Getter";
SVGUseElement get correspondingUseElement native "SVGElementInstance_correspondingUseElement_Getter";
SVGElementInstance get firstChild native "SVGElementInstance_firstChild_Getter";
SVGElementInstance get lastChild native "SVGElementInstance_lastChild_Getter";
SVGElementInstance get nextSibling native "SVGElementInstance_nextSibling_Getter";
SVGElementInstance get parentNode native "SVGElementInstance_parentNode_Getter";
SVGElementInstance get previousSibling native "SVGElementInstance_previousSibling_Getter";
}
class _SVGElementInstanceEventsImpl extends _EventsImpl implements SVGElementInstanceEvents {
_SVGElementInstanceEventsImpl(_ptr) : super(_ptr);
EventListenerList get abort => this['abort'];
EventListenerList get beforeCopy => this['beforecopy'];
EventListenerList get beforeCut => this['beforecut'];
EventListenerList get beforePaste => this['beforepaste'];
EventListenerList get blur => this['blur'];
EventListenerList get change => this['change'];
EventListenerList get click => this['click'];
EventListenerList get contextMenu => this['contextmenu'];
EventListenerList get copy => this['copy'];
EventListenerList get cut => this['cut'];
EventListenerList get doubleClick => this['dblclick'];
EventListenerList get drag => this['drag'];
EventListenerList get dragEnd => this['dragend'];
EventListenerList get dragEnter => this['dragenter'];
EventListenerList get dragLeave => this['dragleave'];
EventListenerList get dragOver => this['dragover'];
EventListenerList get dragStart => this['dragstart'];
EventListenerList get drop => this['drop'];
EventListenerList get error => this['error'];
EventListenerList get focus => this['focus'];
EventListenerList get input => this['input'];
EventListenerList get keyDown => this['keydown'];
EventListenerList get keyPress => this['keypress'];
EventListenerList get keyUp => this['keyup'];
EventListenerList get load => this['load'];
EventListenerList get mouseDown => this['mousedown'];
EventListenerList get mouseMove => this['mousemove'];
EventListenerList get mouseOut => this['mouseout'];
EventListenerList get mouseOver => this['mouseover'];
EventListenerList get mouseUp => this['mouseup'];
EventListenerList get mouseWheel => this['mousewheel'];
EventListenerList get paste => this['paste'];
EventListenerList get reset => this['reset'];
EventListenerList get resize => this['resize'];
EventListenerList get scroll => this['scroll'];
EventListenerList get search => this['search'];
EventListenerList get select => this['select'];
EventListenerList get selectStart => this['selectstart'];
EventListenerList get submit => this['submit'];
EventListenerList get unload => this['unload'];
}
// 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.
// WARNING: Do not edit - generated code.
class _SVGElementInstanceListImpl extends NativeFieldWrapperClass1 implements List<SVGElementInstance> {
int get length native "SVGElementInstanceList_length_Getter";
SVGElementInstance operator[](int index) native "SVGElementInstanceList_item_Callback";
void operator[]=(int index, SVGElementInstance value) {
throw new UnsupportedError("Cannot assign element of immutable List.");
}
// -- start List<SVGElementInstance> mixins.
// SVGElementInstance is the element type.
// From Iterable<SVGElementInstance>:
Iterator<SVGElementInstance> 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<SVGElementInstance>(this);
}
// From Collection<SVGElementInstance>:
void add(SVGElementInstance value) {
throw new UnsupportedError("Cannot add to immutable List.");
}
void addLast(SVGElementInstance value) {
throw new UnsupportedError("Cannot add to immutable List.");
}
void addAll(Collection<SVGElementInstance> collection) {
throw new UnsupportedError("Cannot add to immutable List.");
}
bool contains(SVGElementInstance element) => _Collections.contains(this, element);
void forEach(void f(SVGElementInstance element)) => _Collections.forEach(this, f);
Collection map(f(SVGElementInstance element)) => _Collections.map(this, [], f);
Collection<SVGElementInstance> filter(bool f(SVGElementInstance element)) =>
_Collections.filter(this, <SVGElementInstance>[], f);
bool every(bool f(SVGElementInstance element)) => _Collections.every(this, f);
bool some(bool f(SVGElementInstance element)) => _Collections.some(this, f);
bool get isEmpty => this.length == 0;
// From List<SVGElementInstance>:
void sort([Comparator<SVGElementInstance> compare = Comparable.compare]) {
throw new UnsupportedError("Cannot sort immutable List.");
}
int indexOf(SVGElementInstance element, [int start = 0]) =>
_Lists.indexOf(this, element, start, this.length);
int lastIndexOf(SVGElementInstance element, [int start]) {
if (start == null) start = length - 1;
return _Lists.lastIndexOf(this, element, start);
}
SVGElementInstance get last => this[length - 1];
SVGElementInstance removeLast() {
throw new UnsupportedError("Cannot removeLast on immutable List.");
}
void setRange(int start, int rangeLength, List<SVGElementInstance> from, [int startFrom]) {
throw new UnsupportedError("Cannot setRange on immutable List.");
}
void removeRange(int start, int rangeLength) {
throw new UnsupportedError("Cannot removeRange on immutable List.");
}
void insertRange(int start, int rangeLength, [SVGElementInstance initialValue]) {
throw new UnsupportedError("Cannot insertRange on immutable List.");
}
List<SVGElementInstance> getRange(int start, int rangeLength) =>
_Lists.getRange(this, start, rangeLength, <SVGElementInstance>[]);
// -- end List<SVGElementInstance> mixins.
SVGElementInstance item(int index) native "SVGElementInstanceList_item_Callback";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName SVGEllipseElement
abstract class SVGEllipseElement implements SVGElement, SVGTests, SVGLangSpace, SVGExternalResourcesRequired, SVGStylable, SVGTransformable {
/** @domName SVGEllipseElement.cx */
SVGAnimatedLength get cx;
/** @domName SVGEllipseElement.cy */
SVGAnimatedLength get cy;
/** @domName SVGEllipseElement.rx */
SVGAnimatedLength get rx;
/** @domName SVGEllipseElement.ry */
SVGAnimatedLength get ry;
}
// 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.
// WARNING: Do not edit - generated code.
class _SVGEllipseElementImpl extends _SVGElementImpl implements SVGEllipseElement {
SVGAnimatedLength get cx native "SVGEllipseElement_cx_Getter";
SVGAnimatedLength get cy native "SVGEllipseElement_cy_Getter";
SVGAnimatedLength get rx native "SVGEllipseElement_rx_Getter";
SVGAnimatedLength get ry native "SVGEllipseElement_ry_Getter";
SVGAnimatedBoolean get externalResourcesRequired native "SVGEllipseElement_externalResourcesRequired_Getter";
String get xmllang native "SVGEllipseElement_xmllang_Getter";
void set xmllang(String value) native "SVGEllipseElement_xmllang_Setter";
String get xmlspace native "SVGEllipseElement_xmlspace_Getter";
void set xmlspace(String value) native "SVGEllipseElement_xmlspace_Setter";
SVGElement get farthestViewportElement native "SVGEllipseElement_farthestViewportElement_Getter";
SVGElement get nearestViewportElement native "SVGEllipseElement_nearestViewportElement_Getter";
SVGRect getBBox() native "SVGEllipseElement_getBBox_Callback";
SVGMatrix getCTM() native "SVGEllipseElement_getCTM_Callback";
SVGMatrix getScreenCTM() native "SVGEllipseElement_getScreenCTM_Callback";
SVGMatrix getTransformToElement(SVGElement element) native "SVGEllipseElement_getTransformToElement_Callback";
SVGAnimatedString get $dom_svgClassName native "SVGEllipseElement_className_Getter";
CSSStyleDeclaration get style native "SVGEllipseElement_style_Getter";
CSSValue getPresentationAttribute(String name) native "SVGEllipseElement_getPresentationAttribute_Callback";
SVGStringList get requiredExtensions native "SVGEllipseElement_requiredExtensions_Getter";
SVGStringList get requiredFeatures native "SVGEllipseElement_requiredFeatures_Getter";
SVGStringList get systemLanguage native "SVGEllipseElement_systemLanguage_Getter";
bool hasExtension(String extension) native "SVGEllipseElement_hasExtension_Callback";
SVGAnimatedTransformList get transform native "SVGEllipseElement_transform_Getter";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName SVGException
abstract class SVGException {
static const int SVG_INVALID_VALUE_ERR = 1;
static const int SVG_MATRIX_NOT_INVERTABLE = 2;
static const int SVG_WRONG_TYPE_ERR = 0;
/** @domName SVGException.code */
int get code;
/** @domName SVGException.message */
String get message;
/** @domName SVGException.name */
String get name;
/** @domName SVGException.toString */
String toString();
}
// 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.
// WARNING: Do not edit - generated code.
class _SVGExceptionImpl extends NativeFieldWrapperClass1 implements SVGException {
int get code native "SVGException_code_Getter";
String get message native "SVGException_message_Getter";
String get name native "SVGException_name_Getter";
String toString() native "SVGException_toString_Callback";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName SVGExternalResourcesRequired
abstract class SVGExternalResourcesRequired {
/** @domName SVGExternalResourcesRequired.externalResourcesRequired */
SVGAnimatedBoolean get externalResourcesRequired;
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName SVGFEBlendElement
abstract class SVGFEBlendElement implements SVGElement, SVGFilterPrimitiveStandardAttributes {
static const int SVG_FEBLEND_MODE_DARKEN = 4;
static const int SVG_FEBLEND_MODE_LIGHTEN = 5;
static const int SVG_FEBLEND_MODE_MULTIPLY = 2;
static const int SVG_FEBLEND_MODE_NORMAL = 1;
static const int SVG_FEBLEND_MODE_SCREEN = 3;
static const int SVG_FEBLEND_MODE_UNKNOWN = 0;
/** @domName SVGFEBlendElement.in1 */
SVGAnimatedString get in1;
/** @domName SVGFEBlendElement.in2 */
SVGAnimatedString get in2;
/** @domName SVGFEBlendElement.mode */
SVGAnimatedEnumeration get mode;
}
// 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.
// WARNING: Do not edit - generated code.
class _SVGFEBlendElementImpl extends _SVGElementImpl implements SVGFEBlendElement {
SVGAnimatedString get in1 native "SVGFEBlendElement_in1_Getter";
SVGAnimatedString get in2 native "SVGFEBlendElement_in2_Getter";
SVGAnimatedEnumeration get mode native "SVGFEBlendElement_mode_Getter";
SVGAnimatedLength get height native "SVGFEBlendElement_height_Getter";
SVGAnimatedString get result native "SVGFEBlendElement_result_Getter";
SVGAnimatedLength get width native "SVGFEBlendElement_width_Getter";
SVGAnimatedLength get x native "SVGFEBlendElement_x_Getter";
SVGAnimatedLength get y native "SVGFEBlendElement_y_Getter";
SVGAnimatedString get $dom_svgClassName native "SVGFEBlendElement_className_Getter";
CSSStyleDeclaration get style native "SVGFEBlendElement_style_Getter";
CSSValue getPresentationAttribute(String name) native "SVGFEBlendElement_getPresentationAttribute_Callback";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName SVGFEColorMatrixElement
abstract class SVGFEColorMatrixElement implements SVGElement, SVGFilterPrimitiveStandardAttributes {
static const int SVG_FECOLORMATRIX_TYPE_HUEROTATE = 3;
static const int SVG_FECOLORMATRIX_TYPE_LUMINANCETOALPHA = 4;
static const int SVG_FECOLORMATRIX_TYPE_MATRIX = 1;
static const int SVG_FECOLORMATRIX_TYPE_SATURATE = 2;
static const int SVG_FECOLORMATRIX_TYPE_UNKNOWN = 0;
/** @domName SVGFEColorMatrixElement.in1 */
SVGAnimatedString get in1;
/** @domName SVGFEColorMatrixElement.type */
SVGAnimatedEnumeration get type;
/** @domName SVGFEColorMatrixElement.values */
SVGAnimatedNumberList get values;
}
// 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.
// WARNING: Do not edit - generated code.
class _SVGFEColorMatrixElementImpl extends _SVGElementImpl implements SVGFEColorMatrixElement {
SVGAnimatedString get in1 native "SVGFEColorMatrixElement_in1_Getter";
SVGAnimatedEnumeration get type native "SVGFEColorMatrixElement_type_Getter";
SVGAnimatedNumberList get values native "SVGFEColorMatrixElement_values_Getter";
SVGAnimatedLength get height native "SVGFEColorMatrixElement_height_Getter";
SVGAnimatedString get result native "SVGFEColorMatrixElement_result_Getter";
SVGAnimatedLength get width native "SVGFEColorMatrixElement_width_Getter";
SVGAnimatedLength get x native "SVGFEColorMatrixElement_x_Getter";
SVGAnimatedLength get y native "SVGFEColorMatrixElement_y_Getter";
SVGAnimatedString get $dom_svgClassName native "SVGFEColorMatrixElement_className_Getter";
CSSStyleDeclaration get style native "SVGFEColorMatrixElement_style_Getter";
CSSValue getPresentationAttribute(String name) native "SVGFEColorMatrixElement_getPresentationAttribute_Callback";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName SVGFEComponentTransferElement
abstract class SVGFEComponentTransferElement implements SVGElement, SVGFilterPrimitiveStandardAttributes {
/** @domName SVGFEComponentTransferElement.in1 */
SVGAnimatedString get in1;
}
// 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.
// WARNING: Do not edit - generated code.
class _SVGFEComponentTransferElementImpl extends _SVGElementImpl implements SVGFEComponentTransferElement {
SVGAnimatedString get in1 native "SVGFEComponentTransferElement_in1_Getter";
SVGAnimatedLength get height native "SVGFEComponentTransferElement_height_Getter";
SVGAnimatedString get result native "SVGFEComponentTransferElement_result_Getter";
SVGAnimatedLength get width native "SVGFEComponentTransferElement_width_Getter";
SVGAnimatedLength get x native "SVGFEComponentTransferElement_x_Getter";
SVGAnimatedLength get y native "SVGFEComponentTransferElement_y_Getter";
SVGAnimatedString get $dom_svgClassName native "SVGFEComponentTransferElement_className_Getter";
CSSStyleDeclaration get style native "SVGFEComponentTransferElement_style_Getter";
CSSValue getPresentationAttribute(String name) native "SVGFEComponentTransferElement_getPresentationAttribute_Callback";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName SVGFECompositeElement
abstract class SVGFECompositeElement implements SVGElement, SVGFilterPrimitiveStandardAttributes {
static const int SVG_FECOMPOSITE_OPERATOR_ARITHMETIC = 6;
static const int SVG_FECOMPOSITE_OPERATOR_ATOP = 4;
static const int SVG_FECOMPOSITE_OPERATOR_IN = 2;
static const int SVG_FECOMPOSITE_OPERATOR_OUT = 3;
static const int SVG_FECOMPOSITE_OPERATOR_OVER = 1;
static const int SVG_FECOMPOSITE_OPERATOR_UNKNOWN = 0;
static const int SVG_FECOMPOSITE_OPERATOR_XOR = 5;
/** @domName SVGFECompositeElement.in1 */
SVGAnimatedString get in1;
/** @domName SVGFECompositeElement.in2 */
SVGAnimatedString get in2;
/** @domName SVGFECompositeElement.k1 */
SVGAnimatedNumber get k1;
/** @domName SVGFECompositeElement.k2 */
SVGAnimatedNumber get k2;
/** @domName SVGFECompositeElement.k3 */
SVGAnimatedNumber get k3;
/** @domName SVGFECompositeElement.k4 */
SVGAnimatedNumber get k4;
/** @domName SVGFECompositeElement.operator */
SVGAnimatedEnumeration get operator;
}
// 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.
// WARNING: Do not edit - generated code.
class _SVGFECompositeElementImpl extends _SVGElementImpl implements SVGFECompositeElement {
SVGAnimatedString get in1 native "SVGFECompositeElement_in1_Getter";
SVGAnimatedString get in2 native "SVGFECompositeElement_in2_Getter";
SVGAnimatedNumber get k1 native "SVGFECompositeElement_k1_Getter";
SVGAnimatedNumber get k2 native "SVGFECompositeElement_k2_Getter";
SVGAnimatedNumber get k3 native "SVGFECompositeElement_k3_Getter";
SVGAnimatedNumber get k4 native "SVGFECompositeElement_k4_Getter";
SVGAnimatedEnumeration get operator native "SVGFECompositeElement_operator_Getter";
SVGAnimatedLength get height native "SVGFECompositeElement_height_Getter";
SVGAnimatedString get result native "SVGFECompositeElement_result_Getter";
SVGAnimatedLength get width native "SVGFECompositeElement_width_Getter";
SVGAnimatedLength get x native "SVGFECompositeElement_x_Getter";
SVGAnimatedLength get y native "SVGFECompositeElement_y_Getter";
SVGAnimatedString get $dom_svgClassName native "SVGFECompositeElement_className_Getter";
CSSStyleDeclaration get style native "SVGFECompositeElement_style_Getter";
CSSValue getPresentationAttribute(String name) native "SVGFECompositeElement_getPresentationAttribute_Callback";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName SVGFEConvolveMatrixElement
abstract class SVGFEConvolveMatrixElement implements SVGElement, SVGFilterPrimitiveStandardAttributes {
static const int SVG_EDGEMODE_DUPLICATE = 1;
static const int SVG_EDGEMODE_NONE = 3;
static const int SVG_EDGEMODE_UNKNOWN = 0;
static const int SVG_EDGEMODE_WRAP = 2;
/** @domName SVGFEConvolveMatrixElement.bias */
SVGAnimatedNumber get bias;
/** @domName SVGFEConvolveMatrixElement.divisor */
SVGAnimatedNumber get divisor;
/** @domName SVGFEConvolveMatrixElement.edgeMode */
SVGAnimatedEnumeration get edgeMode;
/** @domName SVGFEConvolveMatrixElement.in1 */
SVGAnimatedString get in1;
/** @domName SVGFEConvolveMatrixElement.kernelMatrix */
SVGAnimatedNumberList get kernelMatrix;
/** @domName SVGFEConvolveMatrixElement.kernelUnitLengthX */
SVGAnimatedNumber get kernelUnitLengthX;
/** @domName SVGFEConvolveMatrixElement.kernelUnitLengthY */
SVGAnimatedNumber get kernelUnitLengthY;
/** @domName SVGFEConvolveMatrixElement.orderX */
SVGAnimatedInteger get orderX;
/** @domName SVGFEConvolveMatrixElement.orderY */
SVGAnimatedInteger get orderY;
/** @domName SVGFEConvolveMatrixElement.preserveAlpha */
SVGAnimatedBoolean get preserveAlpha;
/** @domName SVGFEConvolveMatrixElement.targetX */
SVGAnimatedInteger get targetX;
/** @domName SVGFEConvolveMatrixElement.targetY */
SVGAnimatedInteger get targetY;
}
// 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.
// WARNING: Do not edit - generated code.
class _SVGFEConvolveMatrixElementImpl extends _SVGElementImpl implements SVGFEConvolveMatrixElement {
SVGAnimatedNumber get bias native "SVGFEConvolveMatrixElement_bias_Getter";
SVGAnimatedNumber get divisor native "SVGFEConvolveMatrixElement_divisor_Getter";
SVGAnimatedEnumeration get edgeMode native "SVGFEConvolveMatrixElement_edgeMode_Getter";
SVGAnimatedString get in1 native "SVGFEConvolveMatrixElement_in1_Getter";
SVGAnimatedNumberList get kernelMatrix native "SVGFEConvolveMatrixElement_kernelMatrix_Getter";
SVGAnimatedNumber get kernelUnitLengthX native "SVGFEConvolveMatrixElement_kernelUnitLengthX_Getter";
SVGAnimatedNumber get kernelUnitLengthY native "SVGFEConvolveMatrixElement_kernelUnitLengthY_Getter";
SVGAnimatedInteger get orderX native "SVGFEConvolveMatrixElement_orderX_Getter";
SVGAnimatedInteger get orderY native "SVGFEConvolveMatrixElement_orderY_Getter";
SVGAnimatedBoolean get preserveAlpha native "SVGFEConvolveMatrixElement_preserveAlpha_Getter";
SVGAnimatedInteger get targetX native "SVGFEConvolveMatrixElement_targetX_Getter";
SVGAnimatedInteger get targetY native "SVGFEConvolveMatrixElement_targetY_Getter";
SVGAnimatedLength get height native "SVGFEConvolveMatrixElement_height_Getter";
SVGAnimatedString get result native "SVGFEConvolveMatrixElement_result_Getter";
SVGAnimatedLength get width native "SVGFEConvolveMatrixElement_width_Getter";
SVGAnimatedLength get x native "SVGFEConvolveMatrixElement_x_Getter";
SVGAnimatedLength get y native "SVGFEConvolveMatrixElement_y_Getter";
SVGAnimatedString get $dom_svgClassName native "SVGFEConvolveMatrixElement_className_Getter";
CSSStyleDeclaration get style native "SVGFEConvolveMatrixElement_style_Getter";
CSSValue getPresentationAttribute(String name) native "SVGFEConvolveMatrixElement_getPresentationAttribute_Callback";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName SVGFEDiffuseLightingElement
abstract class SVGFEDiffuseLightingElement implements SVGElement, SVGFilterPrimitiveStandardAttributes {
/** @domName SVGFEDiffuseLightingElement.diffuseConstant */
SVGAnimatedNumber get diffuseConstant;
/** @domName SVGFEDiffuseLightingElement.in1 */
SVGAnimatedString get in1;
/** @domName SVGFEDiffuseLightingElement.kernelUnitLengthX */
SVGAnimatedNumber get kernelUnitLengthX;
/** @domName SVGFEDiffuseLightingElement.kernelUnitLengthY */
SVGAnimatedNumber get kernelUnitLengthY;
/** @domName SVGFEDiffuseLightingElement.surfaceScale */
SVGAnimatedNumber get surfaceScale;
}
// 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.
// WARNING: Do not edit - generated code.
class _SVGFEDiffuseLightingElementImpl extends _SVGElementImpl implements SVGFEDiffuseLightingElement {
SVGAnimatedNumber get diffuseConstant native "SVGFEDiffuseLightingElement_diffuseConstant_Getter";
SVGAnimatedString get in1 native "SVGFEDiffuseLightingElement_in1_Getter";
SVGAnimatedNumber get kernelUnitLengthX native "SVGFEDiffuseLightingElement_kernelUnitLengthX_Getter";
SVGAnimatedNumber get kernelUnitLengthY native "SVGFEDiffuseLightingElement_kernelUnitLengthY_Getter";
SVGAnimatedNumber get surfaceScale native "SVGFEDiffuseLightingElement_surfaceScale_Getter";
SVGAnimatedLength get height native "SVGFEDiffuseLightingElement_height_Getter";
SVGAnimatedString get result native "SVGFEDiffuseLightingElement_result_Getter";
SVGAnimatedLength get width native "SVGFEDiffuseLightingElement_width_Getter";
SVGAnimatedLength get x native "SVGFEDiffuseLightingElement_x_Getter";
SVGAnimatedLength get y native "SVGFEDiffuseLightingElement_y_Getter";
SVGAnimatedString get $dom_svgClassName native "SVGFEDiffuseLightingElement_className_Getter";
CSSStyleDeclaration get style native "SVGFEDiffuseLightingElement_style_Getter";
CSSValue getPresentationAttribute(String name) native "SVGFEDiffuseLightingElement_getPresentationAttribute_Callback";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName SVGFEDisplacementMapElement
abstract class SVGFEDisplacementMapElement implements SVGElement, SVGFilterPrimitiveStandardAttributes {
static const int SVG_CHANNEL_A = 4;
static const int SVG_CHANNEL_B = 3;
static const int SVG_CHANNEL_G = 2;
static const int SVG_CHANNEL_R = 1;
static const int SVG_CHANNEL_UNKNOWN = 0;
/** @domName SVGFEDisplacementMapElement.in1 */
SVGAnimatedString get in1;
/** @domName SVGFEDisplacementMapElement.in2 */
SVGAnimatedString get in2;
/** @domName SVGFEDisplacementMapElement.scale */
SVGAnimatedNumber get scale;
/** @domName SVGFEDisplacementMapElement.xChannelSelector */
SVGAnimatedEnumeration get xChannelSelector;
/** @domName SVGFEDisplacementMapElement.yChannelSelector */
SVGAnimatedEnumeration get yChannelSelector;
}
// 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.
// WARNING: Do not edit - generated code.
class _SVGFEDisplacementMapElementImpl extends _SVGElementImpl implements SVGFEDisplacementMapElement {
SVGAnimatedString get in1 native "SVGFEDisplacementMapElement_in1_Getter";
SVGAnimatedString get in2 native "SVGFEDisplacementMapElement_in2_Getter";
SVGAnimatedNumber get scale native "SVGFEDisplacementMapElement_scale_Getter";
SVGAnimatedEnumeration get xChannelSelector native "SVGFEDisplacementMapElement_xChannelSelector_Getter";
SVGAnimatedEnumeration get yChannelSelector native "SVGFEDisplacementMapElement_yChannelSelector_Getter";
SVGAnimatedLength get height native "SVGFEDisplacementMapElement_height_Getter";
SVGAnimatedString get result native "SVGFEDisplacementMapElement_result_Getter";
SVGAnimatedLength get width native "SVGFEDisplacementMapElement_width_Getter";
SVGAnimatedLength get x native "SVGFEDisplacementMapElement_x_Getter";
SVGAnimatedLength get y native "SVGFEDisplacementMapElement_y_Getter";
SVGAnimatedString get $dom_svgClassName native "SVGFEDisplacementMapElement_className_Getter";
CSSStyleDeclaration get style native "SVGFEDisplacementMapElement_style_Getter";
CSSValue getPresentationAttribute(String name) native "SVGFEDisplacementMapElement_getPresentationAttribute_Callback";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName SVGFEDistantLightElement
abstract class SVGFEDistantLightElement implements SVGElement {
/** @domName SVGFEDistantLightElement.azimuth */
SVGAnimatedNumber get azimuth;
/** @domName SVGFEDistantLightElement.elevation */
SVGAnimatedNumber get elevation;
}
// 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.
// WARNING: Do not edit - generated code.
class _SVGFEDistantLightElementImpl extends _SVGElementImpl implements SVGFEDistantLightElement {
SVGAnimatedNumber get azimuth native "SVGFEDistantLightElement_azimuth_Getter";
SVGAnimatedNumber get elevation native "SVGFEDistantLightElement_elevation_Getter";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName SVGFEDropShadowElement
abstract class SVGFEDropShadowElement implements SVGElement, SVGFilterPrimitiveStandardAttributes {
/** @domName SVGFEDropShadowElement.dx */
SVGAnimatedNumber get dx;
/** @domName SVGFEDropShadowElement.dy */
SVGAnimatedNumber get dy;
/** @domName SVGFEDropShadowElement.in1 */
SVGAnimatedString get in1;
/** @domName SVGFEDropShadowElement.stdDeviationX */
SVGAnimatedNumber get stdDeviationX;
/** @domName SVGFEDropShadowElement.stdDeviationY */
SVGAnimatedNumber get stdDeviationY;
/** @domName SVGFEDropShadowElement.setStdDeviation */
void setStdDeviation(num stdDeviationX, num stdDeviationY);
}
// 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.
// WARNING: Do not edit - generated code.
class _SVGFEDropShadowElementImpl extends _SVGElementImpl implements SVGFEDropShadowElement {
SVGAnimatedNumber get dx native "SVGFEDropShadowElement_dx_Getter";
SVGAnimatedNumber get dy native "SVGFEDropShadowElement_dy_Getter";
SVGAnimatedString get in1 native "SVGFEDropShadowElement_in1_Getter";
SVGAnimatedNumber get stdDeviationX native "SVGFEDropShadowElement_stdDeviationX_Getter";
SVGAnimatedNumber get stdDeviationY native "SVGFEDropShadowElement_stdDeviationY_Getter";
void setStdDeviation(num stdDeviationX, num stdDeviationY) native "SVGFEDropShadowElement_setStdDeviation_Callback";
SVGAnimatedLength get height native "SVGFEDropShadowElement_height_Getter";
SVGAnimatedString get result native "SVGFEDropShadowElement_result_Getter";
SVGAnimatedLength get width native "SVGFEDropShadowElement_width_Getter";
SVGAnimatedLength get x native "SVGFEDropShadowElement_x_Getter";
SVGAnimatedLength get y native "SVGFEDropShadowElement_y_Getter";
SVGAnimatedString get $dom_svgClassName native "SVGFEDropShadowElement_className_Getter";
CSSStyleDeclaration get style native "SVGFEDropShadowElement_style_Getter";
CSSValue getPresentationAttribute(String name) native "SVGFEDropShadowElement_getPresentationAttribute_Callback";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName SVGFEFloodElement
abstract class SVGFEFloodElement implements SVGElement, SVGFilterPrimitiveStandardAttributes {
}
// 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.
// WARNING: Do not edit - generated code.
class _SVGFEFloodElementImpl extends _SVGElementImpl implements SVGFEFloodElement {
SVGAnimatedLength get height native "SVGFEFloodElement_height_Getter";
SVGAnimatedString get result native "SVGFEFloodElement_result_Getter";
SVGAnimatedLength get width native "SVGFEFloodElement_width_Getter";
SVGAnimatedLength get x native "SVGFEFloodElement_x_Getter";
SVGAnimatedLength get y native "SVGFEFloodElement_y_Getter";
SVGAnimatedString get $dom_svgClassName native "SVGFEFloodElement_className_Getter";
CSSStyleDeclaration get style native "SVGFEFloodElement_style_Getter";
CSSValue getPresentationAttribute(String name) native "SVGFEFloodElement_getPresentationAttribute_Callback";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName SVGFEFuncAElement
abstract class SVGFEFuncAElement implements SVGComponentTransferFunctionElement {
}
// 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.
// WARNING: Do not edit - generated code.
class _SVGFEFuncAElementImpl extends _SVGComponentTransferFunctionElementImpl implements SVGFEFuncAElement {
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName SVGFEFuncBElement
abstract class SVGFEFuncBElement implements SVGComponentTransferFunctionElement {
}
// 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.
// WARNING: Do not edit - generated code.
class _SVGFEFuncBElementImpl extends _SVGComponentTransferFunctionElementImpl implements SVGFEFuncBElement {
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName SVGFEFuncGElement
abstract class SVGFEFuncGElement implements SVGComponentTransferFunctionElement {
}
// 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.
// WARNING: Do not edit - generated code.
class _SVGFEFuncGElementImpl extends _SVGComponentTransferFunctionElementImpl implements SVGFEFuncGElement {
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName SVGFEFuncRElement
abstract class SVGFEFuncRElement implements SVGComponentTransferFunctionElement {
}
// 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.
// WARNING: Do not edit - generated code.
class _SVGFEFuncRElementImpl extends _SVGComponentTransferFunctionElementImpl implements SVGFEFuncRElement {
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName SVGFEGaussianBlurElement
abstract class SVGFEGaussianBlurElement implements SVGElement, SVGFilterPrimitiveStandardAttributes {
/** @domName SVGFEGaussianBlurElement.in1 */
SVGAnimatedString get in1;
/** @domName SVGFEGaussianBlurElement.stdDeviationX */
SVGAnimatedNumber get stdDeviationX;
/** @domName SVGFEGaussianBlurElement.stdDeviationY */
SVGAnimatedNumber get stdDeviationY;
/** @domName SVGFEGaussianBlurElement.setStdDeviation */
void setStdDeviation(num stdDeviationX, num stdDeviationY);
}
// 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.
// WARNING: Do not edit - generated code.
class _SVGFEGaussianBlurElementImpl extends _SVGElementImpl implements SVGFEGaussianBlurElement {
SVGAnimatedString get in1 native "SVGFEGaussianBlurElement_in1_Getter";
SVGAnimatedNumber get stdDeviationX native "SVGFEGaussianBlurElement_stdDeviationX_Getter";
SVGAnimatedNumber get stdDeviationY native "SVGFEGaussianBlurElement_stdDeviationY_Getter";
void setStdDeviation(num stdDeviationX, num stdDeviationY) native "SVGFEGaussianBlurElement_setStdDeviation_Callback";
SVGAnimatedLength get height native "SVGFEGaussianBlurElement_height_Getter";
SVGAnimatedString get result native "SVGFEGaussianBlurElement_result_Getter";
SVGAnimatedLength get width native "SVGFEGaussianBlurElement_width_Getter";
SVGAnimatedLength get x native "SVGFEGaussianBlurElement_x_Getter";
SVGAnimatedLength get y native "SVGFEGaussianBlurElement_y_Getter";
SVGAnimatedString get $dom_svgClassName native "SVGFEGaussianBlurElement_className_Getter";
CSSStyleDeclaration get style native "SVGFEGaussianBlurElement_style_Getter";
CSSValue getPresentationAttribute(String name) native "SVGFEGaussianBlurElement_getPresentationAttribute_Callback";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName SVGFEImageElement
abstract class SVGFEImageElement implements SVGElement, SVGURIReference, SVGLangSpace, SVGExternalResourcesRequired, SVGFilterPrimitiveStandardAttributes {
/** @domName SVGFEImageElement.preserveAspectRatio */
SVGAnimatedPreserveAspectRatio get preserveAspectRatio;
}
// 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.
// WARNING: Do not edit - generated code.
class _SVGFEImageElementImpl extends _SVGElementImpl implements SVGFEImageElement {
SVGAnimatedPreserveAspectRatio get preserveAspectRatio native "SVGFEImageElement_preserveAspectRatio_Getter";
SVGAnimatedBoolean get externalResourcesRequired native "SVGFEImageElement_externalResourcesRequired_Getter";
SVGAnimatedLength get height native "SVGFEImageElement_height_Getter";
SVGAnimatedString get result native "SVGFEImageElement_result_Getter";
SVGAnimatedLength get width native "SVGFEImageElement_width_Getter";
SVGAnimatedLength get x native "SVGFEImageElement_x_Getter";
SVGAnimatedLength get y native "SVGFEImageElement_y_Getter";
String get xmllang native "SVGFEImageElement_xmllang_Getter";
void set xmllang(String value) native "SVGFEImageElement_xmllang_Setter";
String get xmlspace native "SVGFEImageElement_xmlspace_Getter";
void set xmlspace(String value) native "SVGFEImageElement_xmlspace_Setter";
SVGAnimatedString get $dom_svgClassName native "SVGFEImageElement_className_Getter";
CSSStyleDeclaration get style native "SVGFEImageElement_style_Getter";
CSSValue getPresentationAttribute(String name) native "SVGFEImageElement_getPresentationAttribute_Callback";
SVGAnimatedString get href native "SVGFEImageElement_href_Getter";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName SVGFEMergeElement
abstract class SVGFEMergeElement implements SVGElement, SVGFilterPrimitiveStandardAttributes {
}
// 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.
// WARNING: Do not edit - generated code.
class _SVGFEMergeElementImpl extends _SVGElementImpl implements SVGFEMergeElement {
SVGAnimatedLength get height native "SVGFEMergeElement_height_Getter";
SVGAnimatedString get result native "SVGFEMergeElement_result_Getter";
SVGAnimatedLength get width native "SVGFEMergeElement_width_Getter";
SVGAnimatedLength get x native "SVGFEMergeElement_x_Getter";
SVGAnimatedLength get y native "SVGFEMergeElement_y_Getter";
SVGAnimatedString get $dom_svgClassName native "SVGFEMergeElement_className_Getter";
CSSStyleDeclaration get style native "SVGFEMergeElement_style_Getter";
CSSValue getPresentationAttribute(String name) native "SVGFEMergeElement_getPresentationAttribute_Callback";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName SVGFEMergeNodeElement
abstract class SVGFEMergeNodeElement implements SVGElement {
/** @domName SVGFEMergeNodeElement.in1 */
SVGAnimatedString get in1;
}
// 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.
// WARNING: Do not edit - generated code.
class _SVGFEMergeNodeElementImpl extends _SVGElementImpl implements SVGFEMergeNodeElement {
SVGAnimatedString get in1 native "SVGFEMergeNodeElement_in1_Getter";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName SVGFEMorphologyElement
abstract class SVGFEMorphologyElement implements SVGElement, SVGFilterPrimitiveStandardAttributes {
static const int SVG_MORPHOLOGY_OPERATOR_DILATE = 2;
static const int SVG_MORPHOLOGY_OPERATOR_ERODE = 1;
static const int SVG_MORPHOLOGY_OPERATOR_UNKNOWN = 0;
/** @domName SVGFEMorphologyElement.in1 */
SVGAnimatedString get in1;
/** @domName SVGFEMorphologyElement.operator */
SVGAnimatedEnumeration get operator;
/** @domName SVGFEMorphologyElement.radiusX */
SVGAnimatedNumber get radiusX;
/** @domName SVGFEMorphologyElement.radiusY */
SVGAnimatedNumber get radiusY;
/** @domName SVGFEMorphologyElement.setRadius */
void setRadius(num radiusX, num radiusY);
}
// 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.
// WARNING: Do not edit - generated code.
class _SVGFEMorphologyElementImpl extends _SVGElementImpl implements SVGFEMorphologyElement {
SVGAnimatedString get in1 native "SVGFEMorphologyElement_in1_Getter";
SVGAnimatedEnumeration get operator native "SVGFEMorphologyElement_operator_Getter";
SVGAnimatedNumber get radiusX native "SVGFEMorphologyElement_radiusX_Getter";
SVGAnimatedNumber get radiusY native "SVGFEMorphologyElement_radiusY_Getter";
void setRadius(num radiusX, num radiusY) native "SVGFEMorphologyElement_setRadius_Callback";
SVGAnimatedLength get height native "SVGFEMorphologyElement_height_Getter";
SVGAnimatedString get result native "SVGFEMorphologyElement_result_Getter";
SVGAnimatedLength get width native "SVGFEMorphologyElement_width_Getter";
SVGAnimatedLength get x native "SVGFEMorphologyElement_x_Getter";
SVGAnimatedLength get y native "SVGFEMorphologyElement_y_Getter";
SVGAnimatedString get $dom_svgClassName native "SVGFEMorphologyElement_className_Getter";
CSSStyleDeclaration get style native "SVGFEMorphologyElement_style_Getter";
CSSValue getPresentationAttribute(String name) native "SVGFEMorphologyElement_getPresentationAttribute_Callback";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName SVGFEOffsetElement
abstract class SVGFEOffsetElement implements SVGElement, SVGFilterPrimitiveStandardAttributes {
/** @domName SVGFEOffsetElement.dx */
SVGAnimatedNumber get dx;
/** @domName SVGFEOffsetElement.dy */
SVGAnimatedNumber get dy;
/** @domName SVGFEOffsetElement.in1 */
SVGAnimatedString get in1;
}
// 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.
// WARNING: Do not edit - generated code.
class _SVGFEOffsetElementImpl extends _SVGElementImpl implements SVGFEOffsetElement {
SVGAnimatedNumber get dx native "SVGFEOffsetElement_dx_Getter";
SVGAnimatedNumber get dy native "SVGFEOffsetElement_dy_Getter";
SVGAnimatedString get in1 native "SVGFEOffsetElement_in1_Getter";
SVGAnimatedLength get height native "SVGFEOffsetElement_height_Getter";
SVGAnimatedString get result native "SVGFEOffsetElement_result_Getter";
SVGAnimatedLength get width native "SVGFEOffsetElement_width_Getter";
SVGAnimatedLength get x native "SVGFEOffsetElement_x_Getter";
SVGAnimatedLength get y native "SVGFEOffsetElement_y_Getter";
SVGAnimatedString get $dom_svgClassName native "SVGFEOffsetElement_className_Getter";
CSSStyleDeclaration get style native "SVGFEOffsetElement_style_Getter";
CSSValue getPresentationAttribute(String name) native "SVGFEOffsetElement_getPresentationAttribute_Callback";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName SVGFEPointLightElement
abstract class SVGFEPointLightElement implements SVGElement {
/** @domName SVGFEPointLightElement.x */
SVGAnimatedNumber get x;
/** @domName SVGFEPointLightElement.y */
SVGAnimatedNumber get y;
/** @domName SVGFEPointLightElement.z */
SVGAnimatedNumber get z;
}
// 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.
// WARNING: Do not edit - generated code.
class _SVGFEPointLightElementImpl extends _SVGElementImpl implements SVGFEPointLightElement {
SVGAnimatedNumber get x native "SVGFEPointLightElement_x_Getter";
SVGAnimatedNumber get y native "SVGFEPointLightElement_y_Getter";
SVGAnimatedNumber get z native "SVGFEPointLightElement_z_Getter";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName SVGFESpecularLightingElement
abstract class SVGFESpecularLightingElement implements SVGElement, SVGFilterPrimitiveStandardAttributes {
/** @domName SVGFESpecularLightingElement.in1 */
SVGAnimatedString get in1;
/** @domName SVGFESpecularLightingElement.specularConstant */
SVGAnimatedNumber get specularConstant;
/** @domName SVGFESpecularLightingElement.specularExponent */
SVGAnimatedNumber get specularExponent;
/** @domName SVGFESpecularLightingElement.surfaceScale */
SVGAnimatedNumber get surfaceScale;
}
// 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.
// WARNING: Do not edit - generated code.
class _SVGFESpecularLightingElementImpl extends _SVGElementImpl implements SVGFESpecularLightingElement {
SVGAnimatedString get in1 native "SVGFESpecularLightingElement_in1_Getter";
SVGAnimatedNumber get specularConstant native "SVGFESpecularLightingElement_specularConstant_Getter";
SVGAnimatedNumber get specularExponent native "SVGFESpecularLightingElement_specularExponent_Getter";
SVGAnimatedNumber get surfaceScale native "SVGFESpecularLightingElement_surfaceScale_Getter";
SVGAnimatedLength get height native "SVGFESpecularLightingElement_height_Getter";
SVGAnimatedString get result native "SVGFESpecularLightingElement_result_Getter";
SVGAnimatedLength get width native "SVGFESpecularLightingElement_width_Getter";
SVGAnimatedLength get x native "SVGFESpecularLightingElement_x_Getter";
SVGAnimatedLength get y native "SVGFESpecularLightingElement_y_Getter";
SVGAnimatedString get $dom_svgClassName native "SVGFESpecularLightingElement_className_Getter";
CSSStyleDeclaration get style native "SVGFESpecularLightingElement_style_Getter";
CSSValue getPresentationAttribute(String name) native "SVGFESpecularLightingElement_getPresentationAttribute_Callback";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName SVGFESpotLightElement
abstract class SVGFESpotLightElement implements SVGElement {
/** @domName SVGFESpotLightElement.limitingConeAngle */
SVGAnimatedNumber get limitingConeAngle;
/** @domName SVGFESpotLightElement.pointsAtX */
SVGAnimatedNumber get pointsAtX;
/** @domName SVGFESpotLightElement.pointsAtY */
SVGAnimatedNumber get pointsAtY;
/** @domName SVGFESpotLightElement.pointsAtZ */
SVGAnimatedNumber get pointsAtZ;
/** @domName SVGFESpotLightElement.specularExponent */
SVGAnimatedNumber get specularExponent;
/** @domName SVGFESpotLightElement.x */
SVGAnimatedNumber get x;
/** @domName SVGFESpotLightElement.y */
SVGAnimatedNumber get y;
/** @domName SVGFESpotLightElement.z */
SVGAnimatedNumber get z;
}
// 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.
// WARNING: Do not edit - generated code.
class _SVGFESpotLightElementImpl extends _SVGElementImpl implements SVGFESpotLightElement {
SVGAnimatedNumber get limitingConeAngle native "SVGFESpotLightElement_limitingConeAngle_Getter";
SVGAnimatedNumber get pointsAtX native "SVGFESpotLightElement_pointsAtX_Getter";
SVGAnimatedNumber get pointsAtY native "SVGFESpotLightElement_pointsAtY_Getter";
SVGAnimatedNumber get pointsAtZ native "SVGFESpotLightElement_pointsAtZ_Getter";
SVGAnimatedNumber get specularExponent native "SVGFESpotLightElement_specularExponent_Getter";
SVGAnimatedNumber get x native "SVGFESpotLightElement_x_Getter";
SVGAnimatedNumber get y native "SVGFESpotLightElement_y_Getter";
SVGAnimatedNumber get z native "SVGFESpotLightElement_z_Getter";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName SVGFETileElement
abstract class SVGFETileElement implements SVGElement, SVGFilterPrimitiveStandardAttributes {
/** @domName SVGFETileElement.in1 */
SVGAnimatedString get in1;
}
// 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.
// WARNING: Do not edit - generated code.
class _SVGFETileElementImpl extends _SVGElementImpl implements SVGFETileElement {
SVGAnimatedString get in1 native "SVGFETileElement_in1_Getter";
SVGAnimatedLength get height native "SVGFETileElement_height_Getter";
SVGAnimatedString get result native "SVGFETileElement_result_Getter";
SVGAnimatedLength get width native "SVGFETileElement_width_Getter";
SVGAnimatedLength get x native "SVGFETileElement_x_Getter";
SVGAnimatedLength get y native "SVGFETileElement_y_Getter";
SVGAnimatedString get $dom_svgClassName native "SVGFETileElement_className_Getter";
CSSStyleDeclaration get style native "SVGFETileElement_style_Getter";
CSSValue getPresentationAttribute(String name) native "SVGFETileElement_getPresentationAttribute_Callback";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName SVGFETurbulenceElement
abstract class SVGFETurbulenceElement implements SVGElement, SVGFilterPrimitiveStandardAttributes {
static const int SVG_STITCHTYPE_NOSTITCH = 2;
static const int SVG_STITCHTYPE_STITCH = 1;
static const int SVG_STITCHTYPE_UNKNOWN = 0;
static const int SVG_TURBULENCE_TYPE_FRACTALNOISE = 1;
static const int SVG_TURBULENCE_TYPE_TURBULENCE = 2;
static const int SVG_TURBULENCE_TYPE_UNKNOWN = 0;
/** @domName SVGFETurbulenceElement.baseFrequencyX */
SVGAnimatedNumber get baseFrequencyX;
/** @domName SVGFETurbulenceElement.baseFrequencyY */
SVGAnimatedNumber get baseFrequencyY;
/** @domName SVGFETurbulenceElement.numOctaves */
SVGAnimatedInteger get numOctaves;
/** @domName SVGFETurbulenceElement.seed */
SVGAnimatedNumber get seed;
/** @domName SVGFETurbulenceElement.stitchTiles */
SVGAnimatedEnumeration get stitchTiles;
/** @domName SVGFETurbulenceElement.type */
SVGAnimatedEnumeration get type;
}
// 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.
// WARNING: Do not edit - generated code.
class _SVGFETurbulenceElementImpl extends _SVGElementImpl implements SVGFETurbulenceElement {
SVGAnimatedNumber get baseFrequencyX native "SVGFETurbulenceElement_baseFrequencyX_Getter";
SVGAnimatedNumber get baseFrequencyY native "SVGFETurbulenceElement_baseFrequencyY_Getter";
SVGAnimatedInteger get numOctaves native "SVGFETurbulenceElement_numOctaves_Getter";
SVGAnimatedNumber get seed native "SVGFETurbulenceElement_seed_Getter";
SVGAnimatedEnumeration get stitchTiles native "SVGFETurbulenceElement_stitchTiles_Getter";
SVGAnimatedEnumeration get type native "SVGFETurbulenceElement_type_Getter";
SVGAnimatedLength get height native "SVGFETurbulenceElement_height_Getter";
SVGAnimatedString get result native "SVGFETurbulenceElement_result_Getter";
SVGAnimatedLength get width native "SVGFETurbulenceElement_width_Getter";
SVGAnimatedLength get x native "SVGFETurbulenceElement_x_Getter";
SVGAnimatedLength get y native "SVGFETurbulenceElement_y_Getter";
SVGAnimatedString get $dom_svgClassName native "SVGFETurbulenceElement_className_Getter";
CSSStyleDeclaration get style native "SVGFETurbulenceElement_style_Getter";
CSSValue getPresentationAttribute(String name) native "SVGFETurbulenceElement_getPresentationAttribute_Callback";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName SVGFilterElement
abstract class SVGFilterElement implements SVGElement, SVGURIReference, SVGLangSpace, SVGExternalResourcesRequired, SVGStylable {
/** @domName SVGFilterElement.filterResX */
SVGAnimatedInteger get filterResX;
/** @domName SVGFilterElement.filterResY */
SVGAnimatedInteger get filterResY;
/** @domName SVGFilterElement.filterUnits */
SVGAnimatedEnumeration get filterUnits;
/** @domName SVGFilterElement.height */
SVGAnimatedLength get height;
/** @domName SVGFilterElement.primitiveUnits */
SVGAnimatedEnumeration get primitiveUnits;
/** @domName SVGFilterElement.width */
SVGAnimatedLength get width;
/** @domName SVGFilterElement.x */
SVGAnimatedLength get x;
/** @domName SVGFilterElement.y */
SVGAnimatedLength get y;
/** @domName SVGFilterElement.setFilterRes */
void setFilterRes(int filterResX, int filterResY);
}
// 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.
// WARNING: Do not edit - generated code.
class _SVGFilterElementImpl extends _SVGElementImpl implements SVGFilterElement {
SVGAnimatedInteger get filterResX native "SVGFilterElement_filterResX_Getter";
SVGAnimatedInteger get filterResY native "SVGFilterElement_filterResY_Getter";
SVGAnimatedEnumeration get filterUnits native "SVGFilterElement_filterUnits_Getter";
SVGAnimatedLength get height native "SVGFilterElement_height_Getter";
SVGAnimatedEnumeration get primitiveUnits native "SVGFilterElement_primitiveUnits_Getter";
SVGAnimatedLength get width native "SVGFilterElement_width_Getter";
SVGAnimatedLength get x native "SVGFilterElement_x_Getter";
SVGAnimatedLength get y native "SVGFilterElement_y_Getter";
void setFilterRes(int filterResX, int filterResY) native "SVGFilterElement_setFilterRes_Callback";
SVGAnimatedBoolean get externalResourcesRequired native "SVGFilterElement_externalResourcesRequired_Getter";
String get xmllang native "SVGFilterElement_xmllang_Getter";
void set xmllang(String value) native "SVGFilterElement_xmllang_Setter";
String get xmlspace native "SVGFilterElement_xmlspace_Getter";
void set xmlspace(String value) native "SVGFilterElement_xmlspace_Setter";
SVGAnimatedString get $dom_svgClassName native "SVGFilterElement_className_Getter";
CSSStyleDeclaration get style native "SVGFilterElement_style_Getter";
CSSValue getPresentationAttribute(String name) native "SVGFilterElement_getPresentationAttribute_Callback";
SVGAnimatedString get href native "SVGFilterElement_href_Getter";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName SVGFilterPrimitiveStandardAttributes
abstract class SVGFilterPrimitiveStandardAttributes implements SVGStylable {
/** @domName SVGFilterPrimitiveStandardAttributes.height */
SVGAnimatedLength get height;
/** @domName SVGFilterPrimitiveStandardAttributes.result */
SVGAnimatedString get result;
/** @domName SVGFilterPrimitiveStandardAttributes.width */
SVGAnimatedLength get width;
/** @domName SVGFilterPrimitiveStandardAttributes.x */
SVGAnimatedLength get x;
/** @domName SVGFilterPrimitiveStandardAttributes.y */
SVGAnimatedLength get y;
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName SVGFitToViewBox
abstract class SVGFitToViewBox {
/** @domName SVGFitToViewBox.preserveAspectRatio */
SVGAnimatedPreserveAspectRatio get preserveAspectRatio;
/** @domName SVGFitToViewBox.viewBox */
SVGAnimatedRect get viewBox;
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName SVGFontElement
abstract class SVGFontElement implements SVGElement {
}
// 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.
// WARNING: Do not edit - generated code.
class _SVGFontElementImpl extends _SVGElementImpl implements SVGFontElement {
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName SVGFontFaceElement
abstract class SVGFontFaceElement implements SVGElement {
}
// 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.
// WARNING: Do not edit - generated code.
class _SVGFontFaceElementImpl extends _SVGElementImpl implements SVGFontFaceElement {
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName SVGFontFaceFormatElement
abstract class SVGFontFaceFormatElement implements SVGElement {
}
// 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.
// WARNING: Do not edit - generated code.
class _SVGFontFaceFormatElementImpl extends _SVGElementImpl implements SVGFontFaceFormatElement {
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName SVGFontFaceNameElement
abstract class SVGFontFaceNameElement implements SVGElement {
}
// 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.
// WARNING: Do not edit - generated code.
class _SVGFontFaceNameElementImpl extends _SVGElementImpl implements SVGFontFaceNameElement {
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName SVGFontFaceSrcElement
abstract class SVGFontFaceSrcElement implements SVGElement {
}
// 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.
// WARNING: Do not edit - generated code.
class _SVGFontFaceSrcElementImpl extends _SVGElementImpl implements SVGFontFaceSrcElement {
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName SVGFontFaceUriElement
abstract class SVGFontFaceUriElement implements SVGElement {
}
// 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.
// WARNING: Do not edit - generated code.
class _SVGFontFaceUriElementImpl extends _SVGElementImpl implements SVGFontFaceUriElement {
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName SVGForeignObjectElement
abstract class SVGForeignObjectElement implements SVGElement, SVGTests, SVGLangSpace, SVGExternalResourcesRequired, SVGStylable, SVGTransformable {
/** @domName SVGForeignObjectElement.height */
SVGAnimatedLength get height;
/** @domName SVGForeignObjectElement.width */
SVGAnimatedLength get width;
/** @domName SVGForeignObjectElement.x */
SVGAnimatedLength get x;
/** @domName SVGForeignObjectElement.y */
SVGAnimatedLength get y;
}
// 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.
// WARNING: Do not edit - generated code.
class _SVGForeignObjectElementImpl extends _SVGElementImpl implements SVGForeignObjectElement {
SVGAnimatedLength get height native "SVGForeignObjectElement_height_Getter";
SVGAnimatedLength get width native "SVGForeignObjectElement_width_Getter";
SVGAnimatedLength get x native "SVGForeignObjectElement_x_Getter";
SVGAnimatedLength get y native "SVGForeignObjectElement_y_Getter";
SVGAnimatedBoolean get externalResourcesRequired native "SVGForeignObjectElement_externalResourcesRequired_Getter";
String get xmllang native "SVGForeignObjectElement_xmllang_Getter";
void set xmllang(String value) native "SVGForeignObjectElement_xmllang_Setter";
String get xmlspace native "SVGForeignObjectElement_xmlspace_Getter";
void set xmlspace(String value) native "SVGForeignObjectElement_xmlspace_Setter";
SVGElement get farthestViewportElement native "SVGForeignObjectElement_farthestViewportElement_Getter";
SVGElement get nearestViewportElement native "SVGForeignObjectElement_nearestViewportElement_Getter";
SVGRect getBBox() native "SVGForeignObjectElement_getBBox_Callback";
SVGMatrix getCTM() native "SVGForeignObjectElement_getCTM_Callback";
SVGMatrix getScreenCTM() native "SVGForeignObjectElement_getScreenCTM_Callback";
SVGMatrix getTransformToElement(SVGElement element) native "SVGForeignObjectElement_getTransformToElement_Callback";
SVGAnimatedString get $dom_svgClassName native "SVGForeignObjectElement_className_Getter";
CSSStyleDeclaration get style native "SVGForeignObjectElement_style_Getter";
CSSValue getPresentationAttribute(String name) native "SVGForeignObjectElement_getPresentationAttribute_Callback";
SVGStringList get requiredExtensions native "SVGForeignObjectElement_requiredExtensions_Getter";
SVGStringList get requiredFeatures native "SVGForeignObjectElement_requiredFeatures_Getter";
SVGStringList get systemLanguage native "SVGForeignObjectElement_systemLanguage_Getter";
bool hasExtension(String extension) native "SVGForeignObjectElement_hasExtension_Callback";
SVGAnimatedTransformList get transform native "SVGForeignObjectElement_transform_Getter";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName SVGGElement
abstract class SVGGElement implements SVGElement, SVGTests, SVGLangSpace, SVGExternalResourcesRequired, SVGStylable, SVGTransformable {
}
// 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.
// WARNING: Do not edit - generated code.
class _SVGGElementImpl extends _SVGElementImpl implements SVGGElement {
SVGAnimatedBoolean get externalResourcesRequired native "SVGGElement_externalResourcesRequired_Getter";
String get xmllang native "SVGGElement_xmllang_Getter";
void set xmllang(String value) native "SVGGElement_xmllang_Setter";
String get xmlspace native "SVGGElement_xmlspace_Getter";
void set xmlspace(String value) native "SVGGElement_xmlspace_Setter";
SVGElement get farthestViewportElement native "SVGGElement_farthestViewportElement_Getter";
SVGElement get nearestViewportElement native "SVGGElement_nearestViewportElement_Getter";
SVGRect getBBox() native "SVGGElement_getBBox_Callback";
SVGMatrix getCTM() native "SVGGElement_getCTM_Callback";
SVGMatrix getScreenCTM() native "SVGGElement_getScreenCTM_Callback";
SVGMatrix getTransformToElement(SVGElement element) native "SVGGElement_getTransformToElement_Callback";
SVGAnimatedString get $dom_svgClassName native "SVGGElement_className_Getter";
CSSStyleDeclaration get style native "SVGGElement_style_Getter";
CSSValue getPresentationAttribute(String name) native "SVGGElement_getPresentationAttribute_Callback";
SVGStringList get requiredExtensions native "SVGGElement_requiredExtensions_Getter";
SVGStringList get requiredFeatures native "SVGGElement_requiredFeatures_Getter";
SVGStringList get systemLanguage native "SVGGElement_systemLanguage_Getter";
bool hasExtension(String extension) native "SVGGElement_hasExtension_Callback";
SVGAnimatedTransformList get transform native "SVGGElement_transform_Getter";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName SVGGlyphElement
abstract class SVGGlyphElement implements SVGElement {
}
// 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.
// WARNING: Do not edit - generated code.
class _SVGGlyphElementImpl extends _SVGElementImpl implements SVGGlyphElement {
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName SVGGlyphRefElement
abstract class SVGGlyphRefElement implements SVGElement, SVGURIReference, SVGStylable {
/** @domName SVGGlyphRefElement.dx */
num dx;
/** @domName SVGGlyphRefElement.dy */
num dy;
/** @domName SVGGlyphRefElement.format */
String format;
/** @domName SVGGlyphRefElement.glyphRef */
String glyphRef;
/** @domName SVGGlyphRefElement.x */
num x;
/** @domName SVGGlyphRefElement.y */
num y;
}
// 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.
// WARNING: Do not edit - generated code.
class _SVGGlyphRefElementImpl extends _SVGElementImpl implements SVGGlyphRefElement {
num get dx native "SVGGlyphRefElement_dx_Getter";
void set dx(num value) native "SVGGlyphRefElement_dx_Setter";
num get dy native "SVGGlyphRefElement_dy_Getter";
void set dy(num value) native "SVGGlyphRefElement_dy_Setter";
String get format native "SVGGlyphRefElement_format_Getter";
void set format(String value) native "SVGGlyphRefElement_format_Setter";
String get glyphRef native "SVGGlyphRefElement_glyphRef_Getter";
void set glyphRef(String value) native "SVGGlyphRefElement_glyphRef_Setter";
num get x native "SVGGlyphRefElement_x_Getter";
void set x(num value) native "SVGGlyphRefElement_x_Setter";
num get y native "SVGGlyphRefElement_y_Getter";
void set y(num value) native "SVGGlyphRefElement_y_Setter";
SVGAnimatedString get $dom_svgClassName native "SVGGlyphRefElement_className_Getter";
CSSStyleDeclaration get style native "SVGGlyphRefElement_style_Getter";
CSSValue getPresentationAttribute(String name) native "SVGGlyphRefElement_getPresentationAttribute_Callback";
SVGAnimatedString get href native "SVGGlyphRefElement_href_Getter";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName SVGGradientElement
abstract class SVGGradientElement implements SVGElement, SVGURIReference, SVGExternalResourcesRequired, SVGStylable {
static const int SVG_SPREADMETHOD_PAD = 1;
static const int SVG_SPREADMETHOD_REFLECT = 2;
static const int SVG_SPREADMETHOD_REPEAT = 3;
static const int SVG_SPREADMETHOD_UNKNOWN = 0;
/** @domName SVGGradientElement.gradientTransform */
SVGAnimatedTransformList get gradientTransform;
/** @domName SVGGradientElement.gradientUnits */
SVGAnimatedEnumeration get gradientUnits;
/** @domName SVGGradientElement.spreadMethod */
SVGAnimatedEnumeration get spreadMethod;
}
// 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.
// WARNING: Do not edit - generated code.
class _SVGGradientElementImpl extends _SVGElementImpl implements SVGGradientElement {
SVGAnimatedTransformList get gradientTransform native "SVGGradientElement_gradientTransform_Getter";
SVGAnimatedEnumeration get gradientUnits native "SVGGradientElement_gradientUnits_Getter";
SVGAnimatedEnumeration get spreadMethod native "SVGGradientElement_spreadMethod_Getter";
SVGAnimatedBoolean get externalResourcesRequired native "SVGGradientElement_externalResourcesRequired_Getter";
SVGAnimatedString get $dom_svgClassName native "SVGGradientElement_className_Getter";
CSSStyleDeclaration get style native "SVGGradientElement_style_Getter";
CSSValue getPresentationAttribute(String name) native "SVGGradientElement_getPresentationAttribute_Callback";
SVGAnimatedString get href native "SVGGradientElement_href_Getter";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName SVGHKernElement
abstract class SVGHKernElement implements SVGElement {
}
// 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.
// WARNING: Do not edit - generated code.
class _SVGHKernElementImpl extends _SVGElementImpl implements SVGHKernElement {
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName SVGImageElement
abstract class SVGImageElement implements SVGElement, SVGURIReference, SVGTests, SVGLangSpace, SVGExternalResourcesRequired, SVGStylable, SVGTransformable {
/** @domName SVGImageElement.height */
SVGAnimatedLength get height;
/** @domName SVGImageElement.preserveAspectRatio */
SVGAnimatedPreserveAspectRatio get preserveAspectRatio;
/** @domName SVGImageElement.width */
SVGAnimatedLength get width;
/** @domName SVGImageElement.x */
SVGAnimatedLength get x;
/** @domName SVGImageElement.y */
SVGAnimatedLength get y;
}
// 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.
// WARNING: Do not edit - generated code.
class _SVGImageElementImpl extends _SVGElementImpl implements SVGImageElement {
SVGAnimatedLength get height native "SVGImageElement_height_Getter";
SVGAnimatedPreserveAspectRatio get preserveAspectRatio native "SVGImageElement_preserveAspectRatio_Getter";
SVGAnimatedLength get width native "SVGImageElement_width_Getter";
SVGAnimatedLength get x native "SVGImageElement_x_Getter";
SVGAnimatedLength get y native "SVGImageElement_y_Getter";
SVGAnimatedBoolean get externalResourcesRequired native "SVGImageElement_externalResourcesRequired_Getter";
String get xmllang native "SVGImageElement_xmllang_Getter";
void set xmllang(String value) native "SVGImageElement_xmllang_Setter";
String get xmlspace native "SVGImageElement_xmlspace_Getter";
void set xmlspace(String value) native "SVGImageElement_xmlspace_Setter";
SVGElement get farthestViewportElement native "SVGImageElement_farthestViewportElement_Getter";
SVGElement get nearestViewportElement native "SVGImageElement_nearestViewportElement_Getter";
SVGRect getBBox() native "SVGImageElement_getBBox_Callback";
SVGMatrix getCTM() native "SVGImageElement_getCTM_Callback";
SVGMatrix getScreenCTM() native "SVGImageElement_getScreenCTM_Callback";
SVGMatrix getTransformToElement(SVGElement element) native "SVGImageElement_getTransformToElement_Callback";
SVGAnimatedString get $dom_svgClassName native "SVGImageElement_className_Getter";
CSSStyleDeclaration get style native "SVGImageElement_style_Getter";
CSSValue getPresentationAttribute(String name) native "SVGImageElement_getPresentationAttribute_Callback";
SVGStringList get requiredExtensions native "SVGImageElement_requiredExtensions_Getter";
SVGStringList get requiredFeatures native "SVGImageElement_requiredFeatures_Getter";
SVGStringList get systemLanguage native "SVGImageElement_systemLanguage_Getter";
bool hasExtension(String extension) native "SVGImageElement_hasExtension_Callback";
SVGAnimatedTransformList get transform native "SVGImageElement_transform_Getter";
SVGAnimatedString get href native "SVGImageElement_href_Getter";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName SVGLangSpace
abstract class SVGLangSpace {
/** @domName SVGLangSpace.xmllang */
String xmllang;
/** @domName SVGLangSpace.xmlspace */
String xmlspace;
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName SVGLength
abstract class SVGLength {
static const int SVG_LENGTHTYPE_CM = 6;
static const int SVG_LENGTHTYPE_EMS = 3;
static const int SVG_LENGTHTYPE_EXS = 4;
static const int SVG_LENGTHTYPE_IN = 8;
static const int SVG_LENGTHTYPE_MM = 7;
static const int SVG_LENGTHTYPE_NUMBER = 1;
static const int SVG_LENGTHTYPE_PC = 10;
static const int SVG_LENGTHTYPE_PERCENTAGE = 2;
static const int SVG_LENGTHTYPE_PT = 9;
static const int SVG_LENGTHTYPE_PX = 5;
static const int SVG_LENGTHTYPE_UNKNOWN = 0;
/** @domName SVGLength.unitType */
int get unitType;
/** @domName SVGLength.value */
num value;
/** @domName SVGLength.valueAsString */
String valueAsString;
/** @domName SVGLength.valueInSpecifiedUnits */
num valueInSpecifiedUnits;
/** @domName SVGLength.convertToSpecifiedUnits */
void convertToSpecifiedUnits(int unitType);
/** @domName SVGLength.newValueSpecifiedUnits */
void newValueSpecifiedUnits(int unitType, num valueInSpecifiedUnits);
}
// 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.
// WARNING: Do not edit - generated code.
class _SVGLengthImpl extends NativeFieldWrapperClass1 implements SVGLength {
int get unitType native "SVGLength_unitType_Getter";
num get value native "SVGLength_value_Getter";
void set value(num value) native "SVGLength_value_Setter";
String get valueAsString native "SVGLength_valueAsString_Getter";
void set valueAsString(String value) native "SVGLength_valueAsString_Setter";
num get valueInSpecifiedUnits native "SVGLength_valueInSpecifiedUnits_Getter";
void set valueInSpecifiedUnits(num value) native "SVGLength_valueInSpecifiedUnits_Setter";
void convertToSpecifiedUnits(int unitType) native "SVGLength_convertToSpecifiedUnits_Callback";
void newValueSpecifiedUnits(int unitType, num valueInSpecifiedUnits) native "SVGLength_newValueSpecifiedUnits_Callback";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName SVGLengthList
abstract class SVGLengthList implements List<SVGLength> {
/** @domName SVGLengthList.numberOfItems */
int get numberOfItems;
/** @domName SVGLengthList.appendItem */
SVGLength appendItem(SVGLength item);
/** @domName SVGLengthList.clear */
void clear();
/** @domName SVGLengthList.getItem */
SVGLength getItem(int index);
/** @domName SVGLengthList.initialize */
SVGLength initialize(SVGLength item);
/** @domName SVGLengthList.insertItemBefore */
SVGLength insertItemBefore(SVGLength item, int index);
/** @domName SVGLengthList.removeItem */
SVGLength removeItem(int index);
/** @domName SVGLengthList.replaceItem */
SVGLength replaceItem(SVGLength item, int index);
}
// 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.
// WARNING: Do not edit - generated code.
class _SVGLengthListImpl extends NativeFieldWrapperClass1 implements SVGLengthList {
int get numberOfItems native "SVGLengthList_numberOfItems_Getter";
SVGLength operator[](int index) native "SVGLengthList_item_Callback";
void operator[]=(int index, SVGLength value) {
throw new UnsupportedError("Cannot assign element of immutable List.");
}
// -- start List<SVGLength> mixins.
// SVGLength is the element type.
// From Iterable<SVGLength>:
Iterator<SVGLength> 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<SVGLength>(this);
}
// From Collection<SVGLength>:
void add(SVGLength value) {
throw new UnsupportedError("Cannot add to immutable List.");
}
void addLast(SVGLength value) {
throw new UnsupportedError("Cannot add to immutable List.");
}
void addAll(Collection<SVGLength> collection) {
throw new UnsupportedError("Cannot add to immutable List.");
}
bool contains(SVGLength element) => _Collections.contains(this, element);
void forEach(void f(SVGLength element)) => _Collections.forEach(this, f);
Collection map(f(SVGLength element)) => _Collections.map(this, [], f);
Collection<SVGLength> filter(bool f(SVGLength element)) =>
_Collections.filter(this, <SVGLength>[], f);
bool every(bool f(SVGLength element)) => _Collections.every(this, f);
bool some(bool f(SVGLength element)) => _Collections.some(this, f);
bool get isEmpty => this.length == 0;
// From List<SVGLength>:
void sort([Comparator<SVGLength> compare = Comparable.compare]) {
throw new UnsupportedError("Cannot sort immutable List.");
}
int indexOf(SVGLength element, [int start = 0]) =>
_Lists.indexOf(this, element, start, this.length);
int lastIndexOf(SVGLength element, [int start]) {
if (start == null) start = length - 1;
return _Lists.lastIndexOf(this, element, start);
}
SVGLength get last => this[length - 1];
SVGLength removeLast() {
throw new UnsupportedError("Cannot removeLast on immutable List.");
}
void setRange(int start, int rangeLength, List<SVGLength> from, [int startFrom]) {
throw new UnsupportedError("Cannot setRange on immutable List.");
}
void removeRange(int start, int rangeLength) {
throw new UnsupportedError("Cannot removeRange on immutable List.");
}
void insertRange(int start, int rangeLength, [SVGLength initialValue]) {
throw new UnsupportedError("Cannot insertRange on immutable List.");
}
List<SVGLength> getRange(int start, int rangeLength) =>
_Lists.getRange(this, start, rangeLength, <SVGLength>[]);
// -- end List<SVGLength> mixins.
SVGLength appendItem(SVGLength item) native "SVGLengthList_appendItem_Callback";
void clear() native "SVGLengthList_clear_Callback";
SVGLength getItem(int index) native "SVGLengthList_getItem_Callback";
SVGLength initialize(SVGLength item) native "SVGLengthList_initialize_Callback";
SVGLength insertItemBefore(SVGLength item, int index) native "SVGLengthList_insertItemBefore_Callback";
SVGLength removeItem(int index) native "SVGLengthList_removeItem_Callback";
SVGLength replaceItem(SVGLength item, int index) native "SVGLengthList_replaceItem_Callback";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName SVGLineElement
abstract class SVGLineElement implements SVGElement, SVGTests, SVGLangSpace, SVGExternalResourcesRequired, SVGStylable, SVGTransformable {
/** @domName SVGLineElement.x1 */
SVGAnimatedLength get x1;
/** @domName SVGLineElement.x2 */
SVGAnimatedLength get x2;
/** @domName SVGLineElement.y1 */
SVGAnimatedLength get y1;
/** @domName SVGLineElement.y2 */
SVGAnimatedLength get y2;
}
// 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.
// WARNING: Do not edit - generated code.
class _SVGLineElementImpl extends _SVGElementImpl implements SVGLineElement {
SVGAnimatedLength get x1 native "SVGLineElement_x1_Getter";
SVGAnimatedLength get x2 native "SVGLineElement_x2_Getter";
SVGAnimatedLength get y1 native "SVGLineElement_y1_Getter";
SVGAnimatedLength get y2 native "SVGLineElement_y2_Getter";
SVGAnimatedBoolean get externalResourcesRequired native "SVGLineElement_externalResourcesRequired_Getter";
String get xmllang native "SVGLineElement_xmllang_Getter";
void set xmllang(String value) native "SVGLineElement_xmllang_Setter";
String get xmlspace native "SVGLineElement_xmlspace_Getter";
void set xmlspace(String value) native "SVGLineElement_xmlspace_Setter";
SVGElement get farthestViewportElement native "SVGLineElement_farthestViewportElement_Getter";
SVGElement get nearestViewportElement native "SVGLineElement_nearestViewportElement_Getter";
SVGRect getBBox() native "SVGLineElement_getBBox_Callback";
SVGMatrix getCTM() native "SVGLineElement_getCTM_Callback";
SVGMatrix getScreenCTM() native "SVGLineElement_getScreenCTM_Callback";
SVGMatrix getTransformToElement(SVGElement element) native "SVGLineElement_getTransformToElement_Callback";
SVGAnimatedString get $dom_svgClassName native "SVGLineElement_className_Getter";
CSSStyleDeclaration get style native "SVGLineElement_style_Getter";
CSSValue getPresentationAttribute(String name) native "SVGLineElement_getPresentationAttribute_Callback";
SVGStringList get requiredExtensions native "SVGLineElement_requiredExtensions_Getter";
SVGStringList get requiredFeatures native "SVGLineElement_requiredFeatures_Getter";
SVGStringList get systemLanguage native "SVGLineElement_systemLanguage_Getter";
bool hasExtension(String extension) native "SVGLineElement_hasExtension_Callback";
SVGAnimatedTransformList get transform native "SVGLineElement_transform_Getter";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName SVGLinearGradientElement
abstract class SVGLinearGradientElement implements SVGGradientElement {
/** @domName SVGLinearGradientElement.x1 */
SVGAnimatedLength get x1;
/** @domName SVGLinearGradientElement.x2 */
SVGAnimatedLength get x2;
/** @domName SVGLinearGradientElement.y1 */
SVGAnimatedLength get y1;
/** @domName SVGLinearGradientElement.y2 */
SVGAnimatedLength get y2;
}
// 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.
// WARNING: Do not edit - generated code.
class _SVGLinearGradientElementImpl extends _SVGGradientElementImpl implements SVGLinearGradientElement {
SVGAnimatedLength get x1 native "SVGLinearGradientElement_x1_Getter";
SVGAnimatedLength get x2 native "SVGLinearGradientElement_x2_Getter";
SVGAnimatedLength get y1 native "SVGLinearGradientElement_y1_Getter";
SVGAnimatedLength get y2 native "SVGLinearGradientElement_y2_Getter";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName SVGLocatable
abstract class SVGLocatable {
/** @domName SVGLocatable.farthestViewportElement */
SVGElement get farthestViewportElement;
/** @domName SVGLocatable.nearestViewportElement */
SVGElement get nearestViewportElement;
/** @domName SVGLocatable.getBBox */
SVGRect getBBox();
/** @domName SVGLocatable.getCTM */
SVGMatrix getCTM();
/** @domName SVGLocatable.getScreenCTM */
SVGMatrix getScreenCTM();
/** @domName SVGLocatable.getTransformToElement */
SVGMatrix getTransformToElement(SVGElement element);
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName SVGMPathElement
abstract class SVGMPathElement implements SVGElement, SVGURIReference, SVGExternalResourcesRequired {
}
// 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.
// WARNING: Do not edit - generated code.
class _SVGMPathElementImpl extends _SVGElementImpl implements SVGMPathElement {
SVGAnimatedBoolean get externalResourcesRequired native "SVGMPathElement_externalResourcesRequired_Getter";
SVGAnimatedString get href native "SVGMPathElement_href_Getter";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName SVGMarkerElement
abstract class SVGMarkerElement implements SVGElement, SVGLangSpace, SVGExternalResourcesRequired, SVGStylable, SVGFitToViewBox {
static const int SVG_MARKERUNITS_STROKEWIDTH = 2;
static const int SVG_MARKERUNITS_UNKNOWN = 0;
static const int SVG_MARKERUNITS_USERSPACEONUSE = 1;
static const int SVG_MARKER_ORIENT_ANGLE = 2;
static const int SVG_MARKER_ORIENT_AUTO = 1;
static const int SVG_MARKER_ORIENT_UNKNOWN = 0;
/** @domName SVGMarkerElement.markerHeight */
SVGAnimatedLength get markerHeight;
/** @domName SVGMarkerElement.markerUnits */
SVGAnimatedEnumeration get markerUnits;
/** @domName SVGMarkerElement.markerWidth */
SVGAnimatedLength get markerWidth;
/** @domName SVGMarkerElement.orientAngle */
SVGAnimatedAngle get orientAngle;
/** @domName SVGMarkerElement.orientType */
SVGAnimatedEnumeration get orientType;
/** @domName SVGMarkerElement.refX */
SVGAnimatedLength get refX;
/** @domName SVGMarkerElement.refY */
SVGAnimatedLength get refY;
/** @domName SVGMarkerElement.setOrientToAngle */
void setOrientToAngle(SVGAngle angle);
/** @domName SVGMarkerElement.setOrientToAuto */
void setOrientToAuto();
}
// 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.
// WARNING: Do not edit - generated code.
class _SVGMarkerElementImpl extends _SVGElementImpl implements SVGMarkerElement {
SVGAnimatedLength get markerHeight native "SVGMarkerElement_markerHeight_Getter";
SVGAnimatedEnumeration get markerUnits native "SVGMarkerElement_markerUnits_Getter";
SVGAnimatedLength get markerWidth native "SVGMarkerElement_markerWidth_Getter";
SVGAnimatedAngle get orientAngle native "SVGMarkerElement_orientAngle_Getter";
SVGAnimatedEnumeration get orientType native "SVGMarkerElement_orientType_Getter";
SVGAnimatedLength get refX native "SVGMarkerElement_refX_Getter";
SVGAnimatedLength get refY native "SVGMarkerElement_refY_Getter";
void setOrientToAngle(SVGAngle angle) native "SVGMarkerElement_setOrientToAngle_Callback";
void setOrientToAuto() native "SVGMarkerElement_setOrientToAuto_Callback";
SVGAnimatedBoolean get externalResourcesRequired native "SVGMarkerElement_externalResourcesRequired_Getter";
SVGAnimatedPreserveAspectRatio get preserveAspectRatio native "SVGMarkerElement_preserveAspectRatio_Getter";
SVGAnimatedRect get viewBox native "SVGMarkerElement_viewBox_Getter";
String get xmllang native "SVGMarkerElement_xmllang_Getter";
void set xmllang(String value) native "SVGMarkerElement_xmllang_Setter";
String get xmlspace native "SVGMarkerElement_xmlspace_Getter";
void set xmlspace(String value) native "SVGMarkerElement_xmlspace_Setter";
SVGAnimatedString get $dom_svgClassName native "SVGMarkerElement_className_Getter";
CSSStyleDeclaration get style native "SVGMarkerElement_style_Getter";
CSSValue getPresentationAttribute(String name) native "SVGMarkerElement_getPresentationAttribute_Callback";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName SVGMaskElement
abstract class SVGMaskElement implements SVGElement, SVGTests, SVGLangSpace, SVGExternalResourcesRequired, SVGStylable {
/** @domName SVGMaskElement.height */
SVGAnimatedLength get height;
/** @domName SVGMaskElement.maskContentUnits */
SVGAnimatedEnumeration get maskContentUnits;
/** @domName SVGMaskElement.maskUnits */
SVGAnimatedEnumeration get maskUnits;
/** @domName SVGMaskElement.width */
SVGAnimatedLength get width;
/** @domName SVGMaskElement.x */
SVGAnimatedLength get x;
/** @domName SVGMaskElement.y */
SVGAnimatedLength get y;
}
// 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.
// WARNING: Do not edit - generated code.
class _SVGMaskElementImpl extends _SVGElementImpl implements SVGMaskElement {
SVGAnimatedLength get height native "SVGMaskElement_height_Getter";
SVGAnimatedEnumeration get maskContentUnits native "SVGMaskElement_maskContentUnits_Getter";
SVGAnimatedEnumeration get maskUnits native "SVGMaskElement_maskUnits_Getter";
SVGAnimatedLength get width native "SVGMaskElement_width_Getter";
SVGAnimatedLength get x native "SVGMaskElement_x_Getter";
SVGAnimatedLength get y native "SVGMaskElement_y_Getter";
SVGAnimatedBoolean get externalResourcesRequired native "SVGMaskElement_externalResourcesRequired_Getter";
String get xmllang native "SVGMaskElement_xmllang_Getter";
void set xmllang(String value) native "SVGMaskElement_xmllang_Setter";
String get xmlspace native "SVGMaskElement_xmlspace_Getter";
void set xmlspace(String value) native "SVGMaskElement_xmlspace_Setter";
SVGAnimatedString get $dom_svgClassName native "SVGMaskElement_className_Getter";
CSSStyleDeclaration get style native "SVGMaskElement_style_Getter";
CSSValue getPresentationAttribute(String name) native "SVGMaskElement_getPresentationAttribute_Callback";
SVGStringList get requiredExtensions native "SVGMaskElement_requiredExtensions_Getter";
SVGStringList get requiredFeatures native "SVGMaskElement_requiredFeatures_Getter";
SVGStringList get systemLanguage native "SVGMaskElement_systemLanguage_Getter";
bool hasExtension(String extension) native "SVGMaskElement_hasExtension_Callback";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName SVGMatrix
abstract class SVGMatrix {
/** @domName SVGMatrix.a */
num a;
/** @domName SVGMatrix.b */
num b;
/** @domName SVGMatrix.c */
num c;
/** @domName SVGMatrix.d */
num d;
/** @domName SVGMatrix.e */
num e;
/** @domName SVGMatrix.f */
num f;
/** @domName SVGMatrix.flipX */
SVGMatrix flipX();
/** @domName SVGMatrix.flipY */
SVGMatrix flipY();
/** @domName SVGMatrix.inverse */
SVGMatrix inverse();
/** @domName SVGMatrix.multiply */
SVGMatrix multiply(SVGMatrix secondMatrix);
/** @domName SVGMatrix.rotate */
SVGMatrix rotate(num angle);
/** @domName SVGMatrix.rotateFromVector */
SVGMatrix rotateFromVector(num x, num y);
/** @domName SVGMatrix.scale */
SVGMatrix scale(num scaleFactor);
/** @domName SVGMatrix.scaleNonUniform */
SVGMatrix scaleNonUniform(num scaleFactorX, num scaleFactorY);
/** @domName SVGMatrix.skewX */
SVGMatrix skewX(num angle);
/** @domName SVGMatrix.skewY */
SVGMatrix skewY(num angle);
/** @domName SVGMatrix.translate */
SVGMatrix translate(num x, num y);
}
// 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.
// WARNING: Do not edit - generated code.
class _SVGMatrixImpl extends NativeFieldWrapperClass1 implements SVGMatrix {
num get a native "SVGMatrix_a_Getter";
void set a(num value) native "SVGMatrix_a_Setter";
num get b native "SVGMatrix_b_Getter";
void set b(num value) native "SVGMatrix_b_Setter";
num get c native "SVGMatrix_c_Getter";
void set c(num value) native "SVGMatrix_c_Setter";
num get d native "SVGMatrix_d_Getter";
void set d(num value) native "SVGMatrix_d_Setter";
num get e native "SVGMatrix_e_Getter";
void set e(num value) native "SVGMatrix_e_Setter";
num get f native "SVGMatrix_f_Getter";
void set f(num value) native "SVGMatrix_f_Setter";
SVGMatrix flipX() native "SVGMatrix_flipX_Callback";
SVGMatrix flipY() native "SVGMatrix_flipY_Callback";
SVGMatrix inverse() native "SVGMatrix_inverse_Callback";
SVGMatrix multiply(SVGMatrix secondMatrix) native "SVGMatrix_multiply_Callback";
SVGMatrix rotate(num angle) native "SVGMatrix_rotate_Callback";
SVGMatrix rotateFromVector(num x, num y) native "SVGMatrix_rotateFromVector_Callback";
SVGMatrix scale(num scaleFactor) native "SVGMatrix_scale_Callback";
SVGMatrix scaleNonUniform(num scaleFactorX, num scaleFactorY) native "SVGMatrix_scaleNonUniform_Callback";
SVGMatrix skewX(num angle) native "SVGMatrix_skewX_Callback";
SVGMatrix skewY(num angle) native "SVGMatrix_skewY_Callback";
SVGMatrix translate(num x, num y) native "SVGMatrix_translate_Callback";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName SVGMetadataElement
abstract class SVGMetadataElement implements SVGElement {
}
// 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.
// WARNING: Do not edit - generated code.
class _SVGMetadataElementImpl extends _SVGElementImpl implements SVGMetadataElement {
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName SVGMissingGlyphElement
abstract class SVGMissingGlyphElement implements SVGElement {
}
// 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.
// WARNING: Do not edit - generated code.
class _SVGMissingGlyphElementImpl extends _SVGElementImpl implements SVGMissingGlyphElement {
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName SVGNumber
abstract class SVGNumber {
/** @domName SVGNumber.value */
num value;
}
// 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.
// WARNING: Do not edit - generated code.
class _SVGNumberImpl extends NativeFieldWrapperClass1 implements SVGNumber {
num get value native "SVGNumber_value_Getter";
void set value(num value) native "SVGNumber_value_Setter";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName SVGNumberList
abstract class SVGNumberList implements List<SVGNumber> {
/** @domName SVGNumberList.numberOfItems */
int get numberOfItems;
/** @domName SVGNumberList.appendItem */
SVGNumber appendItem(SVGNumber item);
/** @domName SVGNumberList.clear */
void clear();
/** @domName SVGNumberList.getItem */
SVGNumber getItem(int index);
/** @domName SVGNumberList.initialize */
SVGNumber initialize(SVGNumber item);
/** @domName SVGNumberList.insertItemBefore */
SVGNumber insertItemBefore(SVGNumber item, int index);
/** @domName SVGNumberList.removeItem */
SVGNumber removeItem(int index);
/** @domName SVGNumberList.replaceItem */
SVGNumber replaceItem(SVGNumber item, int index);
}
// 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.
// WARNING: Do not edit - generated code.
class _SVGNumberListImpl extends NativeFieldWrapperClass1 implements SVGNumberList {
int get numberOfItems native "SVGNumberList_numberOfItems_Getter";
SVGNumber operator[](int index) native "SVGNumberList_item_Callback";
void operator[]=(int index, SVGNumber value) {
throw new UnsupportedError("Cannot assign element of immutable List.");
}
// -- start List<SVGNumber> mixins.
// SVGNumber is the element type.
// From Iterable<SVGNumber>:
Iterator<SVGNumber> 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<SVGNumber>(this);
}
// From Collection<SVGNumber>:
void add(SVGNumber value) {
throw new UnsupportedError("Cannot add to immutable List.");
}
void addLast(SVGNumber value) {
throw new UnsupportedError("Cannot add to immutable List.");
}
void addAll(Collection<SVGNumber> collection) {
throw new UnsupportedError("Cannot add to immutable List.");
}
bool contains(SVGNumber element) => _Collections.contains(this, element);
void forEach(void f(SVGNumber element)) => _Collections.forEach(this, f);
Collection map(f(SVGNumber element)) => _Collections.map(this, [], f);
Collection<SVGNumber> filter(bool f(SVGNumber element)) =>
_Collections.filter(this, <SVGNumber>[], f);
bool every(bool f(SVGNumber element)) => _Collections.every(this, f);
bool some(bool f(SVGNumber element)) => _Collections.some(this, f);
bool get isEmpty => this.length == 0;
// From List<SVGNumber>:
void sort([Comparator<SVGNumber> compare = Comparable.compare]) {
throw new UnsupportedError("Cannot sort immutable List.");
}
int indexOf(SVGNumber element, [int start = 0]) =>
_Lists.indexOf(this, element, start, this.length);
int lastIndexOf(SVGNumber element, [int start]) {
if (start == null) start = length - 1;
return _Lists.lastIndexOf(this, element, start);
}
SVGNumber get last => this[length - 1];
SVGNumber removeLast() {
throw new UnsupportedError("Cannot removeLast on immutable List.");
}
void setRange(int start, int rangeLength, List<SVGNumber> from, [int startFrom]) {
throw new UnsupportedError("Cannot setRange on immutable List.");
}
void removeRange(int start, int rangeLength) {
throw new UnsupportedError("Cannot removeRange on immutable List.");
}
void insertRange(int start, int rangeLength, [SVGNumber initialValue]) {
throw new UnsupportedError("Cannot insertRange on immutable List.");
}
List<SVGNumber> getRange(int start, int rangeLength) =>
_Lists.getRange(this, start, rangeLength, <SVGNumber>[]);
// -- end List<SVGNumber> mixins.
SVGNumber appendItem(SVGNumber item) native "SVGNumberList_appendItem_Callback";
void clear() native "SVGNumberList_clear_Callback";
SVGNumber getItem(int index) native "SVGNumberList_getItem_Callback";
SVGNumber initialize(SVGNumber item) native "SVGNumberList_initialize_Callback";
SVGNumber insertItemBefore(SVGNumber item, int index) native "SVGNumberList_insertItemBefore_Callback";
SVGNumber removeItem(int index) native "SVGNumberList_removeItem_Callback";
SVGNumber replaceItem(SVGNumber item, int index) native "SVGNumberList_replaceItem_Callback";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName SVGPaint
abstract class SVGPaint implements SVGColor {
static const int SVG_PAINTTYPE_CURRENTCOLOR = 102;
static const int SVG_PAINTTYPE_NONE = 101;
static const int SVG_PAINTTYPE_RGBCOLOR = 1;
static const int SVG_PAINTTYPE_RGBCOLOR_ICCCOLOR = 2;
static const int SVG_PAINTTYPE_UNKNOWN = 0;
static const int SVG_PAINTTYPE_URI = 107;
static const int SVG_PAINTTYPE_URI_CURRENTCOLOR = 104;
static const int SVG_PAINTTYPE_URI_NONE = 103;
static const int SVG_PAINTTYPE_URI_RGBCOLOR = 105;
static const int SVG_PAINTTYPE_URI_RGBCOLOR_ICCCOLOR = 106;
/** @domName SVGPaint.paintType */
int get paintType;
/** @domName SVGPaint.uri */
String get uri;
/** @domName SVGPaint.setPaint */
void setPaint(int paintType, String uri, String rgbColor, String iccColor);
/** @domName SVGPaint.setUri */
void setUri(String uri);
}
// 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.
// WARNING: Do not edit - generated code.
class _SVGPaintImpl extends _SVGColorImpl implements SVGPaint {
int get paintType native "SVGPaint_paintType_Getter";
String get uri native "SVGPaint_uri_Getter";
void setPaint(int paintType, String uri, String rgbColor, String iccColor) native "SVGPaint_setPaint_Callback";
void setUri(String uri) native "SVGPaint_setUri_Callback";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName SVGPathElement
abstract class SVGPathElement implements SVGElement, SVGTests, SVGLangSpace, SVGExternalResourcesRequired, SVGStylable, SVGTransformable {
/** @domName SVGPathElement.animatedNormalizedPathSegList */
SVGPathSegList get animatedNormalizedPathSegList;
/** @domName SVGPathElement.animatedPathSegList */
SVGPathSegList get animatedPathSegList;
/** @domName SVGPathElement.normalizedPathSegList */
SVGPathSegList get normalizedPathSegList;
/** @domName SVGPathElement.pathLength */
SVGAnimatedNumber get pathLength;
/** @domName SVGPathElement.pathSegList */
SVGPathSegList get pathSegList;
/** @domName SVGPathElement.createSVGPathSegArcAbs */
SVGPathSegArcAbs createSVGPathSegArcAbs(num x, num y, num r1, num r2, num angle, bool largeArcFlag, bool sweepFlag);
/** @domName SVGPathElement.createSVGPathSegArcRel */
SVGPathSegArcRel createSVGPathSegArcRel(num x, num y, num r1, num r2, num angle, bool largeArcFlag, bool sweepFlag);
/** @domName SVGPathElement.createSVGPathSegClosePath */
SVGPathSegClosePath createSVGPathSegClosePath();
/** @domName SVGPathElement.createSVGPathSegCurvetoCubicAbs */
SVGPathSegCurvetoCubicAbs createSVGPathSegCurvetoCubicAbs(num x, num y, num x1, num y1, num x2, num y2);
/** @domName SVGPathElement.createSVGPathSegCurvetoCubicRel */
SVGPathSegCurvetoCubicRel createSVGPathSegCurvetoCubicRel(num x, num y, num x1, num y1, num x2, num y2);
/** @domName SVGPathElement.createSVGPathSegCurvetoCubicSmoothAbs */
SVGPathSegCurvetoCubicSmoothAbs createSVGPathSegCurvetoCubicSmoothAbs(num x, num y, num x2, num y2);
/** @domName SVGPathElement.createSVGPathSegCurvetoCubicSmoothRel */
SVGPathSegCurvetoCubicSmoothRel createSVGPathSegCurvetoCubicSmoothRel(num x, num y, num x2, num y2);
/** @domName SVGPathElement.createSVGPathSegCurvetoQuadraticAbs */
SVGPathSegCurvetoQuadraticAbs createSVGPathSegCurvetoQuadraticAbs(num x, num y, num x1, num y1);
/** @domName SVGPathElement.createSVGPathSegCurvetoQuadraticRel */
SVGPathSegCurvetoQuadraticRel createSVGPathSegCurvetoQuadraticRel(num x, num y, num x1, num y1);
/** @domName SVGPathElement.createSVGPathSegCurvetoQuadraticSmoothAbs */
SVGPathSegCurvetoQuadraticSmoothAbs createSVGPathSegCurvetoQuadraticSmoothAbs(num x, num y);
/** @domName SVGPathElement.createSVGPathSegCurvetoQuadraticSmoothRel */
SVGPathSegCurvetoQuadraticSmoothRel createSVGPathSegCurvetoQuadraticSmoothRel(num x, num y);
/** @domName SVGPathElement.createSVGPathSegLinetoAbs */
SVGPathSegLinetoAbs createSVGPathSegLinetoAbs(num x, num y);
/** @domName SVGPathElement.createSVGPathSegLinetoHorizontalAbs */
SVGPathSegLinetoHorizontalAbs createSVGPathSegLinetoHorizontalAbs(num x);
/** @domName SVGPathElement.createSVGPathSegLinetoHorizontalRel */
SVGPathSegLinetoHorizontalRel createSVGPathSegLinetoHorizontalRel(num x);
/** @domName SVGPathElement.createSVGPathSegLinetoRel */
SVGPathSegLinetoRel createSVGPathSegLinetoRel(num x, num y);
/** @domName SVGPathElement.createSVGPathSegLinetoVerticalAbs */
SVGPathSegLinetoVerticalAbs createSVGPathSegLinetoVerticalAbs(num y);
/** @domName SVGPathElement.createSVGPathSegLinetoVerticalRel */
SVGPathSegLinetoVerticalRel createSVGPathSegLinetoVerticalRel(num y);
/** @domName SVGPathElement.createSVGPathSegMovetoAbs */
SVGPathSegMovetoAbs createSVGPathSegMovetoAbs(num x, num y);
/** @domName SVGPathElement.createSVGPathSegMovetoRel */
SVGPathSegMovetoRel createSVGPathSegMovetoRel(num x, num y);
/** @domName SVGPathElement.getPathSegAtLength */
int getPathSegAtLength(num distance);
/** @domName SVGPathElement.getPointAtLength */
SVGPoint getPointAtLength(num distance);
/** @domName SVGPathElement.getTotalLength */
num getTotalLength();
}
// 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.
// WARNING: Do not edit - generated code.
class _SVGPathElementImpl extends _SVGElementImpl implements SVGPathElement {
SVGPathSegList get animatedNormalizedPathSegList native "SVGPathElement_animatedNormalizedPathSegList_Getter";
SVGPathSegList get animatedPathSegList native "SVGPathElement_animatedPathSegList_Getter";
SVGPathSegList get normalizedPathSegList native "SVGPathElement_normalizedPathSegList_Getter";
SVGAnimatedNumber get pathLength native "SVGPathElement_pathLength_Getter";
SVGPathSegList get pathSegList native "SVGPathElement_pathSegList_Getter";
SVGPathSegArcAbs createSVGPathSegArcAbs(num x, num y, num r1, num r2, num angle, bool largeArcFlag, bool sweepFlag) native "SVGPathElement_createSVGPathSegArcAbs_Callback";
SVGPathSegArcRel createSVGPathSegArcRel(num x, num y, num r1, num r2, num angle, bool largeArcFlag, bool sweepFlag) native "SVGPathElement_createSVGPathSegArcRel_Callback";
SVGPathSegClosePath createSVGPathSegClosePath() native "SVGPathElement_createSVGPathSegClosePath_Callback";
SVGPathSegCurvetoCubicAbs createSVGPathSegCurvetoCubicAbs(num x, num y, num x1, num y1, num x2, num y2) native "SVGPathElement_createSVGPathSegCurvetoCubicAbs_Callback";
SVGPathSegCurvetoCubicRel createSVGPathSegCurvetoCubicRel(num x, num y, num x1, num y1, num x2, num y2) native "SVGPathElement_createSVGPathSegCurvetoCubicRel_Callback";
SVGPathSegCurvetoCubicSmoothAbs createSVGPathSegCurvetoCubicSmoothAbs(num x, num y, num x2, num y2) native "SVGPathElement_createSVGPathSegCurvetoCubicSmoothAbs_Callback";
SVGPathSegCurvetoCubicSmoothRel createSVGPathSegCurvetoCubicSmoothRel(num x, num y, num x2, num y2) native "SVGPathElement_createSVGPathSegCurvetoCubicSmoothRel_Callback";
SVGPathSegCurvetoQuadraticAbs createSVGPathSegCurvetoQuadraticAbs(num x, num y, num x1, num y1) native "SVGPathElement_createSVGPathSegCurvetoQuadraticAbs_Callback";
SVGPathSegCurvetoQuadraticRel createSVGPathSegCurvetoQuadraticRel(num x, num y, num x1, num y1) native "SVGPathElement_createSVGPathSegCurvetoQuadraticRel_Callback";
SVGPathSegCurvetoQuadraticSmoothAbs createSVGPathSegCurvetoQuadraticSmoothAbs(num x, num y) native "SVGPathElement_createSVGPathSegCurvetoQuadraticSmoothAbs_Callback";
SVGPathSegCurvetoQuadraticSmoothRel createSVGPathSegCurvetoQuadraticSmoothRel(num x, num y) native "SVGPathElement_createSVGPathSegCurvetoQuadraticSmoothRel_Callback";
SVGPathSegLinetoAbs createSVGPathSegLinetoAbs(num x, num y) native "SVGPathElement_createSVGPathSegLinetoAbs_Callback";
SVGPathSegLinetoHorizontalAbs createSVGPathSegLinetoHorizontalAbs(num x) native "SVGPathElement_createSVGPathSegLinetoHorizontalAbs_Callback";
SVGPathSegLinetoHorizontalRel createSVGPathSegLinetoHorizontalRel(num x) native "SVGPathElement_createSVGPathSegLinetoHorizontalRel_Callback";
SVGPathSegLinetoRel createSVGPathSegLinetoRel(num x, num y) native "SVGPathElement_createSVGPathSegLinetoRel_Callback";
SVGPathSegLinetoVerticalAbs createSVGPathSegLinetoVerticalAbs(num y) native "SVGPathElement_createSVGPathSegLinetoVerticalAbs_Callback";
SVGPathSegLinetoVerticalRel createSVGPathSegLinetoVerticalRel(num y) native "SVGPathElement_createSVGPathSegLinetoVerticalRel_Callback";
SVGPathSegMovetoAbs createSVGPathSegMovetoAbs(num x, num y) native "SVGPathElement_createSVGPathSegMovetoAbs_Callback";
SVGPathSegMovetoRel createSVGPathSegMovetoRel(num x, num y) native "SVGPathElement_createSVGPathSegMovetoRel_Callback";
int getPathSegAtLength(num distance) native "SVGPathElement_getPathSegAtLength_Callback";
SVGPoint getPointAtLength(num distance) native "SVGPathElement_getPointAtLength_Callback";
num getTotalLength() native "SVGPathElement_getTotalLength_Callback";
SVGAnimatedBoolean get externalResourcesRequired native "SVGPathElement_externalResourcesRequired_Getter";
String get xmllang native "SVGPathElement_xmllang_Getter";
void set xmllang(String value) native "SVGPathElement_xmllang_Setter";
String get xmlspace native "SVGPathElement_xmlspace_Getter";
void set xmlspace(String value) native "SVGPathElement_xmlspace_Setter";
SVGElement get farthestViewportElement native "SVGPathElement_farthestViewportElement_Getter";
SVGElement get nearestViewportElement native "SVGPathElement_nearestViewportElement_Getter";
SVGRect getBBox() native "SVGPathElement_getBBox_Callback";
SVGMatrix getCTM() native "SVGPathElement_getCTM_Callback";
SVGMatrix getScreenCTM() native "SVGPathElement_getScreenCTM_Callback";
SVGMatrix getTransformToElement(SVGElement element) native "SVGPathElement_getTransformToElement_Callback";
SVGAnimatedString get $dom_svgClassName native "SVGPathElement_className_Getter";
CSSStyleDeclaration get style native "SVGPathElement_style_Getter";
CSSValue getPresentationAttribute(String name) native "SVGPathElement_getPresentationAttribute_Callback";
SVGStringList get requiredExtensions native "SVGPathElement_requiredExtensions_Getter";
SVGStringList get requiredFeatures native "SVGPathElement_requiredFeatures_Getter";
SVGStringList get systemLanguage native "SVGPathElement_systemLanguage_Getter";
bool hasExtension(String extension) native "SVGPathElement_hasExtension_Callback";
SVGAnimatedTransformList get transform native "SVGPathElement_transform_Getter";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName SVGPathSeg
abstract class SVGPathSeg {
static const int PATHSEG_ARC_ABS = 10;
static const int PATHSEG_ARC_REL = 11;
static const int PATHSEG_CLOSEPATH = 1;
static const int PATHSEG_CURVETO_CUBIC_ABS = 6;
static const int PATHSEG_CURVETO_CUBIC_REL = 7;
static const int PATHSEG_CURVETO_CUBIC_SMOOTH_ABS = 16;
static const int PATHSEG_CURVETO_CUBIC_SMOOTH_REL = 17;
static const int PATHSEG_CURVETO_QUADRATIC_ABS = 8;
static const int PATHSEG_CURVETO_QUADRATIC_REL = 9;
static const int PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS = 18;
static const int PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL = 19;
static const int PATHSEG_LINETO_ABS = 4;
static const int PATHSEG_LINETO_HORIZONTAL_ABS = 12;
static const int PATHSEG_LINETO_HORIZONTAL_REL = 13;
static const int PATHSEG_LINETO_REL = 5;
static const int PATHSEG_LINETO_VERTICAL_ABS = 14;
static const int PATHSEG_LINETO_VERTICAL_REL = 15;
static const int PATHSEG_MOVETO_ABS = 2;
static const int PATHSEG_MOVETO_REL = 3;
static const int PATHSEG_UNKNOWN = 0;
/** @domName SVGPathSeg.pathSegType */
int get pathSegType;
/** @domName SVGPathSeg.pathSegTypeAsLetter */
String get pathSegTypeAsLetter;
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName SVGPathSegArcAbs
abstract class SVGPathSegArcAbs implements SVGPathSeg {
/** @domName SVGPathSegArcAbs.angle */
num angle;
/** @domName SVGPathSegArcAbs.largeArcFlag */
bool largeArcFlag;
/** @domName SVGPathSegArcAbs.r1 */
num r1;
/** @domName SVGPathSegArcAbs.r2 */
num r2;
/** @domName SVGPathSegArcAbs.sweepFlag */
bool sweepFlag;
/** @domName SVGPathSegArcAbs.x */
num x;
/** @domName SVGPathSegArcAbs.y */
num y;
}
// 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.
// WARNING: Do not edit - generated code.
class _SVGPathSegArcAbsImpl extends _SVGPathSegImpl implements SVGPathSegArcAbs {
num get angle native "SVGPathSegArcAbs_angle_Getter";
void set angle(num value) native "SVGPathSegArcAbs_angle_Setter";
bool get largeArcFlag native "SVGPathSegArcAbs_largeArcFlag_Getter";
void set largeArcFlag(bool value) native "SVGPathSegArcAbs_largeArcFlag_Setter";
num get r1 native "SVGPathSegArcAbs_r1_Getter";
void set r1(num value) native "SVGPathSegArcAbs_r1_Setter";
num get r2 native "SVGPathSegArcAbs_r2_Getter";
void set r2(num value) native "SVGPathSegArcAbs_r2_Setter";
bool get sweepFlag native "SVGPathSegArcAbs_sweepFlag_Getter";
void set sweepFlag(bool value) native "SVGPathSegArcAbs_sweepFlag_Setter";
num get x native "SVGPathSegArcAbs_x_Getter";
void set x(num value) native "SVGPathSegArcAbs_x_Setter";
num get y native "SVGPathSegArcAbs_y_Getter";
void set y(num value) native "SVGPathSegArcAbs_y_Setter";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName SVGPathSegArcRel
abstract class SVGPathSegArcRel implements SVGPathSeg {
/** @domName SVGPathSegArcRel.angle */
num angle;
/** @domName SVGPathSegArcRel.largeArcFlag */
bool largeArcFlag;
/** @domName SVGPathSegArcRel.r1 */
num r1;
/** @domName SVGPathSegArcRel.r2 */
num r2;
/** @domName SVGPathSegArcRel.sweepFlag */
bool sweepFlag;
/** @domName SVGPathSegArcRel.x */
num x;
/** @domName SVGPathSegArcRel.y */
num y;
}
// 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.
// WARNING: Do not edit - generated code.
class _SVGPathSegArcRelImpl extends _SVGPathSegImpl implements SVGPathSegArcRel {
num get angle native "SVGPathSegArcRel_angle_Getter";
void set angle(num value) native "SVGPathSegArcRel_angle_Setter";
bool get largeArcFlag native "SVGPathSegArcRel_largeArcFlag_Getter";
void set largeArcFlag(bool value) native "SVGPathSegArcRel_largeArcFlag_Setter";
num get r1 native "SVGPathSegArcRel_r1_Getter";
void set r1(num value) native "SVGPathSegArcRel_r1_Setter";
num get r2 native "SVGPathSegArcRel_r2_Getter";
void set r2(num value) native "SVGPathSegArcRel_r2_Setter";
bool get sweepFlag native "SVGPathSegArcRel_sweepFlag_Getter";
void set sweepFlag(bool value) native "SVGPathSegArcRel_sweepFlag_Setter";
num get x native "SVGPathSegArcRel_x_Getter";
void set x(num value) native "SVGPathSegArcRel_x_Setter";
num get y native "SVGPathSegArcRel_y_Getter";
void set y(num value) native "SVGPathSegArcRel_y_Setter";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName SVGPathSegClosePath
abstract class SVGPathSegClosePath implements SVGPathSeg {
}
// 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.
// WARNING: Do not edit - generated code.
class _SVGPathSegClosePathImpl extends _SVGPathSegImpl implements SVGPathSegClosePath {
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName SVGPathSegCurvetoCubicAbs
abstract class SVGPathSegCurvetoCubicAbs implements SVGPathSeg {
/** @domName SVGPathSegCurvetoCubicAbs.x */
num x;
/** @domName SVGPathSegCurvetoCubicAbs.x1 */
num x1;
/** @domName SVGPathSegCurvetoCubicAbs.x2 */
num x2;
/** @domName SVGPathSegCurvetoCubicAbs.y */
num y;
/** @domName SVGPathSegCurvetoCubicAbs.y1 */
num y1;
/** @domName SVGPathSegCurvetoCubicAbs.y2 */
num y2;
}
// 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.
// WARNING: Do not edit - generated code.
class _SVGPathSegCurvetoCubicAbsImpl extends _SVGPathSegImpl implements SVGPathSegCurvetoCubicAbs {
num get x native "SVGPathSegCurvetoCubicAbs_x_Getter";
void set x(num value) native "SVGPathSegCurvetoCubicAbs_x_Setter";
num get x1 native "SVGPathSegCurvetoCubicAbs_x1_Getter";
void set x1(num value) native "SVGPathSegCurvetoCubicAbs_x1_Setter";
num get x2 native "SVGPathSegCurvetoCubicAbs_x2_Getter";
void set x2(num value) native "SVGPathSegCurvetoCubicAbs_x2_Setter";
num get y native "SVGPathSegCurvetoCubicAbs_y_Getter";
void set y(num value) native "SVGPathSegCurvetoCubicAbs_y_Setter";
num get y1 native "SVGPathSegCurvetoCubicAbs_y1_Getter";
void set y1(num value) native "SVGPathSegCurvetoCubicAbs_y1_Setter";
num get y2 native "SVGPathSegCurvetoCubicAbs_y2_Getter";
void set y2(num value) native "SVGPathSegCurvetoCubicAbs_y2_Setter";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName SVGPathSegCurvetoCubicRel
abstract class SVGPathSegCurvetoCubicRel implements SVGPathSeg {
/** @domName SVGPathSegCurvetoCubicRel.x */
num x;
/** @domName SVGPathSegCurvetoCubicRel.x1 */
num x1;
/** @domName SVGPathSegCurvetoCubicRel.x2 */
num x2;
/** @domName SVGPathSegCurvetoCubicRel.y */
num y;
/** @domName SVGPathSegCurvetoCubicRel.y1 */
num y1;
/** @domName SVGPathSegCurvetoCubicRel.y2 */
num y2;
}
// 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.
// WARNING: Do not edit - generated code.
class _SVGPathSegCurvetoCubicRelImpl extends _SVGPathSegImpl implements SVGPathSegCurvetoCubicRel {
num get x native "SVGPathSegCurvetoCubicRel_x_Getter";
void set x(num value) native "SVGPathSegCurvetoCubicRel_x_Setter";
num get x1 native "SVGPathSegCurvetoCubicRel_x1_Getter";
void set x1(num value) native "SVGPathSegCurvetoCubicRel_x1_Setter";
num get x2 native "SVGPathSegCurvetoCubicRel_x2_Getter";
void set x2(num value) native "SVGPathSegCurvetoCubicRel_x2_Setter";
num get y native "SVGPathSegCurvetoCubicRel_y_Getter";
void set y(num value) native "SVGPathSegCurvetoCubicRel_y_Setter";
num get y1 native "SVGPathSegCurvetoCubicRel_y1_Getter";
void set y1(num value) native "SVGPathSegCurvetoCubicRel_y1_Setter";
num get y2 native "SVGPathSegCurvetoCubicRel_y2_Getter";
void set y2(num value) native "SVGPathSegCurvetoCubicRel_y2_Setter";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName SVGPathSegCurvetoCubicSmoothAbs
abstract class SVGPathSegCurvetoCubicSmoothAbs implements SVGPathSeg {
/** @domName SVGPathSegCurvetoCubicSmoothAbs.x */
num x;
/** @domName SVGPathSegCurvetoCubicSmoothAbs.x2 */
num x2;
/** @domName SVGPathSegCurvetoCubicSmoothAbs.y */
num y;
/** @domName SVGPathSegCurvetoCubicSmoothAbs.y2 */
num y2;
}
// 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.
// WARNING: Do not edit - generated code.
class _SVGPathSegCurvetoCubicSmoothAbsImpl extends _SVGPathSegImpl implements SVGPathSegCurvetoCubicSmoothAbs {
num get x native "SVGPathSegCurvetoCubicSmoothAbs_x_Getter";
void set x(num value) native "SVGPathSegCurvetoCubicSmoothAbs_x_Setter";
num get x2 native "SVGPathSegCurvetoCubicSmoothAbs_x2_Getter";
void set x2(num value) native "SVGPathSegCurvetoCubicSmoothAbs_x2_Setter";
num get y native "SVGPathSegCurvetoCubicSmoothAbs_y_Getter";
void set y(num value) native "SVGPathSegCurvetoCubicSmoothAbs_y_Setter";
num get y2 native "SVGPathSegCurvetoCubicSmoothAbs_y2_Getter";
void set y2(num value) native "SVGPathSegCurvetoCubicSmoothAbs_y2_Setter";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName SVGPathSegCurvetoCubicSmoothRel
abstract class SVGPathSegCurvetoCubicSmoothRel implements SVGPathSeg {
/** @domName SVGPathSegCurvetoCubicSmoothRel.x */
num x;
/** @domName SVGPathSegCurvetoCubicSmoothRel.x2 */
num x2;
/** @domName SVGPathSegCurvetoCubicSmoothRel.y */
num y;
/** @domName SVGPathSegCurvetoCubicSmoothRel.y2 */
num y2;
}
// 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.
// WARNING: Do not edit - generated code.
class _SVGPathSegCurvetoCubicSmoothRelImpl extends _SVGPathSegImpl implements SVGPathSegCurvetoCubicSmoothRel {
num get x native "SVGPathSegCurvetoCubicSmoothRel_x_Getter";
void set x(num value) native "SVGPathSegCurvetoCubicSmoothRel_x_Setter";
num get x2 native "SVGPathSegCurvetoCubicSmoothRel_x2_Getter";
void set x2(num value) native "SVGPathSegCurvetoCubicSmoothRel_x2_Setter";
num get y native "SVGPathSegCurvetoCubicSmoothRel_y_Getter";
void set y(num value) native "SVGPathSegCurvetoCubicSmoothRel_y_Setter";
num get y2 native "SVGPathSegCurvetoCubicSmoothRel_y2_Getter";
void set y2(num value) native "SVGPathSegCurvetoCubicSmoothRel_y2_Setter";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName SVGPathSegCurvetoQuadraticAbs
abstract class SVGPathSegCurvetoQuadraticAbs implements SVGPathSeg {
/** @domName SVGPathSegCurvetoQuadraticAbs.x */
num x;
/** @domName SVGPathSegCurvetoQuadraticAbs.x1 */
num x1;
/** @domName SVGPathSegCurvetoQuadraticAbs.y */
num y;
/** @domName SVGPathSegCurvetoQuadraticAbs.y1 */
num y1;
}
// 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.
// WARNING: Do not edit - generated code.
class _SVGPathSegCurvetoQuadraticAbsImpl extends _SVGPathSegImpl implements SVGPathSegCurvetoQuadraticAbs {
num get x native "SVGPathSegCurvetoQuadraticAbs_x_Getter";
void set x(num value) native "SVGPathSegCurvetoQuadraticAbs_x_Setter";
num get x1 native "SVGPathSegCurvetoQuadraticAbs_x1_Getter";
void set x1(num value) native "SVGPathSegCurvetoQuadraticAbs_x1_Setter";
num get y native "SVGPathSegCurvetoQuadraticAbs_y_Getter";
void set y(num value) native "SVGPathSegCurvetoQuadraticAbs_y_Setter";
num get y1 native "SVGPathSegCurvetoQuadraticAbs_y1_Getter";
void set y1(num value) native "SVGPathSegCurvetoQuadraticAbs_y1_Setter";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName SVGPathSegCurvetoQuadraticRel
abstract class SVGPathSegCurvetoQuadraticRel implements SVGPathSeg {
/** @domName SVGPathSegCurvetoQuadraticRel.x */
num x;
/** @domName SVGPathSegCurvetoQuadraticRel.x1 */
num x1;
/** @domName SVGPathSegCurvetoQuadraticRel.y */
num y;
/** @domName SVGPathSegCurvetoQuadraticRel.y1 */
num y1;
}
// 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.
// WARNING: Do not edit - generated code.
class _SVGPathSegCurvetoQuadraticRelImpl extends _SVGPathSegImpl implements SVGPathSegCurvetoQuadraticRel {
num get x native "SVGPathSegCurvetoQuadraticRel_x_Getter";
void set x(num value) native "SVGPathSegCurvetoQuadraticRel_x_Setter";
num get x1 native "SVGPathSegCurvetoQuadraticRel_x1_Getter";
void set x1(num value) native "SVGPathSegCurvetoQuadraticRel_x1_Setter";
num get y native "SVGPathSegCurvetoQuadraticRel_y_Getter";
void set y(num value) native "SVGPathSegCurvetoQuadraticRel_y_Setter";
num get y1 native "SVGPathSegCurvetoQuadraticRel_y1_Getter";
void set y1(num value) native "SVGPathSegCurvetoQuadraticRel_y1_Setter";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName SVGPathSegCurvetoQuadraticSmoothAbs
abstract class SVGPathSegCurvetoQuadraticSmoothAbs implements SVGPathSeg {
/** @domName SVGPathSegCurvetoQuadraticSmoothAbs.x */
num x;
/** @domName SVGPathSegCurvetoQuadraticSmoothAbs.y */
num y;
}
// 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.
// WARNING: Do not edit - generated code.
class _SVGPathSegCurvetoQuadraticSmoothAbsImpl extends _SVGPathSegImpl implements SVGPathSegCurvetoQuadraticSmoothAbs {
num get x native "SVGPathSegCurvetoQuadraticSmoothAbs_x_Getter";
void set x(num value) native "SVGPathSegCurvetoQuadraticSmoothAbs_x_Setter";
num get y native "SVGPathSegCurvetoQuadraticSmoothAbs_y_Getter";
void set y(num value) native "SVGPathSegCurvetoQuadraticSmoothAbs_y_Setter";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName SVGPathSegCurvetoQuadraticSmoothRel
abstract class SVGPathSegCurvetoQuadraticSmoothRel implements SVGPathSeg {
/** @domName SVGPathSegCurvetoQuadraticSmoothRel.x */
num x;
/** @domName SVGPathSegCurvetoQuadraticSmoothRel.y */
num y;
}
// 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.
// WARNING: Do not edit - generated code.
class _SVGPathSegCurvetoQuadraticSmoothRelImpl extends _SVGPathSegImpl implements SVGPathSegCurvetoQuadraticSmoothRel {
num get x native "SVGPathSegCurvetoQuadraticSmoothRel_x_Getter";
void set x(num value) native "SVGPathSegCurvetoQuadraticSmoothRel_x_Setter";
num get y native "SVGPathSegCurvetoQuadraticSmoothRel_y_Getter";
void set y(num value) native "SVGPathSegCurvetoQuadraticSmoothRel_y_Setter";
}
// 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.
// WARNING: Do not edit - generated code.
class _SVGPathSegImpl extends NativeFieldWrapperClass1 implements SVGPathSeg {
int get pathSegType native "SVGPathSeg_pathSegType_Getter";
String get pathSegTypeAsLetter native "SVGPathSeg_pathSegTypeAsLetter_Getter";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName SVGPathSegLinetoAbs
abstract class SVGPathSegLinetoAbs implements SVGPathSeg {
/** @domName SVGPathSegLinetoAbs.x */
num x;
/** @domName SVGPathSegLinetoAbs.y */
num y;
}
// 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.
// WARNING: Do not edit - generated code.
class _SVGPathSegLinetoAbsImpl extends _SVGPathSegImpl implements SVGPathSegLinetoAbs {
num get x native "SVGPathSegLinetoAbs_x_Getter";
void set x(num value) native "SVGPathSegLinetoAbs_x_Setter";
num get y native "SVGPathSegLinetoAbs_y_Getter";
void set y(num value) native "SVGPathSegLinetoAbs_y_Setter";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName SVGPathSegLinetoHorizontalAbs
abstract class SVGPathSegLinetoHorizontalAbs implements SVGPathSeg {
/** @domName SVGPathSegLinetoHorizontalAbs.x */
num x;
}
// 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.
// WARNING: Do not edit - generated code.
class _SVGPathSegLinetoHorizontalAbsImpl extends _SVGPathSegImpl implements SVGPathSegLinetoHorizontalAbs {
num get x native "SVGPathSegLinetoHorizontalAbs_x_Getter";
void set x(num value) native "SVGPathSegLinetoHorizontalAbs_x_Setter";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName SVGPathSegLinetoHorizontalRel
abstract class SVGPathSegLinetoHorizontalRel implements SVGPathSeg {
/** @domName SVGPathSegLinetoHorizontalRel.x */
num x;
}
// 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.
// WARNING: Do not edit - generated code.
class _SVGPathSegLinetoHorizontalRelImpl extends _SVGPathSegImpl implements SVGPathSegLinetoHorizontalRel {
num get x native "SVGPathSegLinetoHorizontalRel_x_Getter";
void set x(num value) native "SVGPathSegLinetoHorizontalRel_x_Setter";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName SVGPathSegLinetoRel
abstract class SVGPathSegLinetoRel implements SVGPathSeg {
/** @domName SVGPathSegLinetoRel.x */
num x;
/** @domName SVGPathSegLinetoRel.y */
num y;
}
// 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.
// WARNING: Do not edit - generated code.
class _SVGPathSegLinetoRelImpl extends _SVGPathSegImpl implements SVGPathSegLinetoRel {
num get x native "SVGPathSegLinetoRel_x_Getter";
void set x(num value) native "SVGPathSegLinetoRel_x_Setter";
num get y native "SVGPathSegLinetoRel_y_Getter";
void set y(num value) native "SVGPathSegLinetoRel_y_Setter";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName SVGPathSegLinetoVerticalAbs
abstract class SVGPathSegLinetoVerticalAbs implements SVGPathSeg {
/** @domName SVGPathSegLinetoVerticalAbs.y */
num y;
}
// 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.
// WARNING: Do not edit - generated code.
class _SVGPathSegLinetoVerticalAbsImpl extends _SVGPathSegImpl implements SVGPathSegLinetoVerticalAbs {
num get y native "SVGPathSegLinetoVerticalAbs_y_Getter";
void set y(num value) native "SVGPathSegLinetoVerticalAbs_y_Setter";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName SVGPathSegLinetoVerticalRel
abstract class SVGPathSegLinetoVerticalRel implements SVGPathSeg {
/** @domName SVGPathSegLinetoVerticalRel.y */
num y;
}
// 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.
// WARNING: Do not edit - generated code.
class _SVGPathSegLinetoVerticalRelImpl extends _SVGPathSegImpl implements SVGPathSegLinetoVerticalRel {
num get y native "SVGPathSegLinetoVerticalRel_y_Getter";
void set y(num value) native "SVGPathSegLinetoVerticalRel_y_Setter";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName SVGPathSegList
abstract class SVGPathSegList implements List<SVGPathSeg> {
/** @domName SVGPathSegList.numberOfItems */
int get numberOfItems;
/** @domName SVGPathSegList.appendItem */
SVGPathSeg appendItem(SVGPathSeg newItem);
/** @domName SVGPathSegList.clear */
void clear();
/** @domName SVGPathSegList.getItem */
SVGPathSeg getItem(int index);
/** @domName SVGPathSegList.initialize */
SVGPathSeg initialize(SVGPathSeg newItem);
/** @domName SVGPathSegList.insertItemBefore */
SVGPathSeg insertItemBefore(SVGPathSeg newItem, int index);
/** @domName SVGPathSegList.removeItem */
SVGPathSeg removeItem(int index);
/** @domName SVGPathSegList.replaceItem */
SVGPathSeg replaceItem(SVGPathSeg newItem, int index);
}
// 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.
// WARNING: Do not edit - generated code.
class _SVGPathSegListImpl extends NativeFieldWrapperClass1 implements SVGPathSegList {
int get numberOfItems native "SVGPathSegList_numberOfItems_Getter";
SVGPathSeg operator[](int index) native "SVGPathSegList_item_Callback";
void operator[]=(int index, SVGPathSeg value) {
throw new UnsupportedError("Cannot assign element of immutable List.");
}
// -- start List<SVGPathSeg> mixins.
// SVGPathSeg is the element type.
// From Iterable<SVGPathSeg>:
Iterator<SVGPathSeg> 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<SVGPathSeg>(this);
}
// From Collection<SVGPathSeg>:
void add(SVGPathSeg value) {
throw new UnsupportedError("Cannot add to immutable List.");
}
void addLast(SVGPathSeg value) {
throw new UnsupportedError("Cannot add to immutable List.");
}
void addAll(Collection<SVGPathSeg> collection) {
throw new UnsupportedError("Cannot add to immutable List.");
}
bool contains(SVGPathSeg element) => _Collections.contains(this, element);
void forEach(void f(SVGPathSeg element)) => _Collections.forEach(this, f);
Collection map(f(SVGPathSeg element)) => _Collections.map(this, [], f);
Collection<SVGPathSeg> filter(bool f(SVGPathSeg element)) =>
_Collections.filter(this, <SVGPathSeg>[], f);
bool every(bool f(SVGPathSeg element)) => _Collections.every(this, f);
bool some(bool f(SVGPathSeg element)) => _Collections.some(this, f);
bool get isEmpty => this.length == 0;
// From List<SVGPathSeg>:
void sort([Comparator<SVGPathSeg> compare = Comparable.compare]) {
throw new UnsupportedError("Cannot sort immutable List.");
}
int indexOf(SVGPathSeg element, [int start = 0]) =>
_Lists.indexOf(this, element, start, this.length);
int lastIndexOf(SVGPathSeg element, [int start]) {
if (start == null) start = length - 1;
return _Lists.lastIndexOf(this, element, start);
}
SVGPathSeg get last => this[length - 1];
SVGPathSeg removeLast() {
throw new UnsupportedError("Cannot removeLast on immutable List.");
}
void setRange(int start, int rangeLength, List<SVGPathSeg> from, [int startFrom]) {
throw new UnsupportedError("Cannot setRange on immutable List.");
}
void removeRange(int start, int rangeLength) {
throw new UnsupportedError("Cannot removeRange on immutable List.");
}
void insertRange(int start, int rangeLength, [SVGPathSeg initialValue]) {
throw new UnsupportedError("Cannot insertRange on immutable List.");
}
List<SVGPathSeg> getRange(int start, int rangeLength) =>
_Lists.getRange(this, start, rangeLength, <SVGPathSeg>[]);
// -- end List<SVGPathSeg> mixins.
SVGPathSeg appendItem(SVGPathSeg newItem) native "SVGPathSegList_appendItem_Callback";
void clear() native "SVGPathSegList_clear_Callback";
SVGPathSeg getItem(int index) native "SVGPathSegList_getItem_Callback";
SVGPathSeg initialize(SVGPathSeg newItem) native "SVGPathSegList_initialize_Callback";
SVGPathSeg insertItemBefore(SVGPathSeg newItem, int index) native "SVGPathSegList_insertItemBefore_Callback";
SVGPathSeg removeItem(int index) native "SVGPathSegList_removeItem_Callback";
SVGPathSeg replaceItem(SVGPathSeg newItem, int index) native "SVGPathSegList_replaceItem_Callback";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName SVGPathSegMovetoAbs
abstract class SVGPathSegMovetoAbs implements SVGPathSeg {
/** @domName SVGPathSegMovetoAbs.x */
num x;
/** @domName SVGPathSegMovetoAbs.y */
num y;
}
// 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.
// WARNING: Do not edit - generated code.
class _SVGPathSegMovetoAbsImpl extends _SVGPathSegImpl implements SVGPathSegMovetoAbs {
num get x native "SVGPathSegMovetoAbs_x_Getter";
void set x(num value) native "SVGPathSegMovetoAbs_x_Setter";
num get y native "SVGPathSegMovetoAbs_y_Getter";
void set y(num value) native "SVGPathSegMovetoAbs_y_Setter";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName SVGPathSegMovetoRel
abstract class SVGPathSegMovetoRel implements SVGPathSeg {
/** @domName SVGPathSegMovetoRel.x */
num x;
/** @domName SVGPathSegMovetoRel.y */
num y;
}
// 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.
// WARNING: Do not edit - generated code.
class _SVGPathSegMovetoRelImpl extends _SVGPathSegImpl implements SVGPathSegMovetoRel {
num get x native "SVGPathSegMovetoRel_x_Getter";
void set x(num value) native "SVGPathSegMovetoRel_x_Setter";
num get y native "SVGPathSegMovetoRel_y_Getter";
void set y(num value) native "SVGPathSegMovetoRel_y_Setter";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName SVGPatternElement
abstract class SVGPatternElement implements SVGElement, SVGURIReference, SVGTests, SVGLangSpace, SVGExternalResourcesRequired, SVGStylable, SVGFitToViewBox {
/** @domName SVGPatternElement.height */
SVGAnimatedLength get height;
/** @domName SVGPatternElement.patternContentUnits */
SVGAnimatedEnumeration get patternContentUnits;
/** @domName SVGPatternElement.patternTransform */
SVGAnimatedTransformList get patternTransform;
/** @domName SVGPatternElement.patternUnits */
SVGAnimatedEnumeration get patternUnits;
/** @domName SVGPatternElement.width */
SVGAnimatedLength get width;
/** @domName SVGPatternElement.x */
SVGAnimatedLength get x;
/** @domName SVGPatternElement.y */
SVGAnimatedLength get y;
}
// 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.
// WARNING: Do not edit - generated code.
class _SVGPatternElementImpl extends _SVGElementImpl implements SVGPatternElement {
SVGAnimatedLength get height native "SVGPatternElement_height_Getter";
SVGAnimatedEnumeration get patternContentUnits native "SVGPatternElement_patternContentUnits_Getter";
SVGAnimatedTransformList get patternTransform native "SVGPatternElement_patternTransform_Getter";
SVGAnimatedEnumeration get patternUnits native "SVGPatternElement_patternUnits_Getter";
SVGAnimatedLength get width native "SVGPatternElement_width_Getter";
SVGAnimatedLength get x native "SVGPatternElement_x_Getter";
SVGAnimatedLength get y native "SVGPatternElement_y_Getter";
SVGAnimatedBoolean get externalResourcesRequired native "SVGPatternElement_externalResourcesRequired_Getter";
SVGAnimatedPreserveAspectRatio get preserveAspectRatio native "SVGPatternElement_preserveAspectRatio_Getter";
SVGAnimatedRect get viewBox native "SVGPatternElement_viewBox_Getter";
String get xmllang native "SVGPatternElement_xmllang_Getter";
void set xmllang(String value) native "SVGPatternElement_xmllang_Setter";
String get xmlspace native "SVGPatternElement_xmlspace_Getter";
void set xmlspace(String value) native "SVGPatternElement_xmlspace_Setter";
SVGAnimatedString get $dom_svgClassName native "SVGPatternElement_className_Getter";
CSSStyleDeclaration get style native "SVGPatternElement_style_Getter";
CSSValue getPresentationAttribute(String name) native "SVGPatternElement_getPresentationAttribute_Callback";
SVGStringList get requiredExtensions native "SVGPatternElement_requiredExtensions_Getter";
SVGStringList get requiredFeatures native "SVGPatternElement_requiredFeatures_Getter";
SVGStringList get systemLanguage native "SVGPatternElement_systemLanguage_Getter";
bool hasExtension(String extension) native "SVGPatternElement_hasExtension_Callback";
SVGAnimatedString get href native "SVGPatternElement_href_Getter";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName SVGPoint
abstract class SVGPoint {
/** @domName SVGPoint.x */
num x;
/** @domName SVGPoint.y */
num y;
/** @domName SVGPoint.matrixTransform */
SVGPoint matrixTransform(SVGMatrix matrix);
}
// 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.
// WARNING: Do not edit - generated code.
class _SVGPointImpl extends NativeFieldWrapperClass1 implements SVGPoint {
num get x native "SVGPoint_x_Getter";
void set x(num value) native "SVGPoint_x_Setter";
num get y native "SVGPoint_y_Getter";
void set y(num value) native "SVGPoint_y_Setter";
SVGPoint matrixTransform(SVGMatrix matrix) native "SVGPoint_matrixTransform_Callback";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName SVGPointList
abstract class SVGPointList {
/** @domName SVGPointList.numberOfItems */
int get numberOfItems;
/** @domName SVGPointList.appendItem */
SVGPoint appendItem(SVGPoint item);
/** @domName SVGPointList.clear */
void clear();
/** @domName SVGPointList.getItem */
SVGPoint getItem(int index);
/** @domName SVGPointList.initialize */
SVGPoint initialize(SVGPoint item);
/** @domName SVGPointList.insertItemBefore */
SVGPoint insertItemBefore(SVGPoint item, int index);
/** @domName SVGPointList.removeItem */
SVGPoint removeItem(int index);
/** @domName SVGPointList.replaceItem */
SVGPoint replaceItem(SVGPoint item, int index);
}
// 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.
// WARNING: Do not edit - generated code.
class _SVGPointListImpl extends NativeFieldWrapperClass1 implements SVGPointList {
int get numberOfItems native "SVGPointList_numberOfItems_Getter";
SVGPoint appendItem(SVGPoint item) native "SVGPointList_appendItem_Callback";
void clear() native "SVGPointList_clear_Callback";
SVGPoint getItem(int index) native "SVGPointList_getItem_Callback";
SVGPoint initialize(SVGPoint item) native "SVGPointList_initialize_Callback";
SVGPoint insertItemBefore(SVGPoint item, int index) native "SVGPointList_insertItemBefore_Callback";
SVGPoint removeItem(int index) native "SVGPointList_removeItem_Callback";
SVGPoint replaceItem(SVGPoint item, int index) native "SVGPointList_replaceItem_Callback";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName SVGPolygonElement
abstract class SVGPolygonElement implements SVGElement, SVGTests, SVGLangSpace, SVGExternalResourcesRequired, SVGStylable, SVGTransformable {
/** @domName SVGPolygonElement.animatedPoints */
SVGPointList get animatedPoints;
/** @domName SVGPolygonElement.points */
SVGPointList get points;
}
// 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.
// WARNING: Do not edit - generated code.
class _SVGPolygonElementImpl extends _SVGElementImpl implements SVGPolygonElement {
SVGPointList get animatedPoints native "SVGPolygonElement_animatedPoints_Getter";
SVGPointList get points native "SVGPolygonElement_points_Getter";
SVGAnimatedBoolean get externalResourcesRequired native "SVGPolygonElement_externalResourcesRequired_Getter";
String get xmllang native "SVGPolygonElement_xmllang_Getter";
void set xmllang(String value) native "SVGPolygonElement_xmllang_Setter";
String get xmlspace native "SVGPolygonElement_xmlspace_Getter";
void set xmlspace(String value) native "SVGPolygonElement_xmlspace_Setter";
SVGElement get farthestViewportElement native "SVGPolygonElement_farthestViewportElement_Getter";
SVGElement get nearestViewportElement native "SVGPolygonElement_nearestViewportElement_Getter";
SVGRect getBBox() native "SVGPolygonElement_getBBox_Callback";
SVGMatrix getCTM() native "SVGPolygonElement_getCTM_Callback";
SVGMatrix getScreenCTM() native "SVGPolygonElement_getScreenCTM_Callback";
SVGMatrix getTransformToElement(SVGElement element) native "SVGPolygonElement_getTransformToElement_Callback";
SVGAnimatedString get $dom_svgClassName native "SVGPolygonElement_className_Getter";
CSSStyleDeclaration get style native "SVGPolygonElement_style_Getter";
CSSValue getPresentationAttribute(String name) native "SVGPolygonElement_getPresentationAttribute_Callback";
SVGStringList get requiredExtensions native "SVGPolygonElement_requiredExtensions_Getter";
SVGStringList get requiredFeatures native "SVGPolygonElement_requiredFeatures_Getter";
SVGStringList get systemLanguage native "SVGPolygonElement_systemLanguage_Getter";
bool hasExtension(String extension) native "SVGPolygonElement_hasExtension_Callback";
SVGAnimatedTransformList get transform native "SVGPolygonElement_transform_Getter";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName SVGPolylineElement
abstract class SVGPolylineElement implements SVGElement, SVGTests, SVGLangSpace, SVGExternalResourcesRequired, SVGStylable, SVGTransformable {
/** @domName SVGPolylineElement.animatedPoints */
SVGPointList get animatedPoints;
/** @domName SVGPolylineElement.points */
SVGPointList get points;
}
// 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.
// WARNING: Do not edit - generated code.
class _SVGPolylineElementImpl extends _SVGElementImpl implements SVGPolylineElement {
SVGPointList get animatedPoints native "SVGPolylineElement_animatedPoints_Getter";
SVGPointList get points native "SVGPolylineElement_points_Getter";
SVGAnimatedBoolean get externalResourcesRequired native "SVGPolylineElement_externalResourcesRequired_Getter";
String get xmllang native "SVGPolylineElement_xmllang_Getter";
void set xmllang(String value) native "SVGPolylineElement_xmllang_Setter";
String get xmlspace native "SVGPolylineElement_xmlspace_Getter";
void set xmlspace(String value) native "SVGPolylineElement_xmlspace_Setter";
SVGElement get farthestViewportElement native "SVGPolylineElement_farthestViewportElement_Getter";
SVGElement get nearestViewportElement native "SVGPolylineElement_nearestViewportElement_Getter";
SVGRect getBBox() native "SVGPolylineElement_getBBox_Callback";
SVGMatrix getCTM() native "SVGPolylineElement_getCTM_Callback";
SVGMatrix getScreenCTM() native "SVGPolylineElement_getScreenCTM_Callback";
SVGMatrix getTransformToElement(SVGElement element) native "SVGPolylineElement_getTransformToElement_Callback";
SVGAnimatedString get $dom_svgClassName native "SVGPolylineElement_className_Getter";
CSSStyleDeclaration get style native "SVGPolylineElement_style_Getter";
CSSValue getPresentationAttribute(String name) native "SVGPolylineElement_getPresentationAttribute_Callback";
SVGStringList get requiredExtensions native "SVGPolylineElement_requiredExtensions_Getter";
SVGStringList get requiredFeatures native "SVGPolylineElement_requiredFeatures_Getter";
SVGStringList get systemLanguage native "SVGPolylineElement_systemLanguage_Getter";
bool hasExtension(String extension) native "SVGPolylineElement_hasExtension_Callback";
SVGAnimatedTransformList get transform native "SVGPolylineElement_transform_Getter";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName SVGPreserveAspectRatio
abstract class SVGPreserveAspectRatio {
static const int SVG_MEETORSLICE_MEET = 1;
static const int SVG_MEETORSLICE_SLICE = 2;
static const int SVG_MEETORSLICE_UNKNOWN = 0;
static const int SVG_PRESERVEASPECTRATIO_NONE = 1;
static const int SVG_PRESERVEASPECTRATIO_UNKNOWN = 0;
static const int SVG_PRESERVEASPECTRATIO_XMAXYMAX = 10;
static const int SVG_PRESERVEASPECTRATIO_XMAXYMID = 7;
static const int SVG_PRESERVEASPECTRATIO_XMAXYMIN = 4;
static const int SVG_PRESERVEASPECTRATIO_XMIDYMAX = 9;
static const int SVG_PRESERVEASPECTRATIO_XMIDYMID = 6;
static const int SVG_PRESERVEASPECTRATIO_XMIDYMIN = 3;
static const int SVG_PRESERVEASPECTRATIO_XMINYMAX = 8;
static const int SVG_PRESERVEASPECTRATIO_XMINYMID = 5;
static const int SVG_PRESERVEASPECTRATIO_XMINYMIN = 2;
/** @domName SVGPreserveAspectRatio.align */
int align;
/** @domName SVGPreserveAspectRatio.meetOrSlice */
int meetOrSlice;
}
// 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.
// WARNING: Do not edit - generated code.
class _SVGPreserveAspectRatioImpl extends NativeFieldWrapperClass1 implements SVGPreserveAspectRatio {
int get align native "SVGPreserveAspectRatio_align_Getter";
void set align(int value) native "SVGPreserveAspectRatio_align_Setter";
int get meetOrSlice native "SVGPreserveAspectRatio_meetOrSlice_Getter";
void set meetOrSlice(int value) native "SVGPreserveAspectRatio_meetOrSlice_Setter";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName SVGRadialGradientElement
abstract class SVGRadialGradientElement implements SVGGradientElement {
/** @domName SVGRadialGradientElement.cx */
SVGAnimatedLength get cx;
/** @domName SVGRadialGradientElement.cy */
SVGAnimatedLength get cy;
/** @domName SVGRadialGradientElement.fr */
SVGAnimatedLength get fr;
/** @domName SVGRadialGradientElement.fx */
SVGAnimatedLength get fx;
/** @domName SVGRadialGradientElement.fy */
SVGAnimatedLength get fy;
/** @domName SVGRadialGradientElement.r */
SVGAnimatedLength get r;
}
// 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.
// WARNING: Do not edit - generated code.
class _SVGRadialGradientElementImpl extends _SVGGradientElementImpl implements SVGRadialGradientElement {
SVGAnimatedLength get cx native "SVGRadialGradientElement_cx_Getter";
SVGAnimatedLength get cy native "SVGRadialGradientElement_cy_Getter";
SVGAnimatedLength get fr native "SVGRadialGradientElement_fr_Getter";
SVGAnimatedLength get fx native "SVGRadialGradientElement_fx_Getter";
SVGAnimatedLength get fy native "SVGRadialGradientElement_fy_Getter";
SVGAnimatedLength get r native "SVGRadialGradientElement_r_Getter";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName SVGRect
abstract class SVGRect {
/** @domName SVGRect.height */
num height;
/** @domName SVGRect.width */
num width;
/** @domName SVGRect.x */
num x;
/** @domName SVGRect.y */
num y;
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName SVGRectElement
abstract class SVGRectElement implements SVGElement, SVGTests, SVGLangSpace, SVGExternalResourcesRequired, SVGStylable, SVGTransformable {
/** @domName SVGRectElement.height */
SVGAnimatedLength get height;
/** @domName SVGRectElement.rx */
SVGAnimatedLength get rx;
/** @domName SVGRectElement.ry */
SVGAnimatedLength get ry;
/** @domName SVGRectElement.width */
SVGAnimatedLength get width;
/** @domName SVGRectElement.x */
SVGAnimatedLength get x;
/** @domName SVGRectElement.y */
SVGAnimatedLength get y;
}
// 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.
// WARNING: Do not edit - generated code.
class _SVGRectElementImpl extends _SVGElementImpl implements SVGRectElement {
SVGAnimatedLength get height native "SVGRectElement_height_Getter";
SVGAnimatedLength get rx native "SVGRectElement_rx_Getter";
SVGAnimatedLength get ry native "SVGRectElement_ry_Getter";
SVGAnimatedLength get width native "SVGRectElement_width_Getter";
SVGAnimatedLength get x native "SVGRectElement_x_Getter";
SVGAnimatedLength get y native "SVGRectElement_y_Getter";
SVGAnimatedBoolean get externalResourcesRequired native "SVGRectElement_externalResourcesRequired_Getter";
String get xmllang native "SVGRectElement_xmllang_Getter";
void set xmllang(String value) native "SVGRectElement_xmllang_Setter";
String get xmlspace native "SVGRectElement_xmlspace_Getter";
void set xmlspace(String value) native "SVGRectElement_xmlspace_Setter";
SVGElement get farthestViewportElement native "SVGRectElement_farthestViewportElement_Getter";
SVGElement get nearestViewportElement native "SVGRectElement_nearestViewportElement_Getter";
SVGRect getBBox() native "SVGRectElement_getBBox_Callback";
SVGMatrix getCTM() native "SVGRectElement_getCTM_Callback";
SVGMatrix getScreenCTM() native "SVGRectElement_getScreenCTM_Callback";
SVGMatrix getTransformToElement(SVGElement element) native "SVGRectElement_getTransformToElement_Callback";
SVGAnimatedString get $dom_svgClassName native "SVGRectElement_className_Getter";
CSSStyleDeclaration get style native "SVGRectElement_style_Getter";
CSSValue getPresentationAttribute(String name) native "SVGRectElement_getPresentationAttribute_Callback";
SVGStringList get requiredExtensions native "SVGRectElement_requiredExtensions_Getter";
SVGStringList get requiredFeatures native "SVGRectElement_requiredFeatures_Getter";
SVGStringList get systemLanguage native "SVGRectElement_systemLanguage_Getter";
bool hasExtension(String extension) native "SVGRectElement_hasExtension_Callback";
SVGAnimatedTransformList get transform native "SVGRectElement_transform_Getter";
}
// 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.
// WARNING: Do not edit - generated code.
class _SVGRectImpl extends NativeFieldWrapperClass1 implements SVGRect {
num get height native "SVGRect_height_Getter";
void set height(num value) native "SVGRect_height_Setter";
num get width native "SVGRect_width_Getter";
void set width(num value) native "SVGRect_width_Setter";
num get x native "SVGRect_x_Getter";
void set x(num value) native "SVGRect_x_Setter";
num get y native "SVGRect_y_Getter";
void set y(num value) native "SVGRect_y_Setter";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName SVGRenderingIntent
abstract class SVGRenderingIntent {
static const int RENDERING_INTENT_ABSOLUTE_COLORIMETRIC = 5;
static const int RENDERING_INTENT_AUTO = 1;
static const int RENDERING_INTENT_PERCEPTUAL = 2;
static const int RENDERING_INTENT_RELATIVE_COLORIMETRIC = 3;
static const int RENDERING_INTENT_SATURATION = 4;
static const int RENDERING_INTENT_UNKNOWN = 0;
}
// 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.
// WARNING: Do not edit - generated code.
class _SVGRenderingIntentImpl extends NativeFieldWrapperClass1 implements SVGRenderingIntent {
}
// 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.
/// @domName SVGSVGElement
abstract class SVGSVGElement extends SVGElement implements SVGTests, SVGLangSpace, SVGExternalResourcesRequired, SVGStylable, SVGLocatable, SVGFitToViewBox, SVGZoomAndPan {
factory SVGSVGElement() => _SVGSVGElementFactoryProvider.createSVGSVGElement();
/** @domName SVGSVGElement.contentScriptType */
String contentScriptType;
/** @domName SVGSVGElement.contentStyleType */
String contentStyleType;
/** @domName SVGSVGElement.currentScale */
num currentScale;
/** @domName SVGSVGElement.currentTranslate */
SVGPoint get currentTranslate;
/** @domName SVGSVGElement.currentView */
SVGViewSpec get currentView;
/** @domName SVGSVGElement.height */
SVGAnimatedLength get height;
/** @domName SVGSVGElement.pixelUnitToMillimeterX */
num get pixelUnitToMillimeterX;
/** @domName SVGSVGElement.pixelUnitToMillimeterY */
num get pixelUnitToMillimeterY;
/** @domName SVGSVGElement.screenPixelToMillimeterX */
num get screenPixelToMillimeterX;
/** @domName SVGSVGElement.screenPixelToMillimeterY */
num get screenPixelToMillimeterY;
/** @domName SVGSVGElement.useCurrentView */
bool get useCurrentView;
/** @domName SVGSVGElement.viewport */
SVGRect get viewport;
/** @domName SVGSVGElement.width */
SVGAnimatedLength get width;
/** @domName SVGSVGElement.x */
SVGAnimatedLength get x;
/** @domName SVGSVGElement.y */
SVGAnimatedLength get y;
/** @domName SVGSVGElement.animationsPaused */
bool animationsPaused();
/** @domName SVGSVGElement.checkEnclosure */
bool checkEnclosure(SVGElement element, SVGRect rect);
/** @domName SVGSVGElement.checkIntersection */
bool checkIntersection(SVGElement element, SVGRect rect);
/** @domName SVGSVGElement.createSVGAngle */
SVGAngle createSVGAngle();
/** @domName SVGSVGElement.createSVGLength */
SVGLength createSVGLength();
/** @domName SVGSVGElement.createSVGMatrix */
SVGMatrix createSVGMatrix();
/** @domName SVGSVGElement.createSVGNumber */
SVGNumber createSVGNumber();
/** @domName SVGSVGElement.createSVGPoint */
SVGPoint createSVGPoint();
/** @domName SVGSVGElement.createSVGRect */
SVGRect createSVGRect();
/** @domName SVGSVGElement.createSVGTransform */
SVGTransform createSVGTransform();
/** @domName SVGSVGElement.createSVGTransformFromMatrix */
SVGTransform createSVGTransformFromMatrix(SVGMatrix matrix);
/** @domName SVGSVGElement.deselectAll */
void deselectAll();
/** @domName SVGSVGElement.forceRedraw */
void forceRedraw();
/** @domName SVGSVGElement.getCurrentTime */
num getCurrentTime();
/** @domName SVGSVGElement.getElementById */
Element getElementById(String elementId);
/** @domName SVGSVGElement.getEnclosureList */
List<Node> getEnclosureList(SVGRect rect, SVGElement referenceElement);
/** @domName SVGSVGElement.getIntersectionList */
List<Node> getIntersectionList(SVGRect rect, SVGElement referenceElement);
/** @domName SVGSVGElement.pauseAnimations */
void pauseAnimations();
/** @domName SVGSVGElement.setCurrentTime */
void setCurrentTime(num seconds);
/** @domName SVGSVGElement.suspendRedraw */
int suspendRedraw(int maxWaitMilliseconds);
/** @domName SVGSVGElement.unpauseAnimations */
void unpauseAnimations();
/** @domName SVGSVGElement.unsuspendRedraw */
void unsuspendRedraw(int suspendHandleId);
/** @domName SVGSVGElement.unsuspendRedrawAll */
void unsuspendRedrawAll();
}
// 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.
// WARNING: Do not edit - generated code.
class _SVGSVGElementImpl extends _SVGElementImpl implements SVGSVGElement {
String get contentScriptType native "SVGSVGElement_contentScriptType_Getter";
void set contentScriptType(String value) native "SVGSVGElement_contentScriptType_Setter";
String get contentStyleType native "SVGSVGElement_contentStyleType_Getter";
void set contentStyleType(String value) native "SVGSVGElement_contentStyleType_Setter";
num get currentScale native "SVGSVGElement_currentScale_Getter";
void set currentScale(num value) native "SVGSVGElement_currentScale_Setter";
SVGPoint get currentTranslate native "SVGSVGElement_currentTranslate_Getter";
SVGViewSpec get currentView native "SVGSVGElement_currentView_Getter";
SVGAnimatedLength get height native "SVGSVGElement_height_Getter";
num get pixelUnitToMillimeterX native "SVGSVGElement_pixelUnitToMillimeterX_Getter";
num get pixelUnitToMillimeterY native "SVGSVGElement_pixelUnitToMillimeterY_Getter";
num get screenPixelToMillimeterX native "SVGSVGElement_screenPixelToMillimeterX_Getter";
num get screenPixelToMillimeterY native "SVGSVGElement_screenPixelToMillimeterY_Getter";
bool get useCurrentView native "SVGSVGElement_useCurrentView_Getter";
SVGRect get viewport native "SVGSVGElement_viewport_Getter";
SVGAnimatedLength get width native "SVGSVGElement_width_Getter";
SVGAnimatedLength get x native "SVGSVGElement_x_Getter";
SVGAnimatedLength get y native "SVGSVGElement_y_Getter";
bool animationsPaused() native "SVGSVGElement_animationsPaused_Callback";
bool checkEnclosure(SVGElement element, SVGRect rect) native "SVGSVGElement_checkEnclosure_Callback";
bool checkIntersection(SVGElement element, SVGRect rect) native "SVGSVGElement_checkIntersection_Callback";
SVGAngle createSVGAngle() native "SVGSVGElement_createSVGAngle_Callback";
SVGLength createSVGLength() native "SVGSVGElement_createSVGLength_Callback";
SVGMatrix createSVGMatrix() native "SVGSVGElement_createSVGMatrix_Callback";
SVGNumber createSVGNumber() native "SVGSVGElement_createSVGNumber_Callback";
SVGPoint createSVGPoint() native "SVGSVGElement_createSVGPoint_Callback";
SVGRect createSVGRect() native "SVGSVGElement_createSVGRect_Callback";
SVGTransform createSVGTransform() native "SVGSVGElement_createSVGTransform_Callback";
SVGTransform createSVGTransformFromMatrix(SVGMatrix matrix) native "SVGSVGElement_createSVGTransformFromMatrix_Callback";
void deselectAll() native "SVGSVGElement_deselectAll_Callback";
void forceRedraw() native "SVGSVGElement_forceRedraw_Callback";
num getCurrentTime() native "SVGSVGElement_getCurrentTime_Callback";
Element getElementById(String elementId) native "SVGSVGElement_getElementById_Callback";
List<Node> getEnclosureList(SVGRect rect, SVGElement referenceElement) native "SVGSVGElement_getEnclosureList_Callback";
List<Node> getIntersectionList(SVGRect rect, SVGElement referenceElement) native "SVGSVGElement_getIntersectionList_Callback";
void pauseAnimations() native "SVGSVGElement_pauseAnimations_Callback";
void setCurrentTime(num seconds) native "SVGSVGElement_setCurrentTime_Callback";
int suspendRedraw(int maxWaitMilliseconds) native "SVGSVGElement_suspendRedraw_Callback";
void unpauseAnimations() native "SVGSVGElement_unpauseAnimations_Callback";
void unsuspendRedraw(int suspendHandleId) native "SVGSVGElement_unsuspendRedraw_Callback";
void unsuspendRedrawAll() native "SVGSVGElement_unsuspendRedrawAll_Callback";
SVGAnimatedBoolean get externalResourcesRequired native "SVGSVGElement_externalResourcesRequired_Getter";
SVGAnimatedPreserveAspectRatio get preserveAspectRatio native "SVGSVGElement_preserveAspectRatio_Getter";
SVGAnimatedRect get viewBox native "SVGSVGElement_viewBox_Getter";
String get xmllang native "SVGSVGElement_xmllang_Getter";
void set xmllang(String value) native "SVGSVGElement_xmllang_Setter";
String get xmlspace native "SVGSVGElement_xmlspace_Getter";
void set xmlspace(String value) native "SVGSVGElement_xmlspace_Setter";
SVGElement get farthestViewportElement native "SVGSVGElement_farthestViewportElement_Getter";
SVGElement get nearestViewportElement native "SVGSVGElement_nearestViewportElement_Getter";
SVGRect getBBox() native "SVGSVGElement_getBBox_Callback";
SVGMatrix getCTM() native "SVGSVGElement_getCTM_Callback";
SVGMatrix getScreenCTM() native "SVGSVGElement_getScreenCTM_Callback";
SVGMatrix getTransformToElement(SVGElement element) native "SVGSVGElement_getTransformToElement_Callback";
SVGAnimatedString get $dom_svgClassName native "SVGSVGElement_className_Getter";
CSSStyleDeclaration get style native "SVGSVGElement_style_Getter";
CSSValue getPresentationAttribute(String name) native "SVGSVGElement_getPresentationAttribute_Callback";
SVGStringList get requiredExtensions native "SVGSVGElement_requiredExtensions_Getter";
SVGStringList get requiredFeatures native "SVGSVGElement_requiredFeatures_Getter";
SVGStringList get systemLanguage native "SVGSVGElement_systemLanguage_Getter";
bool hasExtension(String extension) native "SVGSVGElement_hasExtension_Callback";
int get zoomAndPan native "SVGSVGElement_zoomAndPan_Getter";
void set zoomAndPan(int value) native "SVGSVGElement_zoomAndPan_Setter";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName SVGScriptElement
abstract class SVGScriptElement implements SVGElement, SVGURIReference, SVGExternalResourcesRequired {
/** @domName SVGScriptElement.type */
String type;
}
// 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.
// WARNING: Do not edit - generated code.
class _SVGScriptElementImpl extends _SVGElementImpl implements SVGScriptElement {
String get type native "SVGScriptElement_type_Getter";
void set type(String value) native "SVGScriptElement_type_Setter";
SVGAnimatedBoolean get externalResourcesRequired native "SVGScriptElement_externalResourcesRequired_Getter";
SVGAnimatedString get href native "SVGScriptElement_href_Getter";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName SVGSetElement
abstract class SVGSetElement implements SVGAnimationElement {
}
// 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.
// WARNING: Do not edit - generated code.
class _SVGSetElementImpl extends _SVGAnimationElementImpl implements SVGSetElement {
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName SVGStopElement
abstract class SVGStopElement implements SVGElement, SVGStylable {
/** @domName SVGStopElement.offset */
SVGAnimatedNumber get offset;
}
// 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.
// WARNING: Do not edit - generated code.
class _SVGStopElementImpl extends _SVGElementImpl implements SVGStopElement {
SVGAnimatedNumber get offset native "SVGStopElement_offset_Getter";
SVGAnimatedString get $dom_svgClassName native "SVGStopElement_className_Getter";
CSSStyleDeclaration get style native "SVGStopElement_style_Getter";
CSSValue getPresentationAttribute(String name) native "SVGStopElement_getPresentationAttribute_Callback";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName SVGStringList
abstract class SVGStringList implements List<String> {
/** @domName SVGStringList.numberOfItems */
int get numberOfItems;
/** @domName SVGStringList.appendItem */
String appendItem(String item);
/** @domName SVGStringList.clear */
void clear();
/** @domName SVGStringList.getItem */
String getItem(int index);
/** @domName SVGStringList.initialize */
String initialize(String item);
/** @domName SVGStringList.insertItemBefore */
String insertItemBefore(String item, int index);
/** @domName SVGStringList.removeItem */
String removeItem(int index);
/** @domName SVGStringList.replaceItem */
String replaceItem(String item, int index);
}
// 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.
// WARNING: Do not edit - generated code.
class _SVGStringListImpl extends NativeFieldWrapperClass1 implements SVGStringList {
int get numberOfItems native "SVGStringList_numberOfItems_Getter";
String operator[](int index) native "SVGStringList_item_Callback";
void operator[]=(int index, String value) {
throw new UnsupportedError("Cannot assign element of immutable List.");
}
// -- start List<String> mixins.
// String is the element type.
// From Iterable<String>:
Iterator<String> 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<String>(this);
}
// From Collection<String>:
void add(String value) {
throw new UnsupportedError("Cannot add to immutable List.");
}
void addLast(String value) {
throw new UnsupportedError("Cannot add to immutable List.");
}
void addAll(Collection<String> collection) {
throw new UnsupportedError("Cannot add to immutable List.");
}
bool contains(String element) => _Collections.contains(this, element);
void forEach(void f(String element)) => _Collections.forEach(this, f);
Collection map(f(String element)) => _Collections.map(this, [], f);
Collection<String> filter(bool f(String element)) =>
_Collections.filter(this, <String>[], f);
bool every(bool f(String element)) => _Collections.every(this, f);
bool some(bool f(String element)) => _Collections.some(this, f);
bool get isEmpty => this.length == 0;
// From List<String>:
void sort([Comparator<String> compare = Comparable.compare]) {
throw new UnsupportedError("Cannot sort immutable List.");
}
int indexOf(String element, [int start = 0]) =>
_Lists.indexOf(this, element, start, this.length);
int lastIndexOf(String element, [int start]) {
if (start == null) start = length - 1;
return _Lists.lastIndexOf(this, element, start);
}
String get last => this[length - 1];
String removeLast() {
throw new UnsupportedError("Cannot removeLast on immutable List.");
}
void setRange(int start, int rangeLength, List<String> from, [int startFrom]) {
throw new UnsupportedError("Cannot setRange on immutable List.");
}
void removeRange(int start, int rangeLength) {
throw new UnsupportedError("Cannot removeRange on immutable List.");
}
void insertRange(int start, int rangeLength, [String initialValue]) {
throw new UnsupportedError("Cannot insertRange on immutable List.");
}
List<String> getRange(int start, int rangeLength) =>
_Lists.getRange(this, start, rangeLength, <String>[]);
// -- end List<String> mixins.
String appendItem(String item) native "SVGStringList_appendItem_Callback";
void clear() native "SVGStringList_clear_Callback";
String getItem(int index) native "SVGStringList_getItem_Callback";
String initialize(String item) native "SVGStringList_initialize_Callback";
String insertItemBefore(String item, int index) native "SVGStringList_insertItemBefore_Callback";
String removeItem(int index) native "SVGStringList_removeItem_Callback";
String replaceItem(String item, int index) native "SVGStringList_replaceItem_Callback";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName SVGStylable
abstract class SVGStylable {
/** @domName SVGStylable.className */
SVGAnimatedString get $dom_svgClassName;
/** @domName SVGStylable.style */
CSSStyleDeclaration get style;
/** @domName SVGStylable.getPresentationAttribute */
CSSValue getPresentationAttribute(String name);
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName SVGStyleElement
abstract class SVGStyleElement implements SVGElement, SVGLangSpace {
/** @domName SVGStyleElement.disabled */
bool disabled;
/** @domName SVGStyleElement.media */
String media;
/** @domName SVGStyleElement.title */
String title;
/** @domName SVGStyleElement.type */
String type;
}
// 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.
// WARNING: Do not edit - generated code.
class _SVGStyleElementImpl extends _SVGElementImpl implements SVGStyleElement {
bool get disabled native "SVGStyleElement_disabled_Getter";
void set disabled(bool value) native "SVGStyleElement_disabled_Setter";
String get media native "SVGStyleElement_media_Getter";
void set media(String value) native "SVGStyleElement_media_Setter";
String get title native "SVGStyleElement_title_Getter";
void set title(String value) native "SVGStyleElement_title_Setter";
String get type native "SVGStyleElement_type_Getter";
void set type(String value) native "SVGStyleElement_type_Setter";
String get xmllang native "SVGStyleElement_xmllang_Getter";
void set xmllang(String value) native "SVGStyleElement_xmllang_Setter";
String get xmlspace native "SVGStyleElement_xmlspace_Getter";
void set xmlspace(String value) native "SVGStyleElement_xmlspace_Setter";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName SVGSwitchElement
abstract class SVGSwitchElement implements SVGElement, SVGTests, SVGLangSpace, SVGExternalResourcesRequired, SVGStylable, SVGTransformable {
}
// 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.
// WARNING: Do not edit - generated code.
class _SVGSwitchElementImpl extends _SVGElementImpl implements SVGSwitchElement {
SVGAnimatedBoolean get externalResourcesRequired native "SVGSwitchElement_externalResourcesRequired_Getter";
String get xmllang native "SVGSwitchElement_xmllang_Getter";
void set xmllang(String value) native "SVGSwitchElement_xmllang_Setter";
String get xmlspace native "SVGSwitchElement_xmlspace_Getter";
void set xmlspace(String value) native "SVGSwitchElement_xmlspace_Setter";
SVGElement get farthestViewportElement native "SVGSwitchElement_farthestViewportElement_Getter";
SVGElement get nearestViewportElement native "SVGSwitchElement_nearestViewportElement_Getter";
SVGRect getBBox() native "SVGSwitchElement_getBBox_Callback";
SVGMatrix getCTM() native "SVGSwitchElement_getCTM_Callback";
SVGMatrix getScreenCTM() native "SVGSwitchElement_getScreenCTM_Callback";
SVGMatrix getTransformToElement(SVGElement element) native "SVGSwitchElement_getTransformToElement_Callback";
SVGAnimatedString get $dom_svgClassName native "SVGSwitchElement_className_Getter";
CSSStyleDeclaration get style native "SVGSwitchElement_style_Getter";
CSSValue getPresentationAttribute(String name) native "SVGSwitchElement_getPresentationAttribute_Callback";
SVGStringList get requiredExtensions native "SVGSwitchElement_requiredExtensions_Getter";
SVGStringList get requiredFeatures native "SVGSwitchElement_requiredFeatures_Getter";
SVGStringList get systemLanguage native "SVGSwitchElement_systemLanguage_Getter";
bool hasExtension(String extension) native "SVGSwitchElement_hasExtension_Callback";
SVGAnimatedTransformList get transform native "SVGSwitchElement_transform_Getter";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName SVGSymbolElement
abstract class SVGSymbolElement implements SVGElement, SVGLangSpace, SVGExternalResourcesRequired, SVGStylable, SVGFitToViewBox {
}
// 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.
// WARNING: Do not edit - generated code.
class _SVGSymbolElementImpl extends _SVGElementImpl implements SVGSymbolElement {
SVGAnimatedBoolean get externalResourcesRequired native "SVGSymbolElement_externalResourcesRequired_Getter";
SVGAnimatedPreserveAspectRatio get preserveAspectRatio native "SVGSymbolElement_preserveAspectRatio_Getter";
SVGAnimatedRect get viewBox native "SVGSymbolElement_viewBox_Getter";
String get xmllang native "SVGSymbolElement_xmllang_Getter";
void set xmllang(String value) native "SVGSymbolElement_xmllang_Setter";
String get xmlspace native "SVGSymbolElement_xmlspace_Getter";
void set xmlspace(String value) native "SVGSymbolElement_xmlspace_Setter";
SVGAnimatedString get $dom_svgClassName native "SVGSymbolElement_className_Getter";
CSSStyleDeclaration get style native "SVGSymbolElement_style_Getter";
CSSValue getPresentationAttribute(String name) native "SVGSymbolElement_getPresentationAttribute_Callback";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName SVGTRefElement
abstract class SVGTRefElement implements SVGTextPositioningElement, SVGURIReference {
}
// 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.
// WARNING: Do not edit - generated code.
class _SVGTRefElementImpl extends _SVGTextPositioningElementImpl implements SVGTRefElement {
SVGAnimatedString get href native "SVGTRefElement_href_Getter";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName SVGTSpanElement
abstract class SVGTSpanElement implements SVGTextPositioningElement {
}
// 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.
// WARNING: Do not edit - generated code.
class _SVGTSpanElementImpl extends _SVGTextPositioningElementImpl implements SVGTSpanElement {
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName SVGTests
abstract class SVGTests {
/** @domName SVGTests.requiredExtensions */
SVGStringList get requiredExtensions;
/** @domName SVGTests.requiredFeatures */
SVGStringList get requiredFeatures;
/** @domName SVGTests.systemLanguage */
SVGStringList get systemLanguage;
/** @domName SVGTests.hasExtension */
bool hasExtension(String extension);
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName SVGTextContentElement
abstract class SVGTextContentElement implements SVGElement, SVGTests, SVGLangSpace, SVGExternalResourcesRequired, SVGStylable {
static const int LENGTHADJUST_SPACING = 1;
static const int LENGTHADJUST_SPACINGANDGLYPHS = 2;
static const int LENGTHADJUST_UNKNOWN = 0;
/** @domName SVGTextContentElement.lengthAdjust */
SVGAnimatedEnumeration get lengthAdjust;
/** @domName SVGTextContentElement.textLength */
SVGAnimatedLength get textLength;
/** @domName SVGTextContentElement.getCharNumAtPosition */
int getCharNumAtPosition(SVGPoint point);
/** @domName SVGTextContentElement.getComputedTextLength */
num getComputedTextLength();
/** @domName SVGTextContentElement.getEndPositionOfChar */
SVGPoint getEndPositionOfChar(int offset);
/** @domName SVGTextContentElement.getExtentOfChar */
SVGRect getExtentOfChar(int offset);
/** @domName SVGTextContentElement.getNumberOfChars */
int getNumberOfChars();
/** @domName SVGTextContentElement.getRotationOfChar */
num getRotationOfChar(int offset);
/** @domName SVGTextContentElement.getStartPositionOfChar */
SVGPoint getStartPositionOfChar(int offset);
/** @domName SVGTextContentElement.getSubStringLength */
num getSubStringLength(int offset, int length);
/** @domName SVGTextContentElement.selectSubString */
void selectSubString(int offset, int length);
}
// 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.
// WARNING: Do not edit - generated code.
class _SVGTextContentElementImpl extends _SVGElementImpl implements SVGTextContentElement {
SVGAnimatedEnumeration get lengthAdjust native "SVGTextContentElement_lengthAdjust_Getter";
SVGAnimatedLength get textLength native "SVGTextContentElement_textLength_Getter";
int getCharNumAtPosition(SVGPoint point) native "SVGTextContentElement_getCharNumAtPosition_Callback";
num getComputedTextLength() native "SVGTextContentElement_getComputedTextLength_Callback";
SVGPoint getEndPositionOfChar(int offset) native "SVGTextContentElement_getEndPositionOfChar_Callback";
SVGRect getExtentOfChar(int offset) native "SVGTextContentElement_getExtentOfChar_Callback";
int getNumberOfChars() native "SVGTextContentElement_getNumberOfChars_Callback";
num getRotationOfChar(int offset) native "SVGTextContentElement_getRotationOfChar_Callback";
SVGPoint getStartPositionOfChar(int offset) native "SVGTextContentElement_getStartPositionOfChar_Callback";
num getSubStringLength(int offset, int length) native "SVGTextContentElement_getSubStringLength_Callback";
void selectSubString(int offset, int length) native "SVGTextContentElement_selectSubString_Callback";
SVGAnimatedBoolean get externalResourcesRequired native "SVGTextContentElement_externalResourcesRequired_Getter";
String get xmllang native "SVGTextContentElement_xmllang_Getter";
void set xmllang(String value) native "SVGTextContentElement_xmllang_Setter";
String get xmlspace native "SVGTextContentElement_xmlspace_Getter";
void set xmlspace(String value) native "SVGTextContentElement_xmlspace_Setter";
SVGAnimatedString get $dom_svgClassName native "SVGTextContentElement_className_Getter";
CSSStyleDeclaration get style native "SVGTextContentElement_style_Getter";
CSSValue getPresentationAttribute(String name) native "SVGTextContentElement_getPresentationAttribute_Callback";
SVGStringList get requiredExtensions native "SVGTextContentElement_requiredExtensions_Getter";
SVGStringList get requiredFeatures native "SVGTextContentElement_requiredFeatures_Getter";
SVGStringList get systemLanguage native "SVGTextContentElement_systemLanguage_Getter";
bool hasExtension(String extension) native "SVGTextContentElement_hasExtension_Callback";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName SVGTextElement
abstract class SVGTextElement implements SVGTextPositioningElement, SVGTransformable {
}
// 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.
// WARNING: Do not edit - generated code.
class _SVGTextElementImpl extends _SVGTextPositioningElementImpl implements SVGTextElement {
SVGElement get farthestViewportElement native "SVGTextElement_farthestViewportElement_Getter";
SVGElement get nearestViewportElement native "SVGTextElement_nearestViewportElement_Getter";
SVGRect getBBox() native "SVGTextElement_getBBox_Callback";
SVGMatrix getCTM() native "SVGTextElement_getCTM_Callback";
SVGMatrix getScreenCTM() native "SVGTextElement_getScreenCTM_Callback";
SVGMatrix getTransformToElement(SVGElement element) native "SVGTextElement_getTransformToElement_Callback";
SVGAnimatedTransformList get transform native "SVGTextElement_transform_Getter";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName SVGTextPathElement
abstract class SVGTextPathElement implements SVGTextContentElement, SVGURIReference {
static const int TEXTPATH_METHODTYPE_ALIGN = 1;
static const int TEXTPATH_METHODTYPE_STRETCH = 2;
static const int TEXTPATH_METHODTYPE_UNKNOWN = 0;
static const int TEXTPATH_SPACINGTYPE_AUTO = 1;
static const int TEXTPATH_SPACINGTYPE_EXACT = 2;
static const int TEXTPATH_SPACINGTYPE_UNKNOWN = 0;
/** @domName SVGTextPathElement.method */
SVGAnimatedEnumeration get method;
/** @domName SVGTextPathElement.spacing */
SVGAnimatedEnumeration get spacing;
/** @domName SVGTextPathElement.startOffset */
SVGAnimatedLength get startOffset;
}
// 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.
// WARNING: Do not edit - generated code.
class _SVGTextPathElementImpl extends _SVGTextContentElementImpl implements SVGTextPathElement {
SVGAnimatedEnumeration get method native "SVGTextPathElement_method_Getter";
SVGAnimatedEnumeration get spacing native "SVGTextPathElement_spacing_Getter";
SVGAnimatedLength get startOffset native "SVGTextPathElement_startOffset_Getter";
SVGAnimatedString get href native "SVGTextPathElement_href_Getter";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName SVGTextPositioningElement
abstract class SVGTextPositioningElement implements SVGTextContentElement {
/** @domName SVGTextPositioningElement.dx */
SVGAnimatedLengthList get dx;
/** @domName SVGTextPositioningElement.dy */
SVGAnimatedLengthList get dy;
/** @domName SVGTextPositioningElement.rotate */
SVGAnimatedNumberList get rotate;
/** @domName SVGTextPositioningElement.x */
SVGAnimatedLengthList get x;
/** @domName SVGTextPositioningElement.y */
SVGAnimatedLengthList get y;
}
// 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.
// WARNING: Do not edit - generated code.
class _SVGTextPositioningElementImpl extends _SVGTextContentElementImpl implements SVGTextPositioningElement {
SVGAnimatedLengthList get dx native "SVGTextPositioningElement_dx_Getter";
SVGAnimatedLengthList get dy native "SVGTextPositioningElement_dy_Getter";
SVGAnimatedNumberList get rotate native "SVGTextPositioningElement_rotate_Getter";
SVGAnimatedLengthList get x native "SVGTextPositioningElement_x_Getter";
SVGAnimatedLengthList get y native "SVGTextPositioningElement_y_Getter";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName SVGTitleElement
abstract class SVGTitleElement implements SVGElement, SVGLangSpace, SVGStylable {
}
// 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.
// WARNING: Do not edit - generated code.
class _SVGTitleElementImpl extends _SVGElementImpl implements SVGTitleElement {
String get xmllang native "SVGTitleElement_xmllang_Getter";
void set xmllang(String value) native "SVGTitleElement_xmllang_Setter";
String get xmlspace native "SVGTitleElement_xmlspace_Getter";
void set xmlspace(String value) native "SVGTitleElement_xmlspace_Setter";
SVGAnimatedString get $dom_svgClassName native "SVGTitleElement_className_Getter";
CSSStyleDeclaration get style native "SVGTitleElement_style_Getter";
CSSValue getPresentationAttribute(String name) native "SVGTitleElement_getPresentationAttribute_Callback";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName SVGTransform
abstract class SVGTransform {
static const int SVG_TRANSFORM_MATRIX = 1;
static const int SVG_TRANSFORM_ROTATE = 4;
static const int SVG_TRANSFORM_SCALE = 3;
static const int SVG_TRANSFORM_SKEWX = 5;
static const int SVG_TRANSFORM_SKEWY = 6;
static const int SVG_TRANSFORM_TRANSLATE = 2;
static const int SVG_TRANSFORM_UNKNOWN = 0;
/** @domName SVGTransform.angle */
num get angle;
/** @domName SVGTransform.matrix */
SVGMatrix get matrix;
/** @domName SVGTransform.type */
int get type;
/** @domName SVGTransform.setMatrix */
void setMatrix(SVGMatrix matrix);
/** @domName SVGTransform.setRotate */
void setRotate(num angle, num cx, num cy);
/** @domName SVGTransform.setScale */
void setScale(num sx, num sy);
/** @domName SVGTransform.setSkewX */
void setSkewX(num angle);
/** @domName SVGTransform.setSkewY */
void setSkewY(num angle);
/** @domName SVGTransform.setTranslate */
void setTranslate(num tx, num ty);
}
// 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.
// WARNING: Do not edit - generated code.
class _SVGTransformImpl extends NativeFieldWrapperClass1 implements SVGTransform {
num get angle native "SVGTransform_angle_Getter";
SVGMatrix get matrix native "SVGTransform_matrix_Getter";
int get type native "SVGTransform_type_Getter";
void setMatrix(SVGMatrix matrix) native "SVGTransform_setMatrix_Callback";
void setRotate(num angle, num cx, num cy) native "SVGTransform_setRotate_Callback";
void setScale(num sx, num sy) native "SVGTransform_setScale_Callback";
void setSkewX(num angle) native "SVGTransform_setSkewX_Callback";
void setSkewY(num angle) native "SVGTransform_setSkewY_Callback";
void setTranslate(num tx, num ty) native "SVGTransform_setTranslate_Callback";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName SVGTransformList
abstract class SVGTransformList implements List<SVGTransform> {
/** @domName SVGTransformList.numberOfItems */
int get numberOfItems;
/** @domName SVGTransformList.appendItem */
SVGTransform appendItem(SVGTransform item);
/** @domName SVGTransformList.clear */
void clear();
/** @domName SVGTransformList.consolidate */
SVGTransform consolidate();
/** @domName SVGTransformList.createSVGTransformFromMatrix */
SVGTransform createSVGTransformFromMatrix(SVGMatrix matrix);
/** @domName SVGTransformList.getItem */
SVGTransform getItem(int index);
/** @domName SVGTransformList.initialize */
SVGTransform initialize(SVGTransform item);
/** @domName SVGTransformList.insertItemBefore */
SVGTransform insertItemBefore(SVGTransform item, int index);
/** @domName SVGTransformList.removeItem */
SVGTransform removeItem(int index);
/** @domName SVGTransformList.replaceItem */
SVGTransform replaceItem(SVGTransform item, int index);
}
// 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.
// WARNING: Do not edit - generated code.
class _SVGTransformListImpl extends NativeFieldWrapperClass1 implements SVGTransformList {
int get numberOfItems native "SVGTransformList_numberOfItems_Getter";
SVGTransform operator[](int index) native "SVGTransformList_item_Callback";
void operator[]=(int index, SVGTransform value) {
throw new UnsupportedError("Cannot assign element of immutable List.");
}
// -- start List<SVGTransform> mixins.
// SVGTransform is the element type.
// From Iterable<SVGTransform>:
Iterator<SVGTransform> 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<SVGTransform>(this);
}
// From Collection<SVGTransform>:
void add(SVGTransform value) {
throw new UnsupportedError("Cannot add to immutable List.");
}
void addLast(SVGTransform value) {
throw new UnsupportedError("Cannot add to immutable List.");
}
void addAll(Collection<SVGTransform> collection) {
throw new UnsupportedError("Cannot add to immutable List.");
}
bool contains(SVGTransform element) => _Collections.contains(this, element);
void forEach(void f(SVGTransform element)) => _Collections.forEach(this, f);
Collection map(f(SVGTransform element)) => _Collections.map(this, [], f);
Collection<SVGTransform> filter(bool f(SVGTransform element)) =>
_Collections.filter(this, <SVGTransform>[], f);
bool every(bool f(SVGTransform element)) => _Collections.every(this, f);
bool some(bool f(SVGTransform element)) => _Collections.some(this, f);
bool get isEmpty => this.length == 0;
// From List<SVGTransform>:
void sort([Comparator<SVGTransform> compare = Comparable.compare]) {
throw new UnsupportedError("Cannot sort immutable List.");
}
int indexOf(SVGTransform element, [int start = 0]) =>
_Lists.indexOf(this, element, start, this.length);
int lastIndexOf(SVGTransform element, [int start]) {
if (start == null) start = length - 1;
return _Lists.lastIndexOf(this, element, start);
}
SVGTransform get last => this[length - 1];
SVGTransform removeLast() {
throw new UnsupportedError("Cannot removeLast on immutable List.");
}
void setRange(int start, int rangeLength, List<SVGTransform> from, [int startFrom]) {
throw new UnsupportedError("Cannot setRange on immutable List.");
}
void removeRange(int start, int rangeLength) {
throw new UnsupportedError("Cannot removeRange on immutable List.");
}
void insertRange(int start, int rangeLength, [SVGTransform initialValue]) {
throw new UnsupportedError("Cannot insertRange on immutable List.");
}
List<SVGTransform> getRange(int start, int rangeLength) =>
_Lists.getRange(this, start, rangeLength, <SVGTransform>[]);
// -- end List<SVGTransform> mixins.
SVGTransform appendItem(SVGTransform item) native "SVGTransformList_appendItem_Callback";
void clear() native "SVGTransformList_clear_Callback";
SVGTransform consolidate() native "SVGTransformList_consolidate_Callback";
SVGTransform createSVGTransformFromMatrix(SVGMatrix matrix) native "SVGTransformList_createSVGTransformFromMatrix_Callback";
SVGTransform getItem(int index) native "SVGTransformList_getItem_Callback";
SVGTransform initialize(SVGTransform item) native "SVGTransformList_initialize_Callback";
SVGTransform insertItemBefore(SVGTransform item, int index) native "SVGTransformList_insertItemBefore_Callback";
SVGTransform removeItem(int index) native "SVGTransformList_removeItem_Callback";
SVGTransform replaceItem(SVGTransform item, int index) native "SVGTransformList_replaceItem_Callback";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName SVGTransformable
abstract class SVGTransformable implements SVGLocatable {
/** @domName SVGTransformable.transform */
SVGAnimatedTransformList get transform;
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName SVGURIReference
abstract class SVGURIReference {
/** @domName SVGURIReference.href */
SVGAnimatedString get href;
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName SVGUnitTypes
abstract class SVGUnitTypes {
static const int SVG_UNIT_TYPE_OBJECTBOUNDINGBOX = 2;
static const int SVG_UNIT_TYPE_UNKNOWN = 0;
static const int SVG_UNIT_TYPE_USERSPACEONUSE = 1;
}
// 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.
// WARNING: Do not edit - generated code.
class _SVGUnitTypesImpl extends NativeFieldWrapperClass1 implements SVGUnitTypes {
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName SVGUseElement
abstract class SVGUseElement implements SVGElement, SVGURIReference, SVGTests, SVGLangSpace, SVGExternalResourcesRequired, SVGStylable, SVGTransformable {
/** @domName SVGUseElement.animatedInstanceRoot */
SVGElementInstance get animatedInstanceRoot;
/** @domName SVGUseElement.height */
SVGAnimatedLength get height;
/** @domName SVGUseElement.instanceRoot */
SVGElementInstance get instanceRoot;
/** @domName SVGUseElement.width */
SVGAnimatedLength get width;
/** @domName SVGUseElement.x */
SVGAnimatedLength get x;
/** @domName SVGUseElement.y */
SVGAnimatedLength get y;
}
// 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.
// WARNING: Do not edit - generated code.
class _SVGUseElementImpl extends _SVGElementImpl implements SVGUseElement {
SVGElementInstance get animatedInstanceRoot native "SVGUseElement_animatedInstanceRoot_Getter";
SVGAnimatedLength get height native "SVGUseElement_height_Getter";
SVGElementInstance get instanceRoot native "SVGUseElement_instanceRoot_Getter";
SVGAnimatedLength get width native "SVGUseElement_width_Getter";
SVGAnimatedLength get x native "SVGUseElement_x_Getter";
SVGAnimatedLength get y native "SVGUseElement_y_Getter";
SVGAnimatedBoolean get externalResourcesRequired native "SVGUseElement_externalResourcesRequired_Getter";
String get xmllang native "SVGUseElement_xmllang_Getter";
void set xmllang(String value) native "SVGUseElement_xmllang_Setter";
String get xmlspace native "SVGUseElement_xmlspace_Getter";
void set xmlspace(String value) native "SVGUseElement_xmlspace_Setter";
SVGElement get farthestViewportElement native "SVGUseElement_farthestViewportElement_Getter";
SVGElement get nearestViewportElement native "SVGUseElement_nearestViewportElement_Getter";
SVGRect getBBox() native "SVGUseElement_getBBox_Callback";
SVGMatrix getCTM() native "SVGUseElement_getCTM_Callback";
SVGMatrix getScreenCTM() native "SVGUseElement_getScreenCTM_Callback";
SVGMatrix getTransformToElement(SVGElement element) native "SVGUseElement_getTransformToElement_Callback";
SVGAnimatedString get $dom_svgClassName native "SVGUseElement_className_Getter";
CSSStyleDeclaration get style native "SVGUseElement_style_Getter";
CSSValue getPresentationAttribute(String name) native "SVGUseElement_getPresentationAttribute_Callback";
SVGStringList get requiredExtensions native "SVGUseElement_requiredExtensions_Getter";
SVGStringList get requiredFeatures native "SVGUseElement_requiredFeatures_Getter";
SVGStringList get systemLanguage native "SVGUseElement_systemLanguage_Getter";
bool hasExtension(String extension) native "SVGUseElement_hasExtension_Callback";
SVGAnimatedTransformList get transform native "SVGUseElement_transform_Getter";
SVGAnimatedString get href native "SVGUseElement_href_Getter";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName SVGVKernElement
abstract class SVGVKernElement implements SVGElement {
}
// 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.
// WARNING: Do not edit - generated code.
class _SVGVKernElementImpl extends _SVGElementImpl implements SVGVKernElement {
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName SVGViewElement
abstract class SVGViewElement implements SVGElement, SVGExternalResourcesRequired, SVGFitToViewBox, SVGZoomAndPan {
/** @domName SVGViewElement.viewTarget */
SVGStringList get viewTarget;
}
// 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.
// WARNING: Do not edit - generated code.
class _SVGViewElementImpl extends _SVGElementImpl implements SVGViewElement {
SVGStringList get viewTarget native "SVGViewElement_viewTarget_Getter";
SVGAnimatedBoolean get externalResourcesRequired native "SVGViewElement_externalResourcesRequired_Getter";
SVGAnimatedPreserveAspectRatio get preserveAspectRatio native "SVGViewElement_preserveAspectRatio_Getter";
SVGAnimatedRect get viewBox native "SVGViewElement_viewBox_Getter";
int get zoomAndPan native "SVGViewElement_zoomAndPan_Getter";
void set zoomAndPan(int value) native "SVGViewElement_zoomAndPan_Setter";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName SVGViewSpec
abstract class SVGViewSpec {
/** @domName SVGViewSpec.preserveAspectRatio */
SVGAnimatedPreserveAspectRatio get preserveAspectRatio;
/** @domName SVGViewSpec.preserveAspectRatioString */
String get preserveAspectRatioString;
/** @domName SVGViewSpec.transform */
SVGTransformList get transform;
/** @domName SVGViewSpec.transformString */
String get transformString;
/** @domName SVGViewSpec.viewBox */
SVGAnimatedRect get viewBox;
/** @domName SVGViewSpec.viewBoxString */
String get viewBoxString;
/** @domName SVGViewSpec.viewTarget */
SVGElement get viewTarget;
/** @domName SVGViewSpec.viewTargetString */
String get viewTargetString;
/** @domName SVGViewSpec.zoomAndPan */
int zoomAndPan;
}
// 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.
// WARNING: Do not edit - generated code.
class _SVGViewSpecImpl extends NativeFieldWrapperClass1 implements SVGViewSpec {
SVGAnimatedPreserveAspectRatio get preserveAspectRatio native "SVGViewSpec_preserveAspectRatio_Getter";
String get preserveAspectRatioString native "SVGViewSpec_preserveAspectRatioString_Getter";
SVGTransformList get transform native "SVGViewSpec_transform_Getter";
String get transformString native "SVGViewSpec_transformString_Getter";
SVGAnimatedRect get viewBox native "SVGViewSpec_viewBox_Getter";
String get viewBoxString native "SVGViewSpec_viewBoxString_Getter";
SVGElement get viewTarget native "SVGViewSpec_viewTarget_Getter";
String get viewTargetString native "SVGViewSpec_viewTargetString_Getter";
int get zoomAndPan native "SVGViewSpec_zoomAndPan_Getter";
void set zoomAndPan(int value) native "SVGViewSpec_zoomAndPan_Setter";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName SVGZoomAndPan
abstract class SVGZoomAndPan {
static const int SVG_ZOOMANDPAN_DISABLE = 1;
static const int SVG_ZOOMANDPAN_MAGNIFY = 2;
static const int SVG_ZOOMANDPAN_UNKNOWN = 0;
/** @domName SVGZoomAndPan.zoomAndPan */
int zoomAndPan;
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName SVGZoomEvent
abstract class SVGZoomEvent implements UIEvent {
/** @domName SVGZoomEvent.newScale */
num get newScale;
/** @domName SVGZoomEvent.newTranslate */
SVGPoint get newTranslate;
/** @domName SVGZoomEvent.previousScale */
num get previousScale;
/** @domName SVGZoomEvent.previousTranslate */
SVGPoint get previousTranslate;
/** @domName SVGZoomEvent.zoomRectScreen */
SVGRect get zoomRectScreen;
}
// 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.
// WARNING: Do not edit - generated code.
class _SVGZoomEventImpl extends _UIEventImpl implements SVGZoomEvent {
num get newScale native "SVGZoomEvent_newScale_Getter";
SVGPoint get newTranslate native "SVGZoomEvent_newTranslate_Getter";
num get previousScale native "SVGZoomEvent_previousScale_Getter";
SVGPoint get previousTranslate native "SVGZoomEvent_previousTranslate_Getter";
SVGRect get zoomRectScreen native "SVGZoomEvent_zoomRectScreen_Getter";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName Screen
abstract class Screen {
/** @domName Screen.availHeight */
int get availHeight;
/** @domName Screen.availLeft */
int get availLeft;
/** @domName Screen.availTop */
int get availTop;
/** @domName Screen.availWidth */
int get availWidth;
/** @domName Screen.colorDepth */
int get colorDepth;
/** @domName Screen.height */
int get height;
/** @domName Screen.pixelDepth */
int get pixelDepth;
/** @domName Screen.width */
int get width;
}
// 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.
// WARNING: Do not edit - generated code.
class _ScreenImpl extends NativeFieldWrapperClass1 implements Screen {
int get availHeight native "Screen_availHeight_Getter";
int get availLeft native "Screen_availLeft_Getter";
int get availTop native "Screen_availTop_Getter";
int get availWidth native "Screen_availWidth_Getter";
int get colorDepth native "Screen_colorDepth_Getter";
int get height native "Screen_height_Getter";
int get pixelDepth native "Screen_pixelDepth_Getter";
int get width native "Screen_width_Getter";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName HTMLScriptElement
abstract class ScriptElement implements Element {
factory ScriptElement() => _Elements.createScriptElement();
/** @domName HTMLScriptElement.async */
bool async;
/** @domName HTMLScriptElement.charset */
String charset;
/** @domName HTMLScriptElement.crossOrigin */
String crossOrigin;
/** @domName HTMLScriptElement.defer */
bool defer;
/** @domName HTMLScriptElement.event */
String event;
/** @domName HTMLScriptElement.htmlFor */
String htmlFor;
/** @domName HTMLScriptElement.src */
String src;
/** @domName HTMLScriptElement.type */
String type;
}
// 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.
// WARNING: Do not edit - generated code.
class _ScriptElementImpl extends _ElementImpl_Merged implements ScriptElement {
bool get async native "HTMLScriptElement_async_Getter";
void set async(bool value) native "HTMLScriptElement_async_Setter";
String get charset native "HTMLScriptElement_charset_Getter";
void set charset(String value) native "HTMLScriptElement_charset_Setter";
String get crossOrigin native "HTMLScriptElement_crossOrigin_Getter";
void set crossOrigin(String value) native "HTMLScriptElement_crossOrigin_Setter";
bool get defer native "HTMLScriptElement_defer_Getter";
void set defer(bool value) native "HTMLScriptElement_defer_Setter";
String get event native "HTMLScriptElement_event_Getter";
void set event(String value) native "HTMLScriptElement_event_Setter";
String get htmlFor native "HTMLScriptElement_htmlFor_Getter";
void set htmlFor(String value) native "HTMLScriptElement_htmlFor_Setter";
String get src native "HTMLScriptElement_src_Getter";
void set src(String value) native "HTMLScriptElement_src_Setter";
String get type native "HTMLScriptElement_type_Getter";
void set type(String value) native "HTMLScriptElement_type_Setter";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName ScriptProcessorNode
abstract class ScriptProcessorNode implements AudioNode, EventTarget {
/**
* @domName EventTarget.addEventListener, EventTarget.removeEventListener, EventTarget.dispatchEvent
*/
ScriptProcessorNodeEvents get on;
/** @domName ScriptProcessorNode.bufferSize */
int get bufferSize;
}
abstract class ScriptProcessorNodeEvents implements Events {
EventListenerList get audioProcess;
}
// 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.
// WARNING: Do not edit - generated code.
class _ScriptProcessorNodeImpl extends _AudioNodeImpl implements ScriptProcessorNode {
_ScriptProcessorNodeEventsImpl get on =>
new _ScriptProcessorNodeEventsImpl(this);
int get bufferSize native "ScriptProcessorNode_bufferSize_Getter";
}
class _ScriptProcessorNodeEventsImpl extends _EventsImpl implements ScriptProcessorNodeEvents {
_ScriptProcessorNodeEventsImpl(_ptr) : super(_ptr);
EventListenerList get audioProcess => this['audioprocess'];
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName ScriptProfile
abstract class ScriptProfile {
/** @domName ScriptProfile.head */
ScriptProfileNode get head;
/** @domName ScriptProfile.title */
String get title;
/** @domName ScriptProfile.uid */
int get uid;
}
// 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.
// WARNING: Do not edit - generated code.
class _ScriptProfileImpl extends NativeFieldWrapperClass1 implements ScriptProfile {
ScriptProfileNode get head native "ScriptProfile_head_Getter";
String get title native "ScriptProfile_title_Getter";
int get uid native "ScriptProfile_uid_Getter";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName ScriptProfileNode
abstract class ScriptProfileNode {
/** @domName ScriptProfileNode.callUID */
int get callUID;
/** @domName ScriptProfileNode.functionName */
String get functionName;
/** @domName ScriptProfileNode.lineNumber */
int get lineNumber;
/** @domName ScriptProfileNode.numberOfCalls */
int get numberOfCalls;
/** @domName ScriptProfileNode.selfTime */
num get selfTime;
/** @domName ScriptProfileNode.totalTime */
num get totalTime;
/** @domName ScriptProfileNode.url */
String get url;
/** @domName ScriptProfileNode.visible */
bool get visible;
/** @domName ScriptProfileNode.children */
List<ScriptProfileNode> children();
}
// 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.
// WARNING: Do not edit - generated code.
class _ScriptProfileNodeImpl extends NativeFieldWrapperClass1 implements ScriptProfileNode {
int get callUID native "ScriptProfileNode_callUID_Getter";
String get functionName native "ScriptProfileNode_functionName_Getter";
int get lineNumber native "ScriptProfileNode_lineNumber_Getter";
int get numberOfCalls native "ScriptProfileNode_numberOfCalls_Getter";
num get selfTime native "ScriptProfileNode_selfTime_Getter";
num get totalTime native "ScriptProfileNode_totalTime_Getter";
String get url native "ScriptProfileNode_url_Getter";
bool get visible native "ScriptProfileNode_visible_Getter";
List<ScriptProfileNode> children() native "ScriptProfileNode_children_Callback";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName HTMLSelectElement
abstract class SelectElement implements Element {
factory SelectElement() => _Elements.createSelectElement();
/** @domName HTMLSelectElement.autofocus */
bool autofocus;
/** @domName HTMLSelectElement.disabled */
bool disabled;
/** @domName HTMLSelectElement.form */
FormElement get form;
/** @domName HTMLSelectElement.labels */
List<Node> get labels;
/** @domName HTMLSelectElement.length */
int length;
/** @domName HTMLSelectElement.multiple */
bool multiple;
/** @domName HTMLSelectElement.name */
String name;
/** @domName HTMLSelectElement.options */
HTMLOptionsCollection get options;
/** @domName HTMLSelectElement.required */
bool required;
/** @domName HTMLSelectElement.selectedIndex */
int selectedIndex;
/** @domName HTMLSelectElement.selectedOptions */
HTMLCollection get selectedOptions;
/** @domName HTMLSelectElement.size */
int size;
/** @domName HTMLSelectElement.type */
String get type;
/** @domName HTMLSelectElement.validationMessage */
String get validationMessage;
/** @domName HTMLSelectElement.validity */
ValidityState get validity;
/** @domName HTMLSelectElement.value */
String value;
/** @domName HTMLSelectElement.willValidate */
bool get willValidate;
/** @domName HTMLSelectElement.checkValidity */
bool checkValidity();
/** @domName HTMLSelectElement.item */
Node item(int index);
/** @domName HTMLSelectElement.namedItem */
Node namedItem(String name);
/** @domName HTMLSelectElement.setCustomValidity */
void setCustomValidity(String error);
}
// 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.
// WARNING: Do not edit - generated code.
class _SelectElementImpl extends _ElementImpl_Merged implements SelectElement {
bool get autofocus native "HTMLSelectElement_autofocus_Getter";
void set autofocus(bool value) native "HTMLSelectElement_autofocus_Setter";
bool get disabled native "HTMLSelectElement_disabled_Getter";
void set disabled(bool value) native "HTMLSelectElement_disabled_Setter";
FormElement get form native "HTMLSelectElement_form_Getter";
List<Node> get labels native "HTMLSelectElement_labels_Getter";
int get length native "HTMLSelectElement_length_Getter";
void set length(int value) native "HTMLSelectElement_length_Setter";
bool get multiple native "HTMLSelectElement_multiple_Getter";
void set multiple(bool value) native "HTMLSelectElement_multiple_Setter";
String get name native "HTMLSelectElement_name_Getter";
void set name(String value) native "HTMLSelectElement_name_Setter";
HTMLOptionsCollection get options native "HTMLSelectElement_options_Getter";
bool get required native "HTMLSelectElement_required_Getter";
void set required(bool value) native "HTMLSelectElement_required_Setter";
int get selectedIndex native "HTMLSelectElement_selectedIndex_Getter";
void set selectedIndex(int value) native "HTMLSelectElement_selectedIndex_Setter";
HTMLCollection get selectedOptions native "HTMLSelectElement_selectedOptions_Getter";
int get size native "HTMLSelectElement_size_Getter";
void set size(int value) native "HTMLSelectElement_size_Setter";
String get type native "HTMLSelectElement_type_Getter";
String get validationMessage native "HTMLSelectElement_validationMessage_Getter";
ValidityState get validity native "HTMLSelectElement_validity_Getter";
String get value native "HTMLSelectElement_value_Getter";
void set value(String value) native "HTMLSelectElement_value_Setter";
bool get willValidate native "HTMLSelectElement_willValidate_Getter";
bool checkValidity() native "HTMLSelectElement_checkValidity_Callback";
Node item(int index) native "HTMLSelectElement_item_Callback";
Node namedItem(String name) native "HTMLSelectElement_namedItem_Callback";
void setCustomValidity(String error) native "HTMLSelectElement_setCustomValidity_Callback";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName SessionDescription
abstract class SessionDescription {
factory SessionDescription(String sdp) => _SessionDescriptionFactoryProvider.createSessionDescription(sdp);
/** @domName SessionDescription.addCandidate */
void addCandidate(IceCandidate candidate);
/** @domName SessionDescription.toSdp */
String toSdp();
}
// 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.
// WARNING: Do not edit - generated code.
class _SessionDescriptionImpl extends NativeFieldWrapperClass1 implements SessionDescription {
void addCandidate(IceCandidate candidate) native "SessionDescription_addCandidate_Callback";
String toSdp() native "SessionDescription_toSdp_Callback";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName HTMLShadowElement
abstract class ShadowElement implements Element {
/** @domName HTMLShadowElement.resetStyleInheritance */
bool resetStyleInheritance;
}
// 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.
// WARNING: Do not edit - generated code.
class _ShadowElementImpl extends _ElementImpl_Merged implements ShadowElement {
bool get resetStyleInheritance native "HTMLShadowElement_resetStyleInheritance_Getter";
void set resetStyleInheritance(bool value) native "HTMLShadowElement_resetStyleInheritance_Setter";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName ShadowRoot
abstract class ShadowRoot implements DocumentFragment {
factory ShadowRoot(Element host) => _ShadowRootFactoryProvider.createShadowRoot(host);
/** @domName ShadowRoot.activeElement */
Element get activeElement;
/** @domName ShadowRoot.applyAuthorStyles */
bool applyAuthorStyles;
/** @domName ShadowRoot.innerHTML */
String innerHTML;
/** @domName ShadowRoot.resetStyleInheritance */
bool resetStyleInheritance;
/** @domName ShadowRoot.cloneNode */
Node clone(bool deep);
/** @domName ShadowRoot.getElementById */
Element $dom_getElementById(String elementId);
/** @domName ShadowRoot.getElementsByClassName */
List<Node> $dom_getElementsByClassName(String className);
/** @domName ShadowRoot.getElementsByTagName */
List<Node> $dom_getElementsByTagName(String tagName);
/** @domName ShadowRoot.getSelection */
DOMSelection getSelection();
static bool get supported => _ShadowRootImpl.supported;
}
// 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.
// WARNING: Do not edit - generated code.
class _ShadowRootImpl extends _DocumentFragmentImpl implements ShadowRoot {
Element get activeElement native "ShadowRoot_activeElement_Getter";
bool get applyAuthorStyles native "ShadowRoot_applyAuthorStyles_Getter";
void set applyAuthorStyles(bool value) native "ShadowRoot_applyAuthorStyles_Setter";
String get innerHTML native "ShadowRoot_innerHTML_Getter";
void set innerHTML(String value) native "ShadowRoot_innerHTML_Setter";
bool get resetStyleInheritance native "ShadowRoot_resetStyleInheritance_Getter";
void set resetStyleInheritance(bool value) native "ShadowRoot_resetStyleInheritance_Setter";
Node clone(bool deep) native "ShadowRoot_cloneNode_Callback";
Element $dom_getElementById(String elementId) native "ShadowRoot_getElementById_Callback";
List<Node> $dom_getElementsByClassName(String className) native "ShadowRoot_getElementsByClassName_Callback";
List<Node> $dom_getElementsByTagName(String tagName) native "ShadowRoot_getElementsByTagName_Callback";
DOMSelection getSelection() native "ShadowRoot_getSelection_Callback";
static bool get supported => _Utils.shadowRootSupported(window.document);
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName SharedWorker
abstract class SharedWorker implements AbstractWorker {
factory SharedWorker(String scriptURL, [String name]) {
if (!?name) {
return _SharedWorkerFactoryProvider.createSharedWorker(scriptURL);
}
return _SharedWorkerFactoryProvider.createSharedWorker(scriptURL, name);
}
/** @domName SharedWorker.port */
MessagePort get port;
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName SharedWorkerContext
abstract class SharedWorkerContext implements WorkerContext {
/**
* @domName EventTarget.addEventListener, EventTarget.removeEventListener, EventTarget.dispatchEvent
*/
SharedWorkerContextEvents get on;
/** @domName SharedWorkerContext.name */
String get name;
}
abstract class SharedWorkerContextEvents implements WorkerContextEvents {
EventListenerList get connect;
}
// 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.
// WARNING: Do not edit - generated code.
class _SharedWorkerContextImpl extends _WorkerContextImpl implements SharedWorkerContext {
_SharedWorkerContextEventsImpl get on =>
new _SharedWorkerContextEventsImpl(this);
String get name native "SharedWorkerContext_name_Getter";
}
class _SharedWorkerContextEventsImpl extends _WorkerContextEventsImpl implements SharedWorkerContextEvents {
_SharedWorkerContextEventsImpl(_ptr) : super(_ptr);
EventListenerList get connect => this['connect'];
}
// 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.
// WARNING: Do not edit - generated code.
class _SharedWorkerImpl extends _AbstractWorkerImpl implements SharedWorker {
MessagePort get port native "SharedWorker_port_Getter";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName SourceBuffer
abstract class SourceBuffer {
/** @domName SourceBuffer.buffered */
TimeRanges get buffered;
/** @domName SourceBuffer.timestampOffset */
num timestampOffset;
/** @domName SourceBuffer.abort */
void abort();
/** @domName SourceBuffer.append */
void append(Uint8Array data);
}
// 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.
// WARNING: Do not edit - generated code.
class _SourceBufferImpl extends NativeFieldWrapperClass1 implements SourceBuffer {
TimeRanges get buffered native "SourceBuffer_buffered_Getter";
num get timestampOffset native "SourceBuffer_timestampOffset_Getter";
void set timestampOffset(num value) native "SourceBuffer_timestampOffset_Setter";
void abort() native "SourceBuffer_abort_Callback";
void append(Uint8Array data) native "SourceBuffer_append_Callback";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName SourceBufferList
abstract class SourceBufferList implements EventTarget, List<SourceBuffer> {
/** @domName SourceBufferList.length */
int get length;
/** @domName SourceBufferList.addEventListener */
void $dom_addEventListener(String type, EventListener listener, [bool useCapture]);
/** @domName SourceBufferList.dispatchEvent */
bool $dom_dispatchEvent(Event event);
/** @domName SourceBufferList.item */
SourceBuffer item(int index);
/** @domName SourceBufferList.removeEventListener */
void $dom_removeEventListener(String type, EventListener listener, [bool useCapture]);
}
// 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.
// WARNING: Do not edit - generated code.
class _SourceBufferListImpl extends _EventTargetImpl implements SourceBufferList {
int get length native "SourceBufferList_length_Getter";
SourceBuffer operator[](int index) native "SourceBufferList_item_Callback";
void operator[]=(int index, SourceBuffer value) {
throw new UnsupportedError("Cannot assign element of immutable List.");
}
// -- start List<SourceBuffer> mixins.
// SourceBuffer is the element type.
// From Iterable<SourceBuffer>:
Iterator<SourceBuffer> 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<SourceBuffer>(this);
}
// From Collection<SourceBuffer>:
void add(SourceBuffer value) {
throw new UnsupportedError("Cannot add to immutable List.");
}
void addLast(SourceBuffer value) {
throw new UnsupportedError("Cannot add to immutable List.");
}
void addAll(Collection<SourceBuffer> collection) {
throw new UnsupportedError("Cannot add to immutable List.");
}
bool contains(SourceBuffer element) => _Collections.contains(this, element);
void forEach(void f(SourceBuffer element)) => _Collections.forEach(this, f);
Collection map(f(SourceBuffer element)) => _Collections.map(this, [], f);
Collection<SourceBuffer> filter(bool f(SourceBuffer element)) =>
_Collections.filter(this, <SourceBuffer>[], f);
bool every(bool f(SourceBuffer element)) => _Collections.every(this, f);
bool some(bool f(SourceBuffer element)) => _Collections.some(this, f);
bool get isEmpty => this.length == 0;
// From List<SourceBuffer>:
void sort([Comparator<SourceBuffer> compare = Comparable.compare]) {
throw new UnsupportedError("Cannot sort immutable List.");
}
int indexOf(SourceBuffer element, [int start = 0]) =>
_Lists.indexOf(this, element, start, this.length);
int lastIndexOf(SourceBuffer element, [int start]) {
if (start == null) start = length - 1;
return _Lists.lastIndexOf(this, element, start);
}
SourceBuffer get last => this[length - 1];
SourceBuffer removeLast() {
throw new UnsupportedError("Cannot removeLast on immutable List.");
}
void setRange(int start, int rangeLength, List<SourceBuffer> from, [int startFrom]) {
throw new UnsupportedError("Cannot setRange on immutable List.");
}
void removeRange(int start, int rangeLength) {
throw new UnsupportedError("Cannot removeRange on immutable List.");
}
void insertRange(int start, int rangeLength, [SourceBuffer initialValue]) {
throw new UnsupportedError("Cannot insertRange on immutable List.");
}
List<SourceBuffer> getRange(int start, int rangeLength) =>
_Lists.getRange(this, start, rangeLength, <SourceBuffer>[]);
// -- end List<SourceBuffer> mixins.
void $dom_addEventListener(String type, EventListener listener, [bool useCapture]) native "SourceBufferList_addEventListener_Callback";
bool $dom_dispatchEvent(Event event) native "SourceBufferList_dispatchEvent_Callback";
SourceBuffer item(int index) native "SourceBufferList_item_Callback";
void $dom_removeEventListener(String type, EventListener listener, [bool useCapture]) native "SourceBufferList_removeEventListener_Callback";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName HTMLSourceElement
abstract class SourceElement implements Element {
factory SourceElement() => _Elements.createSourceElement();
/** @domName HTMLSourceElement.media */
String media;
/** @domName HTMLSourceElement.src */
String src;
/** @domName HTMLSourceElement.type */
String type;
}
// 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.
// WARNING: Do not edit - generated code.
class _SourceElementImpl extends _ElementImpl_Merged implements SourceElement {
String get media native "HTMLSourceElement_media_Getter";
void set media(String value) native "HTMLSourceElement_media_Setter";
String get src native "HTMLSourceElement_src_Getter";
void set src(String value) native "HTMLSourceElement_src_Setter";
String get type native "HTMLSourceElement_type_Getter";
void set type(String value) native "HTMLSourceElement_type_Setter";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName HTMLSpanElement
abstract class SpanElement implements Element {
factory SpanElement() => _Elements.createSpanElement();
}
// 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.
// WARNING: Do not edit - generated code.
class _SpanElementImpl extends _ElementImpl_Merged implements SpanElement {
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName SpeechGrammar
abstract class SpeechGrammar {
factory SpeechGrammar() => _SpeechGrammarFactoryProvider.createSpeechGrammar();
/** @domName SpeechGrammar.src */
String src;
/** @domName SpeechGrammar.weight */
num weight;
}
// 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.
// WARNING: Do not edit - generated code.
class _SpeechGrammarImpl extends NativeFieldWrapperClass1 implements SpeechGrammar {
String get src native "SpeechGrammar_src_Getter";
void set src(String value) native "SpeechGrammar_src_Setter";
num get weight native "SpeechGrammar_weight_Getter";
void set weight(num value) native "SpeechGrammar_weight_Setter";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName SpeechGrammarList
abstract class SpeechGrammarList implements List<SpeechGrammar> {
factory SpeechGrammarList() => _SpeechGrammarListFactoryProvider.createSpeechGrammarList();
/** @domName SpeechGrammarList.length */
int get length;
/** @domName SpeechGrammarList.addFromString */
void addFromString(String string, [num weight]);
/** @domName SpeechGrammarList.addFromUri */
void addFromUri(String src, [num weight]);
/** @domName SpeechGrammarList.item */
SpeechGrammar item(int index);
}
// 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.
// WARNING: Do not edit - generated code.
class _SpeechGrammarListImpl extends NativeFieldWrapperClass1 implements SpeechGrammarList {
int get length native "SpeechGrammarList_length_Getter";
SpeechGrammar operator[](int index) native "SpeechGrammarList_item_Callback";
void operator[]=(int index, SpeechGrammar value) {
throw new UnsupportedError("Cannot assign element of immutable List.");
}
// -- start List<SpeechGrammar> mixins.
// SpeechGrammar is the element type.
// From Iterable<SpeechGrammar>:
Iterator<SpeechGrammar> 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<SpeechGrammar>(this);
}
// From Collection<SpeechGrammar>:
void add(SpeechGrammar value) {
throw new UnsupportedError("Cannot add to immutable List.");
}
void addLast(SpeechGrammar value) {
throw new UnsupportedError("Cannot add to immutable List.");
}
void addAll(Collection<SpeechGrammar> collection) {
throw new UnsupportedError("Cannot add to immutable List.");
}
bool contains(SpeechGrammar element) => _Collections.contains(this, element);
void forEach(void f(SpeechGrammar element)) => _Collections.forEach(this, f);
Collection map(f(SpeechGrammar element)) => _Collections.map(this, [], f);
Collection<SpeechGrammar> filter(bool f(SpeechGrammar element)) =>
_Collections.filter(this, <SpeechGrammar>[], f);
bool every(bool f(SpeechGrammar element)) => _Collections.every(this, f);
bool some(bool f(SpeechGrammar element)) => _Collections.some(this, f);
bool get isEmpty => this.length == 0;
// From List<SpeechGrammar>:
void sort([Comparator<SpeechGrammar> compare = Comparable.compare]) {
throw new UnsupportedError("Cannot sort immutable List.");
}
int indexOf(SpeechGrammar element, [int start = 0]) =>
_Lists.indexOf(this, element, start, this.length);
int lastIndexOf(SpeechGrammar element, [int start]) {
if (start == null) start = length - 1;
return _Lists.lastIndexOf(this, element, start);
}
SpeechGrammar get last => this[length - 1];
SpeechGrammar removeLast() {
throw new UnsupportedError("Cannot removeLast on immutable List.");
}
void setRange(int start, int rangeLength, List<SpeechGrammar> from, [int startFrom]) {
throw new UnsupportedError("Cannot setRange on immutable List.");
}
void removeRange(int start, int rangeLength) {
throw new UnsupportedError("Cannot removeRange on immutable List.");
}
void insertRange(int start, int rangeLength, [SpeechGrammar initialValue]) {
throw new UnsupportedError("Cannot insertRange on immutable List.");
}
List<SpeechGrammar> getRange(int start, int rangeLength) =>
_Lists.getRange(this, start, rangeLength, <SpeechGrammar>[]);
// -- end List<SpeechGrammar> mixins.
void addFromString(/*DOMString*/ string, [/*float*/ weight]) {
if (?weight) {
_addFromString_1(string, weight);
return;
}
_addFromString_2(string);
}
void _addFromString_1(string, weight) native "SpeechGrammarList_addFromString_1_Callback";
void _addFromString_2(string) native "SpeechGrammarList_addFromString_2_Callback";
void addFromUri(/*DOMString*/ src, [/*float*/ weight]) {
if (?weight) {
_addFromUri_1(src, weight);
return;
}
_addFromUri_2(src);
}
void _addFromUri_1(src, weight) native "SpeechGrammarList_addFromUri_1_Callback";
void _addFromUri_2(src) native "SpeechGrammarList_addFromUri_2_Callback";
SpeechGrammar item(int index) native "SpeechGrammarList_item_Callback";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName SpeechInputEvent
abstract class SpeechInputEvent implements Event {
/** @domName SpeechInputEvent.results */
List<SpeechInputResult> get results;
}
// 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.
// WARNING: Do not edit - generated code.
class _SpeechInputEventImpl extends _EventImpl implements SpeechInputEvent {
List<SpeechInputResult> get results native "SpeechInputEvent_results_Getter";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName SpeechInputResult
abstract class SpeechInputResult {
/** @domName SpeechInputResult.confidence */
num get confidence;
/** @domName SpeechInputResult.utterance */
String get utterance;
}
// 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.
// WARNING: Do not edit - generated code.
class _SpeechInputResultImpl extends NativeFieldWrapperClass1 implements SpeechInputResult {
num get confidence native "SpeechInputResult_confidence_Getter";
String get utterance native "SpeechInputResult_utterance_Getter";
}
// 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.
// WARNING: Do not edit - generated code.
class _SpeechInputResultListImpl extends NativeFieldWrapperClass1 implements List<SpeechInputResult> {
int get length native "SpeechInputResultList_length_Getter";
SpeechInputResult operator[](int index) native "SpeechInputResultList_item_Callback";
void operator[]=(int index, SpeechInputResult value) {
throw new UnsupportedError("Cannot assign element of immutable List.");
}
// -- start List<SpeechInputResult> mixins.
// SpeechInputResult is the element type.
// From Iterable<SpeechInputResult>:
Iterator<SpeechInputResult> 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<SpeechInputResult>(this);
}
// From Collection<SpeechInputResult>:
void add(SpeechInputResult value) {
throw new UnsupportedError("Cannot add to immutable List.");
}
void addLast(SpeechInputResult value) {
throw new UnsupportedError("Cannot add to immutable List.");
}
void addAll(Collection<SpeechInputResult> collection) {
throw new UnsupportedError("Cannot add to immutable List.");
}
bool contains(SpeechInputResult element) => _Collections.contains(this, element);
void forEach(void f(SpeechInputResult element)) => _Collections.forEach(this, f);
Collection map(f(SpeechInputResult element)) => _Collections.map(this, [], f);
Collection<SpeechInputResult> filter(bool f(SpeechInputResult element)) =>
_Collections.filter(this, <SpeechInputResult>[], f);
bool every(bool f(SpeechInputResult element)) => _Collections.every(this, f);
bool some(bool f(SpeechInputResult element)) => _Collections.some(this, f);
bool get isEmpty => this.length == 0;
// From List<SpeechInputResult>:
void sort([Comparator<SpeechInputResult> compare = Comparable.compare]) {
throw new UnsupportedError("Cannot sort immutable List.");
}
int indexOf(SpeechInputResult element, [int start = 0]) =>
_Lists.indexOf(this, element, start, this.length);
int lastIndexOf(SpeechInputResult element, [int start]) {
if (start == null) start = length - 1;
return _Lists.lastIndexOf(this, element, start);
}
SpeechInputResult get last => this[length - 1];
SpeechInputResult removeLast() {
throw new UnsupportedError("Cannot removeLast on immutable List.");
}
void setRange(int start, int rangeLength, List<SpeechInputResult> from, [int startFrom]) {
throw new UnsupportedError("Cannot setRange on immutable List.");
}
void removeRange(int start, int rangeLength) {
throw new UnsupportedError("Cannot removeRange on immutable List.");
}
void insertRange(int start, int rangeLength, [SpeechInputResult initialValue]) {
throw new UnsupportedError("Cannot insertRange on immutable List.");
}
List<SpeechInputResult> getRange(int start, int rangeLength) =>
_Lists.getRange(this, start, rangeLength, <SpeechInputResult>[]);
// -- end List<SpeechInputResult> mixins.
SpeechInputResult item(int index) native "SpeechInputResultList_item_Callback";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName SpeechRecognition
abstract class SpeechRecognition implements EventTarget {
factory SpeechRecognition() => _SpeechRecognitionFactoryProvider.createSpeechRecognition();
/**
* @domName EventTarget.addEventListener, EventTarget.removeEventListener, EventTarget.dispatchEvent
*/
SpeechRecognitionEvents get on;
/** @domName SpeechRecognition.continuous */
bool continuous;
/** @domName SpeechRecognition.grammars */
SpeechGrammarList grammars;
/** @domName SpeechRecognition.interimResults */
bool interimResults;
/** @domName SpeechRecognition.lang */
String lang;
/** @domName SpeechRecognition.maxAlternatives */
int maxAlternatives;
/** @domName SpeechRecognition.abort */
void abort();
/** @domName SpeechRecognition.addEventListener */
void $dom_addEventListener(String type, EventListener listener, [bool useCapture]);
/** @domName SpeechRecognition.dispatchEvent */
bool $dom_dispatchEvent(Event evt);
/** @domName SpeechRecognition.removeEventListener */
void $dom_removeEventListener(String type, EventListener listener, [bool useCapture]);
/** @domName SpeechRecognition.start */
void start();
/** @domName SpeechRecognition.stop */
void stop();
}
abstract class SpeechRecognitionEvents implements Events {
EventListenerList get audioEnd;
EventListenerList get audioStart;
EventListenerList get end;
EventListenerList get error;
EventListenerList get noMatch;
EventListenerList get result;
EventListenerList get soundEnd;
EventListenerList get soundStart;
EventListenerList get speechEnd;
EventListenerList get speechStart;
EventListenerList get start;
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName SpeechRecognitionAlternative
abstract class SpeechRecognitionAlternative {
/** @domName SpeechRecognitionAlternative.confidence */
num get confidence;
/** @domName SpeechRecognitionAlternative.transcript */
String get transcript;
}
// 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.
// WARNING: Do not edit - generated code.
class _SpeechRecognitionAlternativeImpl extends NativeFieldWrapperClass1 implements SpeechRecognitionAlternative {
num get confidence native "SpeechRecognitionAlternative_confidence_Getter";
String get transcript native "SpeechRecognitionAlternative_transcript_Getter";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName SpeechRecognitionError
abstract class SpeechRecognitionError implements Event {
static const int ABORTED = 2;
static const int AUDIO_CAPTURE = 3;
static const int BAD_GRAMMAR = 7;
static const int LANGUAGE_NOT_SUPPORTED = 8;
static const int NETWORK = 4;
static const int NOT_ALLOWED = 5;
static const int NO_SPEECH = 1;
static const int OTHER = 0;
static const int SERVICE_NOT_ALLOWED = 6;
/** @domName SpeechRecognitionError.code */
int get code;
/** @domName SpeechRecognitionError.message */
String get message;
}
// 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.
// WARNING: Do not edit - generated code.
class _SpeechRecognitionErrorImpl extends _EventImpl implements SpeechRecognitionError {
int get code native "SpeechRecognitionError_code_Getter";
String get message native "SpeechRecognitionError_message_Getter";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName SpeechRecognitionEvent
abstract class SpeechRecognitionEvent implements Event {
/** @domName SpeechRecognitionEvent.result */
SpeechRecognitionResult get result;
/** @domName SpeechRecognitionEvent.resultHistory */
List<SpeechRecognitionResult> get resultHistory;
/** @domName SpeechRecognitionEvent.resultIndex */
int get resultIndex;
}
// 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.
// WARNING: Do not edit - generated code.
class _SpeechRecognitionEventImpl extends _EventImpl implements SpeechRecognitionEvent {
SpeechRecognitionResult get result native "SpeechRecognitionEvent_result_Getter";
List<SpeechRecognitionResult> get resultHistory native "SpeechRecognitionEvent_resultHistory_Getter";
int get resultIndex native "SpeechRecognitionEvent_resultIndex_Getter";
}
// 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.
// WARNING: Do not edit - generated code.
class _SpeechRecognitionImpl extends _EventTargetImpl implements SpeechRecognition {
_SpeechRecognitionEventsImpl get on =>
new _SpeechRecognitionEventsImpl(this);
bool get continuous native "SpeechRecognition_continuous_Getter";
void set continuous(bool value) native "SpeechRecognition_continuous_Setter";
SpeechGrammarList get grammars native "SpeechRecognition_grammars_Getter";
void set grammars(SpeechGrammarList value) native "SpeechRecognition_grammars_Setter";
bool get interimResults native "SpeechRecognition_interimResults_Getter";
void set interimResults(bool value) native "SpeechRecognition_interimResults_Setter";
String get lang native "SpeechRecognition_lang_Getter";
void set lang(String value) native "SpeechRecognition_lang_Setter";
int get maxAlternatives native "SpeechRecognition_maxAlternatives_Getter";
void set maxAlternatives(int value) native "SpeechRecognition_maxAlternatives_Setter";
void abort() native "SpeechRecognition_abort_Callback";
void $dom_addEventListener(String type, EventListener listener, [bool useCapture]) native "SpeechRecognition_addEventListener_Callback";
bool $dom_dispatchEvent(Event evt) native "SpeechRecognition_dispatchEvent_Callback";
void $dom_removeEventListener(String type, EventListener listener, [bool useCapture]) native "SpeechRecognition_removeEventListener_Callback";
void start() native "SpeechRecognition_start_Callback";
void stop() native "SpeechRecognition_stop_Callback";
}
class _SpeechRecognitionEventsImpl extends _EventsImpl implements SpeechRecognitionEvents {
_SpeechRecognitionEventsImpl(_ptr) : super(_ptr);
EventListenerList get audioEnd => this['audioend'];
EventListenerList get audioStart => this['audiostart'];
EventListenerList get end => this['end'];
EventListenerList get error => this['error'];
EventListenerList get noMatch => this['nomatch'];
EventListenerList get result => this['result'];
EventListenerList get soundEnd => this['soundend'];
EventListenerList get soundStart => this['soundstart'];
EventListenerList get speechEnd => this['speechend'];
EventListenerList get speechStart => this['speechstart'];
EventListenerList get start => this['start'];
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName SpeechRecognitionResult
abstract class SpeechRecognitionResult {
/** @domName SpeechRecognitionResult.emma */
Document get emma;
/** @domName SpeechRecognitionResult.finalValue */
bool get finalValue;
/** @domName SpeechRecognitionResult.length */
int get length;
/** @domName SpeechRecognitionResult.item */
SpeechRecognitionAlternative item(int index);
}
// 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.
// WARNING: Do not edit - generated code.
class _SpeechRecognitionResultImpl extends NativeFieldWrapperClass1 implements SpeechRecognitionResult {
Document get emma native "SpeechRecognitionResult_emma_Getter";
bool get finalValue native "SpeechRecognitionResult_final_Getter";
int get length native "SpeechRecognitionResult_length_Getter";
SpeechRecognitionAlternative item(int index) native "SpeechRecognitionResult_item_Callback";
}
// 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.
// WARNING: Do not edit - generated code.
class _SpeechRecognitionResultListImpl extends NativeFieldWrapperClass1 implements List<SpeechRecognitionResult> {
int get length native "SpeechRecognitionResultList_length_Getter";
SpeechRecognitionResult operator[](int index) native "SpeechRecognitionResultList_item_Callback";
void operator[]=(int index, SpeechRecognitionResult value) {
throw new UnsupportedError("Cannot assign element of immutable List.");
}
// -- start List<SpeechRecognitionResult> mixins.
// SpeechRecognitionResult is the element type.
// From Iterable<SpeechRecognitionResult>:
Iterator<SpeechRecognitionResult> 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<SpeechRecognitionResult>(this);
}
// From Collection<SpeechRecognitionResult>:
void add(SpeechRecognitionResult value) {
throw new UnsupportedError("Cannot add to immutable List.");
}
void addLast(SpeechRecognitionResult value) {
throw new UnsupportedError("Cannot add to immutable List.");
}
void addAll(Collection<SpeechRecognitionResult> collection) {
throw new UnsupportedError("Cannot add to immutable List.");
}
bool contains(SpeechRecognitionResult element) => _Collections.contains(this, element);
void forEach(void f(SpeechRecognitionResult element)) => _Collections.forEach(this, f);
Collection map(f(SpeechRecognitionResult element)) => _Collections.map(this, [], f);
Collection<SpeechRecognitionResult> filter(bool f(SpeechRecognitionResult element)) =>
_Collections.filter(this, <SpeechRecognitionResult>[], f);
bool every(bool f(SpeechRecognitionResult element)) => _Collections.every(this, f);
bool some(bool f(SpeechRecognitionResult element)) => _Collections.some(this, f);
bool get isEmpty => this.length == 0;
// From List<SpeechRecognitionResult>:
void sort([Comparator<SpeechRecognitionResult> compare = Comparable.compare]) {
throw new UnsupportedError("Cannot sort immutable List.");
}
int indexOf(SpeechRecognitionResult element, [int start = 0]) =>
_Lists.indexOf(this, element, start, this.length);
int lastIndexOf(SpeechRecognitionResult element, [int start]) {
if (start == null) start = length - 1;
return _Lists.lastIndexOf(this, element, start);
}
SpeechRecognitionResult get last => this[length - 1];
SpeechRecognitionResult removeLast() {
throw new UnsupportedError("Cannot removeLast on immutable List.");
}
void setRange(int start, int rangeLength, List<SpeechRecognitionResult> from, [int startFrom]) {
throw new UnsupportedError("Cannot setRange on immutable List.");
}
void removeRange(int start, int rangeLength) {
throw new UnsupportedError("Cannot removeRange on immutable List.");
}
void insertRange(int start, int rangeLength, [SpeechRecognitionResult initialValue]) {
throw new UnsupportedError("Cannot insertRange on immutable List.");
}
List<SpeechRecognitionResult> getRange(int start, int rangeLength) =>
_Lists.getRange(this, start, rangeLength, <SpeechRecognitionResult>[]);
// -- end List<SpeechRecognitionResult> mixins.
SpeechRecognitionResult item(int index) native "SpeechRecognitionResultList_item_Callback";
}
// 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.
/// @domName Storage
abstract class Storage implements Map<String, String> {
/** @domName Storage.length */
int get $dom_length;
/** @domName Storage.clear */
void $dom_clear();
/** @domName Storage.getItem */
String $dom_getItem(String key);
/** @domName Storage.key */
String $dom_key(int index);
/** @domName Storage.removeItem */
void $dom_removeItem(String key);
/** @domName Storage.setItem */
void $dom_setItem(String key, String data);
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName StorageEvent
abstract class StorageEvent implements Event {
/** @domName StorageEvent.key */
String get key;
/** @domName StorageEvent.newValue */
String get newValue;
/** @domName StorageEvent.oldValue */
String get oldValue;
/** @domName StorageEvent.storageArea */
Storage get storageArea;
/** @domName StorageEvent.url */
String get url;
/** @domName StorageEvent.initStorageEvent */
void initStorageEvent(String typeArg, bool canBubbleArg, bool cancelableArg, String keyArg, String oldValueArg, String newValueArg, String urlArg, Storage storageAreaArg);
}
// 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.
// WARNING: Do not edit - generated code.
class _StorageEventImpl extends _EventImpl implements StorageEvent {
String get key native "StorageEvent_key_Getter";
String get newValue native "StorageEvent_newValue_Getter";
String get oldValue native "StorageEvent_oldValue_Getter";
Storage get storageArea native "StorageEvent_storageArea_Getter";
String get url native "StorageEvent_url_Getter";
void initStorageEvent(String typeArg, bool canBubbleArg, bool cancelableArg, String keyArg, String oldValueArg, String newValueArg, String urlArg, Storage storageAreaArg) native "StorageEvent_initStorageEvent_Callback";
}
// 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 _StorageImpl extends NativeFieldWrapperClass1 implements Storage {
// TODO(nweiz): update this when maps support lazy iteration
bool containsValue(String value) => values.some((e) => e == value);
bool containsKey(String key) => $dom_getItem(key) != null;
String operator [](String key) => $dom_getItem(key);
void operator []=(String key, String value) => $dom_setItem(key, value);
String putIfAbsent(String key, String ifAbsent()) {
if (!containsKey(key)) this[key] = ifAbsent();
return this[key];
}
String remove(String key) {
final value = this[key];
$dom_removeItem(key);
return value;
}
void clear() => $dom_clear();
void forEach(void f(String key, String value)) {
for (var i = 0; true; i++) {
final key = $dom_key(i);
if (key == null) return;
f(key, this[key]);
}
}
Collection<String> get keys {
final keys = [];
forEach((k, v) => keys.add(k));
return keys;
}
Collection<String> get values {
final values = [];
forEach((k, v) => values.add(v));
return values;
}
int get length => $dom_length;
bool get isEmpty => $dom_key(0) == null;
int get $dom_length native "Storage_length_Getter";
void $dom_clear() native "Storage_clear_Callback";
String $dom_getItem(String key) native "Storage_getItem_Callback";
String $dom_key(int index) native "Storage_key_Callback";
void $dom_removeItem(String key) native "Storage_removeItem_Callback";
void $dom_setItem(String key, String data) native "Storage_setItem_Callback";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName StorageInfo
abstract class StorageInfo {
static const int PERSISTENT = 1;
static const int TEMPORARY = 0;
/** @domName StorageInfo.queryUsageAndQuota */
void queryUsageAndQuota(int storageType, [StorageInfoUsageCallback usageCallback, StorageInfoErrorCallback errorCallback]);
/** @domName StorageInfo.requestQuota */
void requestQuota(int storageType, int newQuotaInBytes, [StorageInfoQuotaCallback quotaCallback, StorageInfoErrorCallback errorCallback]);
}
// 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.
// WARNING: Do not edit - generated code.
typedef void StorageInfoErrorCallback(DOMException error);
// 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.
// WARNING: Do not edit - generated code.
class _StorageInfoImpl extends NativeFieldWrapperClass1 implements StorageInfo {
void queryUsageAndQuota(int storageType, [StorageInfoUsageCallback usageCallback, StorageInfoErrorCallback errorCallback]) native "StorageInfo_queryUsageAndQuota_Callback";
void requestQuota(int storageType, int newQuotaInBytes, [StorageInfoQuotaCallback quotaCallback, StorageInfoErrorCallback errorCallback]) native "StorageInfo_requestQuota_Callback";
}
// 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.
// WARNING: Do not edit - generated code.
typedef void StorageInfoQuotaCallback(int grantedQuotaInBytes);
// 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.
// WARNING: Do not edit - generated code.
typedef void StorageInfoUsageCallback(int currentUsageInBytes, int currentQuotaInBytes);
// 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.
// WARNING: Do not edit - generated code.
typedef void StringCallback(String data);
// 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.
// WARNING: Do not edit - generated code.
/// @domName HTMLStyleElement
abstract class StyleElement implements Element {
factory StyleElement() => _Elements.createStyleElement();
/** @domName HTMLStyleElement.disabled */
bool disabled;
/** @domName HTMLStyleElement.media */
String media;
/** @domName HTMLStyleElement.scoped */
bool scoped;
/** @domName HTMLStyleElement.sheet */
StyleSheet get sheet;
/** @domName HTMLStyleElement.type */
String type;
}
// 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.
// WARNING: Do not edit - generated code.
class _StyleElementImpl extends _ElementImpl_Merged implements StyleElement {
bool get disabled native "HTMLStyleElement_disabled_Getter";
void set disabled(bool value) native "HTMLStyleElement_disabled_Setter";
String get media native "HTMLStyleElement_media_Getter";
void set media(String value) native "HTMLStyleElement_media_Setter";
bool get scoped native "HTMLStyleElement_scoped_Getter";
void set scoped(bool value) native "HTMLStyleElement_scoped_Setter";
StyleSheet get sheet native "HTMLStyleElement_sheet_Getter";
String get type native "HTMLStyleElement_type_Getter";
void set type(String value) native "HTMLStyleElement_type_Setter";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName StyleMedia
abstract class StyleMedia {
/** @domName StyleMedia.type */
String get type;
/** @domName StyleMedia.matchMedium */
bool matchMedium(String mediaquery);
}
// 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.
// WARNING: Do not edit - generated code.
class _StyleMediaImpl extends NativeFieldWrapperClass1 implements StyleMedia {
String get type native "StyleMedia_type_Getter";
bool matchMedium(String mediaquery) native "StyleMedia_matchMedium_Callback";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName StyleSheet
abstract class StyleSheet {
/** @domName StyleSheet.disabled */
bool disabled;
/** @domName StyleSheet.href */
String get href;
/** @domName StyleSheet.media */
MediaList get media;
/** @domName StyleSheet.ownerNode */
Node get ownerNode;
/** @domName StyleSheet.parentStyleSheet */
StyleSheet get parentStyleSheet;
/** @domName StyleSheet.title */
String get title;
/** @domName StyleSheet.type */
String get type;
}
// 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.
// WARNING: Do not edit - generated code.
class _StyleSheetImpl extends NativeFieldWrapperClass1 implements StyleSheet {
bool get disabled native "StyleSheet_disabled_Getter";
void set disabled(bool value) native "StyleSheet_disabled_Setter";
String get href native "StyleSheet_href_Getter";
MediaList get media native "StyleSheet_media_Getter";
Node get ownerNode native "StyleSheet_ownerNode_Getter";
StyleSheet get parentStyleSheet native "StyleSheet_parentStyleSheet_Getter";
String get title native "StyleSheet_title_Getter";
String get type native "StyleSheet_type_Getter";
}
// 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.
// WARNING: Do not edit - generated code.
class _StyleSheetListImpl extends NativeFieldWrapperClass1 implements List<StyleSheet> {
int get length native "StyleSheetList_length_Getter";
StyleSheet operator[](int index) native "StyleSheetList_item_Callback";
void operator[]=(int index, StyleSheet value) {
throw new UnsupportedError("Cannot assign element of immutable List.");
}
// -- start List<StyleSheet> mixins.
// StyleSheet is the element type.
// From Iterable<StyleSheet>:
Iterator<StyleSheet> 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<StyleSheet>(this);
}
// From Collection<StyleSheet>:
void add(StyleSheet value) {
throw new UnsupportedError("Cannot add to immutable List.");
}
void addLast(StyleSheet value) {
throw new UnsupportedError("Cannot add to immutable List.");
}
void addAll(Collection<StyleSheet> collection) {
throw new UnsupportedError("Cannot add to immutable List.");
}
bool contains(StyleSheet element) => _Collections.contains(this, element);
void forEach(void f(StyleSheet element)) => _Collections.forEach(this, f);
Collection map(f(StyleSheet element)) => _Collections.map(this, [], f);
Collection<StyleSheet> filter(bool f(StyleSheet element)) =>
_Collections.filter(this, <StyleSheet>[], f);
bool every(bool f(StyleSheet element)) => _Collections.every(this, f);
bool some(bool f(StyleSheet element)) => _Collections.some(this, f);
bool get isEmpty => this.length == 0;
// From List<StyleSheet>:
void sort([Comparator<StyleSheet> compare = Comparable.compare]) {
throw new UnsupportedError("Cannot sort immutable List.");
}
int indexOf(StyleSheet element, [int start = 0]) =>
_Lists.indexOf(this, element, start, this.length);
int lastIndexOf(StyleSheet element, [int start]) {
if (start == null) start = length - 1;
return _Lists.lastIndexOf(this, element, start);
}
StyleSheet get last => this[length - 1];
StyleSheet removeLast() {
throw new UnsupportedError("Cannot removeLast on immutable List.");
}
void setRange(int start, int rangeLength, List<StyleSheet> from, [int startFrom]) {
throw new UnsupportedError("Cannot setRange on immutable List.");
}
void removeRange(int start, int rangeLength) {
throw new UnsupportedError("Cannot removeRange on immutable List.");
}
void insertRange(int start, int rangeLength, [StyleSheet initialValue]) {
throw new UnsupportedError("Cannot insertRange on immutable List.");
}
List<StyleSheet> getRange(int start, int rangeLength) =>
_Lists.getRange(this, start, rangeLength, <StyleSheet>[]);
// -- end List<StyleSheet> mixins.
StyleSheet item(int index) native "StyleSheetList_item_Callback";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName HTMLTableCaptionElement
abstract class TableCaptionElement implements Element {
factory TableCaptionElement() => _Elements.createTableCaptionElement();
/** @domName HTMLTableCaptionElement.align */
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.
// WARNING: Do not edit - generated code.
class _TableCaptionElementImpl extends _ElementImpl_Merged implements TableCaptionElement {
String get align native "HTMLTableCaptionElement_align_Getter";
void set align(String value) native "HTMLTableCaptionElement_align_Setter";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName HTMLTableCellElement
abstract class TableCellElement implements Element {
factory TableCellElement() => _Elements.createTableCellElement();
/** @domName HTMLTableCellElement.abbr */
String abbr;
/** @domName HTMLTableCellElement.align */
String align;
/** @domName HTMLTableCellElement.axis */
String axis;
/** @domName HTMLTableCellElement.bgColor */
String bgColor;
/** @domName HTMLTableCellElement.cellIndex */
int get cellIndex;
/** @domName HTMLTableCellElement.ch */
String ch;
/** @domName HTMLTableCellElement.chOff */
String chOff;
/** @domName HTMLTableCellElement.colSpan */
int colSpan;
/** @domName HTMLTableCellElement.headers */
String headers;
/** @domName HTMLTableCellElement.height */
String height;
/** @domName HTMLTableCellElement.noWrap */
bool noWrap;
/** @domName HTMLTableCellElement.rowSpan */
int rowSpan;
/** @domName HTMLTableCellElement.scope */
String scope;
/** @domName HTMLTableCellElement.vAlign */
String vAlign;
/** @domName HTMLTableCellElement.width */
String width;
}
// 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.
// WARNING: Do not edit - generated code.
class _TableCellElementImpl extends _ElementImpl_Merged implements TableCellElement {
String get abbr native "HTMLTableCellElement_abbr_Getter";
void set abbr(String value) native "HTMLTableCellElement_abbr_Setter";
String get align native "HTMLTableCellElement_align_Getter";
void set align(String value) native "HTMLTableCellElement_align_Setter";
String get axis native "HTMLTableCellElement_axis_Getter";
void set axis(String value) native "HTMLTableCellElement_axis_Setter";
String get bgColor native "HTMLTableCellElement_bgColor_Getter";
void set bgColor(String value) native "HTMLTableCellElement_bgColor_Setter";
int get cellIndex native "HTMLTableCellElement_cellIndex_Getter";
String get ch native "HTMLTableCellElement_ch_Getter";
void set ch(String value) native "HTMLTableCellElement_ch_Setter";
String get chOff native "HTMLTableCellElement_chOff_Getter";
void set chOff(String value) native "HTMLTableCellElement_chOff_Setter";
int get colSpan native "HTMLTableCellElement_colSpan_Getter";
void set colSpan(int value) native "HTMLTableCellElement_colSpan_Setter";
String get headers native "HTMLTableCellElement_headers_Getter";
void set headers(String value) native "HTMLTableCellElement_headers_Setter";
String get height native "HTMLTableCellElement_height_Getter";
void set height(String value) native "HTMLTableCellElement_height_Setter";
bool get noWrap native "HTMLTableCellElement_noWrap_Getter";
void set noWrap(bool value) native "HTMLTableCellElement_noWrap_Setter";
int get rowSpan native "HTMLTableCellElement_rowSpan_Getter";
void set rowSpan(int value) native "HTMLTableCellElement_rowSpan_Setter";
String get scope native "HTMLTableCellElement_scope_Getter";
void set scope(String value) native "HTMLTableCellElement_scope_Setter";
String get vAlign native "HTMLTableCellElement_vAlign_Getter";
void set vAlign(String value) native "HTMLTableCellElement_vAlign_Setter";
String get width native "HTMLTableCellElement_width_Getter";
void set width(String value) native "HTMLTableCellElement_width_Setter";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName HTMLTableColElement
abstract class TableColElement implements Element {
factory TableColElement() => _Elements.createTableColElement();
/** @domName HTMLTableColElement.align */
String align;
/** @domName HTMLTableColElement.ch */
String ch;
/** @domName HTMLTableColElement.chOff */
String chOff;
/** @domName HTMLTableColElement.span */
int span;
/** @domName HTMLTableColElement.vAlign */
String vAlign;
/** @domName HTMLTableColElement.width */
String width;
}
// 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.
// WARNING: Do not edit - generated code.
class _TableColElementImpl extends _ElementImpl_Merged implements TableColElement {
String get align native "HTMLTableColElement_align_Getter";
void set align(String value) native "HTMLTableColElement_align_Setter";
String get ch native "HTMLTableColElement_ch_Getter";
void set ch(String value) native "HTMLTableColElement_ch_Setter";
String get chOff native "HTMLTableColElement_chOff_Getter";
void set chOff(String value) native "HTMLTableColElement_chOff_Setter";
int get span native "HTMLTableColElement_span_Getter";
void set span(int value) native "HTMLTableColElement_span_Setter";
String get vAlign native "HTMLTableColElement_vAlign_Getter";
void set vAlign(String value) native "HTMLTableColElement_vAlign_Setter";
String get width native "HTMLTableColElement_width_Getter";
void set width(String value) native "HTMLTableColElement_width_Setter";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName HTMLTableElement
abstract class TableElement implements Element {
factory TableElement() => _Elements.createTableElement();
/** @domName HTMLTableElement.align */
String align;
/** @domName HTMLTableElement.bgColor */
String bgColor;
/** @domName HTMLTableElement.border */
String border;
/** @domName HTMLTableElement.caption */
TableCaptionElement caption;
/** @domName HTMLTableElement.cellPadding */
String cellPadding;
/** @domName HTMLTableElement.cellSpacing */
String cellSpacing;
/** @domName HTMLTableElement.frame */
String frame;
/** @domName HTMLTableElement.rows */
HTMLCollection get rows;
/** @domName HTMLTableElement.rules */
String rules;
/** @domName HTMLTableElement.summary */
String summary;
/** @domName HTMLTableElement.tBodies */
HTMLCollection get tBodies;
/** @domName HTMLTableElement.tFoot */
TableSectionElement tFoot;
/** @domName HTMLTableElement.tHead */
TableSectionElement tHead;
/** @domName HTMLTableElement.width */
String width;
/** @domName HTMLTableElement.createCaption */
Element createCaption();
/** @domName HTMLTableElement.createTBody */
Element createTBody();
/** @domName HTMLTableElement.createTFoot */
Element createTFoot();
/** @domName HTMLTableElement.createTHead */
Element createTHead();
/** @domName HTMLTableElement.deleteCaption */
void deleteCaption();
/** @domName HTMLTableElement.deleteRow */
void deleteRow(int index);
/** @domName HTMLTableElement.deleteTFoot */
void deleteTFoot();
/** @domName HTMLTableElement.deleteTHead */
void deleteTHead();
/** @domName HTMLTableElement.insertRow */
Element insertRow(int index);
}
// 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.
// WARNING: Do not edit - generated code.
class _TableElementImpl extends _ElementImpl_Merged implements TableElement {
String get align native "HTMLTableElement_align_Getter";
void set align(String value) native "HTMLTableElement_align_Setter";
String get bgColor native "HTMLTableElement_bgColor_Getter";
void set bgColor(String value) native "HTMLTableElement_bgColor_Setter";
String get border native "HTMLTableElement_border_Getter";
void set border(String value) native "HTMLTableElement_border_Setter";
TableCaptionElement get caption native "HTMLTableElement_caption_Getter";
void set caption(TableCaptionElement value) native "HTMLTableElement_caption_Setter";
String get cellPadding native "HTMLTableElement_cellPadding_Getter";
void set cellPadding(String value) native "HTMLTableElement_cellPadding_Setter";
String get cellSpacing native "HTMLTableElement_cellSpacing_Getter";
void set cellSpacing(String value) native "HTMLTableElement_cellSpacing_Setter";
String get frame native "HTMLTableElement_frame_Getter";
void set frame(String value) native "HTMLTableElement_frame_Setter";
HTMLCollection get rows native "HTMLTableElement_rows_Getter";
String get rules native "HTMLTableElement_rules_Getter";
void set rules(String value) native "HTMLTableElement_rules_Setter";
String get summary native "HTMLTableElement_summary_Getter";
void set summary(String value) native "HTMLTableElement_summary_Setter";
HTMLCollection get tBodies native "HTMLTableElement_tBodies_Getter";
TableSectionElement get tFoot native "HTMLTableElement_tFoot_Getter";
void set tFoot(TableSectionElement value) native "HTMLTableElement_tFoot_Setter";
TableSectionElement get tHead native "HTMLTableElement_tHead_Getter";
void set tHead(TableSectionElement value) native "HTMLTableElement_tHead_Setter";
String get width native "HTMLTableElement_width_Getter";
void set width(String value) native "HTMLTableElement_width_Setter";
Element createCaption() native "HTMLTableElement_createCaption_Callback";
Element createTBody() native "HTMLTableElement_createTBody_Callback";
Element createTFoot() native "HTMLTableElement_createTFoot_Callback";
Element createTHead() native "HTMLTableElement_createTHead_Callback";
void deleteCaption() native "HTMLTableElement_deleteCaption_Callback";
void deleteRow(int index) native "HTMLTableElement_deleteRow_Callback";
void deleteTFoot() native "HTMLTableElement_deleteTFoot_Callback";
void deleteTHead() native "HTMLTableElement_deleteTHead_Callback";
Element insertRow(int index) native "HTMLTableElement_insertRow_Callback";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName HTMLTableRowElement
abstract class TableRowElement implements Element {
factory TableRowElement() => _Elements.createTableRowElement();
/** @domName HTMLTableRowElement.align */
String align;
/** @domName HTMLTableRowElement.bgColor */
String bgColor;
/** @domName HTMLTableRowElement.cells */
HTMLCollection get cells;
/** @domName HTMLTableRowElement.ch */
String ch;
/** @domName HTMLTableRowElement.chOff */
String chOff;
/** @domName HTMLTableRowElement.rowIndex */
int get rowIndex;
/** @domName HTMLTableRowElement.sectionRowIndex */
int get sectionRowIndex;
/** @domName HTMLTableRowElement.vAlign */
String vAlign;
/** @domName HTMLTableRowElement.deleteCell */
void deleteCell(int index);
/** @domName HTMLTableRowElement.insertCell */
Element insertCell(int index);
}
// 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.
// WARNING: Do not edit - generated code.
class _TableRowElementImpl extends _ElementImpl_Merged implements TableRowElement {
String get align native "HTMLTableRowElement_align_Getter";
void set align(String value) native "HTMLTableRowElement_align_Setter";
String get bgColor native "HTMLTableRowElement_bgColor_Getter";
void set bgColor(String value) native "HTMLTableRowElement_bgColor_Setter";
HTMLCollection get cells native "HTMLTableRowElement_cells_Getter";
String get ch native "HTMLTableRowElement_ch_Getter";
void set ch(String value) native "HTMLTableRowElement_ch_Setter";
String get chOff native "HTMLTableRowElement_chOff_Getter";
void set chOff(String value) native "HTMLTableRowElement_chOff_Setter";
int get rowIndex native "HTMLTableRowElement_rowIndex_Getter";
int get sectionRowIndex native "HTMLTableRowElement_sectionRowIndex_Getter";
String get vAlign native "HTMLTableRowElement_vAlign_Getter";
void set vAlign(String value) native "HTMLTableRowElement_vAlign_Setter";
void deleteCell(int index) native "HTMLTableRowElement_deleteCell_Callback";
Element insertCell(int index) native "HTMLTableRowElement_insertCell_Callback";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName HTMLTableSectionElement
abstract class TableSectionElement implements Element {
/** @domName HTMLTableSectionElement.align */
String align;
/** @domName HTMLTableSectionElement.ch */
String ch;
/** @domName HTMLTableSectionElement.chOff */
String chOff;
/** @domName HTMLTableSectionElement.rows */
HTMLCollection get rows;
/** @domName HTMLTableSectionElement.vAlign */
String vAlign;
/** @domName HTMLTableSectionElement.deleteRow */
void deleteRow(int index);
/** @domName HTMLTableSectionElement.insertRow */
Element insertRow(int index);
}
// 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.
// WARNING: Do not edit - generated code.
class _TableSectionElementImpl extends _ElementImpl_Merged implements TableSectionElement {
String get align native "HTMLTableSectionElement_align_Getter";
void set align(String value) native "HTMLTableSectionElement_align_Setter";
String get ch native "HTMLTableSectionElement_ch_Getter";
void set ch(String value) native "HTMLTableSectionElement_ch_Setter";
String get chOff native "HTMLTableSectionElement_chOff_Getter";
void set chOff(String value) native "HTMLTableSectionElement_chOff_Setter";
HTMLCollection get rows native "HTMLTableSectionElement_rows_Getter";
String get vAlign native "HTMLTableSectionElement_vAlign_Getter";
void set vAlign(String value) native "HTMLTableSectionElement_vAlign_Setter";
void deleteRow(int index) native "HTMLTableSectionElement_deleteRow_Callback";
Element insertRow(int index) native "HTMLTableSectionElement_insertRow_Callback";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName Text
abstract class Text implements CharacterData {
factory Text(String data) => _TextFactoryProvider.createText(data);
/** @domName Text.wholeText */
String get wholeText;
/** @domName Text.replaceWholeText */
Text replaceWholeText(String content);
/** @domName Text.splitText */
Text splitText(int offset);
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName HTMLTextAreaElement
abstract class TextAreaElement implements Element {
factory TextAreaElement() => _Elements.createTextAreaElement();
/** @domName HTMLTextAreaElement.autofocus */
bool autofocus;
/** @domName HTMLTextAreaElement.cols */
int cols;
/** @domName HTMLTextAreaElement.defaultValue */
String defaultValue;
/** @domName HTMLTextAreaElement.dirName */
String dirName;
/** @domName HTMLTextAreaElement.disabled */
bool disabled;
/** @domName HTMLTextAreaElement.form */
FormElement get form;
/** @domName HTMLTextAreaElement.labels */
List<Node> get labels;
/** @domName HTMLTextAreaElement.maxLength */
int maxLength;
/** @domName HTMLTextAreaElement.name */
String name;
/** @domName HTMLTextAreaElement.placeholder */
String placeholder;
/** @domName HTMLTextAreaElement.readOnly */
bool readOnly;
/** @domName HTMLTextAreaElement.required */
bool required;
/** @domName HTMLTextAreaElement.rows */
int rows;
/** @domName HTMLTextAreaElement.selectionDirection */
String selectionDirection;
/** @domName HTMLTextAreaElement.selectionEnd */
int selectionEnd;
/** @domName HTMLTextAreaElement.selectionStart */
int selectionStart;
/** @domName HTMLTextAreaElement.textLength */
int get textLength;
/** @domName HTMLTextAreaElement.type */
String get type;
/** @domName HTMLTextAreaElement.validationMessage */
String get validationMessage;
/** @domName HTMLTextAreaElement.validity */
ValidityState get validity;
/** @domName HTMLTextAreaElement.value */
String value;
/** @domName HTMLTextAreaElement.willValidate */
bool get willValidate;
/** @domName HTMLTextAreaElement.wrap */
String wrap;
/** @domName HTMLTextAreaElement.checkValidity */
bool checkValidity();
/** @domName HTMLTextAreaElement.select */
void select();
/** @domName HTMLTextAreaElement.setCustomValidity */
void setCustomValidity(String error);
/** @domName HTMLTextAreaElement.setRangeText */
void setRangeText(String replacement, [int start, int end, String selectionMode]);
/** @domName HTMLTextAreaElement.setSelectionRange */
void setSelectionRange(int start, int end, [String direction]);
}
// 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.
// WARNING: Do not edit - generated code.
class _TextAreaElementImpl extends _ElementImpl_Merged implements TextAreaElement {
bool get autofocus native "HTMLTextAreaElement_autofocus_Getter";
void set autofocus(bool value) native "HTMLTextAreaElement_autofocus_Setter";
int get cols native "HTMLTextAreaElement_cols_Getter";
void set cols(int value) native "HTMLTextAreaElement_cols_Setter";
String get defaultValue native "HTMLTextAreaElement_defaultValue_Getter";
void set defaultValue(String value) native "HTMLTextAreaElement_defaultValue_Setter";
String get dirName native "HTMLTextAreaElement_dirName_Getter";
void set dirName(String value) native "HTMLTextAreaElement_dirName_Setter";
bool get disabled native "HTMLTextAreaElement_disabled_Getter";
void set disabled(bool value) native "HTMLTextAreaElement_disabled_Setter";
FormElement get form native "HTMLTextAreaElement_form_Getter";
List<Node> get labels native "HTMLTextAreaElement_labels_Getter";
int get maxLength native "HTMLTextAreaElement_maxLength_Getter";
void set maxLength(int value) native "HTMLTextAreaElement_maxLength_Setter";
String get name native "HTMLTextAreaElement_name_Getter";
void set name(String value) native "HTMLTextAreaElement_name_Setter";
String get placeholder native "HTMLTextAreaElement_placeholder_Getter";
void set placeholder(String value) native "HTMLTextAreaElement_placeholder_Setter";
bool get readOnly native "HTMLTextAreaElement_readOnly_Getter";
void set readOnly(bool value) native "HTMLTextAreaElement_readOnly_Setter";
bool get required native "HTMLTextAreaElement_required_Getter";
void set required(bool value) native "HTMLTextAreaElement_required_Setter";
int get rows native "HTMLTextAreaElement_rows_Getter";
void set rows(int value) native "HTMLTextAreaElement_rows_Setter";
String get selectionDirection native "HTMLTextAreaElement_selectionDirection_Getter";
void set selectionDirection(String value) native "HTMLTextAreaElement_selectionDirection_Setter";
int get selectionEnd native "HTMLTextAreaElement_selectionEnd_Getter";
void set selectionEnd(int value) native "HTMLTextAreaElement_selectionEnd_Setter";
int get selectionStart native "HTMLTextAreaElement_selectionStart_Getter";
void set selectionStart(int value) native "HTMLTextAreaElement_selectionStart_Setter";
int get textLength native "HTMLTextAreaElement_textLength_Getter";
String get type native "HTMLTextAreaElement_type_Getter";
String get validationMessage native "HTMLTextAreaElement_validationMessage_Getter";
ValidityState get validity native "HTMLTextAreaElement_validity_Getter";
String get value native "HTMLTextAreaElement_value_Getter";
void set value(String value) native "HTMLTextAreaElement_value_Setter";
bool get willValidate native "HTMLTextAreaElement_willValidate_Getter";
String get wrap native "HTMLTextAreaElement_wrap_Getter";
void set wrap(String value) native "HTMLTextAreaElement_wrap_Setter";
bool checkValidity() native "HTMLTextAreaElement_checkValidity_Callback";
void select() native "HTMLTextAreaElement_select_Callback";
void setCustomValidity(String error) native "HTMLTextAreaElement_setCustomValidity_Callback";
void setRangeText(/*DOMString*/ replacement, [/*unsigned long*/ start, /*unsigned long*/ end, /*DOMString*/ selectionMode]) {
if ((replacement is String || replacement == null) && !?start && !?end && !?selectionMode) {
_setRangeText_1(replacement);
return;
}
if ((replacement is String || replacement == null) && (start is int || start == null) && (end is int || end == null) && (selectionMode is String || selectionMode == null)) {
_setRangeText_2(replacement, start, end, selectionMode);
return;
}
throw "Incorrect number or type of arguments";
}
void _setRangeText_1(replacement) native "HTMLTextAreaElement_setRangeText_1_Callback";
void _setRangeText_2(replacement, start, end, selectionMode) native "HTMLTextAreaElement_setRangeText_2_Callback";
void setSelectionRange(/*long*/ start, /*long*/ end, [/*DOMString*/ direction]) {
if (?direction) {
_setSelectionRange_1(start, end, direction);
return;
}
_setSelectionRange_2(start, end);
}
void _setSelectionRange_1(start, end, direction) native "HTMLTextAreaElement_setSelectionRange_1_Callback";
void _setSelectionRange_2(start, end) native "HTMLTextAreaElement_setSelectionRange_2_Callback";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName TextEvent
abstract class TextEvent implements UIEvent {
/** @domName TextEvent.data */
String get data;
/** @domName TextEvent.initTextEvent */
void initTextEvent(String typeArg, bool canBubbleArg, bool cancelableArg, LocalWindow viewArg, String dataArg);
}
// 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.
// WARNING: Do not edit - generated code.
class _TextEventImpl extends _UIEventImpl implements TextEvent {
String get data native "TextEvent_data_Getter";
void initTextEvent(String typeArg, bool canBubbleArg, bool cancelableArg, LocalWindow viewArg, String dataArg) native "TextEvent_initTextEvent_Callback";
}
// 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.
// WARNING: Do not edit - generated code.
class _TextImpl extends _CharacterDataImpl implements Text {
String get wholeText native "Text_wholeText_Getter";
Text replaceWholeText(String content) native "Text_replaceWholeText_Callback";
Text splitText(int offset) native "Text_splitText_Callback";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName TextMetrics
abstract class TextMetrics {
/** @domName TextMetrics.width */
num get width;
}
// 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.
// WARNING: Do not edit - generated code.
class _TextMetricsImpl extends NativeFieldWrapperClass1 implements TextMetrics {
num get width native "TextMetrics_width_Getter";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName TextTrack
abstract class TextTrack implements EventTarget {
/**
* @domName EventTarget.addEventListener, EventTarget.removeEventListener, EventTarget.dispatchEvent
*/
TextTrackEvents get on;
/** @domName TextTrack.activeCues */
TextTrackCueList get activeCues;
/** @domName TextTrack.cues */
TextTrackCueList get cues;
/** @domName TextTrack.kind */
String get kind;
/** @domName TextTrack.label */
String get label;
/** @domName TextTrack.language */
String get language;
/** @domName TextTrack.mode */
String mode;
/** @domName TextTrack.addCue */
void addCue(TextTrackCue cue);
/** @domName TextTrack.addEventListener */
void $dom_addEventListener(String type, EventListener listener, [bool useCapture]);
/** @domName TextTrack.dispatchEvent */
bool $dom_dispatchEvent(Event evt);
/** @domName TextTrack.removeCue */
void removeCue(TextTrackCue cue);
/** @domName TextTrack.removeEventListener */
void $dom_removeEventListener(String type, EventListener listener, [bool useCapture]);
}
abstract class TextTrackEvents implements Events {
EventListenerList get cueChange;
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName TextTrackCue
abstract class TextTrackCue implements EventTarget {
factory TextTrackCue(num startTime, num endTime, String text) => _TextTrackCueFactoryProvider.createTextTrackCue(startTime, endTime, text);
/**
* @domName EventTarget.addEventListener, EventTarget.removeEventListener, EventTarget.dispatchEvent
*/
TextTrackCueEvents get on;
/** @domName TextTrackCue.align */
String align;
/** @domName TextTrackCue.endTime */
num endTime;
/** @domName TextTrackCue.id */
String id;
/** @domName TextTrackCue.line */
int line;
/** @domName TextTrackCue.pauseOnExit */
bool pauseOnExit;
/** @domName TextTrackCue.position */
int position;
/** @domName TextTrackCue.size */
int size;
/** @domName TextTrackCue.snapToLines */
bool snapToLines;
/** @domName TextTrackCue.startTime */
num startTime;
/** @domName TextTrackCue.text */
String text;
/** @domName TextTrackCue.track */
TextTrack get track;
/** @domName TextTrackCue.vertical */
String vertical;
/** @domName TextTrackCue.addEventListener */
void $dom_addEventListener(String type, EventListener listener, [bool useCapture]);
/** @domName TextTrackCue.dispatchEvent */
bool $dom_dispatchEvent(Event evt);
/** @domName TextTrackCue.getCueAsHTML */
DocumentFragment getCueAsHTML();
/** @domName TextTrackCue.removeEventListener */
void $dom_removeEventListener(String type, EventListener listener, [bool useCapture]);
}
abstract class TextTrackCueEvents implements Events {
EventListenerList get enter;
EventListenerList get exit;
}
// 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.
// WARNING: Do not edit - generated code.
class _TextTrackCueImpl extends _EventTargetImpl implements TextTrackCue {
_TextTrackCueEventsImpl get on =>
new _TextTrackCueEventsImpl(this);
String get align native "TextTrackCue_align_Getter";
void set align(String value) native "TextTrackCue_align_Setter";
num get endTime native "TextTrackCue_endTime_Getter";
void set endTime(num value) native "TextTrackCue_endTime_Setter";
String get id native "TextTrackCue_id_Getter";
void set id(String value) native "TextTrackCue_id_Setter";
int get line native "TextTrackCue_line_Getter";
void set line(int value) native "TextTrackCue_line_Setter";
bool get pauseOnExit native "TextTrackCue_pauseOnExit_Getter";
void set pauseOnExit(bool value) native "TextTrackCue_pauseOnExit_Setter";
int get position native "TextTrackCue_position_Getter";
void set position(int value) native "TextTrackCue_position_Setter";
int get size native "TextTrackCue_size_Getter";
void set size(int value) native "TextTrackCue_size_Setter";
bool get snapToLines native "TextTrackCue_snapToLines_Getter";
void set snapToLines(bool value) native "TextTrackCue_snapToLines_Setter";
num get startTime native "TextTrackCue_startTime_Getter";
void set startTime(num value) native "TextTrackCue_startTime_Setter";
String get text native "TextTrackCue_text_Getter";
void set text(String value) native "TextTrackCue_text_Setter";
TextTrack get track native "TextTrackCue_track_Getter";
String get vertical native "TextTrackCue_vertical_Getter";
void set vertical(String value) native "TextTrackCue_vertical_Setter";
void $dom_addEventListener(String type, EventListener listener, [bool useCapture]) native "TextTrackCue_addEventListener_Callback";
bool $dom_dispatchEvent(Event evt) native "TextTrackCue_dispatchEvent_Callback";
DocumentFragment getCueAsHTML() native "TextTrackCue_getCueAsHTML_Callback";
void $dom_removeEventListener(String type, EventListener listener, [bool useCapture]) native "TextTrackCue_removeEventListener_Callback";
}
class _TextTrackCueEventsImpl extends _EventsImpl implements TextTrackCueEvents {
_TextTrackCueEventsImpl(_ptr) : super(_ptr);
EventListenerList get enter => this['enter'];
EventListenerList get exit => this['exit'];
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName TextTrackCueList
abstract class TextTrackCueList implements List<TextTrackCue> {
/** @domName TextTrackCueList.length */
int get length;
/** @domName TextTrackCueList.getCueById */
TextTrackCue getCueById(String id);
/** @domName TextTrackCueList.item */
TextTrackCue item(int index);
}
// 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.
// WARNING: Do not edit - generated code.
class _TextTrackCueListImpl extends NativeFieldWrapperClass1 implements TextTrackCueList {
int get length native "TextTrackCueList_length_Getter";
TextTrackCue operator[](int index) native "TextTrackCueList_item_Callback";
void operator[]=(int index, TextTrackCue value) {
throw new UnsupportedError("Cannot assign element of immutable List.");
}
// -- start List<TextTrackCue> mixins.
// TextTrackCue is the element type.
// From Iterable<TextTrackCue>:
Iterator<TextTrackCue> 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<TextTrackCue>(this);
}
// From Collection<TextTrackCue>:
void add(TextTrackCue value) {
throw new UnsupportedError("Cannot add to immutable List.");
}
void addLast(TextTrackCue value) {
throw new UnsupportedError("Cannot add to immutable List.");
}
void addAll(Collection<TextTrackCue> collection) {
throw new UnsupportedError("Cannot add to immutable List.");
}
bool contains(TextTrackCue element) => _Collections.contains(this, element);
void forEach(void f(TextTrackCue element)) => _Collections.forEach(this, f);
Collection map(f(TextTrackCue element)) => _Collections.map(this, [], f);
Collection<TextTrackCue> filter(bool f(TextTrackCue element)) =>
_Collections.filter(this, <TextTrackCue>[], f);
bool every(bool f(TextTrackCue element)) => _Collections.every(this, f);
bool some(bool f(TextTrackCue element)) => _Collections.some(this, f);
bool get isEmpty => this.length == 0;
// From List<TextTrackCue>:
void sort([Comparator<TextTrackCue> compare = Comparable.compare]) {
throw new UnsupportedError("Cannot sort immutable List.");
}
int indexOf(TextTrackCue element, [int start = 0]) =>
_Lists.indexOf(this, element, start, this.length);
int lastIndexOf(TextTrackCue element, [int start]) {
if (start == null) start = length - 1;
return _Lists.lastIndexOf(this, element, start);
}
TextTrackCue get last => this[length - 1];
TextTrackCue removeLast() {
throw new UnsupportedError("Cannot removeLast on immutable List.");
}
void setRange(int start, int rangeLength, List<TextTrackCue> from, [int startFrom]) {
throw new UnsupportedError("Cannot setRange on immutable List.");
}
void removeRange(int start, int rangeLength) {
throw new UnsupportedError("Cannot removeRange on immutable List.");
}
void insertRange(int start, int rangeLength, [TextTrackCue initialValue]) {
throw new UnsupportedError("Cannot insertRange on immutable List.");
}
List<TextTrackCue> getRange(int start, int rangeLength) =>
_Lists.getRange(this, start, rangeLength, <TextTrackCue>[]);
// -- end List<TextTrackCue> mixins.
TextTrackCue getCueById(String id) native "TextTrackCueList_getCueById_Callback";
TextTrackCue item(int index) native "TextTrackCueList_item_Callback";
}
// 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.
// WARNING: Do not edit - generated code.
class _TextTrackImpl extends _EventTargetImpl implements TextTrack {
_TextTrackEventsImpl get on =>
new _TextTrackEventsImpl(this);
TextTrackCueList get activeCues native "TextTrack_activeCues_Getter";
TextTrackCueList get cues native "TextTrack_cues_Getter";
String get kind native "TextTrack_kind_Getter";
String get label native "TextTrack_label_Getter";
String get language native "TextTrack_language_Getter";
String get mode native "TextTrack_mode_Getter";
void set mode(String value) native "TextTrack_mode_Setter";
void addCue(TextTrackCue cue) native "TextTrack_addCue_Callback";
void $dom_addEventListener(String type, EventListener listener, [bool useCapture]) native "TextTrack_addEventListener_Callback";
bool $dom_dispatchEvent(Event evt) native "TextTrack_dispatchEvent_Callback";
void removeCue(TextTrackCue cue) native "TextTrack_removeCue_Callback";
void $dom_removeEventListener(String type, EventListener listener, [bool useCapture]) native "TextTrack_removeEventListener_Callback";
}
class _TextTrackEventsImpl extends _EventsImpl implements TextTrackEvents {
_TextTrackEventsImpl(_ptr) : super(_ptr);
EventListenerList get cueChange => this['cuechange'];
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName TextTrackList
abstract class TextTrackList implements EventTarget, List<TextTrack> {
/**
* @domName EventTarget.addEventListener, EventTarget.removeEventListener, EventTarget.dispatchEvent
*/
TextTrackListEvents get on;
/** @domName TextTrackList.length */
int get length;
/** @domName TextTrackList.addEventListener */
void $dom_addEventListener(String type, EventListener listener, [bool useCapture]);
/** @domName TextTrackList.dispatchEvent */
bool $dom_dispatchEvent(Event evt);
/** @domName TextTrackList.item */
TextTrack item(int index);
/** @domName TextTrackList.removeEventListener */
void $dom_removeEventListener(String type, EventListener listener, [bool useCapture]);
}
abstract class TextTrackListEvents implements Events {
EventListenerList get addTrack;
}
// 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.
// WARNING: Do not edit - generated code.
class _TextTrackListImpl extends _EventTargetImpl implements TextTrackList {
_TextTrackListEventsImpl get on =>
new _TextTrackListEventsImpl(this);
int get length native "TextTrackList_length_Getter";
TextTrack operator[](int index) native "TextTrackList_item_Callback";
void operator[]=(int index, TextTrack value) {
throw new UnsupportedError("Cannot assign element of immutable List.");
}
// -- start List<TextTrack> mixins.
// TextTrack is the element type.
// From Iterable<TextTrack>:
Iterator<TextTrack> 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<TextTrack>(this);
}
// From Collection<TextTrack>:
void add(TextTrack value) {
throw new UnsupportedError("Cannot add to immutable List.");
}
void addLast(TextTrack value) {
throw new UnsupportedError("Cannot add to immutable List.");
}
void addAll(Collection<TextTrack> collection) {
throw new UnsupportedError("Cannot add to immutable List.");
}
bool contains(TextTrack element) => _Collections.contains(this, element);
void forEach(void f(TextTrack element)) => _Collections.forEach(this, f);
Collection map(f(TextTrack element)) => _Collections.map(this, [], f);
Collection<TextTrack> filter(bool f(TextTrack element)) =>
_Collections.filter(this, <TextTrack>[], f);
bool every(bool f(TextTrack element)) => _Collections.every(this, f);
bool some(bool f(TextTrack element)) => _Collections.some(this, f);
bool get isEmpty => this.length == 0;
// From List<TextTrack>:
void sort([Comparator<TextTrack> compare = Comparable.compare]) {
throw new UnsupportedError("Cannot sort immutable List.");
}
int indexOf(TextTrack element, [int start = 0]) =>
_Lists.indexOf(this, element, start, this.length);
int lastIndexOf(TextTrack element, [int start]) {
if (start == null) start = length - 1;
return _Lists.lastIndexOf(this, element, start);
}
TextTrack get last => this[length - 1];
TextTrack removeLast() {
throw new UnsupportedError("Cannot removeLast on immutable List.");
}
void setRange(int start, int rangeLength, List<TextTrack> from, [int startFrom]) {
throw new UnsupportedError("Cannot setRange on immutable List.");
}
void removeRange(int start, int rangeLength) {
throw new UnsupportedError("Cannot removeRange on immutable List.");
}
void insertRange(int start, int rangeLength, [TextTrack initialValue]) {
throw new UnsupportedError("Cannot insertRange on immutable List.");
}
List<TextTrack> getRange(int start, int rangeLength) =>
_Lists.getRange(this, start, rangeLength, <TextTrack>[]);
// -- end List<TextTrack> mixins.
void $dom_addEventListener(String type, EventListener listener, [bool useCapture]) native "TextTrackList_addEventListener_Callback";
bool $dom_dispatchEvent(Event evt) native "TextTrackList_dispatchEvent_Callback";
TextTrack item(int index) native "TextTrackList_item_Callback";
void $dom_removeEventListener(String type, EventListener listener, [bool useCapture]) native "TextTrackList_removeEventListener_Callback";
}
class _TextTrackListEventsImpl extends _EventsImpl implements TextTrackListEvents {
_TextTrackListEventsImpl(_ptr) : super(_ptr);
EventListenerList get addTrack => this['addtrack'];
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName TimeRanges
abstract class TimeRanges {
/** @domName TimeRanges.length */
int get length;
/** @domName TimeRanges.end */
num end(int index);
/** @domName TimeRanges.start */
num start(int index);
}
// 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.
// WARNING: Do not edit - generated code.
class _TimeRangesImpl extends NativeFieldWrapperClass1 implements TimeRanges {
int get length native "TimeRanges_length_Getter";
num end(int index) native "TimeRanges_end_Callback";
num start(int index) native "TimeRanges_start_Callback";
}
// 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.
// WARNING: Do not edit - generated code.
typedef void TimeoutHandler();
// 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.
// WARNING: Do not edit - generated code.
/// @domName HTMLTitleElement
abstract class TitleElement implements Element {
factory TitleElement() => _Elements.createTitleElement();
}
// 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.
// WARNING: Do not edit - generated code.
class _TitleElementImpl extends _ElementImpl_Merged implements TitleElement {
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName Touch
abstract class Touch {
/** @domName Touch.clientX */
int get clientX;
/** @domName Touch.clientY */
int get clientY;
/** @domName Touch.identifier */
int get identifier;
/** @domName Touch.pageX */
int get pageX;
/** @domName Touch.pageY */
int get pageY;
/** @domName Touch.screenX */
int get screenX;
/** @domName Touch.screenY */
int get screenY;
/** @domName Touch.target */
EventTarget get target;
/** @domName Touch.webkitForce */
num get webkitForce;
/** @domName Touch.webkitRadiusX */
int get webkitRadiusX;
/** @domName Touch.webkitRadiusY */
int get webkitRadiusY;
/** @domName Touch.webkitRotationAngle */
num get webkitRotationAngle;
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName TouchEvent
abstract class TouchEvent implements UIEvent {
/** @domName TouchEvent.altKey */
bool get altKey;
/** @domName TouchEvent.changedTouches */
TouchList get changedTouches;
/** @domName TouchEvent.ctrlKey */
bool get ctrlKey;
/** @domName TouchEvent.metaKey */
bool get metaKey;
/** @domName TouchEvent.shiftKey */
bool get shiftKey;
/** @domName TouchEvent.targetTouches */
TouchList get targetTouches;
/** @domName TouchEvent.touches */
TouchList get touches;
/** @domName TouchEvent.initTouchEvent */
void initTouchEvent(TouchList touches, TouchList targetTouches, TouchList changedTouches, String type, LocalWindow view, int screenX, int screenY, int clientX, int clientY, bool ctrlKey, bool altKey, bool shiftKey, bool metaKey);
}
// 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.
// WARNING: Do not edit - generated code.
class _TouchEventImpl extends _UIEventImpl implements TouchEvent {
bool get altKey native "TouchEvent_altKey_Getter";
TouchList get changedTouches native "TouchEvent_changedTouches_Getter";
bool get ctrlKey native "TouchEvent_ctrlKey_Getter";
bool get metaKey native "TouchEvent_metaKey_Getter";
bool get shiftKey native "TouchEvent_shiftKey_Getter";
TouchList get targetTouches native "TouchEvent_targetTouches_Getter";
TouchList get touches native "TouchEvent_touches_Getter";
void initTouchEvent(TouchList touches, TouchList targetTouches, TouchList changedTouches, String type, LocalWindow view, int screenX, int screenY, int clientX, int clientY, bool ctrlKey, bool altKey, bool shiftKey, bool metaKey) native "TouchEvent_initTouchEvent_Callback";
}
// 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.
// WARNING: Do not edit - generated code.
class _TouchImpl extends NativeFieldWrapperClass1 implements Touch {
int get clientX native "Touch_clientX_Getter";
int get clientY native "Touch_clientY_Getter";
int get identifier native "Touch_identifier_Getter";
int get pageX native "Touch_pageX_Getter";
int get pageY native "Touch_pageY_Getter";
int get screenX native "Touch_screenX_Getter";
int get screenY native "Touch_screenY_Getter";
EventTarget get target native "Touch_target_Getter";
num get webkitForce native "Touch_webkitForce_Getter";
int get webkitRadiusX native "Touch_webkitRadiusX_Getter";
int get webkitRadiusY native "Touch_webkitRadiusY_Getter";
num get webkitRotationAngle native "Touch_webkitRotationAngle_Getter";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName TouchList
abstract class TouchList implements List<Touch> {
/** @domName TouchList.length */
int get length;
/** @domName TouchList.item */
Touch item(int index);
}
// 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.
// WARNING: Do not edit - generated code.
class _TouchListImpl extends NativeFieldWrapperClass1 implements TouchList {
int get length native "TouchList_length_Getter";
Touch operator[](int index) native "TouchList_item_Callback";
void operator[]=(int index, Touch value) {
throw new UnsupportedError("Cannot assign element of immutable List.");
}
// -- start List<Touch> mixins.
// Touch is the element type.
// From Iterable<Touch>:
Iterator<Touch> 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<Touch>(this);
}
// From Collection<Touch>:
void add(Touch value) {
throw new UnsupportedError("Cannot add to immutable List.");
}
void addLast(Touch value) {
throw new UnsupportedError("Cannot add to immutable List.");
}
void addAll(Collection<Touch> collection) {
throw new UnsupportedError("Cannot add to immutable List.");
}
bool contains(Touch element) => _Collections.contains(this, element);
void forEach(void f(Touch element)) => _Collections.forEach(this, f);
Collection map(f(Touch element)) => _Collections.map(this, [], f);
Collection<Touch> filter(bool f(Touch element)) =>
_Collections.filter(this, <Touch>[], f);
bool every(bool f(Touch element)) => _Collections.every(this, f);
bool some(bool f(Touch element)) => _Collections.some(this, f);
bool get isEmpty => this.length == 0;
// From List<Touch>:
void sort([Comparator<Touch> compare = Comparable.compare]) {
throw new UnsupportedError("Cannot sort immutable List.");
}
int indexOf(Touch element, [int start = 0]) =>
_Lists.indexOf(this, element, start, this.length);
int lastIndexOf(Touch element, [int start]) {
if (start == null) start = length - 1;
return _Lists.lastIndexOf(this, element, start);
}
Touch get last => this[length - 1];
Touch removeLast() {
throw new UnsupportedError("Cannot removeLast on immutable List.");
}
void setRange(int start, int rangeLength, List<Touch> from, [int startFrom]) {
throw new UnsupportedError("Cannot setRange on immutable List.");
}
void removeRange(int start, int rangeLength) {
throw new UnsupportedError("Cannot removeRange on immutable List.");
}
void insertRange(int start, int rangeLength, [Touch initialValue]) {
throw new UnsupportedError("Cannot insertRange on immutable List.");
}
List<Touch> getRange(int start, int rangeLength) =>
_Lists.getRange(this, start, rangeLength, <Touch>[]);
// -- end List<Touch> mixins.
Touch item(int index) native "TouchList_item_Callback";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName HTMLTrackElement
abstract class TrackElement implements Element {
factory TrackElement() => _Elements.createTrackElement();
static const int ERROR = 3;
static const int LOADED = 2;
static const int LOADING = 1;
static const int NONE = 0;
/** @domName HTMLTrackElement.defaultValue */
bool defaultValue;
/** @domName HTMLTrackElement.kind */
String kind;
/** @domName HTMLTrackElement.label */
String label;
/** @domName HTMLTrackElement.readyState */
int get readyState;
/** @domName HTMLTrackElement.src */
String src;
/** @domName HTMLTrackElement.srclang */
String srclang;
/** @domName HTMLTrackElement.track */
TextTrack get track;
}
// 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.
// WARNING: Do not edit - generated code.
class _TrackElementImpl extends _ElementImpl_Merged implements TrackElement {
bool get defaultValue native "HTMLTrackElement_default_Getter";
void set defaultValue(bool value) native "HTMLTrackElement_default_Setter";
String get kind native "HTMLTrackElement_kind_Getter";
void set kind(String value) native "HTMLTrackElement_kind_Setter";
String get label native "HTMLTrackElement_label_Getter";
void set label(String value) native "HTMLTrackElement_label_Setter";
int get readyState native "HTMLTrackElement_readyState_Getter";
String get src native "HTMLTrackElement_src_Getter";
void set src(String value) native "HTMLTrackElement_src_Setter";
String get srclang native "HTMLTrackElement_srclang_Getter";
void set srclang(String value) native "HTMLTrackElement_srclang_Setter";
TextTrack get track native "HTMLTrackElement_track_Getter";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName TrackEvent
abstract class TrackEvent implements Event {
/** @domName TrackEvent.track */
Object get track;
}
// 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.
// WARNING: Do not edit - generated code.
class _TrackEventImpl extends _EventImpl implements TrackEvent {
Object get track native "TrackEvent_track_Getter";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName WebKitTransitionEvent
abstract class TransitionEvent implements Event {
/** @domName WebKitTransitionEvent.elapsedTime */
num get elapsedTime;
/** @domName WebKitTransitionEvent.propertyName */
String get propertyName;
}
// 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.
// WARNING: Do not edit - generated code.
class _TransitionEventImpl extends _EventImpl implements TransitionEvent {
num get elapsedTime native "WebKitTransitionEvent_elapsedTime_Getter";
String get propertyName native "WebKitTransitionEvent_propertyName_Getter";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName TreeWalker
abstract class TreeWalker {
/** @domName TreeWalker.currentNode */
Node currentNode;
/** @domName TreeWalker.expandEntityReferences */
bool get expandEntityReferences;
/** @domName TreeWalker.filter */
NodeFilter get filter;
/** @domName TreeWalker.root */
Node get root;
/** @domName TreeWalker.whatToShow */
int get whatToShow;
/** @domName TreeWalker.firstChild */
Node firstChild();
/** @domName TreeWalker.lastChild */
Node lastChild();
/** @domName TreeWalker.nextNode */
Node nextNode();
/** @domName TreeWalker.nextSibling */
Node nextSibling();
/** @domName TreeWalker.parentNode */
Node parentNode();
/** @domName TreeWalker.previousNode */
Node previousNode();
/** @domName TreeWalker.previousSibling */
Node previousSibling();
}
// 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.
// WARNING: Do not edit - generated code.
class _TreeWalkerImpl extends NativeFieldWrapperClass1 implements TreeWalker {
Node get currentNode native "TreeWalker_currentNode_Getter";
void set currentNode(Node value) native "TreeWalker_currentNode_Setter";
bool get expandEntityReferences native "TreeWalker_expandEntityReferences_Getter";
NodeFilter get filter native "TreeWalker_filter_Getter";
Node get root native "TreeWalker_root_Getter";
int get whatToShow native "TreeWalker_whatToShow_Getter";
Node firstChild() native "TreeWalker_firstChild_Callback";
Node lastChild() native "TreeWalker_lastChild_Callback";
Node nextNode() native "TreeWalker_nextNode_Callback";
Node nextSibling() native "TreeWalker_nextSibling_Callback";
Node parentNode() native "TreeWalker_parentNode_Callback";
Node previousNode() native "TreeWalker_previousNode_Callback";
Node previousSibling() native "TreeWalker_previousSibling_Callback";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName UIEvent
abstract class UIEvent implements Event {
/** @domName UIEvent.charCode */
int get charCode;
/** @domName UIEvent.detail */
int get detail;
/** @domName UIEvent.keyCode */
int get keyCode;
/** @domName UIEvent.layerX */
int get layerX;
/** @domName UIEvent.layerY */
int get layerY;
/** @domName UIEvent.pageX */
int get pageX;
/** @domName UIEvent.pageY */
int get pageY;
/** @domName UIEvent.view */
Window get view;
/** @domName UIEvent.which */
int get which;
/** @domName UIEvent.initUIEvent */
void initUIEvent(String type, bool canBubble, bool cancelable, LocalWindow view, int detail);
}
// 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.
// WARNING: Do not edit - generated code.
class _UIEventImpl extends _EventImpl implements UIEvent {
int get charCode native "UIEvent_charCode_Getter";
int get detail native "UIEvent_detail_Getter";
int get keyCode native "UIEvent_keyCode_Getter";
int get layerX native "UIEvent_layerX_Getter";
int get layerY native "UIEvent_layerY_Getter";
int get pageX native "UIEvent_pageX_Getter";
int get pageY native "UIEvent_pageY_Getter";
Window get view native "UIEvent_view_Getter";
int get which native "UIEvent_which_Getter";
void initUIEvent(String type, bool canBubble, bool cancelable, LocalWindow view, int detail) native "UIEvent_initUIEvent_Callback";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName HTMLUListElement
abstract class UListElement implements Element {
factory UListElement() => _Elements.createUListElement();
/** @domName HTMLUListElement.compact */
bool compact;
/** @domName HTMLUListElement.type */
String type;
}
// 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.
// WARNING: Do not edit - generated code.
class _UListElementImpl extends _ElementImpl_Merged implements UListElement {
bool get compact native "HTMLUListElement_compact_Getter";
void set compact(bool value) native "HTMLUListElement_compact_Setter";
String get type native "HTMLUListElement_type_Getter";
void set type(String value) native "HTMLUListElement_type_Setter";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName Uint16Array
abstract class Uint16Array implements ArrayBufferView, List<int> {
factory Uint16Array(int length) =>
_TypedArrayFactoryProvider.createUint16Array(length);
factory Uint16Array.fromList(List<int> list) =>
_TypedArrayFactoryProvider.createUint16Array_fromList(list);
factory Uint16Array.fromBuffer(ArrayBuffer buffer, [int byteOffset, int length]) =>
_TypedArrayFactoryProvider.createUint16Array_fromBuffer(buffer, byteOffset, length);
static const int BYTES_PER_ELEMENT = 2;
/** @domName Uint16Array.length */
int get length;
/** @domName Uint16Array.setElements */
void setElements(Object array, [int offset]);
/** @domName Uint16Array.subarray */
Uint16Array subarray(int start, [int end]);
}
// 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.
// WARNING: Do not edit - generated code.
class _Uint16ArrayImpl extends _ArrayBufferViewImpl implements Uint16Array {
int get length native "Uint16Array_length_Getter";
int operator[](int index) native "Uint16Array_numericIndexGetter_Callback";
void operator[]=(int index, int value) native "Uint16Array_numericIndexSetter_Callback";
// -- start List<int> mixins.
// int is the element type.
// From Iterable<int>:
Iterator<int> 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<int>(this);
}
// From Collection<int>:
void add(int value) {
throw new UnsupportedError("Cannot add to immutable List.");
}
void addLast(int value) {
throw new UnsupportedError("Cannot add to immutable List.");
}
void addAll(Collection<int> collection) {
throw new UnsupportedError("Cannot add to immutable List.");
}
bool contains(int element) => _Collections.contains(this, element);
void forEach(void f(int element)) => _Collections.forEach(this, f);
Collection map(f(int element)) => _Collections.map(this, [], f);
Collection<int> filter(bool f(int element)) =>
_Collections.filter(this, <int>[], f);
bool every(bool f(int element)) => _Collections.every(this, f);
bool some(bool f(int element)) => _Collections.some(this, f);
bool get isEmpty => this.length == 0;
// From List<int>:
void sort([Comparator<int> compare = Comparable.compare]) {
throw new UnsupportedError("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 get last => this[length - 1];
int removeLast() {
throw new UnsupportedError("Cannot removeLast on immutable List.");
}
void setRange(int start, int rangeLength, List<int> from, [int startFrom]) {
throw new UnsupportedError("Cannot setRange on immutable List.");
}
void removeRange(int start, int rangeLength) {
throw new UnsupportedError("Cannot removeRange on immutable List.");
}
void insertRange(int start, int rangeLength, [int initialValue]) {
throw new UnsupportedError("Cannot insertRange on immutable List.");
}
List<int> getRange(int start, int rangeLength) =>
_Lists.getRange(this, start, rangeLength, <int>[]);
// -- end List<int> mixins.
void setElements(Object array, [int offset]) native "Uint16Array_setElements_Callback";
Uint16Array subarray(/*long*/ start, [/*long*/ end]) {
if (?end) {
return _subarray_1(start, end);
}
return _subarray_2(start);
}
Uint16Array _subarray_1(start, end) native "Uint16Array_subarray_1_Callback";
Uint16Array _subarray_2(start) native "Uint16Array_subarray_2_Callback";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName Uint32Array
abstract class Uint32Array implements ArrayBufferView, List<int> {
factory Uint32Array(int length) =>
_TypedArrayFactoryProvider.createUint32Array(length);
factory Uint32Array.fromList(List<int> list) =>
_TypedArrayFactoryProvider.createUint32Array_fromList(list);
factory Uint32Array.fromBuffer(ArrayBuffer buffer, [int byteOffset, int length]) =>
_TypedArrayFactoryProvider.createUint32Array_fromBuffer(buffer, byteOffset, length);
static const int BYTES_PER_ELEMENT = 4;
/** @domName Uint32Array.length */
int get length;
/** @domName Uint32Array.setElements */
void setElements(Object array, [int offset]);
/** @domName Uint32Array.subarray */
Uint32Array subarray(int start, [int end]);
}
// 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.
// WARNING: Do not edit - generated code.
class _Uint32ArrayImpl extends _ArrayBufferViewImpl implements Uint32Array {
int get length native "Uint32Array_length_Getter";
int operator[](int index) native "Uint32Array_numericIndexGetter_Callback";
void operator[]=(int index, int value) native "Uint32Array_numericIndexSetter_Callback";
// -- start List<int> mixins.
// int is the element type.
// From Iterable<int>:
Iterator<int> 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<int>(this);
}
// From Collection<int>:
void add(int value) {
throw new UnsupportedError("Cannot add to immutable List.");
}
void addLast(int value) {
throw new UnsupportedError("Cannot add to immutable List.");
}
void addAll(Collection<int> collection) {
throw new UnsupportedError("Cannot add to immutable List.");
}
bool contains(int element) => _Collections.contains(this, element);
void forEach(void f(int element)) => _Collections.forEach(this, f);
Collection map(f(int element)) => _Collections.map(this, [], f);
Collection<int> filter(bool f(int element)) =>
_Collections.filter(this, <int>[], f);
bool every(bool f(int element)) => _Collections.every(this, f);
bool some(bool f(int element)) => _Collections.some(this, f);
bool get isEmpty => this.length == 0;
// From List<int>:
void sort([Comparator<int> compare = Comparable.compare]) {
throw new UnsupportedError("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 get last => this[length - 1];
int removeLast() {
throw new UnsupportedError("Cannot removeLast on immutable List.");
}
void setRange(int start, int rangeLength, List<int> from, [int startFrom]) {
throw new UnsupportedError("Cannot setRange on immutable List.");
}
void removeRange(int start, int rangeLength) {
throw new UnsupportedError("Cannot removeRange on immutable List.");
}
void insertRange(int start, int rangeLength, [int initialValue]) {
throw new UnsupportedError("Cannot insertRange on immutable List.");
}
List<int> getRange(int start, int rangeLength) =>
_Lists.getRange(this, start, rangeLength, <int>[]);
// -- end List<int> mixins.
void setElements(Object array, [int offset]) native "Uint32Array_setElements_Callback";
Uint32Array subarray(/*long*/ start, [/*long*/ end]) {
if (?end) {
return _subarray_1(start, end);
}
return _subarray_2(start);
}
Uint32Array _subarray_1(start, end) native "Uint32Array_subarray_1_Callback";
Uint32Array _subarray_2(start) native "Uint32Array_subarray_2_Callback";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName Uint8Array
abstract class Uint8Array implements ArrayBufferView, List<int> {
factory Uint8Array(int length) =>
_TypedArrayFactoryProvider.createUint8Array(length);
factory Uint8Array.fromList(List<int> list) =>
_TypedArrayFactoryProvider.createUint8Array_fromList(list);
factory Uint8Array.fromBuffer(ArrayBuffer buffer, [int byteOffset, int length]) =>
_TypedArrayFactoryProvider.createUint8Array_fromBuffer(buffer, byteOffset, length);
static const int BYTES_PER_ELEMENT = 1;
/** @domName Uint8Array.length */
int get length;
/** @domName Uint8Array.setElements */
void setElements(Object array, [int offset]);
/** @domName Uint8Array.subarray */
Uint8Array subarray(int start, [int end]);
}
// 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.
// WARNING: Do not edit - generated code.
class _Uint8ArrayImpl extends _ArrayBufferViewImpl implements Uint8Array {
int get length native "Uint8Array_length_Getter";
int operator[](int index) native "Uint8Array_numericIndexGetter_Callback";
void operator[]=(int index, int value) native "Uint8Array_numericIndexSetter_Callback";
// -- start List<int> mixins.
// int is the element type.
// From Iterable<int>:
Iterator<int> 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<int>(this);
}
// From Collection<int>:
void add(int value) {
throw new UnsupportedError("Cannot add to immutable List.");
}
void addLast(int value) {
throw new UnsupportedError("Cannot add to immutable List.");
}
void addAll(Collection<int> collection) {
throw new UnsupportedError("Cannot add to immutable List.");
}
bool contains(int element) => _Collections.contains(this, element);
void forEach(void f(int element)) => _Collections.forEach(this, f);
Collection map(f(int element)) => _Collections.map(this, [], f);
Collection<int> filter(bool f(int element)) =>
_Collections.filter(this, <int>[], f);
bool every(bool f(int element)) => _Collections.every(this, f);
bool some(bool f(int element)) => _Collections.some(this, f);
bool get isEmpty => this.length == 0;
// From List<int>:
void sort([Comparator<int> compare = Comparable.compare]) {
throw new UnsupportedError("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 get last => this[length - 1];
int removeLast() {
throw new UnsupportedError("Cannot removeLast on immutable List.");
}
void setRange(int start, int rangeLength, List<int> from, [int startFrom]) {
throw new UnsupportedError("Cannot setRange on immutable List.");
}
void removeRange(int start, int rangeLength) {
throw new UnsupportedError("Cannot removeRange on immutable List.");
}
void insertRange(int start, int rangeLength, [int initialValue]) {
throw new UnsupportedError("Cannot insertRange on immutable List.");
}
List<int> getRange(int start, int rangeLength) =>
_Lists.getRange(this, start, rangeLength, <int>[]);
// -- end List<int> mixins.
void setElements(Object array, [int offset]) native "Uint8Array_setElements_Callback";
Uint8Array subarray(/*long*/ start, [/*long*/ end]) {
if (?end) {
return _subarray_1(start, end);
}
return _subarray_2(start);
}
Uint8Array _subarray_1(start, end) native "Uint8Array_subarray_1_Callback";
Uint8Array _subarray_2(start) native "Uint8Array_subarray_2_Callback";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName Uint8ClampedArray
abstract class Uint8ClampedArray implements Uint8Array {
factory Uint8ClampedArray(int length) =>
_TypedArrayFactoryProvider.createUint8ClampedArray(length);
factory Uint8ClampedArray.fromList(List<int> list) =>
_TypedArrayFactoryProvider.createUint8ClampedArray_fromList(list);
factory Uint8ClampedArray.fromBuffer(ArrayBuffer buffer, [int byteOffset, int length]) =>
_TypedArrayFactoryProvider.createUint8ClampedArray_fromBuffer(buffer, byteOffset, length);
/** @domName Uint8ClampedArray.length */
int get length;
/** @domName Uint8ClampedArray.setElements */
void setElements(Object array, [int offset]);
/** @domName Uint8ClampedArray.subarray */
Uint8ClampedArray subarray(int start, [int end]);
}
// 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.
// WARNING: Do not edit - generated code.
class _Uint8ClampedArrayImpl extends _Uint8ArrayImpl implements Uint8ClampedArray {
int get length native "Uint8ClampedArray_length_Getter";
int operator[](int index) native "Uint8ClampedArray_numericIndexGetter_Callback";
void operator[]=(int index, int value) native "Uint8ClampedArray_numericIndexSetter_Callback";
void setElements(Object array, [int offset]) native "Uint8ClampedArray_setElements_Callback";
Uint8ClampedArray subarray(/*long*/ start, [/*long*/ end]) {
if (?end) {
return _subarray_1(start, end);
}
return _subarray_2(start);
}
Uint8ClampedArray _subarray_1(start, end) native "Uint8ClampedArray_subarray_1_Callback";
Uint8ClampedArray _subarray_2(start) native "Uint8ClampedArray_subarray_2_Callback";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName HTMLUnknownElement
abstract class UnknownElement implements Element {
}
// 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.
// WARNING: Do not edit - generated code.
class _UnknownElementImpl extends _ElementImpl_Merged implements UnknownElement {
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName ValidityState
abstract class ValidityState {
/** @domName ValidityState.customError */
bool get customError;
/** @domName ValidityState.patternMismatch */
bool get patternMismatch;
/** @domName ValidityState.rangeOverflow */
bool get rangeOverflow;
/** @domName ValidityState.rangeUnderflow */
bool get rangeUnderflow;
/** @domName ValidityState.stepMismatch */
bool get stepMismatch;
/** @domName ValidityState.tooLong */
bool get tooLong;
/** @domName ValidityState.typeMismatch */
bool get typeMismatch;
/** @domName ValidityState.valid */
bool get valid;
/** @domName ValidityState.valueMissing */
bool get valueMissing;
}
// 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.
// WARNING: Do not edit - generated code.
class _ValidityStateImpl extends NativeFieldWrapperClass1 implements ValidityState {
bool get customError native "ValidityState_customError_Getter";
bool get patternMismatch native "ValidityState_patternMismatch_Getter";
bool get rangeOverflow native "ValidityState_rangeOverflow_Getter";
bool get rangeUnderflow native "ValidityState_rangeUnderflow_Getter";
bool get stepMismatch native "ValidityState_stepMismatch_Getter";
bool get tooLong native "ValidityState_tooLong_Getter";
bool get typeMismatch native "ValidityState_typeMismatch_Getter";
bool get valid native "ValidityState_valid_Getter";
bool get valueMissing native "ValidityState_valueMissing_Getter";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName HTMLVideoElement
abstract class VideoElement implements MediaElement {
factory VideoElement() => _Elements.createVideoElement();
/** @domName HTMLVideoElement.height */
int height;
/** @domName HTMLVideoElement.poster */
String poster;
/** @domName HTMLVideoElement.videoHeight */
int get videoHeight;
/** @domName HTMLVideoElement.videoWidth */
int get videoWidth;
/** @domName HTMLVideoElement.webkitDecodedFrameCount */
int get webkitDecodedFrameCount;
/** @domName HTMLVideoElement.webkitDisplayingFullscreen */
bool get webkitDisplayingFullscreen;
/** @domName HTMLVideoElement.webkitDroppedFrameCount */
int get webkitDroppedFrameCount;
/** @domName HTMLVideoElement.webkitSupportsFullscreen */
bool get webkitSupportsFullscreen;
/** @domName HTMLVideoElement.width */
int width;
/** @domName HTMLVideoElement.webkitEnterFullScreen */
void webkitEnterFullScreen();
/** @domName HTMLVideoElement.webkitEnterFullscreen */
void webkitEnterFullscreen();
/** @domName HTMLVideoElement.webkitExitFullScreen */
void webkitExitFullScreen();
/** @domName HTMLVideoElement.webkitExitFullscreen */
void webkitExitFullscreen();
}
// 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.
// WARNING: Do not edit - generated code.
class _VideoElementImpl extends _MediaElementImpl implements VideoElement {
int get height native "HTMLVideoElement_height_Getter";
void set height(int value) native "HTMLVideoElement_height_Setter";
String get poster native "HTMLVideoElement_poster_Getter";
void set poster(String value) native "HTMLVideoElement_poster_Setter";
int get videoHeight native "HTMLVideoElement_videoHeight_Getter";
int get videoWidth native "HTMLVideoElement_videoWidth_Getter";
int get webkitDecodedFrameCount native "HTMLVideoElement_webkitDecodedFrameCount_Getter";
bool get webkitDisplayingFullscreen native "HTMLVideoElement_webkitDisplayingFullscreen_Getter";
int get webkitDroppedFrameCount native "HTMLVideoElement_webkitDroppedFrameCount_Getter";
bool get webkitSupportsFullscreen native "HTMLVideoElement_webkitSupportsFullscreen_Getter";
int get width native "HTMLVideoElement_width_Getter";
void set width(int value) native "HTMLVideoElement_width_Setter";
void webkitEnterFullScreen() native "HTMLVideoElement_webkitEnterFullScreen_Callback";
void webkitEnterFullscreen() native "HTMLVideoElement_webkitEnterFullscreen_Callback";
void webkitExitFullScreen() native "HTMLVideoElement_webkitExitFullScreen_Callback";
void webkitExitFullscreen() native "HTMLVideoElement_webkitExitFullscreen_Callback";
}
// 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.
// WARNING: Do not edit - generated code.
typedef void VoidCallback();
// 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.
// WARNING: Do not edit - generated code.
/// @domName WaveShaperNode
abstract class WaveShaperNode implements AudioNode {
/** @domName WaveShaperNode.curve */
Float32Array curve;
}
// 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.
// WARNING: Do not edit - generated code.
class _WaveShaperNodeImpl extends _AudioNodeImpl implements WaveShaperNode {
Float32Array get curve native "WaveShaperNode_curve_Getter";
void set curve(Float32Array value) native "WaveShaperNode_curve_Setter";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName WaveTable
abstract class WaveTable {
}
// 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.
// WARNING: Do not edit - generated code.
class _WaveTableImpl extends NativeFieldWrapperClass1 implements WaveTable {
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName WebGLActiveInfo
abstract class WebGLActiveInfo {
/** @domName WebGLActiveInfo.name */
String get name;
/** @domName WebGLActiveInfo.size */
int get size;
/** @domName WebGLActiveInfo.type */
int get type;
}
// 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.
// WARNING: Do not edit - generated code.
class _WebGLActiveInfoImpl extends NativeFieldWrapperClass1 implements WebGLActiveInfo {
String get name native "WebGLActiveInfo_name_Getter";
int get size native "WebGLActiveInfo_size_Getter";
int get type native "WebGLActiveInfo_type_Getter";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName WebGLBuffer
abstract class WebGLBuffer {
}
// 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.
// WARNING: Do not edit - generated code.
class _WebGLBufferImpl extends NativeFieldWrapperClass1 implements WebGLBuffer {
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName WebGLCompressedTextureS3TC
abstract class WebGLCompressedTextureS3TC {
static const int COMPRESSED_RGBA_S3TC_DXT1_EXT = 0x83F1;
static const int COMPRESSED_RGBA_S3TC_DXT3_EXT = 0x83F2;
static const int COMPRESSED_RGBA_S3TC_DXT5_EXT = 0x83F3;
static const int COMPRESSED_RGB_S3TC_DXT1_EXT = 0x83F0;
}
// 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.
// WARNING: Do not edit - generated code.
class _WebGLCompressedTextureS3TCImpl extends NativeFieldWrapperClass1 implements WebGLCompressedTextureS3TC {
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName WebGLContextAttributes
abstract class WebGLContextAttributes {
/** @domName WebGLContextAttributes.alpha */
bool alpha;
/** @domName WebGLContextAttributes.antialias */
bool antialias;
/** @domName WebGLContextAttributes.depth */
bool depth;
/** @domName WebGLContextAttributes.premultipliedAlpha */
bool premultipliedAlpha;
/** @domName WebGLContextAttributes.preserveDrawingBuffer */
bool preserveDrawingBuffer;
/** @domName WebGLContextAttributes.stencil */
bool stencil;
}
// 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.
// WARNING: Do not edit - generated code.
class _WebGLContextAttributesImpl extends NativeFieldWrapperClass1 implements WebGLContextAttributes {
bool get alpha native "WebGLContextAttributes_alpha_Getter";
void set alpha(bool value) native "WebGLContextAttributes_alpha_Setter";
bool get antialias native "WebGLContextAttributes_antialias_Getter";
void set antialias(bool value) native "WebGLContextAttributes_antialias_Setter";
bool get depth native "WebGLContextAttributes_depth_Getter";
void set depth(bool value) native "WebGLContextAttributes_depth_Setter";
bool get premultipliedAlpha native "WebGLContextAttributes_premultipliedAlpha_Getter";
void set premultipliedAlpha(bool value) native "WebGLContextAttributes_premultipliedAlpha_Setter";
bool get preserveDrawingBuffer native "WebGLContextAttributes_preserveDrawingBuffer_Getter";
void set preserveDrawingBuffer(bool value) native "WebGLContextAttributes_preserveDrawingBuffer_Setter";
bool get stencil native "WebGLContextAttributes_stencil_Getter";
void set stencil(bool value) native "WebGLContextAttributes_stencil_Setter";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName WebGLContextEvent
abstract class WebGLContextEvent implements Event {
/** @domName WebGLContextEvent.statusMessage */
String get statusMessage;
}
// 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.
// WARNING: Do not edit - generated code.
class _WebGLContextEventImpl extends _EventImpl implements WebGLContextEvent {
String get statusMessage native "WebGLContextEvent_statusMessage_Getter";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName WebGLDebugRendererInfo
abstract class WebGLDebugRendererInfo {
static const int UNMASKED_RENDERER_WEBGL = 0x9246;
static const int UNMASKED_VENDOR_WEBGL = 0x9245;
}
// 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.
// WARNING: Do not edit - generated code.
class _WebGLDebugRendererInfoImpl extends NativeFieldWrapperClass1 implements WebGLDebugRendererInfo {
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName WebGLDebugShaders
abstract class WebGLDebugShaders {
/** @domName WebGLDebugShaders.getTranslatedShaderSource */
String getTranslatedShaderSource(WebGLShader shader);
}
// 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.
// WARNING: Do not edit - generated code.
class _WebGLDebugShadersImpl extends NativeFieldWrapperClass1 implements WebGLDebugShaders {
String getTranslatedShaderSource(WebGLShader shader) native "WebGLDebugShaders_getTranslatedShaderSource_Callback";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName WebGLDepthTexture
abstract class WebGLDepthTexture {
static const int UNSIGNED_INT_24_8_WEBGL = 0x84FA;
}
// 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.
// WARNING: Do not edit - generated code.
class _WebGLDepthTextureImpl extends NativeFieldWrapperClass1 implements WebGLDepthTexture {
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName WebGLFramebuffer
abstract class WebGLFramebuffer {
}
// 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.
// WARNING: Do not edit - generated code.
class _WebGLFramebufferImpl extends NativeFieldWrapperClass1 implements WebGLFramebuffer {
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName WebGLLoseContext
abstract class WebGLLoseContext {
/** @domName WebGLLoseContext.loseContext */
void loseContext();
/** @domName WebGLLoseContext.restoreContext */
void restoreContext();
}
// 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.
// WARNING: Do not edit - generated code.
class _WebGLLoseContextImpl extends NativeFieldWrapperClass1 implements WebGLLoseContext {
void loseContext() native "WebGLLoseContext_loseContext_Callback";
void restoreContext() native "WebGLLoseContext_restoreContext_Callback";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName WebGLProgram
abstract class WebGLProgram {
}
// 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.
// WARNING: Do not edit - generated code.
class _WebGLProgramImpl extends NativeFieldWrapperClass1 implements WebGLProgram {
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName WebGLRenderbuffer
abstract class WebGLRenderbuffer {
}
// 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.
// WARNING: Do not edit - generated code.
class _WebGLRenderbufferImpl extends NativeFieldWrapperClass1 implements WebGLRenderbuffer {
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName WebGLRenderingContext
abstract class WebGLRenderingContext implements CanvasRenderingContext {
static const int ACTIVE_ATTRIBUTES = 0x8B89;
static const int ACTIVE_TEXTURE = 0x84E0;
static const int ACTIVE_UNIFORMS = 0x8B86;
static const int ALIASED_LINE_WIDTH_RANGE = 0x846E;
static const int ALIASED_POINT_SIZE_RANGE = 0x846D;
static const int ALPHA = 0x1906;
static const int ALPHA_BITS = 0x0D55;
static const int ALWAYS = 0x0207;
static const int ARRAY_BUFFER = 0x8892;
static const int ARRAY_BUFFER_BINDING = 0x8894;
static const int ATTACHED_SHADERS = 0x8B85;
static const int BACK = 0x0405;
static const int BLEND = 0x0BE2;
static const int BLEND_COLOR = 0x8005;
static const int BLEND_DST_ALPHA = 0x80CA;
static const int BLEND_DST_RGB = 0x80C8;
static const int BLEND_EQUATION = 0x8009;
static const int BLEND_EQUATION_ALPHA = 0x883D;
static const int BLEND_EQUATION_RGB = 0x8009;
static const int BLEND_SRC_ALPHA = 0x80CB;
static const int BLEND_SRC_RGB = 0x80C9;
static const int BLUE_BITS = 0x0D54;
static const int BOOL = 0x8B56;
static const int BOOL_VEC2 = 0x8B57;
static const int BOOL_VEC3 = 0x8B58;
static const int BOOL_VEC4 = 0x8B59;
static const int BROWSER_DEFAULT_WEBGL = 0x9244;
static const int BUFFER_SIZE = 0x8764;
static const int BUFFER_USAGE = 0x8765;
static const int BYTE = 0x1400;
static const int CCW = 0x0901;
static const int CLAMP_TO_EDGE = 0x812F;
static const int COLOR_ATTACHMENT0 = 0x8CE0;
static const int COLOR_BUFFER_BIT = 0x00004000;
static const int COLOR_CLEAR_VALUE = 0x0C22;
static const int COLOR_WRITEMASK = 0x0C23;
static const int COMPILE_STATUS = 0x8B81;
static const int COMPRESSED_TEXTURE_FORMATS = 0x86A3;
static const int CONSTANT_ALPHA = 0x8003;
static const int CONSTANT_COLOR = 0x8001;
static const int CONTEXT_LOST_WEBGL = 0x9242;
static const int CULL_FACE = 0x0B44;
static const int CULL_FACE_MODE = 0x0B45;
static const int CURRENT_PROGRAM = 0x8B8D;
static const int CURRENT_VERTEX_ATTRIB = 0x8626;
static const int CW = 0x0900;
static const int DECR = 0x1E03;
static const int DECR_WRAP = 0x8508;
static const int DELETE_STATUS = 0x8B80;
static const int DEPTH_ATTACHMENT = 0x8D00;
static const int DEPTH_BITS = 0x0D56;
static const int DEPTH_BUFFER_BIT = 0x00000100;
static const int DEPTH_CLEAR_VALUE = 0x0B73;
static const int DEPTH_COMPONENT = 0x1902;
static const int DEPTH_COMPONENT16 = 0x81A5;
static const int DEPTH_FUNC = 0x0B74;
static const int DEPTH_RANGE = 0x0B70;
static const int DEPTH_STENCIL = 0x84F9;
static const int DEPTH_STENCIL_ATTACHMENT = 0x821A;
static const int DEPTH_TEST = 0x0B71;
static const int DEPTH_WRITEMASK = 0x0B72;
static const int DITHER = 0x0BD0;
static const int DONT_CARE = 0x1100;
static const int DST_ALPHA = 0x0304;
static const int DST_COLOR = 0x0306;
static const int DYNAMIC_DRAW = 0x88E8;
static const int ELEMENT_ARRAY_BUFFER = 0x8893;
static const int ELEMENT_ARRAY_BUFFER_BINDING = 0x8895;
static const int EQUAL = 0x0202;
static const int FASTEST = 0x1101;
static const int FLOAT = 0x1406;
static const int FLOAT_MAT2 = 0x8B5A;
static const int FLOAT_MAT3 = 0x8B5B;
static const int FLOAT_MAT4 = 0x8B5C;
static const int FLOAT_VEC2 = 0x8B50;
static const int FLOAT_VEC3 = 0x8B51;
static const int FLOAT_VEC4 = 0x8B52;
static const int FRAGMENT_SHADER = 0x8B30;
static const int FRAMEBUFFER = 0x8D40;
static const int FRAMEBUFFER_ATTACHMENT_OBJECT_NAME = 0x8CD1;
static const int FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE = 0x8CD0;
static const int FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE = 0x8CD3;
static const int FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL = 0x8CD2;
static const int FRAMEBUFFER_BINDING = 0x8CA6;
static const int FRAMEBUFFER_COMPLETE = 0x8CD5;
static const int FRAMEBUFFER_INCOMPLETE_ATTACHMENT = 0x8CD6;
static const int FRAMEBUFFER_INCOMPLETE_DIMENSIONS = 0x8CD9;
static const int FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT = 0x8CD7;
static const int FRAMEBUFFER_UNSUPPORTED = 0x8CDD;
static const int FRONT = 0x0404;
static const int FRONT_AND_BACK = 0x0408;
static const int FRONT_FACE = 0x0B46;
static const int FUNC_ADD = 0x8006;
static const int FUNC_REVERSE_SUBTRACT = 0x800B;
static const int FUNC_SUBTRACT = 0x800A;
static const int GENERATE_MIPMAP_HINT = 0x8192;
static const int GEQUAL = 0x0206;
static const int GREATER = 0x0204;
static const int GREEN_BITS = 0x0D53;
static const int HIGH_FLOAT = 0x8DF2;
static const int HIGH_INT = 0x8DF5;
static const int INCR = 0x1E02;
static const int INCR_WRAP = 0x8507;
static const int INT = 0x1404;
static const int INT_VEC2 = 0x8B53;
static const int INT_VEC3 = 0x8B54;
static const int INT_VEC4 = 0x8B55;
static const int INVALID_ENUM = 0x0500;
static const int INVALID_FRAMEBUFFER_OPERATION = 0x0506;
static const int INVALID_OPERATION = 0x0502;
static const int INVALID_VALUE = 0x0501;
static const int INVERT = 0x150A;
static const int KEEP = 0x1E00;
static const int LEQUAL = 0x0203;
static const int LESS = 0x0201;
static const int LINEAR = 0x2601;
static const int LINEAR_MIPMAP_LINEAR = 0x2703;
static const int LINEAR_MIPMAP_NEAREST = 0x2701;
static const int LINES = 0x0001;
static const int LINE_LOOP = 0x0002;
static const int LINE_STRIP = 0x0003;
static const int LINE_WIDTH = 0x0B21;
static const int LINK_STATUS = 0x8B82;
static const int LOW_FLOAT = 0x8DF0;
static const int LOW_INT = 0x8DF3;
static const int LUMINANCE = 0x1909;
static const int LUMINANCE_ALPHA = 0x190A;
static const int MAX_COMBINED_TEXTURE_IMAGE_UNITS = 0x8B4D;
static const int MAX_CUBE_MAP_TEXTURE_SIZE = 0x851C;
static const int MAX_FRAGMENT_UNIFORM_VECTORS = 0x8DFD;
static const int MAX_RENDERBUFFER_SIZE = 0x84E8;
static const int MAX_TEXTURE_IMAGE_UNITS = 0x8872;
static const int MAX_TEXTURE_SIZE = 0x0D33;
static const int MAX_VARYING_VECTORS = 0x8DFC;
static const int MAX_VERTEX_ATTRIBS = 0x8869;
static const int MAX_VERTEX_TEXTURE_IMAGE_UNITS = 0x8B4C;
static const int MAX_VERTEX_UNIFORM_VECTORS = 0x8DFB;
static const int MAX_VIEWPORT_DIMS = 0x0D3A;
static const int MEDIUM_FLOAT = 0x8DF1;
static const int MEDIUM_INT = 0x8DF4;
static const int MIRRORED_REPEAT = 0x8370;
static const int NEAREST = 0x2600;
static const int NEAREST_MIPMAP_LINEAR = 0x2702;
static const int NEAREST_MIPMAP_NEAREST = 0x2700;
static const int NEVER = 0x0200;
static const int NICEST = 0x1102;
static const int NONE = 0;
static const int NOTEQUAL = 0x0205;
static const int NO_ERROR = 0;
static const int ONE = 1;
static const int ONE_MINUS_CONSTANT_ALPHA = 0x8004;
static const int ONE_MINUS_CONSTANT_COLOR = 0x8002;
static const int ONE_MINUS_DST_ALPHA = 0x0305;
static const int ONE_MINUS_DST_COLOR = 0x0307;
static const int ONE_MINUS_SRC_ALPHA = 0x0303;
static const int ONE_MINUS_SRC_COLOR = 0x0301;
static const int OUT_OF_MEMORY = 0x0505;
static const int PACK_ALIGNMENT = 0x0D05;
static const int POINTS = 0x0000;
static const int POLYGON_OFFSET_FACTOR = 0x8038;
static const int POLYGON_OFFSET_FILL = 0x8037;
static const int POLYGON_OFFSET_UNITS = 0x2A00;
static const int RED_BITS = 0x0D52;
static const int RENDERBUFFER = 0x8D41;
static const int RENDERBUFFER_ALPHA_SIZE = 0x8D53;
static const int RENDERBUFFER_BINDING = 0x8CA7;
static const int RENDERBUFFER_BLUE_SIZE = 0x8D52;
static const int RENDERBUFFER_DEPTH_SIZE = 0x8D54;
static const int RENDERBUFFER_GREEN_SIZE = 0x8D51;
static const int RENDERBUFFER_HEIGHT = 0x8D43;
static const int RENDERBUFFER_INTERNAL_FORMAT = 0x8D44;
static const int RENDERBUFFER_RED_SIZE = 0x8D50;
static const int RENDERBUFFER_STENCIL_SIZE = 0x8D55;
static const int RENDERBUFFER_WIDTH = 0x8D42;
static const int RENDERER = 0x1F01;
static const int REPEAT = 0x2901;
static const int REPLACE = 0x1E01;
static const int RGB = 0x1907;
static const int RGB565 = 0x8D62;
static const int RGB5_A1 = 0x8057;
static const int RGBA = 0x1908;
static const int RGBA4 = 0x8056;
static const int SAMPLER_2D = 0x8B5E;
static const int SAMPLER_CUBE = 0x8B60;
static const int SAMPLES = 0x80A9;
static const int SAMPLE_ALPHA_TO_COVERAGE = 0x809E;
static const int SAMPLE_BUFFERS = 0x80A8;
static const int SAMPLE_COVERAGE = 0x80A0;
static const int SAMPLE_COVERAGE_INVERT = 0x80AB;
static const int SAMPLE_COVERAGE_VALUE = 0x80AA;
static const int SCISSOR_BOX = 0x0C10;
static const int SCISSOR_TEST = 0x0C11;
static const int SHADER_TYPE = 0x8B4F;
static const int SHADING_LANGUAGE_VERSION = 0x8B8C;
static const int SHORT = 0x1402;
static const int SRC_ALPHA = 0x0302;
static const int SRC_ALPHA_SATURATE = 0x0308;
static const int SRC_COLOR = 0x0300;
static const int STATIC_DRAW = 0x88E4;
static const int STENCIL_ATTACHMENT = 0x8D20;
static const int STENCIL_BACK_FAIL = 0x8801;
static const int STENCIL_BACK_FUNC = 0x8800;
static const int STENCIL_BACK_PASS_DEPTH_FAIL = 0x8802;
static const int STENCIL_BACK_PASS_DEPTH_PASS = 0x8803;
static const int STENCIL_BACK_REF = 0x8CA3;
static const int STENCIL_BACK_VALUE_MASK = 0x8CA4;
static const int STENCIL_BACK_WRITEMASK = 0x8CA5;
static const int STENCIL_BITS = 0x0D57;
static const int STENCIL_BUFFER_BIT = 0x00000400;
static const int STENCIL_CLEAR_VALUE = 0x0B91;
static const int STENCIL_FAIL = 0x0B94;
static const int STENCIL_FUNC = 0x0B92;
static const int STENCIL_INDEX = 0x1901;
static const int STENCIL_INDEX8 = 0x8D48;
static const int STENCIL_PASS_DEPTH_FAIL = 0x0B95;
static const int STENCIL_PASS_DEPTH_PASS = 0x0B96;
static const int STENCIL_REF = 0x0B97;
static const int STENCIL_TEST = 0x0B90;
static const int STENCIL_VALUE_MASK = 0x0B93;
static const int STENCIL_WRITEMASK = 0x0B98;
static const int STREAM_DRAW = 0x88E0;
static const int SUBPIXEL_BITS = 0x0D50;
static const int TEXTURE = 0x1702;
static const int TEXTURE0 = 0x84C0;
static const int TEXTURE1 = 0x84C1;
static const int TEXTURE10 = 0x84CA;
static const int TEXTURE11 = 0x84CB;
static const int TEXTURE12 = 0x84CC;
static const int TEXTURE13 = 0x84CD;
static const int TEXTURE14 = 0x84CE;
static const int TEXTURE15 = 0x84CF;
static const int TEXTURE16 = 0x84D0;
static const int TEXTURE17 = 0x84D1;
static const int TEXTURE18 = 0x84D2;
static const int TEXTURE19 = 0x84D3;
static const int TEXTURE2 = 0x84C2;
static const int TEXTURE20 = 0x84D4;
static const int TEXTURE21 = 0x84D5;
static const int TEXTURE22 = 0x84D6;
static const int TEXTURE23 = 0x84D7;
static const int TEXTURE24 = 0x84D8;
static const int TEXTURE25 = 0x84D9;
static const int TEXTURE26 = 0x84DA;
static const int TEXTURE27 = 0x84DB;
static const int TEXTURE28 = 0x84DC;
static const int TEXTURE29 = 0x84DD;
static const int TEXTURE3 = 0x84C3;
static const int TEXTURE30 = 0x84DE;
static const int TEXTURE31 = 0x84DF;
static const int TEXTURE4 = 0x84C4;
static const int TEXTURE5 = 0x84C5;
static const int TEXTURE6 = 0x84C6;
static const int TEXTURE7 = 0x84C7;
static const int TEXTURE8 = 0x84C8;
static const int TEXTURE9 = 0x84C9;
static const int TEXTURE_2D = 0x0DE1;
static const int TEXTURE_BINDING_2D = 0x8069;
static const int TEXTURE_BINDING_CUBE_MAP = 0x8514;
static const int TEXTURE_CUBE_MAP = 0x8513;
static const int TEXTURE_CUBE_MAP_NEGATIVE_X = 0x8516;
static const int TEXTURE_CUBE_MAP_NEGATIVE_Y = 0x8518;
static const int TEXTURE_CUBE_MAP_NEGATIVE_Z = 0x851A;
static const int TEXTURE_CUBE_MAP_POSITIVE_X = 0x8515;
static const int TEXTURE_CUBE_MAP_POSITIVE_Y = 0x8517;
static const int TEXTURE_CUBE_MAP_POSITIVE_Z = 0x8519;
static const int TEXTURE_MAG_FILTER = 0x2800;
static const int TEXTURE_MIN_FILTER = 0x2801;
static const int TEXTURE_WRAP_S = 0x2802;
static const int TEXTURE_WRAP_T = 0x2803;
static const int TRIANGLES = 0x0004;
static const int TRIANGLE_FAN = 0x0006;
static const int TRIANGLE_STRIP = 0x0005;
static const int UNPACK_ALIGNMENT = 0x0CF5;
static const int UNPACK_COLORSPACE_CONVERSION_WEBGL = 0x9243;
static const int UNPACK_FLIP_Y_WEBGL = 0x9240;
static const int UNPACK_PREMULTIPLY_ALPHA_WEBGL = 0x9241;
static const int UNSIGNED_BYTE = 0x1401;
static const int UNSIGNED_INT = 0x1405;
static const int UNSIGNED_SHORT = 0x1403;
static const int UNSIGNED_SHORT_4_4_4_4 = 0x8033;
static const int UNSIGNED_SHORT_5_5_5_1 = 0x8034;
static const int UNSIGNED_SHORT_5_6_5 = 0x8363;
static const int VALIDATE_STATUS = 0x8B83;
static const int VENDOR = 0x1F00;
static const int VERSION = 0x1F02;
static const int VERTEX_ATTRIB_ARRAY_BUFFER_BINDING = 0x889F;
static const int VERTEX_ATTRIB_ARRAY_ENABLED = 0x8622;
static const int VERTEX_ATTRIB_ARRAY_NORMALIZED = 0x886A;
static const int VERTEX_ATTRIB_ARRAY_POINTER = 0x8645;
static const int VERTEX_ATTRIB_ARRAY_SIZE = 0x8623;
static const int VERTEX_ATTRIB_ARRAY_STRIDE = 0x8624;
static const int VERTEX_ATTRIB_ARRAY_TYPE = 0x8625;
static const int VERTEX_SHADER = 0x8B31;
static const int VIEWPORT = 0x0BA2;
static const int ZERO = 0;
/** @domName WebGLRenderingContext.drawingBufferHeight */
int get drawingBufferHeight;
/** @domName WebGLRenderingContext.drawingBufferWidth */
int get drawingBufferWidth;
/** @domName WebGLRenderingContext.activeTexture */
void activeTexture(int texture);
/** @domName WebGLRenderingContext.attachShader */
void attachShader(WebGLProgram program, WebGLShader shader);
/** @domName WebGLRenderingContext.bindAttribLocation */
void bindAttribLocation(WebGLProgram program, int index, String name);
/** @domName WebGLRenderingContext.bindBuffer */
void bindBuffer(int target, WebGLBuffer buffer);
/** @domName WebGLRenderingContext.bindFramebuffer */
void bindFramebuffer(int target, WebGLFramebuffer framebuffer);
/** @domName WebGLRenderingContext.bindRenderbuffer */
void bindRenderbuffer(int target, WebGLRenderbuffer renderbuffer);
/** @domName WebGLRenderingContext.bindTexture */
void bindTexture(int target, WebGLTexture texture);
/** @domName WebGLRenderingContext.blendColor */
void blendColor(num red, num green, num blue, num alpha);
/** @domName WebGLRenderingContext.blendEquation */
void blendEquation(int mode);
/** @domName WebGLRenderingContext.blendEquationSeparate */
void blendEquationSeparate(int modeRGB, int modeAlpha);
/** @domName WebGLRenderingContext.blendFunc */
void blendFunc(int sfactor, int dfactor);
/** @domName WebGLRenderingContext.blendFuncSeparate */
void blendFuncSeparate(int srcRGB, int dstRGB, int srcAlpha, int dstAlpha);
/** @domName WebGLRenderingContext.bufferData */
void bufferData(int target, data_OR_size, int usage);
/** @domName WebGLRenderingContext.bufferSubData */
void bufferSubData(int target, int offset, data);
/** @domName WebGLRenderingContext.checkFramebufferStatus */
int checkFramebufferStatus(int target);
/** @domName WebGLRenderingContext.clear */
void clear(int mask);
/** @domName WebGLRenderingContext.clearColor */
void clearColor(num red, num green, num blue, num alpha);
/** @domName WebGLRenderingContext.clearDepth */
void clearDepth(num depth);
/** @domName WebGLRenderingContext.clearStencil */
void clearStencil(int s);
/** @domName WebGLRenderingContext.colorMask */
void colorMask(bool red, bool green, bool blue, bool alpha);
/** @domName WebGLRenderingContext.compileShader */
void compileShader(WebGLShader shader);
/** @domName WebGLRenderingContext.compressedTexImage2D */
void compressedTexImage2D(int target, int level, int internalformat, int width, int height, int border, ArrayBufferView data);
/** @domName WebGLRenderingContext.compressedTexSubImage2D */
void compressedTexSubImage2D(int target, int level, int xoffset, int yoffset, int width, int height, int format, ArrayBufferView data);
/** @domName WebGLRenderingContext.copyTexImage2D */
void copyTexImage2D(int target, int level, int internalformat, int x, int y, int width, int height, int border);
/** @domName WebGLRenderingContext.copyTexSubImage2D */
void copyTexSubImage2D(int target, int level, int xoffset, int yoffset, int x, int y, int width, int height);
/** @domName WebGLRenderingContext.createBuffer */
WebGLBuffer createBuffer();
/** @domName WebGLRenderingContext.createFramebuffer */
WebGLFramebuffer createFramebuffer();
/** @domName WebGLRenderingContext.createProgram */
WebGLProgram createProgram();
/** @domName WebGLRenderingContext.createRenderbuffer */
WebGLRenderbuffer createRenderbuffer();
/** @domName WebGLRenderingContext.createShader */
WebGLShader createShader(int type);
/** @domName WebGLRenderingContext.createTexture */
WebGLTexture createTexture();
/** @domName WebGLRenderingContext.cullFace */
void cullFace(int mode);
/** @domName WebGLRenderingContext.deleteBuffer */
void deleteBuffer(WebGLBuffer buffer);
/** @domName WebGLRenderingContext.deleteFramebuffer */
void deleteFramebuffer(WebGLFramebuffer framebuffer);
/** @domName WebGLRenderingContext.deleteProgram */
void deleteProgram(WebGLProgram program);
/** @domName WebGLRenderingContext.deleteRenderbuffer */
void deleteRenderbuffer(WebGLRenderbuffer renderbuffer);
/** @domName WebGLRenderingContext.deleteShader */
void deleteShader(WebGLShader shader);
/** @domName WebGLRenderingContext.deleteTexture */
void deleteTexture(WebGLTexture texture);
/** @domName WebGLRenderingContext.depthFunc */
void depthFunc(int func);
/** @domName WebGLRenderingContext.depthMask */
void depthMask(bool flag);
/** @domName WebGLRenderingContext.depthRange */
void depthRange(num zNear, num zFar);
/** @domName WebGLRenderingContext.detachShader */
void detachShader(WebGLProgram program, WebGLShader shader);
/** @domName WebGLRenderingContext.disable */
void disable(int cap);
/** @domName WebGLRenderingContext.disableVertexAttribArray */
void disableVertexAttribArray(int index);
/** @domName WebGLRenderingContext.drawArrays */
void drawArrays(int mode, int first, int count);
/** @domName WebGLRenderingContext.drawElements */
void drawElements(int mode, int count, int type, int offset);
/** @domName WebGLRenderingContext.enable */
void enable(int cap);
/** @domName WebGLRenderingContext.enableVertexAttribArray */
void enableVertexAttribArray(int index);
/** @domName WebGLRenderingContext.finish */
void finish();
/** @domName WebGLRenderingContext.flush */
void flush();
/** @domName WebGLRenderingContext.framebufferRenderbuffer */
void framebufferRenderbuffer(int target, int attachment, int renderbuffertarget, WebGLRenderbuffer renderbuffer);
/** @domName WebGLRenderingContext.framebufferTexture2D */
void framebufferTexture2D(int target, int attachment, int textarget, WebGLTexture texture, int level);
/** @domName WebGLRenderingContext.frontFace */
void frontFace(int mode);
/** @domName WebGLRenderingContext.generateMipmap */
void generateMipmap(int target);
/** @domName WebGLRenderingContext.getActiveAttrib */
WebGLActiveInfo getActiveAttrib(WebGLProgram program, int index);
/** @domName WebGLRenderingContext.getActiveUniform */
WebGLActiveInfo getActiveUniform(WebGLProgram program, int index);
/** @domName WebGLRenderingContext.getAttachedShaders */
void getAttachedShaders(WebGLProgram program);
/** @domName WebGLRenderingContext.getAttribLocation */
int getAttribLocation(WebGLProgram program, String name);
/** @domName WebGLRenderingContext.getBufferParameter */
Object getBufferParameter(int target, int pname);
/** @domName WebGLRenderingContext.getContextAttributes */
WebGLContextAttributes getContextAttributes();
/** @domName WebGLRenderingContext.getError */
int getError();
/** @domName WebGLRenderingContext.getExtension */
Object getExtension(String name);
/** @domName WebGLRenderingContext.getFramebufferAttachmentParameter */
Object getFramebufferAttachmentParameter(int target, int attachment, int pname);
/** @domName WebGLRenderingContext.getParameter */
Object getParameter(int pname);
/** @domName WebGLRenderingContext.getProgramInfoLog */
String getProgramInfoLog(WebGLProgram program);
/** @domName WebGLRenderingContext.getProgramParameter */
Object getProgramParameter(WebGLProgram program, int pname);
/** @domName WebGLRenderingContext.getRenderbufferParameter */
Object getRenderbufferParameter(int target, int pname);
/** @domName WebGLRenderingContext.getShaderInfoLog */
String getShaderInfoLog(WebGLShader shader);
/** @domName WebGLRenderingContext.getShaderParameter */
Object getShaderParameter(WebGLShader shader, int pname);
/** @domName WebGLRenderingContext.getShaderPrecisionFormat */
WebGLShaderPrecisionFormat getShaderPrecisionFormat(int shadertype, int precisiontype);
/** @domName WebGLRenderingContext.getShaderSource */
String getShaderSource(WebGLShader shader);
/** @domName WebGLRenderingContext.getSupportedExtensions */
List<String> getSupportedExtensions();
/** @domName WebGLRenderingContext.getTexParameter */
Object getTexParameter(int target, int pname);
/** @domName WebGLRenderingContext.getUniform */
Object getUniform(WebGLProgram program, WebGLUniformLocation location);
/** @domName WebGLRenderingContext.getUniformLocation */
WebGLUniformLocation getUniformLocation(WebGLProgram program, String name);
/** @domName WebGLRenderingContext.getVertexAttrib */
Object getVertexAttrib(int index, int pname);
/** @domName WebGLRenderingContext.getVertexAttribOffset */
int getVertexAttribOffset(int index, int pname);
/** @domName WebGLRenderingContext.hint */
void hint(int target, int mode);
/** @domName WebGLRenderingContext.isBuffer */
bool isBuffer(WebGLBuffer buffer);
/** @domName WebGLRenderingContext.isContextLost */
bool isContextLost();
/** @domName WebGLRenderingContext.isEnabled */
bool isEnabled(int cap);
/** @domName WebGLRenderingContext.isFramebuffer */
bool isFramebuffer(WebGLFramebuffer framebuffer);
/** @domName WebGLRenderingContext.isProgram */
bool isProgram(WebGLProgram program);
/** @domName WebGLRenderingContext.isRenderbuffer */
bool isRenderbuffer(WebGLRenderbuffer renderbuffer);
/** @domName WebGLRenderingContext.isShader */
bool isShader(WebGLShader shader);
/** @domName WebGLRenderingContext.isTexture */
bool isTexture(WebGLTexture texture);
/** @domName WebGLRenderingContext.lineWidth */
void lineWidth(num width);
/** @domName WebGLRenderingContext.linkProgram */
void linkProgram(WebGLProgram program);
/** @domName WebGLRenderingContext.pixelStorei */
void pixelStorei(int pname, int param);
/** @domName WebGLRenderingContext.polygonOffset */
void polygonOffset(num factor, num units);
/** @domName WebGLRenderingContext.readPixels */
void readPixels(int x, int y, int width, int height, int format, int type, ArrayBufferView pixels);
/** @domName WebGLRenderingContext.releaseShaderCompiler */
void releaseShaderCompiler();
/** @domName WebGLRenderingContext.renderbufferStorage */
void renderbufferStorage(int target, int internalformat, int width, int height);
/** @domName WebGLRenderingContext.sampleCoverage */
void sampleCoverage(num value, bool invert);
/** @domName WebGLRenderingContext.scissor */
void scissor(int x, int y, int width, int height);
/** @domName WebGLRenderingContext.shaderSource */
void shaderSource(WebGLShader shader, String string);
/** @domName WebGLRenderingContext.stencilFunc */
void stencilFunc(int func, int ref, int mask);
/** @domName WebGLRenderingContext.stencilFuncSeparate */
void stencilFuncSeparate(int face, int func, int ref, int mask);
/** @domName WebGLRenderingContext.stencilMask */
void stencilMask(int mask);
/** @domName WebGLRenderingContext.stencilMaskSeparate */
void stencilMaskSeparate(int face, int mask);
/** @domName WebGLRenderingContext.stencilOp */
void stencilOp(int fail, int zfail, int zpass);
/** @domName WebGLRenderingContext.stencilOpSeparate */
void stencilOpSeparate(int face, int fail, int zfail, int zpass);
/** @domName WebGLRenderingContext.texImage2D */
void texImage2D(int target, int level, int internalformat, int format_OR_width, int height_OR_type, border_OR_canvas_OR_image_OR_pixels_OR_video, [int format, int type, ArrayBufferView pixels]);
/** @domName WebGLRenderingContext.texParameterf */
void texParameterf(int target, int pname, num param);
/** @domName WebGLRenderingContext.texParameteri */
void texParameteri(int target, int pname, int param);
/** @domName WebGLRenderingContext.texSubImage2D */
void texSubImage2D(int target, int level, int xoffset, int yoffset, int format_OR_width, int height_OR_type, canvas_OR_format_OR_image_OR_pixels_OR_video, [int type, ArrayBufferView pixels]);
/** @domName WebGLRenderingContext.uniform1f */
void uniform1f(WebGLUniformLocation location, num x);
/** @domName WebGLRenderingContext.uniform1fv */
void uniform1fv(WebGLUniformLocation location, Float32Array v);
/** @domName WebGLRenderingContext.uniform1i */
void uniform1i(WebGLUniformLocation location, int x);
/** @domName WebGLRenderingContext.uniform1iv */
void uniform1iv(WebGLUniformLocation location, Int32Array v);
/** @domName WebGLRenderingContext.uniform2f */
void uniform2f(WebGLUniformLocation location, num x, num y);
/** @domName WebGLRenderingContext.uniform2fv */
void uniform2fv(WebGLUniformLocation location, Float32Array v);
/** @domName WebGLRenderingContext.uniform2i */
void uniform2i(WebGLUniformLocation location, int x, int y);
/** @domName WebGLRenderingContext.uniform2iv */
void uniform2iv(WebGLUniformLocation location, Int32Array v);
/** @domName WebGLRenderingContext.uniform3f */
void uniform3f(WebGLUniformLocation location, num x, num y, num z);
/** @domName WebGLRenderingContext.uniform3fv */
void uniform3fv(WebGLUniformLocation location, Float32Array v);
/** @domName WebGLRenderingContext.uniform3i */
void uniform3i(WebGLUniformLocation location, int x, int y, int z);
/** @domName WebGLRenderingContext.uniform3iv */
void uniform3iv(WebGLUniformLocation location, Int32Array v);
/** @domName WebGLRenderingContext.uniform4f */
void uniform4f(WebGLUniformLocation location, num x, num y, num z, num w);
/** @domName WebGLRenderingContext.uniform4fv */
void uniform4fv(WebGLUniformLocation location, Float32Array v);
/** @domName WebGLRenderingContext.uniform4i */
void uniform4i(WebGLUniformLocation location, int x, int y, int z, int w);
/** @domName WebGLRenderingContext.uniform4iv */
void uniform4iv(WebGLUniformLocation location, Int32Array v);
/** @domName WebGLRenderingContext.uniformMatrix2fv */
void uniformMatrix2fv(WebGLUniformLocation location, bool transpose, Float32Array array);
/** @domName WebGLRenderingContext.uniformMatrix3fv */
void uniformMatrix3fv(WebGLUniformLocation location, bool transpose, Float32Array array);
/** @domName WebGLRenderingContext.uniformMatrix4fv */
void uniformMatrix4fv(WebGLUniformLocation location, bool transpose, Float32Array array);
/** @domName WebGLRenderingContext.useProgram */
void useProgram(WebGLProgram program);
/** @domName WebGLRenderingContext.validateProgram */
void validateProgram(WebGLProgram program);
/** @domName WebGLRenderingContext.vertexAttrib1f */
void vertexAttrib1f(int indx, num x);
/** @domName WebGLRenderingContext.vertexAttrib1fv */
void vertexAttrib1fv(int indx, Float32Array values);
/** @domName WebGLRenderingContext.vertexAttrib2f */
void vertexAttrib2f(int indx, num x, num y);
/** @domName WebGLRenderingContext.vertexAttrib2fv */
void vertexAttrib2fv(int indx, Float32Array values);
/** @domName WebGLRenderingContext.vertexAttrib3f */
void vertexAttrib3f(int indx, num x, num y, num z);
/** @domName WebGLRenderingContext.vertexAttrib3fv */
void vertexAttrib3fv(int indx, Float32Array values);
/** @domName WebGLRenderingContext.vertexAttrib4f */
void vertexAttrib4f(int indx, num x, num y, num z, num w);
/** @domName WebGLRenderingContext.vertexAttrib4fv */
void vertexAttrib4fv(int indx, Float32Array values);
/** @domName WebGLRenderingContext.vertexAttribPointer */
void vertexAttribPointer(int indx, int size, int type, bool normalized, int stride, int offset);
/** @domName WebGLRenderingContext.viewport */
void viewport(int x, int y, int width, int height);
}
// 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.
// WARNING: Do not edit - generated code.
class _WebGLRenderingContextImpl extends _CanvasRenderingContextImpl implements WebGLRenderingContext {
int get drawingBufferHeight native "WebGLRenderingContext_drawingBufferHeight_Getter";
int get drawingBufferWidth native "WebGLRenderingContext_drawingBufferWidth_Getter";
void activeTexture(int texture) native "WebGLRenderingContext_activeTexture_Callback";
void attachShader(WebGLProgram program, WebGLShader shader) native "WebGLRenderingContext_attachShader_Callback";
void bindAttribLocation(WebGLProgram program, int index, String name) native "WebGLRenderingContext_bindAttribLocation_Callback";
void bindBuffer(int target, WebGLBuffer buffer) native "WebGLRenderingContext_bindBuffer_Callback";
void bindFramebuffer(int target, WebGLFramebuffer framebuffer) native "WebGLRenderingContext_bindFramebuffer_Callback";
void bindRenderbuffer(int target, WebGLRenderbuffer renderbuffer) native "WebGLRenderingContext_bindRenderbuffer_Callback";
void bindTexture(int target, WebGLTexture texture) native "WebGLRenderingContext_bindTexture_Callback";
void blendColor(num red, num green, num blue, num alpha) native "WebGLRenderingContext_blendColor_Callback";
void blendEquation(int mode) native "WebGLRenderingContext_blendEquation_Callback";
void blendEquationSeparate(int modeRGB, int modeAlpha) native "WebGLRenderingContext_blendEquationSeparate_Callback";
void blendFunc(int sfactor, int dfactor) native "WebGLRenderingContext_blendFunc_Callback";
void blendFuncSeparate(int srcRGB, int dstRGB, int srcAlpha, int dstAlpha) native "WebGLRenderingContext_blendFuncSeparate_Callback";
void bufferData(/*unsigned long*/ target, data_OR_size, /*unsigned long*/ usage) {
if ((target is int || target == null) && (data_OR_size is ArrayBuffer || data_OR_size == null) && (usage is int || usage == null)) {
_bufferData_1(target, data_OR_size, usage);
return;
}
if ((target is int || target == null) && (data_OR_size is ArrayBufferView || data_OR_size == null) && (usage is int || usage == null)) {
_bufferData_2(target, data_OR_size, usage);
return;
}
if ((target is int || target == null) && (data_OR_size is int || data_OR_size == null) && (usage is int || usage == null)) {
_bufferData_3(target, data_OR_size, usage);
return;
}
throw "Incorrect number or type of arguments";
}
void _bufferData_1(target, data_OR_size, usage) native "WebGLRenderingContext_bufferData_1_Callback";
void _bufferData_2(target, data_OR_size, usage) native "WebGLRenderingContext_bufferData_2_Callback";
void _bufferData_3(target, data_OR_size, usage) native "WebGLRenderingContext_bufferData_3_Callback";
void bufferSubData(/*unsigned long*/ target, /*long long*/ offset, data) {
if ((target is int || target == null) && (offset is int || offset == null) && (data is ArrayBuffer || data == null)) {
_bufferSubData_1(target, offset, data);
return;
}
if ((target is int || target == null) && (offset is int || offset == null) && (data is ArrayBufferView || data == null)) {
_bufferSubData_2(target, offset, data);
return;
}
throw "Incorrect number or type of arguments";
}
void _bufferSubData_1(target, offset, data) native "WebGLRenderingContext_bufferSubData_1_Callback";
void _bufferSubData_2(target, offset, data) native "WebGLRenderingContext_bufferSubData_2_Callback";
int checkFramebufferStatus(int target) native "WebGLRenderingContext_checkFramebufferStatus_Callback";
void clear(int mask) native "WebGLRenderingContext_clear_Callback";
void clearColor(num red, num green, num blue, num alpha) native "WebGLRenderingContext_clearColor_Callback";
void clearDepth(num depth) native "WebGLRenderingContext_clearDepth_Callback";
void clearStencil(int s) native "WebGLRenderingContext_clearStencil_Callback";
void colorMask(bool red, bool green, bool blue, bool alpha) native "WebGLRenderingContext_colorMask_Callback";
void compileShader(WebGLShader shader) native "WebGLRenderingContext_compileShader_Callback";
void compressedTexImage2D(int target, int level, int internalformat, int width, int height, int border, ArrayBufferView data) native "WebGLRenderingContext_compressedTexImage2D_Callback";
void compressedTexSubImage2D(int target, int level, int xoffset, int yoffset, int width, int height, int format, ArrayBufferView data) native "WebGLRenderingContext_compressedTexSubImage2D_Callback";
void copyTexImage2D(int target, int level, int internalformat, int x, int y, int width, int height, int border) native "WebGLRenderingContext_copyTexImage2D_Callback";
void copyTexSubImage2D(int target, int level, int xoffset, int yoffset, int x, int y, int width, int height) native "WebGLRenderingContext_copyTexSubImage2D_Callback";
WebGLBuffer createBuffer() native "WebGLRenderingContext_createBuffer_Callback";
WebGLFramebuffer createFramebuffer() native "WebGLRenderingContext_createFramebuffer_Callback";
WebGLProgram createProgram() native "WebGLRenderingContext_createProgram_Callback";
WebGLRenderbuffer createRenderbuffer() native "WebGLRenderingContext_createRenderbuffer_Callback";
WebGLShader createShader(int type) native "WebGLRenderingContext_createShader_Callback";
WebGLTexture createTexture() native "WebGLRenderingContext_createTexture_Callback";
void cullFace(int mode) native "WebGLRenderingContext_cullFace_Callback";
void deleteBuffer(WebGLBuffer buffer) native "WebGLRenderingContext_deleteBuffer_Callback";
void deleteFramebuffer(WebGLFramebuffer framebuffer) native "WebGLRenderingContext_deleteFramebuffer_Callback";
void deleteProgram(WebGLProgram program) native "WebGLRenderingContext_deleteProgram_Callback";
void deleteRenderbuffer(WebGLRenderbuffer renderbuffer) native "WebGLRenderingContext_deleteRenderbuffer_Callback";
void deleteShader(WebGLShader shader) native "WebGLRenderingContext_deleteShader_Callback";
void deleteTexture(WebGLTexture texture) native "WebGLRenderingContext_deleteTexture_Callback";
void depthFunc(int func) native "WebGLRenderingContext_depthFunc_Callback";
void depthMask(bool flag) native "WebGLRenderingContext_depthMask_Callback";
void depthRange(num zNear, num zFar) native "WebGLRenderingContext_depthRange_Callback";
void detachShader(WebGLProgram program, WebGLShader shader) native "WebGLRenderingContext_detachShader_Callback";
void disable(int cap) native "WebGLRenderingContext_disable_Callback";
void disableVertexAttribArray(int index) native "WebGLRenderingContext_disableVertexAttribArray_Callback";
void drawArrays(int mode, int first, int count) native "WebGLRenderingContext_drawArrays_Callback";
void drawElements(int mode, int count, int type, int offset) native "WebGLRenderingContext_drawElements_Callback";
void enable(int cap) native "WebGLRenderingContext_enable_Callback";
void enableVertexAttribArray(int index) native "WebGLRenderingContext_enableVertexAttribArray_Callback";
void finish() native "WebGLRenderingContext_finish_Callback";
void flush() native "WebGLRenderingContext_flush_Callback";
void framebufferRenderbuffer(int target, int attachment, int renderbuffertarget, WebGLRenderbuffer renderbuffer) native "WebGLRenderingContext_framebufferRenderbuffer_Callback";
void framebufferTexture2D(int target, int attachment, int textarget, WebGLTexture texture, int level) native "WebGLRenderingContext_framebufferTexture2D_Callback";
void frontFace(int mode) native "WebGLRenderingContext_frontFace_Callback";
void generateMipmap(int target) native "WebGLRenderingContext_generateMipmap_Callback";
WebGLActiveInfo getActiveAttrib(WebGLProgram program, int index) native "WebGLRenderingContext_getActiveAttrib_Callback";
WebGLActiveInfo getActiveUniform(WebGLProgram program, int index) native "WebGLRenderingContext_getActiveUniform_Callback";
void getAttachedShaders(WebGLProgram program) native "WebGLRenderingContext_getAttachedShaders_Callback";
int getAttribLocation(WebGLProgram program, String name) native "WebGLRenderingContext_getAttribLocation_Callback";
Object getBufferParameter(int target, int pname) native "WebGLRenderingContext_getBufferParameter_Callback";
WebGLContextAttributes getContextAttributes() native "WebGLRenderingContext_getContextAttributes_Callback";
int getError() native "WebGLRenderingContext_getError_Callback";
Object getExtension(String name) native "WebGLRenderingContext_getExtension_Callback";
Object getFramebufferAttachmentParameter(int target, int attachment, int pname) native "WebGLRenderingContext_getFramebufferAttachmentParameter_Callback";
Object getParameter(int pname) native "WebGLRenderingContext_getParameter_Callback";
String getProgramInfoLog(WebGLProgram program) native "WebGLRenderingContext_getProgramInfoLog_Callback";
Object getProgramParameter(WebGLProgram program, int pname) native "WebGLRenderingContext_getProgramParameter_Callback";
Object getRenderbufferParameter(int target, int pname) native "WebGLRenderingContext_getRenderbufferParameter_Callback";
String getShaderInfoLog(WebGLShader shader) native "WebGLRenderingContext_getShaderInfoLog_Callback";
Object getShaderParameter(WebGLShader shader, int pname) native "WebGLRenderingContext_getShaderParameter_Callback";
WebGLShaderPrecisionFormat getShaderPrecisionFormat(int shadertype, int precisiontype) native "WebGLRenderingContext_getShaderPrecisionFormat_Callback";
String getShaderSource(WebGLShader shader) native "WebGLRenderingContext_getShaderSource_Callback";
List<String> getSupportedExtensions() native "WebGLRenderingContext_getSupportedExtensions_Callback";
Object getTexParameter(int target, int pname) native "WebGLRenderingContext_getTexParameter_Callback";
Object getUniform(WebGLProgram program, WebGLUniformLocation location) native "WebGLRenderingContext_getUniform_Callback";
WebGLUniformLocation getUniformLocation(WebGLProgram program, String name) native "WebGLRenderingContext_getUniformLocation_Callback";
Object getVertexAttrib(int index, int pname) native "WebGLRenderingContext_getVertexAttrib_Callback";
int getVertexAttribOffset(int index, int pname) native "WebGLRenderingContext_getVertexAttribOffset_Callback";
void hint(int target, int mode) native "WebGLRenderingContext_hint_Callback";
bool isBuffer(WebGLBuffer buffer) native "WebGLRenderingContext_isBuffer_Callback";
bool isContextLost() native "WebGLRenderingContext_isContextLost_Callback";
bool isEnabled(int cap) native "WebGLRenderingContext_isEnabled_Callback";
bool isFramebuffer(WebGLFramebuffer framebuffer) native "WebGLRenderingContext_isFramebuffer_Callback";
bool isProgram(WebGLProgram program) native "WebGLRenderingContext_isProgram_Callback";
bool isRenderbuffer(WebGLRenderbuffer renderbuffer) native "WebGLRenderingContext_isRenderbuffer_Callback";
bool isShader(WebGLShader shader) native "WebGLRenderingContext_isShader_Callback";
bool isTexture(WebGLTexture texture) native "WebGLRenderingContext_isTexture_Callback";
void lineWidth(num width) native "WebGLRenderingContext_lineWidth_Callback";
void linkProgram(WebGLProgram program) native "WebGLRenderingContext_linkProgram_Callback";
void pixelStorei(int pname, int param) native "WebGLRenderingContext_pixelStorei_Callback";
void polygonOffset(num factor, num units) native "WebGLRenderingContext_polygonOffset_Callback";
void readPixels(int x, int y, int width, int height, int format, int type, ArrayBufferView pixels) native "WebGLRenderingContext_readPixels_Callback";
void releaseShaderCompiler() native "WebGLRenderingContext_releaseShaderCompiler_Callback";
void renderbufferStorage(int target, int internalformat, int width, int height) native "WebGLRenderingContext_renderbufferStorage_Callback";
void sampleCoverage(num value, bool invert) native "WebGLRenderingContext_sampleCoverage_Callback";
void scissor(int x, int y, int width, int height) native "WebGLRenderingContext_scissor_Callback";
void shaderSource(WebGLShader shader, String string) native "WebGLRenderingContext_shaderSource_Callback";
void stencilFunc(int func, int ref, int mask) native "WebGLRenderingContext_stencilFunc_Callback";
void stencilFuncSeparate(int face, int func, int ref, int mask) native "WebGLRenderingContext_stencilFuncSeparate_Callback";
void stencilMask(int mask) native "WebGLRenderingContext_stencilMask_Callback";
void stencilMaskSeparate(int face, int mask) native "WebGLRenderingContext_stencilMaskSeparate_Callback";
void stencilOp(int fail, int zfail, int zpass) native "WebGLRenderingContext_stencilOp_Callback";
void stencilOpSeparate(int face, int fail, int zfail, int zpass) native "WebGLRenderingContext_stencilOpSeparate_Callback";
void texImage2D(/*unsigned long*/ target, /*long*/ level, /*unsigned long*/ internalformat, /*long*/ format_OR_width, /*long*/ height_OR_type, border_OR_canvas_OR_image_OR_pixels_OR_video, [/*unsigned long*/ format, /*unsigned long*/ type, /*ArrayBufferView*/ pixels]) {
if ((target is int || target == null) && (level is int || level == null) && (internalformat is int || internalformat == null) && (format_OR_width is int || format_OR_width == null) && (height_OR_type is int || height_OR_type == null) && (border_OR_canvas_OR_image_OR_pixels_OR_video is int || border_OR_canvas_OR_image_OR_pixels_OR_video == null) && (format is int || format == null) && (type is int || type == null) && (pixels is ArrayBufferView || pixels == null)) {
_texImage2D_1(target, level, internalformat, format_OR_width, height_OR_type, border_OR_canvas_OR_image_OR_pixels_OR_video, format, type, pixels);
return;
}
if ((target is int || target == null) && (level is int || level == null) && (internalformat is int || internalformat == null) && (format_OR_width is int || format_OR_width == null) && (height_OR_type is int || height_OR_type == null) && (border_OR_canvas_OR_image_OR_pixels_OR_video is ImageData || border_OR_canvas_OR_image_OR_pixels_OR_video == null) && !?format && !?type && !?pixels) {
_texImage2D_2(target, level, internalformat, format_OR_width, height_OR_type, border_OR_canvas_OR_image_OR_pixels_OR_video);
return;
}
if ((target is int || target == null) && (level is int || level == null) && (internalformat is int || internalformat == null) && (format_OR_width is int || format_OR_width == null) && (height_OR_type is int || height_OR_type == null) && (border_OR_canvas_OR_image_OR_pixels_OR_video is ImageElement || border_OR_canvas_OR_image_OR_pixels_OR_video == null) && !?format && !?type && !?pixels) {
_texImage2D_3(target, level, internalformat, format_OR_width, height_OR_type, border_OR_canvas_OR_image_OR_pixels_OR_video);
return;
}
if ((target is int || target == null) && (level is int || level == null) && (internalformat is int || internalformat == null) && (format_OR_width is int || format_OR_width == null) && (height_OR_type is int || height_OR_type == null) && (border_OR_canvas_OR_image_OR_pixels_OR_video is CanvasElement || border_OR_canvas_OR_image_OR_pixels_OR_video == null) && !?format && !?type && !?pixels) {
_texImage2D_4(target, level, internalformat, format_OR_width, height_OR_type, border_OR_canvas_OR_image_OR_pixels_OR_video);
return;
}
if ((target is int || target == null) && (level is int || level == null) && (internalformat is int || internalformat == null) && (format_OR_width is int || format_OR_width == null) && (height_OR_type is int || height_OR_type == null) && (border_OR_canvas_OR_image_OR_pixels_OR_video is VideoElement || border_OR_canvas_OR_image_OR_pixels_OR_video == null) && !?format && !?type && !?pixels) {
_texImage2D_5(target, level, internalformat, format_OR_width, height_OR_type, border_OR_canvas_OR_image_OR_pixels_OR_video);
return;
}
throw "Incorrect number or type of arguments";
}
void _texImage2D_1(target, level, internalformat, format_OR_width, height_OR_type, border_OR_canvas_OR_image_OR_pixels_OR_video, format, type, pixels) native "WebGLRenderingContext_texImage2D_1_Callback";
void _texImage2D_2(target, level, internalformat, format_OR_width, height_OR_type, border_OR_canvas_OR_image_OR_pixels_OR_video) native "WebGLRenderingContext_texImage2D_2_Callback";
void _texImage2D_3(target, level, internalformat, format_OR_width, height_OR_type, border_OR_canvas_OR_image_OR_pixels_OR_video) native "WebGLRenderingContext_texImage2D_3_Callback";
void _texImage2D_4(target, level, internalformat, format_OR_width, height_OR_type, border_OR_canvas_OR_image_OR_pixels_OR_video) native "WebGLRenderingContext_texImage2D_4_Callback";
void _texImage2D_5(target, level, internalformat, format_OR_width, height_OR_type, border_OR_canvas_OR_image_OR_pixels_OR_video) native "WebGLRenderingContext_texImage2D_5_Callback";
void texParameterf(int target, int pname, num param) native "WebGLRenderingContext_texParameterf_Callback";
void texParameteri(int target, int pname, int param) native "WebGLRenderingContext_texParameteri_Callback";
void texSubImage2D(/*unsigned long*/ target, /*long*/ level, /*long*/ xoffset, /*long*/ yoffset, /*long*/ format_OR_width, /*long*/ height_OR_type, canvas_OR_format_OR_image_OR_pixels_OR_video, [/*unsigned long*/ type, /*ArrayBufferView*/ pixels]) {
if ((target is int || target == null) && (level is int || level == null) && (xoffset is int || xoffset == null) && (yoffset is int || yoffset == null) && (format_OR_width is int || format_OR_width == null) && (height_OR_type is int || height_OR_type == null) && (canvas_OR_format_OR_image_OR_pixels_OR_video is int || canvas_OR_format_OR_image_OR_pixels_OR_video == null) && (type is int || type == null) && (pixels is ArrayBufferView || pixels == null)) {
_texSubImage2D_1(target, level, xoffset, yoffset, format_OR_width, height_OR_type, canvas_OR_format_OR_image_OR_pixels_OR_video, type, pixels);
return;
}
if ((target is int || target == null) && (level is int || level == null) && (xoffset is int || xoffset == null) && (yoffset is int || yoffset == null) && (format_OR_width is int || format_OR_width == null) && (height_OR_type is int || height_OR_type == null) && (canvas_OR_format_OR_image_OR_pixels_OR_video is ImageData || canvas_OR_format_OR_image_OR_pixels_OR_video == null) && !?type && !?pixels) {
_texSubImage2D_2(target, level, xoffset, yoffset, format_OR_width, height_OR_type, canvas_OR_format_OR_image_OR_pixels_OR_video);
return;
}
if ((target is int || target == null) && (level is int || level == null) && (xoffset is int || xoffset == null) && (yoffset is int || yoffset == null) && (format_OR_width is int || format_OR_width == null) && (height_OR_type is int || height_OR_type == null) && (canvas_OR_format_OR_image_OR_pixels_OR_video is ImageElement || canvas_OR_format_OR_image_OR_pixels_OR_video == null) && !?type && !?pixels) {
_texSubImage2D_3(target, level, xoffset, yoffset, format_OR_width, height_OR_type, canvas_OR_format_OR_image_OR_pixels_OR_video);
return;
}
if ((target is int || target == null) && (level is int || level == null) && (xoffset is int || xoffset == null) && (yoffset is int || yoffset == null) && (format_OR_width is int || format_OR_width == null) && (height_OR_type is int || height_OR_type == null) && (canvas_OR_format_OR_image_OR_pixels_OR_video is CanvasElement || canvas_OR_format_OR_image_OR_pixels_OR_video == null) && !?type && !?pixels) {
_texSubImage2D_4(target, level, xoffset, yoffset, format_OR_width, height_OR_type, canvas_OR_format_OR_image_OR_pixels_OR_video);
return;
}
if ((target is int || target == null) && (level is int || level == null) && (xoffset is int || xoffset == null) && (yoffset is int || yoffset == null) && (format_OR_width is int || format_OR_width == null) && (height_OR_type is int || height_OR_type == null) && (canvas_OR_format_OR_image_OR_pixels_OR_video is VideoElement || canvas_OR_format_OR_image_OR_pixels_OR_video == null) && !?type && !?pixels) {
_texSubImage2D_5(target, level, xoffset, yoffset, format_OR_width, height_OR_type, canvas_OR_format_OR_image_OR_pixels_OR_video);
return;
}
throw "Incorrect number or type of arguments";
}
void _texSubImage2D_1(target, level, xoffset, yoffset, format_OR_width, height_OR_type, canvas_OR_format_OR_image_OR_pixels_OR_video, type, pixels) native "WebGLRenderingContext_texSubImage2D_1_Callback";
void _texSubImage2D_2(target, level, xoffset, yoffset, format_OR_width, height_OR_type, canvas_OR_format_OR_image_OR_pixels_OR_video) native "WebGLRenderingContext_texSubImage2D_2_Callback";
void _texSubImage2D_3(target, level, xoffset, yoffset, format_OR_width, height_OR_type, canvas_OR_format_OR_image_OR_pixels_OR_video) native "WebGLRenderingContext_texSubImage2D_3_Callback";
void _texSubImage2D_4(target, level, xoffset, yoffset, format_OR_width, height_OR_type, canvas_OR_format_OR_image_OR_pixels_OR_video) native "WebGLRenderingContext_texSubImage2D_4_Callback";
void _texSubImage2D_5(target, level, xoffset, yoffset, format_OR_width, height_OR_type, canvas_OR_format_OR_image_OR_pixels_OR_video) native "WebGLRenderingContext_texSubImage2D_5_Callback";
void uniform1f(WebGLUniformLocation location, num x) native "WebGLRenderingContext_uniform1f_Callback";
void uniform1fv(WebGLUniformLocation location, Float32Array v) native "WebGLRenderingContext_uniform1fv_Callback";
void uniform1i(WebGLUniformLocation location, int x) native "WebGLRenderingContext_uniform1i_Callback";
void uniform1iv(WebGLUniformLocation location, Int32Array v) native "WebGLRenderingContext_uniform1iv_Callback";
void uniform2f(WebGLUniformLocation location, num x, num y) native "WebGLRenderingContext_uniform2f_Callback";
void uniform2fv(WebGLUniformLocation location, Float32Array v) native "WebGLRenderingContext_uniform2fv_Callback";
void uniform2i(WebGLUniformLocation location, int x, int y) native "WebGLRenderingContext_uniform2i_Callback";
void uniform2iv(WebGLUniformLocation location, Int32Array v) native "WebGLRenderingContext_uniform2iv_Callback";
void uniform3f(WebGLUniformLocation location, num x, num y, num z) native "WebGLRenderingContext_uniform3f_Callback";
void uniform3fv(WebGLUniformLocation location, Float32Array v) native "WebGLRenderingContext_uniform3fv_Callback";
void uniform3i(WebGLUniformLocation location, int x, int y, int z) native "WebGLRenderingContext_uniform3i_Callback";
void uniform3iv(WebGLUniformLocation location, Int32Array v) native "WebGLRenderingContext_uniform3iv_Callback";
void uniform4f(WebGLUniformLocation location, num x, num y, num z, num w) native "WebGLRenderingContext_uniform4f_Callback";
void uniform4fv(WebGLUniformLocation location, Float32Array v) native "WebGLRenderingContext_uniform4fv_Callback";
void uniform4i(WebGLUniformLocation location, int x, int y, int z, int w) native "WebGLRenderingContext_uniform4i_Callback";
void uniform4iv(WebGLUniformLocation location, Int32Array v) native "WebGLRenderingContext_uniform4iv_Callback";
void uniformMatrix2fv(WebGLUniformLocation location, bool transpose, Float32Array array) native "WebGLRenderingContext_uniformMatrix2fv_Callback";
void uniformMatrix3fv(WebGLUniformLocation location, bool transpose, Float32Array array) native "WebGLRenderingContext_uniformMatrix3fv_Callback";
void uniformMatrix4fv(WebGLUniformLocation location, bool transpose, Float32Array array) native "WebGLRenderingContext_uniformMatrix4fv_Callback";
void useProgram(WebGLProgram program) native "WebGLRenderingContext_useProgram_Callback";
void validateProgram(WebGLProgram program) native "WebGLRenderingContext_validateProgram_Callback";
void vertexAttrib1f(int indx, num x) native "WebGLRenderingContext_vertexAttrib1f_Callback";
void vertexAttrib1fv(int indx, Float32Array values) native "WebGLRenderingContext_vertexAttrib1fv_Callback";
void vertexAttrib2f(int indx, num x, num y) native "WebGLRenderingContext_vertexAttrib2f_Callback";
void vertexAttrib2fv(int indx, Float32Array values) native "WebGLRenderingContext_vertexAttrib2fv_Callback";
void vertexAttrib3f(int indx, num x, num y, num z) native "WebGLRenderingContext_vertexAttrib3f_Callback";
void vertexAttrib3fv(int indx, Float32Array values) native "WebGLRenderingContext_vertexAttrib3fv_Callback";
void vertexAttrib4f(int indx, num x, num y, num z, num w) native "WebGLRenderingContext_vertexAttrib4f_Callback";
void vertexAttrib4fv(int indx, Float32Array values) native "WebGLRenderingContext_vertexAttrib4fv_Callback";
void vertexAttribPointer(int indx, int size, int type, bool normalized, int stride, int offset) native "WebGLRenderingContext_vertexAttribPointer_Callback";
void viewport(int x, int y, int width, int height) native "WebGLRenderingContext_viewport_Callback";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName WebGLShader
abstract class WebGLShader {
}
// 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.
// WARNING: Do not edit - generated code.
class _WebGLShaderImpl extends NativeFieldWrapperClass1 implements WebGLShader {
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName WebGLShaderPrecisionFormat
abstract class WebGLShaderPrecisionFormat {
/** @domName WebGLShaderPrecisionFormat.precision */
int get precision;
/** @domName WebGLShaderPrecisionFormat.rangeMax */
int get rangeMax;
/** @domName WebGLShaderPrecisionFormat.rangeMin */
int get rangeMin;
}
// 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.
// WARNING: Do not edit - generated code.
class _WebGLShaderPrecisionFormatImpl extends NativeFieldWrapperClass1 implements WebGLShaderPrecisionFormat {
int get precision native "WebGLShaderPrecisionFormat_precision_Getter";
int get rangeMax native "WebGLShaderPrecisionFormat_rangeMax_Getter";
int get rangeMin native "WebGLShaderPrecisionFormat_rangeMin_Getter";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName WebGLTexture
abstract class WebGLTexture {
}
// 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.
// WARNING: Do not edit - generated code.
class _WebGLTextureImpl extends NativeFieldWrapperClass1 implements WebGLTexture {
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName WebGLUniformLocation
abstract class WebGLUniformLocation {
}
// 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.
// WARNING: Do not edit - generated code.
class _WebGLUniformLocationImpl extends NativeFieldWrapperClass1 implements WebGLUniformLocation {
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName WebGLVertexArrayObjectOES
abstract class WebGLVertexArrayObjectOES {
}
// 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.
// WARNING: Do not edit - generated code.
class _WebGLVertexArrayObjectOESImpl extends NativeFieldWrapperClass1 implements WebGLVertexArrayObjectOES {
}
// 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.
// WARNING: Do not edit - generated code.
class _WebKitAnimationListImpl extends NativeFieldWrapperClass1 implements List<Animation> {
int get length native "WebKitAnimationList_length_Getter";
Animation operator[](int index) native "WebKitAnimationList_item_Callback";
void operator[]=(int index, Animation value) {
throw new UnsupportedError("Cannot assign element of immutable List.");
}
// -- start List<Animation> mixins.
// Animation is the element type.
// From Iterable<Animation>:
Iterator<Animation> 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<Animation>(this);
}
// From Collection<Animation>:
void add(Animation value) {
throw new UnsupportedError("Cannot add to immutable List.");
}
void addLast(Animation value) {
throw new UnsupportedError("Cannot add to immutable List.");
}
void addAll(Collection<Animation> collection) {
throw new UnsupportedError("Cannot add to immutable List.");
}
bool contains(Animation element) => _Collections.contains(this, element);
void forEach(void f(Animation element)) => _Collections.forEach(this, f);
Collection map(f(Animation element)) => _Collections.map(this, [], f);
Collection<Animation> filter(bool f(Animation element)) =>
_Collections.filter(this, <Animation>[], f);
bool every(bool f(Animation element)) => _Collections.every(this, f);
bool some(bool f(Animation element)) => _Collections.some(this, f);
bool get isEmpty => this.length == 0;
// From List<Animation>:
void sort([Comparator<Animation> compare = Comparable.compare]) {
throw new UnsupportedError("Cannot sort immutable List.");
}
int indexOf(Animation element, [int start = 0]) =>
_Lists.indexOf(this, element, start, this.length);
int lastIndexOf(Animation element, [int start]) {
if (start == null) start = length - 1;
return _Lists.lastIndexOf(this, element, start);
}
Animation get last => this[length - 1];
Animation removeLast() {
throw new UnsupportedError("Cannot removeLast on immutable List.");
}
void setRange(int start, int rangeLength, List<Animation> from, [int startFrom]) {
throw new UnsupportedError("Cannot setRange on immutable List.");
}
void removeRange(int start, int rangeLength) {
throw new UnsupportedError("Cannot removeRange on immutable List.");
}
void insertRange(int start, int rangeLength, [Animation initialValue]) {
throw new UnsupportedError("Cannot insertRange on immutable List.");
}
List<Animation> getRange(int start, int rangeLength) =>
_Lists.getRange(this, start, rangeLength, <Animation>[]);
// -- end List<Animation> mixins.
Animation item(int index) native "WebKitAnimationList_item_Callback";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName WebKitCSSFilterValue
abstract class WebKitCSSFilterValue implements List<CSSValue> {
static const int CSS_FILTER_BLUR = 10;
static const int CSS_FILTER_BRIGHTNESS = 8;
static const int CSS_FILTER_CONTRAST = 9;
static const int CSS_FILTER_CUSTOM = 12;
static const int CSS_FILTER_DROP_SHADOW = 11;
static const int CSS_FILTER_GRAYSCALE = 2;
static const int CSS_FILTER_HUE_ROTATE = 5;
static const int CSS_FILTER_INVERT = 6;
static const int CSS_FILTER_OPACITY = 7;
static const int CSS_FILTER_REFERENCE = 1;
static const int CSS_FILTER_SATURATE = 4;
static const int CSS_FILTER_SEPIA = 3;
/** @domName WebKitCSSFilterValue.operationType */
int get operationType;
}
// 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.
// WARNING: Do not edit - generated code.
class _WebKitCSSFilterValueImpl extends _CSSValueListImpl implements WebKitCSSFilterValue {
int get operationType native "WebKitCSSFilterValue_operationType_Getter";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName WebKitNamedFlow
abstract class WebKitNamedFlow implements EventTarget {
/** @domName WebKitNamedFlow.firstEmptyRegionIndex */
int get firstEmptyRegionIndex;
/** @domName WebKitNamedFlow.name */
String get name;
/** @domName WebKitNamedFlow.overset */
bool get overset;
/** @domName WebKitNamedFlow.addEventListener */
void $dom_addEventListener(String type, EventListener listener, [bool useCapture]);
/** @domName WebKitNamedFlow.dispatchEvent */
bool $dom_dispatchEvent(Event event);
/** @domName WebKitNamedFlow.getContent */
List<Node> getContent();
/** @domName WebKitNamedFlow.getRegions */
List<Node> getRegions();
/** @domName WebKitNamedFlow.getRegionsByContent */
List<Node> getRegionsByContent(Node contentNode);
/** @domName WebKitNamedFlow.removeEventListener */
void $dom_removeEventListener(String type, EventListener listener, [bool useCapture]);
}
// 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.
// WARNING: Do not edit - generated code.
class _WebKitNamedFlowImpl extends _EventTargetImpl implements WebKitNamedFlow {
int get firstEmptyRegionIndex native "WebKitNamedFlow_firstEmptyRegionIndex_Getter";
String get name native "WebKitNamedFlow_name_Getter";
bool get overset native "WebKitNamedFlow_overset_Getter";
void $dom_addEventListener(String type, EventListener listener, [bool useCapture]) native "WebKitNamedFlow_addEventListener_Callback";
bool $dom_dispatchEvent(Event event) native "WebKitNamedFlow_dispatchEvent_Callback";
List<Node> getContent() native "WebKitNamedFlow_getContent_Callback";
List<Node> getRegions() native "WebKitNamedFlow_getRegions_Callback";
List<Node> getRegionsByContent(Node contentNode) native "WebKitNamedFlow_getRegionsByContent_Callback";
void $dom_removeEventListener(String type, EventListener listener, [bool useCapture]) native "WebKitNamedFlow_removeEventListener_Callback";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName WebSocket
abstract class WebSocket implements EventTarget {
factory WebSocket(String url) => _WebSocketFactoryProvider.createWebSocket(url);
/**
* @domName EventTarget.addEventListener, EventTarget.removeEventListener, EventTarget.dispatchEvent
*/
WebSocketEvents get on;
static const int CLOSED = 3;
static const int CLOSING = 2;
static const int CONNECTING = 0;
static const int OPEN = 1;
/** @domName WebSocket.URL */
String get URL;
/** @domName WebSocket.binaryType */
String binaryType;
/** @domName WebSocket.bufferedAmount */
int get bufferedAmount;
/** @domName WebSocket.extensions */
String get extensions;
/** @domName WebSocket.protocol */
String get protocol;
/** @domName WebSocket.readyState */
int get readyState;
/** @domName WebSocket.url */
String get url;
/** @domName WebSocket.addEventListener */
void $dom_addEventListener(String type, EventListener listener, [bool useCapture]);
/** @domName WebSocket.close */
void close([int code, String reason]);
/** @domName WebSocket.dispatchEvent */
bool $dom_dispatchEvent(Event evt);
/** @domName WebSocket.removeEventListener */
void $dom_removeEventListener(String type, EventListener listener, [bool useCapture]);
/** @domName WebSocket.send */
void send(data);
}
abstract class WebSocketEvents implements Events {
EventListenerList get close;
EventListenerList get error;
EventListenerList get message;
EventListenerList get open;
}
// 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.
// WARNING: Do not edit - generated code.
class _WebSocketImpl extends _EventTargetImpl implements WebSocket {
_WebSocketEventsImpl get on =>
new _WebSocketEventsImpl(this);
String get URL native "WebSocket_URL_Getter";
String get binaryType native "WebSocket_binaryType_Getter";
void set binaryType(String value) native "WebSocket_binaryType_Setter";
int get bufferedAmount native "WebSocket_bufferedAmount_Getter";
String get extensions native "WebSocket_extensions_Getter";
String get protocol native "WebSocket_protocol_Getter";
int get readyState native "WebSocket_readyState_Getter";
String get url native "WebSocket_url_Getter";
void $dom_addEventListener(String type, EventListener listener, [bool useCapture]) native "WebSocket_addEventListener_Callback";
void close([/*unsigned short*/ code, /*DOMString*/ reason]) {
if (?reason) {
_close_1(code, reason);
return;
}
if (?code) {
_close_2(code);
return;
}
_close_3();
}
void _close_1(code, reason) native "WebSocket_close_1_Callback";
void _close_2(code) native "WebSocket_close_2_Callback";
void _close_3() native "WebSocket_close_3_Callback";
bool $dom_dispatchEvent(Event evt) native "WebSocket_dispatchEvent_Callback";
void $dom_removeEventListener(String type, EventListener listener, [bool useCapture]) native "WebSocket_removeEventListener_Callback";
void send(data) native "WebSocket_send_Callback";
}
class _WebSocketEventsImpl extends _EventsImpl implements WebSocketEvents {
_WebSocketEventsImpl(_ptr) : super(_ptr);
EventListenerList get close => this['close'];
EventListenerList get error => this['error'];
EventListenerList get message => this['message'];
EventListenerList get open => this['open'];
}
// 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.
/// @domName WheelEvent
abstract class WheelEvent implements MouseEvent {
/** @domName WheelEvent.webkitDirectionInvertedFromDevice */
bool get webkitDirectionInvertedFromDevice;
/** @domName WheelEvent.wheelDeltaX */
int get $dom_wheelDeltaX;
/** @domName WheelEvent.wheelDeltaY */
int get $dom_wheelDeltaY;
/** @domName WheelEvent.initWebKitWheelEvent */
void initWebKitWheelEvent(int wheelDeltaX, int wheelDeltaY, LocalWindow view, int screenX, int screenY, int clientX, int clientY, bool ctrlKey, bool altKey, bool shiftKey, bool metaKey);
/** @domName WheelEvent.deltaX */
abstract num get deltaX;
/** @domName WheelEvent.deltaY */
abstract num get deltaY;
/** @domName WheelEvent.deltaMode */
abstract int get deltaMode;
}
// 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 _WheelEventImpl extends _MouseEventImpl implements WheelEvent {
bool get webkitDirectionInvertedFromDevice native "WheelEvent_webkitDirectionInvertedFromDevice_Getter";
int get $dom_wheelDeltaX native "WheelEvent_wheelDeltaX_Getter";
int get $dom_wheelDeltaY native "WheelEvent_wheelDeltaY_Getter";
void initWebKitWheelEvent(int wheelDeltaX, int wheelDeltaY, LocalWindow view, int screenX, int screenY, int clientX, int clientY, bool ctrlKey, bool altKey, bool shiftKey, bool metaKey) native "WheelEvent_initWebKitWheelEvent_Callback";
num get deltaX => $dom_wheelDeltaX;
num get deltaY => $dom_wheelDeltaY;
int get deltaMode => 0;
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName Worker
abstract class Worker implements AbstractWorker {
factory Worker(String scriptUrl) => _WorkerFactoryProvider.createWorker(scriptUrl);
/**
* @domName EventTarget.addEventListener, EventTarget.removeEventListener, EventTarget.dispatchEvent
*/
WorkerEvents get on;
/** @domName Worker.postMessage */
void postMessage(/*SerializedScriptValue*/ message, [List messagePorts]);
/** @domName Worker.terminate */
void terminate();
}
abstract class WorkerEvents implements AbstractWorkerEvents {
EventListenerList get message;
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName WorkerContext
abstract class WorkerContext implements EventTarget {
/**
* @domName EventTarget.addEventListener, EventTarget.removeEventListener, EventTarget.dispatchEvent
*/
WorkerContextEvents get on;
static const int PERSISTENT = 1;
static const int TEMPORARY = 0;
/** @domName WorkerContext.indexedDB */
IDBFactory get indexedDB;
/** @domName WorkerContext.location */
WorkerLocation get location;
/** @domName WorkerContext.navigator */
WorkerNavigator get navigator;
/** @domName WorkerContext.self */
WorkerContext get self;
/** @domName WorkerContext.webkitIndexedDB */
IDBFactory get webkitIndexedDB;
/** @domName WorkerContext.webkitNotifications */
NotificationCenter get webkitNotifications;
/** @domName WorkerContext.addEventListener */
void $dom_addEventListener(String type, EventListener listener, [bool useCapture]);
/** @domName WorkerContext.clearInterval */
void clearInterval(int handle);
/** @domName WorkerContext.clearTimeout */
void clearTimeout(int handle);
/** @domName WorkerContext.close */
void close();
/** @domName WorkerContext.dispatchEvent */
bool $dom_dispatchEvent(Event evt);
/** @domName WorkerContext.importScripts */
void importScripts();
/** @domName WorkerContext.openDatabase */
Database openDatabase(String name, String version, String displayName, int estimatedSize, [DatabaseCallback creationCallback]);
/** @domName WorkerContext.openDatabaseSync */
DatabaseSync openDatabaseSync(String name, String version, String displayName, int estimatedSize, [DatabaseCallback creationCallback]);
/** @domName WorkerContext.removeEventListener */
void $dom_removeEventListener(String type, EventListener listener, [bool useCapture]);
/** @domName WorkerContext.setInterval */
int setInterval(TimeoutHandler handler, int timeout);
/** @domName WorkerContext.setTimeout */
int setTimeout(TimeoutHandler handler, int timeout);
/** @domName WorkerContext.webkitRequestFileSystem */
void webkitRequestFileSystem(int type, int size, [FileSystemCallback successCallback, ErrorCallback errorCallback]);
/** @domName WorkerContext.webkitRequestFileSystemSync */
DOMFileSystemSync webkitRequestFileSystemSync(int type, int size);
/** @domName WorkerContext.webkitResolveLocalFileSystemSyncURL */
EntrySync webkitResolveLocalFileSystemSyncURL(String url);
/** @domName WorkerContext.webkitResolveLocalFileSystemURL */
void webkitResolveLocalFileSystemURL(String url, EntryCallback successCallback, [ErrorCallback errorCallback]);
}
abstract class WorkerContextEvents implements Events {
EventListenerList get error;
}
// 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.
// WARNING: Do not edit - generated code.
class _WorkerContextImpl extends _EventTargetImpl implements WorkerContext {
_WorkerContextEventsImpl get on =>
new _WorkerContextEventsImpl(this);
IDBFactory get indexedDB native "WorkerContext_indexedDB_Getter";
WorkerLocation get location native "WorkerContext_location_Getter";
WorkerNavigator get navigator native "WorkerContext_navigator_Getter";
WorkerContext get self native "WorkerContext_self_Getter";
IDBFactory get webkitIndexedDB native "WorkerContext_webkitIndexedDB_Getter";
NotificationCenter get webkitNotifications native "WorkerContext_webkitNotifications_Getter";
void $dom_addEventListener(String type, EventListener listener, [bool useCapture]) native "WorkerContext_addEventListener_Callback";
void clearInterval(int handle) native "WorkerContext_clearInterval_Callback";
void clearTimeout(int handle) native "WorkerContext_clearTimeout_Callback";
void close() native "WorkerContext_close_Callback";
bool $dom_dispatchEvent(Event evt) native "WorkerContext_dispatchEvent_Callback";
void importScripts() native "WorkerContext_importScripts_Callback";
Database openDatabase(String name, String version, String displayName, int estimatedSize, [DatabaseCallback creationCallback]) native "WorkerContext_openDatabase_Callback";
DatabaseSync openDatabaseSync(String name, String version, String displayName, int estimatedSize, [DatabaseCallback creationCallback]) native "WorkerContext_openDatabaseSync_Callback";
void $dom_removeEventListener(String type, EventListener listener, [bool useCapture]) native "WorkerContext_removeEventListener_Callback";
int setInterval(TimeoutHandler handler, int timeout) native "WorkerContext_setInterval_Callback";
int setTimeout(TimeoutHandler handler, int timeout) native "WorkerContext_setTimeout_Callback";
void webkitRequestFileSystem(int type, int size, [FileSystemCallback successCallback, ErrorCallback errorCallback]) native "WorkerContext_webkitRequestFileSystem_Callback";
DOMFileSystemSync webkitRequestFileSystemSync(int type, int size) native "WorkerContext_webkitRequestFileSystemSync_Callback";
EntrySync webkitResolveLocalFileSystemSyncURL(String url) native "WorkerContext_webkitResolveLocalFileSystemSyncURL_Callback";
void webkitResolveLocalFileSystemURL(String url, EntryCallback successCallback, [ErrorCallback errorCallback]) native "WorkerContext_webkitResolveLocalFileSystemURL_Callback";
}
class _WorkerContextEventsImpl extends _EventsImpl implements WorkerContextEvents {
_WorkerContextEventsImpl(_ptr) : super(_ptr);
EventListenerList get error => this['error'];
}
// 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.
// WARNING: Do not edit - generated code.
class _WorkerImpl extends _AbstractWorkerImpl implements Worker {
_WorkerEventsImpl get on =>
new _WorkerEventsImpl(this);
void postMessage(/*SerializedScriptValue*/ message, [List messagePorts]) native "Worker_postMessage_Callback";
void terminate() native "Worker_terminate_Callback";
}
class _WorkerEventsImpl extends _AbstractWorkerEventsImpl implements WorkerEvents {
_WorkerEventsImpl(_ptr) : super(_ptr);
EventListenerList get message => this['message'];
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName WorkerLocation
abstract class WorkerLocation {
/** @domName WorkerLocation.hash */
String get hash;
/** @domName WorkerLocation.host */
String get host;
/** @domName WorkerLocation.hostname */
String get hostname;
/** @domName WorkerLocation.href */
String get href;
/** @domName WorkerLocation.pathname */
String get pathname;
/** @domName WorkerLocation.port */
String get port;
/** @domName WorkerLocation.protocol */
String get protocol;
/** @domName WorkerLocation.search */
String get search;
/** @domName WorkerLocation.toString */
String toString();
}
// 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.
// WARNING: Do not edit - generated code.
class _WorkerLocationImpl extends NativeFieldWrapperClass1 implements WorkerLocation {
String get hash native "WorkerLocation_hash_Getter";
String get host native "WorkerLocation_host_Getter";
String get hostname native "WorkerLocation_hostname_Getter";
String get href native "WorkerLocation_href_Getter";
String get pathname native "WorkerLocation_pathname_Getter";
String get port native "WorkerLocation_port_Getter";
String get protocol native "WorkerLocation_protocol_Getter";
String get search native "WorkerLocation_search_Getter";
String toString() native "WorkerLocation_toString_Callback";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName WorkerNavigator
abstract class WorkerNavigator {
/** @domName WorkerNavigator.appName */
String get appName;
/** @domName WorkerNavigator.appVersion */
String get appVersion;
/** @domName WorkerNavigator.onLine */
bool get onLine;
/** @domName WorkerNavigator.platform */
String get platform;
/** @domName WorkerNavigator.userAgent */
String get userAgent;
}
// 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.
// WARNING: Do not edit - generated code.
class _WorkerNavigatorImpl extends NativeFieldWrapperClass1 implements WorkerNavigator {
String get appName native "WorkerNavigator_appName_Getter";
String get appVersion native "WorkerNavigator_appVersion_Getter";
bool get onLine native "WorkerNavigator_onLine_Getter";
String get platform native "WorkerNavigator_platform_Getter";
String get userAgent native "WorkerNavigator_userAgent_Getter";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName XMLSerializer
abstract class XMLSerializer {
factory XMLSerializer() => _XMLSerializerFactoryProvider.createXMLSerializer();
/** @domName XMLSerializer.serializeToString */
String serializeToString(Node node);
}
// 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.
// WARNING: Do not edit - generated code.
class _XMLSerializerImpl extends NativeFieldWrapperClass1 implements XMLSerializer {
String serializeToString(Node node) native "XMLSerializer_serializeToString_Callback";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName XPathEvaluator
abstract class XPathEvaluator {
factory XPathEvaluator() => _XPathEvaluatorFactoryProvider.createXPathEvaluator();
/** @domName XPathEvaluator.createExpression */
XPathExpression createExpression(String expression, XPathNSResolver resolver);
/** @domName XPathEvaluator.createNSResolver */
XPathNSResolver createNSResolver(Node nodeResolver);
/** @domName XPathEvaluator.evaluate */
XPathResult evaluate(String expression, Node contextNode, XPathNSResolver resolver, int type, XPathResult inResult);
}
// 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.
// WARNING: Do not edit - generated code.
class _XPathEvaluatorImpl extends NativeFieldWrapperClass1 implements XPathEvaluator {
XPathExpression createExpression(String expression, XPathNSResolver resolver) native "XPathEvaluator_createExpression_Callback";
XPathNSResolver createNSResolver(Node nodeResolver) native "XPathEvaluator_createNSResolver_Callback";
XPathResult evaluate(String expression, Node contextNode, XPathNSResolver resolver, int type, XPathResult inResult) native "XPathEvaluator_evaluate_Callback";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName XPathException
abstract class XPathException {
static const int INVALID_EXPRESSION_ERR = 51;
static const int TYPE_ERR = 52;
/** @domName XPathException.code */
int get code;
/** @domName XPathException.message */
String get message;
/** @domName XPathException.name */
String get name;
/** @domName XPathException.toString */
String toString();
}
// 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.
// WARNING: Do not edit - generated code.
class _XPathExceptionImpl extends NativeFieldWrapperClass1 implements XPathException {
int get code native "XPathException_code_Getter";
String get message native "XPathException_message_Getter";
String get name native "XPathException_name_Getter";
String toString() native "XPathException_toString_Callback";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName XPathExpression
abstract class XPathExpression {
/** @domName XPathExpression.evaluate */
XPathResult evaluate(Node contextNode, int type, XPathResult inResult);
}
// 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.
// WARNING: Do not edit - generated code.
class _XPathExpressionImpl extends NativeFieldWrapperClass1 implements XPathExpression {
XPathResult evaluate(Node contextNode, int type, XPathResult inResult) native "XPathExpression_evaluate_Callback";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName XPathNSResolver
abstract class XPathNSResolver {
/** @domName XPathNSResolver.lookupNamespaceURI */
String lookupNamespaceURI(String prefix);
}
// 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.
// WARNING: Do not edit - generated code.
class _XPathNSResolverImpl extends NativeFieldWrapperClass1 implements XPathNSResolver {
String lookupNamespaceURI(String prefix) native "XPathNSResolver_lookupNamespaceURI_Callback";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName XPathResult
abstract class XPathResult {
static const int ANY_TYPE = 0;
static const int ANY_UNORDERED_NODE_TYPE = 8;
static const int BOOLEAN_TYPE = 3;
static const int FIRST_ORDERED_NODE_TYPE = 9;
static const int NUMBER_TYPE = 1;
static const int ORDERED_NODE_ITERATOR_TYPE = 5;
static const int ORDERED_NODE_SNAPSHOT_TYPE = 7;
static const int STRING_TYPE = 2;
static const int UNORDERED_NODE_ITERATOR_TYPE = 4;
static const int UNORDERED_NODE_SNAPSHOT_TYPE = 6;
/** @domName XPathResult.booleanValue */
bool get booleanValue;
/** @domName XPathResult.invalidIteratorState */
bool get invalidIteratorState;
/** @domName XPathResult.numberValue */
num get numberValue;
/** @domName XPathResult.resultType */
int get resultType;
/** @domName XPathResult.singleNodeValue */
Node get singleNodeValue;
/** @domName XPathResult.snapshotLength */
int get snapshotLength;
/** @domName XPathResult.stringValue */
String get stringValue;
/** @domName XPathResult.iterateNext */
Node iterateNext();
/** @domName XPathResult.snapshotItem */
Node snapshotItem(int index);
}
// 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.
// WARNING: Do not edit - generated code.
class _XPathResultImpl extends NativeFieldWrapperClass1 implements XPathResult {
bool get booleanValue native "XPathResult_booleanValue_Getter";
bool get invalidIteratorState native "XPathResult_invalidIteratorState_Getter";
num get numberValue native "XPathResult_numberValue_Getter";
int get resultType native "XPathResult_resultType_Getter";
Node get singleNodeValue native "XPathResult_singleNodeValue_Getter";
int get snapshotLength native "XPathResult_snapshotLength_Getter";
String get stringValue native "XPathResult_stringValue_Getter";
Node iterateNext() native "XPathResult_iterateNext_Callback";
Node snapshotItem(int index) native "XPathResult_snapshotItem_Callback";
}
// 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.
// WARNING: Do not edit - generated code.
/// @domName XSLTProcessor
abstract class XSLTProcessor {
factory XSLTProcessor() => _XSLTProcessorFactoryProvider.createXSLTProcessor();
/** @domName XSLTProcessor.clearParameters */
void clearParameters();
/** @domName XSLTProcessor.getParameter */
String getParameter(String namespaceURI, String localName);
/** @domName XSLTProcessor.importStylesheet */
void importStylesheet(Node stylesheet);
/** @domName XSLTProcessor.removeParameter */
void removeParameter(String namespaceURI, String localName);
/** @domName XSLTProcessor.reset */
void reset();
/** @domName XSLTProcessor.setParameter */
void setParameter(String namespaceURI, String localName, String value);
/** @domName XSLTProcessor.transformToDocument */
Document transformToDocument(Node source);
/** @domName XSLTProcessor.transformToFragment */
DocumentFragment transformToFragment(Node source, Document docVal);
}
// 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.
// WARNING: Do not edit - generated code.
class _XSLTProcessorImpl extends NativeFieldWrapperClass1 implements XSLTProcessor {
void clearParameters() native "XSLTProcessor_clearParameters_Callback";
String getParameter(String namespaceURI, String localName) native "XSLTProcessor_getParameter_Callback";
void importStylesheet(Node stylesheet) native "XSLTProcessor_importStylesheet_Callback";
void removeParameter(String namespaceURI, String localName) native "XSLTProcessor_removeParameter_Callback";
void reset() native "XSLTProcessor_reset_Callback";
void setParameter(String namespaceURI, String localName, String value) native "XSLTProcessor_setParameter_Callback";
Document transformToDocument(Node source) native "XSLTProcessor_transformToDocument_Callback";
DocumentFragment transformToFragment(Node source, Document docVal) native "XSLTProcessor_transformToFragment_Callback";
}
// 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 _ArrayBufferFactoryProvider {
static ArrayBuffer createArrayBuffer(int length) native "ArrayBuffer_constructor_Callback";
}
// 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 _AudioElementFactoryProvider {
static AudioElement createAudioElement([String src]) native "HTMLAudioElement_constructor_Callback";
}
// 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 _BlobFactoryProvider {
static Blob createBlob(List blobParts, [String type, String endings]) native "Blob_constructor_Callback";
}
// 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 _CSSMatrixFactoryProvider {
static CSSMatrix createCSSMatrix([String cssValue]) native "WebKitCSSMatrix_constructor_Callback";
}
// 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 _DOMParserFactoryProvider {
static DOMParser createDOMParser() native "DOMParser_constructor_Callback";
}
// 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 _DOMURLFactoryProvider {
static DOMURL createDOMURL() native "DOMURL_constructor_Callback";
}
// 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 _DataViewFactoryProvider {
static DataView createDataView(ArrayBuffer buffer, [int byteOffset, int byteLength]) native "DataView_constructor_Callback";
}
// 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 _Elements {
static AnchorElement createAnchorElement([String href]) {
_AnchorElementImpl _e = _document.$dom_createElement("a");
if (href != null) _e.href = href;
return _e;
}
static AreaElement createAreaElement() {
_AreaElementImpl _e = _document.$dom_createElement("area");
return _e;
}
static BRElement createBRElement() {
_BRElementImpl _e = _document.$dom_createElement("br");
return _e;
}
static BaseElement createBaseElement() {
_BaseElementImpl _e = _document.$dom_createElement("base");
return _e;
}
static BodyElement createBodyElement() {
_BodyElementImpl _e = _document.$dom_createElement("body");
return _e;
}
static ButtonElement createButtonElement() {
_ButtonElementImpl _e = _document.$dom_createElement("button");
return _e;
}
static CanvasElement createCanvasElement([int width, int height]) {
_CanvasElementImpl _e = _document.$dom_createElement("canvas");
if (width != null) _e.width = width;
if (height != null) _e.height = height;
return _e;
}
static ContentElement createContentElement() {
_ContentElementImpl _e = _document.$dom_createElement("content");
return _e;
}
static DListElement createDListElement() {
_DListElementImpl _e = _document.$dom_createElement("dl");
return _e;
}
static DataListElement createDataListElement() {
_DataListElementImpl _e = _document.$dom_createElement("datalist");
return _e;
}
static DetailsElement createDetailsElement() {
_DetailsElementImpl _e = _document.$dom_createElement("details");
return _e;
}
static DivElement createDivElement() {
_DivElementImpl _e = _document.$dom_createElement("div");
return _e;
}
static EmbedElement createEmbedElement() {
_EmbedElementImpl _e = _document.$dom_createElement("embed");
return _e;
}
static FieldSetElement createFieldSetElement() {
_FieldSetElementImpl _e = _document.$dom_createElement("fieldset");
return _e;
}
static FormElement createFormElement() {
_FormElementImpl _e = _document.$dom_createElement("form");
return _e;
}
static HRElement createHRElement() {
_HRElementImpl _e = _document.$dom_createElement("hr");
return _e;
}
static HeadElement createHeadElement() {
_HeadElementImpl _e = _document.$dom_createElement("head");
return _e;
}
static HeadingElement createHeadingElement_h1() {
_HeadingElementImpl _e = _document.$dom_createElement("h1");
return _e;
}
static HeadingElement createHeadingElement_h2() {
_HeadingElementImpl _e = _document.$dom_createElement("h2");
return _e;
}
static HeadingElement createHeadingElement_h3() {
_HeadingElementImpl _e = _document.$dom_createElement("h3");
return _e;
}
static HeadingElement createHeadingElement_h4() {
_HeadingElementImpl _e = _document.$dom_createElement("h4");
return _e;
}
static HeadingElement createHeadingElement_h5() {
_HeadingElementImpl _e = _document.$dom_createElement("h5");
return _e;
}
static HeadingElement createHeadingElement_h6() {
_HeadingElementImpl _e = _document.$dom_createElement("h6");
return _e;
}
static HtmlElement createHtmlElement() {
_HtmlElementImpl _e = _document.$dom_createElement("html");
return _e;
}
static IFrameElement createIFrameElement() {
_IFrameElementImpl _e = _document.$dom_createElement("iframe");
return _e;
}
static ImageElement createImageElement([String src, int width, int height]) {
_ImageElementImpl _e = _document.$dom_createElement("img");
if (src != null) _e.src = src;
if (width != null) _e.width = width;
if (height != null) _e.height = height;
return _e;
}
static InputElement createInputElement([String type]) {
_InputElementImpl _e = _document.$dom_createElement("input");
if (type != null) _e.type = type;
return _e;
}
static KeygenElement createKeygenElement() {
_KeygenElementImpl _e = _document.$dom_createElement("keygen");
return _e;
}
static LIElement createLIElement() {
_LIElementImpl _e = _document.$dom_createElement("li");
return _e;
}
static LabelElement createLabelElement() {
_LabelElementImpl _e = _document.$dom_createElement("label");
return _e;
}
static LegendElement createLegendElement() {
_LegendElementImpl _e = _document.$dom_createElement("legend");
return _e;
}
static LinkElement createLinkElement() {
_LinkElementImpl _e = _document.$dom_createElement("link");
return _e;
}
static MapElement createMapElement() {
_MapElementImpl _e = _document.$dom_createElement("map");
return _e;
}
static MenuElement createMenuElement() {
_MenuElementImpl _e = _document.$dom_createElement("menu");
return _e;
}
static MeterElement createMeterElement() {
_MeterElementImpl _e = _document.$dom_createElement("meter");
return _e;
}
static OListElement createOListElement() {
_OListElementImpl _e = _document.$dom_createElement("ol");
return _e;
}
static ObjectElement createObjectElement() {
_ObjectElementImpl _e = _document.$dom_createElement("object");
return _e;
}
static OptGroupElement createOptGroupElement() {
_OptGroupElementImpl _e = _document.$dom_createElement("optgroup");
return _e;
}
static OutputElement createOutputElement() {
_OutputElementImpl _e = _document.$dom_createElement("output");
return _e;
}
static ParagraphElement createParagraphElement() {
_ParagraphElementImpl _e = _document.$dom_createElement("p");
return _e;
}
static ParamElement createParamElement() {
_ParamElementImpl _e = _document.$dom_createElement("param");
return _e;
}
static PreElement createPreElement() {
_PreElementImpl _e = _document.$dom_createElement("pre");
return _e;
}
static ProgressElement createProgressElement() {
_ProgressElementImpl _e = _document.$dom_createElement("progress");
return _e;
}
static ScriptElement createScriptElement() {
_ScriptElementImpl _e = _document.$dom_createElement("script");
return _e;
}
static SelectElement createSelectElement() {
_SelectElementImpl _e = _document.$dom_createElement("select");
return _e;
}
static SourceElement createSourceElement() {
_SourceElementImpl _e = _document.$dom_createElement("source");
return _e;
}
static SpanElement createSpanElement() {
_SpanElementImpl _e = _document.$dom_createElement("span");
return _e;
}
static StyleElement createStyleElement() {
_StyleElementImpl _e = _document.$dom_createElement("style");
return _e;
}
static TableCaptionElement createTableCaptionElement() {
_TableCaptionElementImpl _e = _document.$dom_createElement("caption");
return _e;
}
static TableCellElement createTableCellElement() {
_TableCellElementImpl _e = _document.$dom_createElement("td");
return _e;
}
static TableColElement createTableColElement() {
_TableColElementImpl _e = _document.$dom_createElement("col");
return _e;
}
static TableElement createTableElement() {
_TableElementImpl _e = _document.$dom_createElement("table");
return _e;
}
static TableRowElement createTableRowElement() {
_TableRowElementImpl _e = _document.$dom_createElement("tr");
return _e;
}
static TextAreaElement createTextAreaElement() {
_TextAreaElementImpl _e = _document.$dom_createElement("textarea");
return _e;
}
static TitleElement createTitleElement() {
_TitleElementImpl _e = _document.$dom_createElement("title");
return _e;
}
static TrackElement createTrackElement() {
_TrackElementImpl _e = _document.$dom_createElement("track");
return _e;
}
static UListElement createUListElement() {
_UListElementImpl _e = _document.$dom_createElement("ul");
return _e;
}
static VideoElement createVideoElement() {
_VideoElementImpl _e = _document.$dom_createElement("video");
return _e;
}
}
// 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 _EventSourceFactoryProvider {
static EventSource createEventSource(String scriptUrl) native "EventSource_constructor_Callback";
}
// 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 _FileReaderFactoryProvider {
static FileReader createFileReader() native "FileReader_constructor_Callback";
}
// 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 _FileReaderSyncFactoryProvider {
static FileReaderSync createFileReaderSync() native "FileReaderSync_constructor_Callback";
}
// 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 _FormDataFactoryProvider {
static FormData createFormData([FormElement form]) native "DOMFormData_constructor_Callback";
}
// 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 _HttpRequestFactoryProvider {
static HttpRequest createHttpRequest() => _createHttpRequest();
static HttpRequest _createHttpRequest() native "XMLHttpRequest_constructor_Callback";
static HttpRequest createHttpRequest_get(String url,
onSuccess(HttpRequest request)) =>
_HttpRequestUtils.get(url, onSuccess, false);
static HttpRequest createHttpRequest_getWithCredentials(String url,
onSuccess(HttpRequest request)) =>
_HttpRequestUtils.get(url, onSuccess, true);
}
// 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 _IceCandidateFactoryProvider {
static IceCandidate createIceCandidate(String label, String candidateLine) native "IceCandidate_constructor_Callback";
}
// 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 _MediaControllerFactoryProvider {
static MediaController createMediaController() native "MediaController_constructor_Callback";
}
// 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 _MediaSourceFactoryProvider {
static MediaSource createMediaSource() native "MediaSource_constructor_Callback";
}
// 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 _MediaStreamFactoryProvider {
static MediaStream createMediaStream(MediaStreamTrackList audioTracks, MediaStreamTrackList videoTracks) native "MediaStream_constructor_Callback";
}
// 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 _MessageChannelFactoryProvider {
static MessageChannel createMessageChannel() native "MessageChannel_constructor_Callback";
}
// 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 _MutationObserverFactoryProvider {
static MutationObserver createMutationObserver(MutationCallback callback) native "MutationObserver_constructor_Callback";
}
// 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 _NotificationFactoryProvider {
static Notification createNotification(String title, [Map options]) native "Notification_constructor_Callback";
}
// 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 _OptionElementFactoryProvider {
static OptionElement createOptionElement([String data, String value, bool defaultSelected, bool selected]) native "HTMLOptionElement_constructor_Callback";
}
// 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 _PeerConnection00FactoryProvider {
static PeerConnection00 createPeerConnection00(String serverConfiguration, IceCallback iceCallback) native "PeerConnection00_constructor_Callback";
}
// 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 _RTCIceCandidateFactoryProvider {
static RTCIceCandidate createRTCIceCandidate(Map dictionary) native "RTCIceCandidate_constructor_Callback";
}
// 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 _RTCPeerConnectionFactoryProvider {
static RTCPeerConnection createRTCPeerConnection(Map rtcIceServers, [Map mediaConstraints]) native "RTCPeerConnection_constructor_Callback";
}
// 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 _RTCSessionDescriptionFactoryProvider {
static RTCSessionDescription createRTCSessionDescription(Map dictionary) native "RTCSessionDescription_constructor_Callback";
}
// 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 _SessionDescriptionFactoryProvider {
static SessionDescription createSessionDescription(String sdp) native "SessionDescription_constructor_Callback";
}
// 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 _ShadowRootFactoryProvider {
static ShadowRoot createShadowRoot(Element host) native "ShadowRoot_constructor_Callback";
}
// 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 _SharedWorkerFactoryProvider {
static SharedWorker createSharedWorker(String scriptURL, [String name]) native "SharedWorker_constructor_Callback";
}
// 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 _SpeechGrammarFactoryProvider {
static SpeechGrammar createSpeechGrammar() native "SpeechGrammar_constructor_Callback";
}
// 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 _SpeechGrammarListFactoryProvider {
static SpeechGrammarList createSpeechGrammarList() native "SpeechGrammarList_constructor_Callback";
}
// 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 _SpeechRecognitionFactoryProvider {
static SpeechRecognition createSpeechRecognition() native "SpeechRecognition_constructor_Callback";
}
// 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 _TextTrackCueFactoryProvider {
static TextTrackCue createTextTrackCue(num startTime, num endTime, String text) native "TextTrackCue_constructor_Callback";
}
// 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 _WorkerFactoryProvider {
static Worker createWorker(String scriptUrl) native "Worker_constructor_Callback";
}
// 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 _XMLSerializerFactoryProvider {
static XMLSerializer createXMLSerializer() native "XMLSerializer_constructor_Callback";
}
// 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 _XPathEvaluatorFactoryProvider {
static XPathEvaluator createXPathEvaluator() native "XPathEvaluator_constructor_Callback";
}
// 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 _XSLTProcessorFactoryProvider {
static XSLTProcessor createXSLTProcessor() native "XSLTProcessor_constructor_Callback";
}
// 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.
abstract class Window {
// Fields.
Location get location;
History get history;
bool get closed;
Window get opener;
Window get parent;
Window get top;
// Methods.
void focus();
void blur();
void close();
void postMessage(var message, String targetOrigin, [List messagePorts = null]);
}
abstract class Location {
void set href(String val);
}
abstract class History {
void back();
void forward();
void go(int distance);
}
// 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.
typedef void EventListener(Event event);
// 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.
/**
* Defines the standard key locations returned by
* KeyboardEvent.getKeyLocation.
*/
abstract class KeyLocation {
/**
* The event key is not distinguished as the left or right version
* of the key, and did not originate from the numeric keypad (or did not
* originate with a virtual key corresponding to the numeric keypad).
*/
static const int STANDARD = 0;
/**
* The event key is in the left key location.
*/
static const int LEFT = 1;
/**
* The event key is in the right key location.
*/
static const int RIGHT = 2;
/**
* The event key originated on the numeric keypad or with a virtual key
* corresponding to the numeric keypad.
*/
static const int NUMPAD = 3;
/**
* The event key originated on a mobile device, either on a physical
* keypad or a virtual keyboard.
*/
static const int MOBILE = 4;
/**
* The event key originated on a game controller or a joystick on a mobile
* device.
*/
static const int JOYSTICK = 5;
}
// 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.
/**
* Defines the standard keyboard identifier names for keys that are returned
* by KeyEvent.getKeyboardIdentifier when the key does not have a direct
* unicode mapping.
*/
abstract class KeyName {
/** The Accept (Commit, OK) key */
static const String ACCEPT = "Accept";
/** The Add key */
static const String ADD = "Add";
/** The Again key */
static const String AGAIN = "Again";
/** The All Candidates key */
static const String ALL_CANDIDATES = "AllCandidates";
/** The Alphanumeric key */
static const String ALPHANUMERIC = "Alphanumeric";
/** The Alt (Menu) key */
static const String ALT = "Alt";
/** The Alt-Graph key */
static const String ALT_GRAPH = "AltGraph";
/** The Application key */
static const String APPS = "Apps";
/** The ATTN key */
static const String ATTN = "Attn";
/** The Browser Back key */
static const String BROWSER_BACK = "BrowserBack";
/** The Browser Favorites key */
static const String BROWSER_FAVORTIES = "BrowserFavorites";
/** The Browser Forward key */
static const String BROWSER_FORWARD = "BrowserForward";
/** The Browser Home key */
static const String BROWSER_NAME = "BrowserHome";
/** The Browser Refresh key */
static const String BROWSER_REFRESH = "BrowserRefresh";
/** The Browser Search key */
static const String BROWSER_SEARCH = "BrowserSearch";
/** The Browser Stop key */
static const String BROWSER_STOP = "BrowserStop";
/** The Camera key */
static const String CAMERA = "Camera";
/** The Caps Lock (Capital) key */
static const String CAPS_LOCK = "CapsLock";
/** The Clear key */
static const String CLEAR = "Clear";
/** The Code Input key */
static const String CODE_INPUT = "CodeInput";
/** The Compose key */
static const String COMPOSE = "Compose";
/** The Control (Ctrl) key */
static const String CONTROL = "Control";
/** The Crsel key */
static const String CRSEL = "Crsel";
/** The Convert key */
static const String CONVERT = "Convert";
/** The Copy key */
static const String COPY = "Copy";
/** The Cut key */
static const String CUT = "Cut";
/** The Decimal key */
static const String DECIMAL = "Decimal";
/** The Divide key */
static const String DIVIDE = "Divide";
/** The Down Arrow key */
static const String DOWN = "Down";
/** The diagonal Down-Left Arrow key */
static const String DOWN_LEFT = "DownLeft";
/** The diagonal Down-Right Arrow key */
static const String DOWN_RIGHT = "DownRight";
/** The Eject key */
static const String EJECT = "Eject";
/** The End key */
static const String END = "End";
/**
* The Enter key. Note: This key value must also be used for the Return
* (Macintosh numpad) key
*/
static const String ENTER = "Enter";
/** The Erase EOF key */
static const String ERASE_EOF= "EraseEof";
/** The Execute key */
static const String EXECUTE = "Execute";
/** The Exsel key */
static const String EXSEL = "Exsel";
/** The Function switch key */
static const String FN = "Fn";
/** The F1 key */
static const String F1 = "F1";
/** The F2 key */
static const String F2 = "F2";
/** The F3 key */
static const String F3 = "F3";
/** The F4 key */
static const String F4 = "F4";
/** The F5 key */
static const String F5 = "F5";
/** The F6 key */
static const String F6 = "F6";
/** The F7 key */
static const String F7 = "F7";
/** The F8 key */
static const String F8 = "F8";
/** The F9 key */
static const String F9 = "F9";
/** The F10 key */
static const String F10 = "F10";
/** The F11 key */
static const String F11 = "F11";
/** The F12 key */
static const String F12 = "F12";
/** The F13 key */
static const String F13 = "F13";
/** The F14 key */
static const String F14 = "F14";
/** The F15 key */
static const String F15 = "F15";
/** The F16 key */
static const String F16 = "F16";
/** The F17 key */
static const String F17 = "F17";
/** The F18 key */
static const String F18 = "F18";
/** The F19 key */
static const String F19 = "F19";
/** The F20 key */
static const String F20 = "F20";
/** The F21 key */
static const String F21 = "F21";
/** The F22 key */
static const String F22 = "F22";
/** The F23 key */
static const String F23 = "F23";
/** The F24 key */
static const String F24 = "F24";
/** The Final Mode (Final) key used on some asian keyboards */
static const String FINAL_MODE = "FinalMode";
/** The Find key */
static const String FIND = "Find";
/** The Full-Width Characters key */
static const String FULL_WIDTH = "FullWidth";
/** The Half-Width Characters key */
static const String HALF_WIDTH = "HalfWidth";
/** The Hangul (Korean characters) Mode key */
static const String HANGUL_MODE = "HangulMode";
/** The Hanja (Korean characters) Mode key */
static const String HANJA_MODE = "HanjaMode";
/** The Help key */
static const String HELP = "Help";
/** The Hiragana (Japanese Kana characters) key */
static const String HIRAGANA = "Hiragana";
/** The Home key */
static const String HOME = "Home";
/** The Insert (Ins) key */
static const String INSERT = "Insert";
/** The Japanese-Hiragana key */
static const String JAPANESE_HIRAGANA = "JapaneseHiragana";
/** The Japanese-Katakana key */
static const String JAPANESE_KATAKANA = "JapaneseKatakana";
/** The Japanese-Romaji key */
static const String JAPANESE_ROMAJI = "JapaneseRomaji";
/** The Junja Mode key */
static const String JUNJA_MODE = "JunjaMode";
/** The Kana Mode (Kana Lock) key */
static const String KANA_MODE = "KanaMode";
/**
* The Kanji (Japanese name for ideographic characters of Chinese origin)
* Mode key
*/
static const String KANJI_MODE = "KanjiMode";
/** The Katakana (Japanese Kana characters) key */
static const String KATAKANA = "Katakana";
/** The Start Application One key */
static const String LAUNCH_APPLICATION_1 = "LaunchApplication1";
/** The Start Application Two key */
static const String LAUNCH_APPLICATION_2 = "LaunchApplication2";
/** The Start Mail key */
static const String LAUNCH_MAIL = "LaunchMail";
/** The Left Arrow key */
static const String LEFT = "Left";
/** The Menu key */
static const String MENU = "Menu";
/**
* The Meta key. Note: This key value shall be also used for the Apple
* Command key
*/
static const String META = "Meta";
/** The Media Next Track key */
static const String MEDIA_NEXT_TRACK = "MediaNextTrack";
/** The Media Play Pause key */
static const String MEDIA_PAUSE_PLAY = "MediaPlayPause";
/** The Media Previous Track key */
static const String MEDIA_PREVIOUS_TRACK = "MediaPreviousTrack";
/** The Media Stop key */
static const String MEDIA_STOP = "MediaStop";
/** The Mode Change key */
static const String MODE_CHANGE = "ModeChange";
/** The Next Candidate function key */
static const String NEXT_CANDIDATE = "NextCandidate";
/** The Nonconvert (Don't Convert) key */
static const String NON_CONVERT = "Nonconvert";
/** The Number Lock key */
static const String NUM_LOCK = "NumLock";
/** The Page Down (Next) key */
static const String PAGE_DOWN = "PageDown";
/** The Page Up key */
static const String PAGE_UP = "PageUp";
/** The Paste key */
static const String PASTE = "Paste";
/** The Pause key */
static const String PAUSE = "Pause";
/** The Play key */
static const String PLAY = "Play";
/**
* The Power key. Note: Some devices may not expose this key to the
* operating environment
*/
static const String POWER = "Power";
/** The Previous Candidate function key */
static const String PREVIOUS_CANDIDATE = "PreviousCandidate";
/** The Print Screen (PrintScrn, SnapShot) key */
static const String PRINT_SCREEN = "PrintScreen";
/** The Process key */
static const String PROCESS = "Process";
/** The Props key */
static const String PROPS = "Props";
/** The Right Arrow key */
static const String RIGHT = "Right";
/** The Roman Characters function key */
static const String ROMAN_CHARACTERS = "RomanCharacters";
/** The Scroll Lock key */
static const String SCROLL = "Scroll";
/** The Select key */
static const String SELECT = "Select";
/** The Select Media key */
static const String SELECT_MEDIA = "SelectMedia";
/** The Separator key */
static const String SEPARATOR = "Separator";
/** The Shift key */
static const String SHIFT = "Shift";
/** The Soft1 key */
static const String SOFT_1 = "Soft1";
/** The Soft2 key */
static const String SOFT_2 = "Soft2";
/** The Soft3 key */
static const String SOFT_3 = "Soft3";
/** The Soft4 key */
static const String SOFT_4 = "Soft4";
/** The Stop key */
static const String STOP = "Stop";
/** The Subtract key */
static const String SUBTRACT = "Subtract";
/** The Symbol Lock key */
static const String SYMBOL_LOCK = "SymbolLock";
/** The Up Arrow key */
static const String UP = "Up";
/** The diagonal Up-Left Arrow key */
static const String UP_LEFT = "UpLeft";
/** The diagonal Up-Right Arrow key */
static const String UP_RIGHT = "UpRight";
/** The Undo key */
static const String UNDO = "Undo";
/** The Volume Down key */
static const String VOLUME_DOWN = "VolumeDown";
/** The Volume Mute key */
static const String VOLUMN_MUTE = "VolumeMute";
/** The Volume Up key */
static const String VOLUMN_UP = "VolumeUp";
/** The Windows Logo key */
static const String WIN = "Win";
/** The Zoom key */
static const String ZOOM = "Zoom";
/**
* The Backspace (Back) key. Note: This key value shall be also used for the
* key labeled 'delete' MacOS keyboards when not modified by the 'Fn' key
*/
static const String BACKSPACE = "Backspace";
/** The Horizontal Tabulation (Tab) key */
static const String TAB = "Tab";
/** The Cancel key */
static const String CANCEL = "Cancel";
/** The Escape (Esc) key */
static const String ESC = "Esc";
/** The Space (Spacebar) key: */
static const String SPACEBAR = "Spacebar";
/**
* The Delete (Del) Key. Note: This key value shall be also used for the key
* labeled 'delete' MacOS keyboards when modified by the 'Fn' key
*/
static const String DEL = "Del";
/** The Combining Grave Accent (Greek Varia, Dead Grave) key */
static const String DEAD_GRAVE = "DeadGrave";
/**
* The Combining Acute Accent (Stress Mark, Greek Oxia, Tonos, Dead Eacute)
* key
*/
static const String DEAD_EACUTE = "DeadEacute";
/** The Combining Circumflex Accent (Hat, Dead Circumflex) key */
static const String DEAD_CIRCUMFLEX = "DeadCircumflex";
/** The Combining Tilde (Dead Tilde) key */
static const String DEAD_TILDE = "DeadTilde";
/** The Combining Macron (Long, Dead Macron) key */
static const String DEAD_MACRON = "DeadMacron";
/** The Combining Breve (Short, Dead Breve) key */
static const String DEAD_BREVE = "DeadBreve";
/** The Combining Dot Above (Derivative, Dead Above Dot) key */
static const String DEAD_ABOVE_DOT = "DeadAboveDot";
/**
* The Combining Diaeresis (Double Dot Abode, Umlaut, Greek Dialytika,
* Double Derivative, Dead Diaeresis) key
*/
static const String DEAD_UMLAUT = "DeadUmlaut";
/** The Combining Ring Above (Dead Above Ring) key */
static const String DEAD_ABOVE_RING = "DeadAboveRing";
/** The Combining Double Acute Accent (Dead Doubleacute) key */
static const String DEAD_DOUBLEACUTE = "DeadDoubleacute";
/** The Combining Caron (Hacek, V Above, Dead Caron) key */
static const String DEAD_CARON = "DeadCaron";
/** The Combining Cedilla (Dead Cedilla) key */
static const String DEAD_CEDILLA = "DeadCedilla";
/** The Combining Ogonek (Nasal Hook, Dead Ogonek) key */
static const String DEAD_OGONEK = "DeadOgonek";
/**
* The Combining Greek Ypogegrammeni (Greek Non-Spacing Iota Below, Iota
* Subscript, Dead Iota) key
*/
static const String DEAD_IOTA = "DeadIota";
/**
* The Combining Katakana-Hiragana Voiced Sound Mark (Dead Voiced Sound) key
*/
static const String DEAD_VOICED_SOUND = "DeadVoicedSound";
/**
* The Combining Katakana-Hiragana Semi-Voiced Sound Mark (Dead Semivoiced
* Sound) key
*/
static const String DEC_SEMIVOICED_SOUND= "DeadSemivoicedSound";
/**
* Key value used when an implementation is unable to identify another key
* value, due to either hardware, platform, or software constraints
*/
static const String UNIDENTIFIED = "Unidentified";
}
// 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.
/**
* Contains the set of standard values returned by HTMLDocument.getReadyState.
*/
abstract class ReadyState {
/**
* Indicates the document is still loading and parsing.
*/
static const String LOADING = "loading";
/**
* Indicates the document is finished parsing but is still loading
* subresources.
*/
static const String INTERACTIVE = "interactive";
/**
* Indicates the document and all subresources have been loaded.
*/
static const String COMPLETE = "complete";
}
// 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.
// TODO(antonm): support not DOM isolates too.
class _Timer implements Timer {
final canceller;
_Timer(this.canceller);
void cancel() { canceller(); }
}
get _timerFactoryClosure => (int milliSeconds, void callback(Timer timer), bool repeating) {
var maker;
var canceller;
if (repeating) {
maker = window.setInterval;
canceller = window.clearInterval;
} else {
maker = window.setTimeout;
canceller = window.clearTimeout;
}
Timer timer;
final int id = maker(() { callback(timer); }, milliSeconds);
timer = new _Timer(() { canceller(id); });
return timer;
};
// 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.
/**
* The [Collections] class implements static methods useful when
* writing a class that implements [Collection] and the [iterator]
* method.
*/
class _Collections {
static bool contains(Iterable<Object> iterable, Object element) {
for (final e in iterable) {
if (e == element) return true;
}
return false;
}
static void forEach(Iterable<Object> iterable, void f(Object o)) {
for (final e in iterable) {
f(e);
}
}
static List map(Iterable<Object> source,
List<Object> destination,
f(o)) {
for (final e in source) {
destination.add(f(e));
}
return destination;
}
static bool some(Iterable<Object> iterable, bool f(Object o)) {
for (final e in iterable) {
if (f(e)) return true;
}
return false;
}
static bool every(Iterable<Object> iterable, bool f(Object o)) {
for (final e in iterable) {
if (!f(e)) return false;
}
return true;
}
static List filter(Iterable<Object> source,
List<Object> destination,
bool f(o)) {
for (final e in source) {
if (f(e)) destination.add(e);
}
return destination;
}
static bool isEmpty(Iterable<Object> iterable) {
return !iterable.iterator().hasNext;
}
}
// 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 _HttpRequestUtils {
// Helper for factory HttpRequest.get
static HttpRequest get(String url,
onSuccess(HttpRequest request),
bool withCredentials) {
final request = new HttpRequest();
request.open('GET', url, true);
request.withCredentials = withCredentials;
// Status 0 is for local XHR request.
request.on.readyStateChange.add((e) {
if (request.readyState == HttpRequest.DONE &&
(request.status == 200 || request.status == 0)) {
onSuccess(request);
}
});
request.send();
return request;
}
}
// 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 _CustomEventFactoryProvider {
static CustomEvent createCustomEvent(String type, [bool canBubble = true,
bool cancelable = true, Object detail = null]) {
final _CustomEventImpl e = _document.$dom_createEvent("CustomEvent");
e.$dom_initCustomEvent(type, canBubble, cancelable, detail);
return e;
}
}
class _EventFactoryProvider {
static Event createEvent(String type, [bool canBubble = true,
bool cancelable = true]) {
final _EventImpl e = _document.$dom_createEvent("Event");
e.$dom_initEvent(type, canBubble, cancelable);
return e;
}
}
class _MouseEventFactoryProvider {
static MouseEvent createMouseEvent(String type, Window view, int detail,
int screenX, int screenY, int clientX, int clientY, int button,
[bool canBubble = true, bool cancelable = true, bool ctrlKey = false,
bool altKey = false, bool shiftKey = false, bool metaKey = false,
EventTarget relatedTarget = null]) {
final e = _document.$dom_createEvent("MouseEvent");
e.$dom_initMouseEvent(type, canBubble, cancelable, view, detail,
screenX, screenY, clientX, clientY, ctrlKey, altKey, shiftKey, metaKey,
button, relatedTarget);
return e;
}
}
class _CSSStyleDeclarationFactoryProvider {
static CSSStyleDeclaration createCSSStyleDeclaration_css(String css) {
final style = new Element.tag('div').style;
style.cssText = css;
return style;
}
static CSSStyleDeclaration createCSSStyleDeclaration() {
return new CSSStyleDeclaration.css('');
}
}
class _DocumentFragmentFactoryProvider {
/** @domName Document.createDocumentFragment */
static DocumentFragment createDocumentFragment() =>
document.createDocumentFragment();
static DocumentFragment createDocumentFragment_html(String html) {
final fragment = new DocumentFragment();
fragment.innerHTML = html;
return fragment;
}
// TODO(nweiz): enable this when XML is ported.
// factory DocumentFragment.xml(String xml) {
// final fragment = new DocumentFragment();
// final e = new XMLElement.tag("xml");
// e.innerHTML = xml;
//
// // Copy list first since we don't want liveness during iteration.
// final List nodes = new List.from(e.nodes);
// fragment.nodes.addAll(nodes);
// return fragment;
// }
static DocumentFragment createDocumentFragment_svg(String svg) {
final fragment = new DocumentFragment();
final e = new SVGSVGElement();
e.innerHTML = svg;
// Copy list first since we don't want liveness during iteration.
final List nodes = new List.from(e.nodes);
fragment.nodes.addAll(nodes);
return fragment;
}
}
class _SVGElementFactoryProvider {
static SVGElement createSVGElement_tag(String tag) {
final Element temp =
_document.$dom_createElementNS("http://www.w3.org/2000/svg", tag);
return temp;
}
static SVGElement createSVGElement_svg(String svg) {
Element parentTag;
final match = _START_TAG_REGEXP.firstMatch(svg);
if (match != null && match.group(1).toLowerCase() == 'svg') {
parentTag = new Element.tag('div');
} else {
parentTag = new SVGSVGElement();
}
parentTag.innerHTML = svg;
if (parentTag.elements.length == 1) return parentTag.elements.removeLast();
throw new ArgumentError(
'SVG had ${parentTag.elements.length} '
'top-level elements but 1 expected');
}
}
class _SVGSVGElementFactoryProvider {
static SVGSVGElement createSVGSVGElement() {
final el = new SVGElement.tag("svg");
// The SVG spec requires the version attribute to match the spec version
el.attributes['version'] = "1.1";
return el;
}
}
// 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 _AudioContextFactoryProvider {
static AudioContext createAudioContext() => _createAudioContext();
static _createAudioContext([int numberOfChannels,
int numberOfFrames,
int sampleRate])
native "AudioContext_constructor_Callback";
}
class _IDBKeyRangeFactoryProvider {
static IDBKeyRange createIDBKeyRange_only(/*IDBKey*/ value) =>
_IDBKeyRangeImpl.only_(value);
static IDBKeyRange createIDBKeyRange_lowerBound(
/*IDBKey*/ bound, [bool open = false]) =>
_IDBKeyRangeImpl.lowerBound_(bound, open);
static IDBKeyRange createIDBKeyRange_upperBound(
/*IDBKey*/ bound, [bool open = false]) =>
_IDBKeyRangeImpl.upperBound_(bound, open);
static IDBKeyRange createIDBKeyRange_bound(
/*IDBKey*/ lower, /*IDBKey*/ upper,
[bool lowerOpen = false, bool upperOpen = false]) =>
_IDBKeyRangeImpl.bound_(lower, upper, lowerOpen, upperOpen);
}
class _TypedArrayFactoryProvider {
static Float32Array createFloat32Array(int length) => _F32(length);
static Float32Array createFloat32Array_fromList(List<num> list) =>
_F32(ensureNative(list));
static Float32Array createFloat32Array_fromBuffer(ArrayBuffer buffer,
[int byteOffset = 0, int length]) => _F32(buffer, byteOffset, length);
static _F32(arg0, [arg1, arg2]) native "Float32Array_constructor_Callback";
static Float64Array createFloat64Array(int length) => _F64(length);
static Float64Array createFloat64Array_fromList(List<num> list) =>
_F64(ensureNative(list));
static Float64Array createFloat64Array_fromBuffer(ArrayBuffer buffer,
[int byteOffset = 0, int length]) => _F64(buffer, byteOffset, length);
static _F64(arg0, [arg1, arg2]) native "Float64Array_constructor_Callback";
static Int8Array createInt8Array(int length) => _I8(length);
static Int8Array createInt8Array_fromList(List<num> list) =>
_I8(ensureNative(list));
static Int8Array createInt8Array_fromBuffer(ArrayBuffer buffer,
[int byteOffset = 0, int length]) => _I8(buffer, byteOffset, length);
static _I8(arg0, [arg1, arg2]) native "Int8Array_constructor_Callback";
static Int16Array createInt16Array(int length) => _I16(length);
static Int16Array createInt16Array_fromList(List<num> list) =>
_I16(ensureNative(list));
static Int16Array createInt16Array_fromBuffer(ArrayBuffer buffer,
[int byteOffset = 0, int length]) => _I16(buffer, byteOffset, length);
static _I16(arg0, [arg1, arg2]) native "Int16Array_constructor_Callback";
static Int32Array createInt32Array(int length) => _I32(length);
static Int32Array createInt32Array_fromList(List<num> list) =>
_I32(ensureNative(list));
static Int32Array createInt32Array_fromBuffer(ArrayBuffer buffer,
[int byteOffset = 0, int length]) => _I32(buffer, byteOffset, length);
static _I32(arg0, [arg1, arg2]) native "Int32Array_constructor_Callback";
static Uint8Array createUint8Array(int length) => _U8(length);
static Uint8Array createUint8Array_fromList(List<num> list) =>
_U8(ensureNative(list));
static Uint8Array createUint8Array_fromBuffer(ArrayBuffer buffer,
[int byteOffset = 0, int length]) => _U8(buffer, byteOffset, length);
static _U8(arg0, [arg1, arg2]) native "Uint8Array_constructor_Callback";
static Uint16Array createUint16Array(int length) => _U16(length);
static Uint16Array createUint16Array_fromList(List<num> list) =>
_U16(ensureNative(list));
static Uint16Array createUint16Array_fromBuffer(ArrayBuffer buffer,
[int byteOffset = 0, int length]) => _U16(buffer, byteOffset, length);
static _U16(arg0, [arg1, arg2]) native "Uint16Array_constructor_Callback";
static Uint32Array createUint32Array(int length) => _U32(length);
static Uint32Array createUint32Array_fromList(List<num> list) =>
_U32(ensureNative(list));
static Uint32Array createUint32Array_fromBuffer(ArrayBuffer buffer,
[int byteOffset = 0, int length]) => _U32(buffer, byteOffset, length);
static _U32(arg0, [arg1, arg2]) native "Uint32Array_constructor_Callback";
static Uint8ClampedArray createUint8ClampedArray(int length) => _U8C(length);
static Uint8ClampedArray createUint8ClampedArrayUint8ClampedArray_fromList(
List<num> list) => _U8C(ensureNative(list));
static Uint8ClampedArray createUint8ClampedArrayUint8ClampedArray_fromBuffer(
ArrayBuffer buffer, [int byteOffset = 0, int length]) =>
_U8C(buffer, byteOffset, length);
static _U8C(arg0, [arg1, arg2]) native "Uint8ClampedArray_constructor_Callback";
static ensureNative(List list) => list; // TODO: make sure.
}
class _PointFactoryProvider {
static Point createPoint(num x, num y) => _createWebKitPoint(x, y);
static _createWebKitPoint(num x, num y) native "WebKitPoint_constructor_Callback";
}
class _WebSocketFactoryProvider {
static WebSocket createWebSocket(String url) => _createWebSocket(url);
static _createWebSocket(String url) native "WebSocket_constructor_Callback";
}
class _TextFactoryProvider {
static Text createText(String data) => _document.$dom_createTextNode(data);
}
// 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.
/**
* Utils for device detection.
*/
class _Device {
/**
* Gets the browser's user agent. Using this function allows tests to inject
* the user agent.
* Returns the user agent.
*/
static String get userAgent => window.navigator.userAgent;
/**
* Determines if the current device is running Opera.
*/
static bool get isOpera => userAgent.contains("Opera", 0);
/**
* Determines if the current device is running Internet Explorer.
*/
static bool get isIE => !isOpera && userAgent.contains("MSIE", 0);
/**
* Determines if the current device is running Firefox.
*/
static bool get isFirefox => userAgent.contains("Firefox", 0);
/**
* Determines if the current device is running WebKit.
*/
static bool get isWebKit => !isOpera && userAgent.contains("WebKit", 0);
}
// 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.
_serialize(var message) {
return new _JsSerializer().traverse(message);
}
class _JsSerializer extends _Serializer {
visitSendPortSync(SendPortSync x) {
if (x is _JsSendPortSync) return visitJsSendPortSync(x);
if (x is _LocalSendPortSync) return visitLocalSendPortSync(x);
if (x is _RemoteSendPortSync) return visitRemoteSendPortSync(x);
throw "Unknown port type $x";
}
visitJsSendPortSync(_JsSendPortSync x) {
return [ 'sendport', 'nativejs', x._id ];
}
visitLocalSendPortSync(_LocalSendPortSync x) {
return [ 'sendport', 'dart',
ReceivePortSync._isolateId, x._receivePort._portId ];
}
visitRemoteSendPortSync(_RemoteSendPortSync x) {
return [ 'sendport', 'dart',
x._receivePort._isolateId, x._receivePort._portId ];
}
}
_deserialize(var message) {
return new _JsDeserializer().deserialize(message);
}
class _JsDeserializer extends _Deserializer {
static const _UNSPECIFIED = const Object();
deserializeSendPort(List x) {
String tag = x[1];
switch (tag) {
case 'nativejs':
num id = x[2];
return new _JsSendPortSync(id);
case 'dart':
num isolateId = x[2];
num portId = x[3];
return ReceivePortSync._lookup(isolateId, portId);
default:
throw 'Illegal SendPortSync type: $tag';
}
}
}
// The receiver is JS.
class _JsSendPortSync implements SendPortSync {
num _id;
_JsSendPortSync(this._id);
callSync(var message) {
var serialized = _serialize(message);
var result = _callPortSync(_id, serialized);
return _deserialize(result);
}
}
// TODO(vsm): Differentiate between Dart2Js and Dartium isolates.
// The receiver is a different Dart isolate, compiled to JS.
class _RemoteSendPortSync implements SendPortSync {
int _isolateId;
int _portId;
_RemoteSendPortSync(this._isolateId, this._portId);
callSync(var message) {
var serialized = _serialize(message);
var result = _call(_isolateId, _portId, serialized);
return _deserialize(result);
}
static _call(int isolateId, int portId, var message) {
var target = 'dart-port-$isolateId-$portId';
// TODO(vsm): Make this re-entrant.
// TODO(vsm): Set this up set once, on the first call.
var source = '$target-result';
var result = null;
var listener = (Event e) {
result = JSON.parse(_getPortSyncEventData(e));
};
window.on[source].add(listener);
_dispatchEvent(target, [source, message]);
window.on[source].remove(listener);
return result;
}
}
// The receiver is in the same Dart isolate, compiled to JS.
class _LocalSendPortSync implements SendPortSync {
ReceivePortSync _receivePort;
_LocalSendPortSync._internal(this._receivePort);
callSync(var message) {
// TODO(vsm): Do a more efficient deep copy.
var copy = _deserialize(_serialize(message));
var result = _receivePort._callback(copy);
return _deserialize(_serialize(result));
}
}
// TODO(vsm): Move this to dart:isolate. This will take some
// refactoring as there are dependences here on the DOM. Users
// interact with this class (or interface if we change it) directly -
// new ReceivePortSync. I think most of the DOM logic could be
// delayed until the corresponding SendPort is registered on the
// window.
// A Dart ReceivePortSync (tagged 'dart' when serialized) is
// identifiable / resolvable by the combination of its isolateid and
// portid. When a corresponding SendPort is used within the same
// isolate, the _portMap below can be used to obtain the
// ReceivePortSync directly. Across isolates (or from JS), an
// EventListener can be used to communicate with the port indirectly.
class ReceivePortSync {
static Map<int, ReceivePortSync> _portMap;
static int _portIdCount;
static int _cachedIsolateId;
num _portId;
Function _callback;
EventListener _listener;
ReceivePortSync() {
if (_portIdCount == null) {
_portIdCount = 0;
_portMap = new Map<int, ReceivePortSync>();
}
_portId = _portIdCount++;
_portMap[_portId] = this;
}
static int get _isolateId {
// TODO(vsm): Make this coherent with existing isolate code.
if (_cachedIsolateId == null) {
_cachedIsolateId = _getNewIsolateId();
}
return _cachedIsolateId;
}
static String _getListenerName(isolateId, portId) =>
'dart-port-$isolateId-$portId';
String get _listenerName => _getListenerName(_isolateId, _portId);
void receive(callback(var message)) {
_callback = callback;
if (_listener == null) {
_listener = (Event e) {
var data = JSON.parse(_getPortSyncEventData(e));
var replyTo = data[0];
var message = _deserialize(data[1]);
var result = _callback(message);
_dispatchEvent(replyTo, _serialize(result));
};
window.on[_listenerName].add(_listener);
}
}
void close() {
_portMap.remove(_portId);
if (_listener != null) window.on[_listenerName].remove(_listener);
}
SendPortSync toSendPort() {
return new _LocalSendPortSync._internal(this);
}
static SendPortSync _lookup(int isolateId, int portId) {
if (isolateId == _isolateId) {
return _portMap[portId].toSendPort();
} else {
return new _RemoteSendPortSync(isolateId, portId);
}
}
}
get _isolateId => ReceivePortSync._isolateId;
void _dispatchEvent(String receiver, var message) {
var event = new CustomEvent(receiver, false, false, JSON.stringify(message));
window.$dom_dispatchEvent(event);
}
String _getPortSyncEventData(CustomEvent event) => event.detail;
// 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.
typedef Object ComputeValue();
class _MeasurementRequest<T> {
final ComputeValue computeValue;
final Completer<T> completer;
Object value;
bool exception = false;
_MeasurementRequest(this.computeValue, this.completer);
}
typedef void _MeasurementCallback();
/**
* This class attempts to invoke a callback as soon as the current event stack
* unwinds, but before the browser repaints.
*/
abstract class _MeasurementScheduler {
bool _nextMeasurementFrameScheduled = false;
_MeasurementCallback _callback;
_MeasurementScheduler(this._callback);
/**
* Creates the best possible measurement scheduler for the current platform.
*/
factory _MeasurementScheduler.best(_MeasurementCallback callback) {
if (_isMutationObserverSupported()) {
return new _MutationObserverScheduler(callback);
}
return new _PostMessageScheduler(callback);
}
/**
* Schedules a measurement callback if one has not been scheduled already.
*/
void maybeSchedule() {
if (this._nextMeasurementFrameScheduled) {
return;
}
this._nextMeasurementFrameScheduled = true;
this._schedule();
}
/**
* Does the actual scheduling of the callback.
*/
void _schedule();
/**
* Handles the measurement callback and forwards it if necessary.
*/
void _onCallback() {
// Ignore spurious messages.
if (!_nextMeasurementFrameScheduled) {
return;
}
_nextMeasurementFrameScheduled = false;
this._callback();
}
}
/**
* Scheduler which uses window.postMessage to schedule events.
*/
class _PostMessageScheduler extends _MeasurementScheduler {
const _MEASUREMENT_MESSAGE = "DART-MEASURE";
_PostMessageScheduler(_MeasurementCallback callback): super(callback) {
// Messages from other windows do not cause a security risk as
// all we care about is that _handleMessage is called
// after the current event loop is unwound and calling the function is
// a noop when zero requests are pending.
window.on.message.add(this._handleMessage);
}
void _schedule() {
window.postMessage(_MEASUREMENT_MESSAGE, "*");
}
_handleMessage(e) {
this._onCallback();
}
}
/**
* Scheduler which uses a MutationObserver to schedule events.
*/
class _MutationObserverScheduler extends _MeasurementScheduler {
MutationObserver _observer;
Element _dummy;
_MutationObserverScheduler(_MeasurementCallback callback): super(callback) {
// Mutation events get fired as soon as the current event stack is unwound
// so we just make a dummy event and listen for that.
_observer = new MutationObserver(this._handleMutation);
_dummy = new DivElement();
_observer.observe(_dummy, attributes: true);
}
void _schedule() {
// Toggle it to trigger the mutation event.
_dummy.hidden = !_dummy.hidden;
}
_handleMutation(List<MutationRecord> mutations, MutationObserver observer) {
this._onCallback();
}
}
List<_MeasurementRequest> _pendingRequests;
List<TimeoutHandler> _pendingMeasurementFrameCallbacks;
_MeasurementScheduler _measurementScheduler = null;
void _maybeScheduleMeasurementFrame() {
if (_measurementScheduler == null) {
_measurementScheduler =
new _MeasurementScheduler.best(_completeMeasurementFutures);
}
_measurementScheduler.maybeSchedule();
}
/**
* Registers a [callback] which is called after the next batch of measurements
* completes. Even if no measurements completed, the callback is triggered
* when they would have completed to avoid confusing bugs if it happened that
* no measurements were actually requested.
*/
void _addMeasurementFrameCallback(TimeoutHandler callback) {
if (_pendingMeasurementFrameCallbacks == null) {
_pendingMeasurementFrameCallbacks = <TimeoutHandler>[];
_maybeScheduleMeasurementFrame();
}
_pendingMeasurementFrameCallbacks.add(callback);
}
/**
* Returns a [Future] whose value will be the result of evaluating
* [computeValue] during the next safe measurement interval.
* The next safe measurement interval is after the current event loop has
* unwound but before the browser has rendered the page.
* It is important that the [computeValue] function only queries the html
* layout and html in any way.
*/
Future _createMeasurementFuture(ComputeValue computeValue,
Completer completer) {
if (_pendingRequests == null) {
_pendingRequests = <_MeasurementRequest>[];
_maybeScheduleMeasurementFrame();
}
_pendingRequests.add(new _MeasurementRequest(computeValue, completer));
return completer.future;
}
/**
* Complete all pending measurement futures evaluating them in a single batch
* so that the the browser is guaranteed to avoid multiple layouts.
*/
void _completeMeasurementFutures() {
// We must compute all new values before fulfilling the futures as
// the onComplete callbacks for the futures could modify the DOM making
// subsequent measurement calculations expensive to compute.
if (_pendingRequests != null) {
for (_MeasurementRequest request in _pendingRequests) {
try {
request.value = request.computeValue();
} catch (e) {
request.value = e;
request.exception = true;
}
}
}
final completedRequests = _pendingRequests;
final readyMeasurementFrameCallbacks = _pendingMeasurementFrameCallbacks;
_pendingRequests = null;
_pendingMeasurementFrameCallbacks = null;
if (completedRequests != null) {
for (_MeasurementRequest request in completedRequests) {
if (request.exception) {
request.completer.completeException(request.value);
} else {
request.completer.complete(request.value);
}
}
}
if (readyMeasurementFrameCallbacks != null) {
for (TimeoutHandler handler in readyMeasurementFrameCallbacks) {
// TODO(jacobr): wrap each call to a handler in a try-catch block.
handler();
}
}
}
// 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.
// Patch file for the dart:isolate library.
/********************************************************
Inserted from lib/isolate/serialization.dart
********************************************************/
class _MessageTraverserVisitedMap {
operator[](var object) => null;
void operator[]=(var object, var info) { }
void reset() { }
void cleanup() { }
}
/** Abstract visitor for dart objects that can be sent as isolate messages. */
class _MessageTraverser {
_MessageTraverserVisitedMap _visited;
_MessageTraverser() : _visited = new _MessageTraverserVisitedMap();
/** Visitor's entry point. */
traverse(var x) {
if (isPrimitive(x)) return visitPrimitive(x);
_visited.reset();
var result;
try {
result = _dispatch(x);
} finally {
_visited.cleanup();
}
return result;
}
_dispatch(var x) {
if (isPrimitive(x)) return visitPrimitive(x);
if (x is List) return visitList(x);
if (x is Map) return visitMap(x);
if (x is SendPort) return visitSendPort(x);
if (x is SendPortSync) return visitSendPortSync(x);
// Overridable fallback.
return visitObject(x);
}
abstract visitPrimitive(x);
abstract visitList(List x);
abstract visitMap(Map x);
abstract visitSendPort(SendPort x);
abstract visitSendPortSync(SendPortSync x);
visitObject(Object x) {
// TODO(floitsch): make this a real exception. (which one)?
throw "Message serialization: Illegal value $x passed";
}
static bool isPrimitive(x) {
return (x == null) || (x is String) || (x is num) || (x is bool);
}
}
/** A visitor that recursively copies a message. */
class _Copier extends _MessageTraverser {
visitPrimitive(x) => x;
List visitList(List list) {
List copy = _visited[list];
if (copy != null) return copy;
int len = list.length;
// TODO(floitsch): we loose the generic type of the List.
copy = new List(len);
_visited[list] = copy;
for (int i = 0; i < len; i++) {
copy[i] = _dispatch(list[i]);
}
return copy;
}
Map visitMap(Map map) {
Map copy = _visited[map];
if (copy != null) return copy;
// TODO(floitsch): we loose the generic type of the map.
copy = new Map();
_visited[map] = copy;
map.forEach((key, val) {
copy[_dispatch(key)] = _dispatch(val);
});
return copy;
}
}
/** Visitor that serializes a message as a JSON array. */
class _Serializer extends _MessageTraverser {
int _nextFreeRefId = 0;
visitPrimitive(x) => x;
visitList(List list) {
int copyId = _visited[list];
if (copyId != null) return ['ref', copyId];
int id = _nextFreeRefId++;
_visited[list] = id;
var jsArray = _serializeList(list);
// TODO(floitsch): we are losing the generic type.
return ['list', id, jsArray];
}
visitMap(Map map) {
int copyId = _visited[map];
if (copyId != null) return ['ref', copyId];
int id = _nextFreeRefId++;
_visited[map] = id;
var keys = _serializeList(map.keys);
var values = _serializeList(map.values);
// TODO(floitsch): we are losing the generic type.
return ['map', id, keys, values];
}
_serializeList(List list) {
int len = list.length;
var result = new List(len);
for (int i = 0; i < len; i++) {
result[i] = _dispatch(list[i]);
}
return result;
}
}
/** Deserializes arrays created with [_Serializer]. */
class _Deserializer {
Map<int, dynamic> _deserialized;
_Deserializer();
static bool isPrimitive(x) {
return (x == null) || (x is String) || (x is num) || (x is bool);
}
deserialize(x) {
if (isPrimitive(x)) return x;
// TODO(floitsch): this should be new HashMap<int, dynamic>()
_deserialized = new HashMap();
return _deserializeHelper(x);
}
_deserializeHelper(x) {
if (isPrimitive(x)) return x;
assert(x is List);
switch (x[0]) {
case 'ref': return _deserializeRef(x);
case 'list': return _deserializeList(x);
case 'map': return _deserializeMap(x);
case 'sendport': return deserializeSendPort(x);
default: return deserializeObject(x);
}
}
_deserializeRef(List x) {
int id = x[1];
var result = _deserialized[id];
assert(result != null);
return result;
}
List _deserializeList(List x) {
int id = x[1];
// We rely on the fact that Dart-lists are directly mapped to Js-arrays.
List dartList = x[2];
_deserialized[id] = dartList;
int len = dartList.length;
for (int i = 0; i < len; i++) {
dartList[i] = _deserializeHelper(dartList[i]);
}
return dartList;
}
Map _deserializeMap(List x) {
Map result = new Map();
int id = x[1];
_deserialized[id] = result;
List keys = x[2];
List values = x[3];
int len = keys.length;
assert(len == values.length);
for (int i = 0; i < len; i++) {
var key = _deserializeHelper(keys[i]);
var value = _deserializeHelper(values[i]);
result[key] = value;
}
return result;
}
abstract deserializeSendPort(List x);
deserializeObject(List x) {
// TODO(floitsch): Use real exception (which one?).
throw "Unexpected serialized object";
}
}
// 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.
/**
* Checks to see if the mutation observer API is supported on the current
* platform.
*/
bool _isMutationObserverSupported() {
return true;
}
// 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.
// TODO(rnystrom): add a way to supress public classes from DartDoc output.
// TODO(jacobr): we can remove this class now that we are using the $dom_
// convention for deprecated methods rather than truly private methods.
/**
* This class is intended for testing purposes only.
*/
class Testing {
static void addEventListener(EventTarget target, String type, EventListener listener, bool useCapture) {
target.$dom_addEventListener(type, listener, useCapture);
}
static void removeEventListener(EventTarget target, String type, EventListener listener, bool useCapture) {
target.$dom_removeEventListener(type, listener, useCapture);
}
}// 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.
// Iterator for arrays with fixed size.
class _FixedSizeListIterator<T> extends _VariableSizeListIterator<T> {
_FixedSizeListIterator(List<T> array)
: super(array),
_length = array.length;
bool get hasNext => _length > _pos;
final int _length; // Cache array length for faster access.
}
// Iterator for arrays with variable size.
class _VariableSizeListIterator<T> implements Iterator<T> {
_VariableSizeListIterator(List<T> array)
: _array = array,
_pos = 0;
bool get hasNext => _array.length > _pos;
T next() {
if (!hasNext) {
throw new StateError("No more elements");
}
return _array[_pos++];
}
final List<T> _array;
int _pos;
}
// 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 _Lists {
/**
* Returns the index in the array [a] of the given [element], starting
* the search at index [startIndex] to [endIndex] (exclusive).
* Returns -1 if [element] is not found.
*/
static int indexOf(List a,
Object element,
int startIndex,
int endIndex) {
if (startIndex >= a.length) {
return -1;
}
if (startIndex < 0) {
startIndex = 0;
}
for (int i = startIndex; i < endIndex; i++) {
if (a[i] == element) {
return i;
}
}
return -1;
}
/**
* Returns the last index in the array [a] of the given [element], starting
* the search at index [startIndex] to 0.
* Returns -1 if [element] is not found.
*/
static int lastIndexOf(List a, Object element, int startIndex) {
if (startIndex < 0) {
return -1;
}
if (startIndex >= a.length) {
startIndex = a.length - 1;
}
for (int i = startIndex; i >= 0; i--) {
if (a[i] == element) {
return i;
}
}
return -1;
}
/**
* Returns a sub list copy of this list, from [start] to
* [:start + length:].
* Returns an empty list if [length] is 0.
* Throws an [ArgumentError] if [length] is negative.
* Throws a [RangeError] if [start] or [:start + length:] are out of range.
*/
static List getRange(List a, int start, int length, List accumulator) {
if (length < 0) throw new ArgumentError('length');
if (start < 0) throw new RangeError.value(start);
int end = start + length;
if (end > a.length) throw new RangeError.value(end);
for (int i = start; i < end; i++) {
accumulator.add(a[i]);
}
return accumulator;
}
}
// 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.
// This API is exploratory.
spawnDomFunction(Function topLevelFunction) => _Utils.spawnDomFunctionImpl(topLevelFunction);
// testRunner implementation.
// FIXME: provide a separate lib for testRunner.
var _testRunner;
TestRunner get testRunner {
if (_testRunner == null)
_testRunner = new TestRunner._(_NPObject.retrieve("testRunner"));
return _testRunner;
}
class TestRunner {
final _NPObject _npObject;
TestRunner._(this._npObject);
display() => _npObject.invoke('display');
dumpAsText() => _npObject.invoke('dumpAsText');
notifyDone() => _npObject.invoke('notifyDone');
setCanOpenWindows() => _npObject.invoke('setCanOpenWindows');
waitUntilDone() => _npObject.invoke('waitUntilDone');
}
// 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 _Utils {
static List convertToList(List list) {
// FIXME: [possible optimization]: do not copy the array if Dart_IsArray is fine w/ it.
final length = list.length;
List result = new List(length);
result.setRange(0, length, list);
return result;
}
static List convertMapToList(Map map) {
List result = [];
map.forEach((k, v) => result.addAll([k, v]));
return result;
}
static void populateMap(Map result, List list) {
for (int i = 0; i < list.length; i += 2) {
result[list[i]] = list[i + 1];
}
}
static bool isMap(obj) => obj is Map;
static Map createMap() => {};
static makeNotImplementedException(String fileName, int lineNo) {
return new UnsupportedError('[info: $fileName:$lineNo]');
}
static window() native "Utils_window";
static print(String message) native "Utils_print";
static SendPort spawnDomFunctionImpl(Function topLevelFunction) native "Utils_spawnDomFunction";
static int _getNewIsolateId() native "Utils_getNewIsolateId";
static bool shadowRootSupported(Document document) native "Utils_shadowRootSupported";
}
class _NPObject extends NativeFieldWrapperClass1 {
_NPObject();
static _NPObject retrieve(String key) native "NPObject_retrieve";
property(String propertyName) native "NPObject_property";
invoke(String methodName, [List args = null]) native "NPObject_invoke";
}
class _DOMWindowCrossFrameImpl extends NativeFieldWrapperClass1 implements Window {
_DOMWindowCrossFrameImpl();
// Fields.
History get history() native "DOMWindow_history_cross_frame_Getter";
Location get location() native "DOMWindow_location_cross_frame_Getter";
bool get closed() native "DOMWindow_closed_Getter";
int get length() native "DOMWindow_length_Getter";
Window get opener() native "DOMWindow_opener_Getter";
Window get parent() native "DOMWindow_parent_Getter";
Window get top() native "DOMWindow_top_Getter";
// Methods.
void focus() native "DOMWindow_focus_Callback";
void blur() native "DOMWindow_blur_Callback";
void close() native "DOMWindow_close_Callback";
void postMessage(/*SerializedScriptValue*/ message, String targetOrigin, [List messagePorts]) native "DOMWindow_postMessage_Callback";
// Implementation support.
String get typeName => "DOMWindow";
}
class _HistoryCrossFrameImpl extends NativeFieldWrapperClass1 implements History {
_HistoryCrossFrameImpl();
// Methods.
void back() native "History_back_Callback";
void forward() native "History_forward_Callback";
void go(int distance) native "History_go_Callback";
// Implementation support.
String get typeName => "History";
}
class _LocationCrossFrameImpl extends NativeFieldWrapperClass1 implements Location {
_LocationCrossFrameImpl();
// Fields.
void set href(String) native "Location_href_Setter";
// Implementation support.
String get typeName => "Location";
}
class _DOMStringMapImpl extends NativeFieldWrapperClass1 implements Map<String, String> {
_DOMStringMapImpl();
bool containsValue(String value) => Maps.containsValue(this, value);
bool containsKey(String key) native "DOMStringMap_containsKey_Callback";
String operator [](String key) native "DOMStringMap_item_Callback";
void operator []=(String key, String value) native "DOMStringMap_setItem_Callback";
String putIfAbsent(String key, String ifAbsent()) => Maps.putIfAbsent(this, key, ifAbsent);
String remove(String key) native "DOMStringMap_remove_Callback";
void clear() => Maps.clear(this);
void forEach(void f(String key, String value)) => Maps.forEach(this, f);
Collection<String> get keys native "DOMStringMap_getKeys_Callback";
Collection<String> get values => Maps.getValues(this);
int get length => Maps.length(this);
bool get isEmpty => Maps.isEmpty(this);
}
get _printClosure => (s) {
try {
window.console.log(s);
} catch (_) {
_Utils.print(s);
}
};