Removed DomName, DosEditable, and experimental annoations they are unused.

R=kevmoo@google.com,vsm@google.com

Fixes #32304

Change-Id: Ia2c8f99f0125c4d4bd0f95a792ff2af8a58e3599
Reviewed-on: https://dart-review.googlesource.com/60400
Commit-Queue: Terry Lucas <terry@google.com>
Reviewed-by: Kevin Moore <kevmoo@google.com>
This commit is contained in:
Terry Lucas
2018-06-18 18:48:03 +00:00
committed by commit-bot@chromium.org
parent 7d94755836
commit 8fedfc7f8c
87 changed files with 2 additions and 19365 deletions
File diff suppressed because it is too large Load Diff
@@ -210,11 +210,9 @@ const _annotation_Returns_IDBKey = const Returns(_idbKey);
// for 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('IDBCursor')
@Unstable()
@Native("IDBCursor")
class Cursor extends Interceptor {
@DomName('IDBCursor.delete')
Future delete() {
try {
return _completeRequest(_delete());
@@ -223,7 +221,6 @@ class Cursor extends Interceptor {
}
}
@DomName('IDBCursor.value')
Future update(value) {
try {
return _completeRequest(_update(value));
@@ -233,7 +230,6 @@ class Cursor extends Interceptor {
}
@JSName('continue')
@DomName('IDBCursor.continue')
void next([Object key]) {
if (key == null) {
JS('void', '#.continue()', this);
@@ -247,60 +243,39 @@ class Cursor extends Interceptor {
throw new UnsupportedError("Not supported");
}
@DomName('IDBCursor.direction')
@DocsEditable()
final String direction;
@DomName('IDBCursor.key')
@DocsEditable()
@_annotation_Creates_IDBKey
@_annotation_Returns_IDBKey
final Object key;
@DomName('IDBCursor.primaryKey')
@DocsEditable()
@_annotation_Creates_IDBKey
@_annotation_Returns_IDBKey
final Object primaryKey;
@DomName('IDBCursor.source')
@DocsEditable()
@Creates('Null')
@Returns('ObjectStore|Index|Null')
final Object source;
@DomName('IDBCursor.advance')
@DocsEditable()
void advance(int count) native;
@DomName('IDBCursor.continuePrimaryKey')
@DocsEditable()
@Experimental() // untriaged
void continuePrimaryKey(Object key, Object primaryKey) native;
@JSName('delete')
@DomName('IDBCursor.delete')
@DocsEditable()
Request _delete() native;
@DomName('IDBCursor.update')
@DocsEditable()
Request _update(/*any*/ value) {
var value_1 = convertDartToNative_SerializedScriptValue(value);
return _update_1(value_1);
}
@JSName('update')
@DomName('IDBCursor.update')
@DocsEditable()
Request _update_1(value) native;
}
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
@DocsEditable()
@DomName('IDBCursorWithValue')
@Unstable()
@Native("IDBCursorWithValue")
class CursorWithValue extends Cursor {
@@ -309,12 +284,8 @@ class CursorWithValue extends Cursor {
throw new UnsupportedError("Not supported");
}
@DomName('IDBCursorWithValue.value')
@DocsEditable()
dynamic get value => _convertNativeToDart_IDBAny(this._get_value);
@JSName('value')
@DomName('IDBCursorWithValue.value')
@DocsEditable()
@annotation_Creates_SerializedScriptValue
@annotation_Returns_SerializedScriptValue
final dynamic _get_value;
@@ -323,21 +294,16 @@ class CursorWithValue extends Cursor {
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
@DocsEditable()
/**
* An indexed database object for storing client-side data
* in web apps.
*/
@DomName('IDBDatabase')
@SupportedBrowser(SupportedBrowser.CHROME)
@SupportedBrowser(SupportedBrowser.FIREFOX, '15')
@SupportedBrowser(SupportedBrowser.IE, '10')
@Experimental()
@Unstable()
@Native("IDBDatabase")
class Database extends EventTarget {
@DomName('IDBDatabase.createObjectStore')
@DocsEditable()
ObjectStore createObjectStore(String name,
{String keyPath, bool autoIncrement}) {
var options = {};
@@ -404,8 +370,6 @@ class Database extends EventTarget {
*
* See [EventStreamProvider] for usage information.
*/
@DomName('IDBDatabase.abortEvent')
@DocsEditable()
static const EventStreamProvider<Event> abortEvent =
const EventStreamProvider<Event>('abort');
@@ -415,10 +379,6 @@ class Database extends EventTarget {
*
* See [EventStreamProvider] for usage information.
*/
@DomName('IDBDatabase.closeEvent')
@DocsEditable()
// https://www.w3.org/Bugs/Public/show_bug.cgi?id=22540
@Experimental()
static const EventStreamProvider<Event> closeEvent =
const EventStreamProvider<Event>('close');
@@ -428,8 +388,6 @@ class Database extends EventTarget {
*
* See [EventStreamProvider] for usage information.
*/
@DomName('IDBDatabase.errorEvent')
@DocsEditable()
static const EventStreamProvider<Event> errorEvent =
const EventStreamProvider<Event>('error');
@@ -439,33 +397,21 @@ class Database extends EventTarget {
*
* See [EventStreamProvider] for usage information.
*/
@DomName('IDBDatabase.versionchangeEvent')
@DocsEditable()
static const EventStreamProvider<VersionChangeEvent> versionChangeEvent =
const EventStreamProvider<VersionChangeEvent>('versionchange');
@DomName('IDBDatabase.name')
@DocsEditable()
final String name;
@DomName('IDBDatabase.objectStoreNames')
@DocsEditable()
@Returns('DomStringList|Null')
@Creates('DomStringList')
final List<String> objectStoreNames;
@DomName('IDBDatabase.version')
@DocsEditable()
@Creates('int|String|Null')
@Returns('int|String|Null')
final int version;
@DomName('IDBDatabase.close')
@DocsEditable()
void close() native;
@DomName('IDBDatabase.createObjectStore')
@DocsEditable()
ObjectStore _createObjectStore(String name, [Map options]) {
if (options != null) {
var options_1 = convertDartToNative_Dictionary(options);
@@ -475,38 +421,22 @@ class Database extends EventTarget {
}
@JSName('createObjectStore')
@DomName('IDBDatabase.createObjectStore')
@DocsEditable()
ObjectStore _createObjectStore_1(name, options) native;
@JSName('createObjectStore')
@DomName('IDBDatabase.createObjectStore')
@DocsEditable()
ObjectStore _createObjectStore_2(name) native;
@DomName('IDBDatabase.deleteObjectStore')
@DocsEditable()
void deleteObjectStore(String name) native;
/// Stream of `abort` events handled by this [Database].
@DomName('IDBDatabase.onabort')
@DocsEditable()
Stream<Event> get onAbort => abortEvent.forTarget(this);
/// Stream of `close` events handled by this [Database].
@DomName('IDBDatabase.onclose')
@DocsEditable()
// https://www.w3.org/Bugs/Public/show_bug.cgi?id=22540
@Experimental()
Stream<Event> get onClose => closeEvent.forTarget(this);
/// Stream of `error` events handled by this [Database].
@DomName('IDBDatabase.onerror')
@DocsEditable()
Stream<Event> get onError => errorEvent.forTarget(this);
/// Stream of `versionchange` events handled by this [Database].
@DomName('IDBDatabase.onversionchange')
@DocsEditable()
Stream<VersionChangeEvent> get onVersionChange =>
versionChangeEvent.forTarget(this);
}
@@ -516,18 +446,14 @@ class Database extends EventTarget {
// WARNING: Do not edit - generated code.
@DomName('IDBObserverCallback')
@Experimental() // untriaged
typedef void ObserverCallback(ObserverChanges changes);
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for 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('IDBFactory')
@SupportedBrowser(SupportedBrowser.CHROME)
@SupportedBrowser(SupportedBrowser.FIREFOX, '15')
@SupportedBrowser(SupportedBrowser.IE, '10')
@Experimental()
@Unstable()
@Native("IDBFactory")
class IdbFactory extends Interceptor {
@@ -542,7 +468,6 @@ class IdbFactory extends Interceptor {
'window.mozIndexedDB)');
}
@DomName('IDBFactory.open')
Future<Database> open(String name,
{int version,
void onUpgradeNeeded(VersionChangeEvent event),
@@ -571,7 +496,6 @@ class IdbFactory extends Interceptor {
}
}
@DomName('IDBFactory.deleteDatabase')
Future<IdbFactory> deleteDatabase(String name, {void onBlocked(Event e)}) {
try {
var request = _deleteDatabase(name);
@@ -605,18 +529,12 @@ class IdbFactory extends Interceptor {
throw new UnsupportedError("Not supported");
}
@DomName('IDBFactory.cmp')
@DocsEditable()
int cmp(Object first, Object second) native;
@JSName('deleteDatabase')
@DomName('IDBFactory.deleteDatabase')
@DocsEditable()
OpenDBRequest _deleteDatabase(String name) native;
@JSName('open')
@DomName('IDBFactory.open')
@DocsEditable()
@Returns('Request')
@Creates('Request')
@Creates('Database')
@@ -642,11 +560,9 @@ Future<T> _completeRequest<T>(Request request) {
// for 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('IDBIndex')
@Unstable()
@Native("IDBIndex")
class Index extends Interceptor {
@DomName('IDBIndex.count')
Future<int> count([key_OR_range]) {
try {
var request = _count(key_OR_range);
@@ -656,7 +572,6 @@ class Index extends Interceptor {
}
}
@DomName('IDBIndex.get')
Future get(key) {
try {
var request = _get(key);
@@ -667,7 +582,6 @@ class Index extends Interceptor {
}
}
@DomName('IDBIndex.getKey')
Future getKey(key) {
try {
var request = _getKey(key);
@@ -739,53 +653,31 @@ class Index extends Interceptor {
throw new UnsupportedError("Not supported");
}
@DomName('IDBIndex.keyPath')
@DocsEditable()
@annotation_Creates_SerializedScriptValue
final Object keyPath;
@DomName('IDBIndex.multiEntry')
@DocsEditable()
final bool multiEntry;
@DomName('IDBIndex.name')
@DocsEditable()
String name;
@DomName('IDBIndex.objectStore')
@DocsEditable()
final ObjectStore objectStore;
@DomName('IDBIndex.unique')
@DocsEditable()
final bool unique;
@JSName('count')
@DomName('IDBIndex.count')
@DocsEditable()
Request _count(Object key) native;
@JSName('get')
@DomName('IDBIndex.get')
@DocsEditable()
@Returns('Request')
@Creates('Request')
@annotation_Creates_SerializedScriptValue
Request _get(Object key) native;
@DomName('IDBIndex.getAll')
@DocsEditable()
@Experimental() // untriaged
Request getAll(Object query, [int count]) native;
@DomName('IDBIndex.getAllKeys')
@DocsEditable()
@Experimental() // untriaged
Request getAllKeys(Object query, [int count]) native;
@JSName('getKey')
@DomName('IDBIndex.getKey')
@DocsEditable()
@Returns('Request')
@Creates('Request')
@annotation_Creates_SerializedScriptValue
@@ -793,16 +685,12 @@ class Index extends Interceptor {
Request _getKey(Object key) native;
@JSName('openCursor')
@DomName('IDBIndex.openCursor')
@DocsEditable()
@Returns('Request')
@Creates('Request')
@Creates('Cursor')
Request _openCursor(Object range, [String direction]) native;
@JSName('openKeyCursor')
@DomName('IDBIndex.openKeyCursor')
@DocsEditable()
@Returns('Request')
@Creates('Request')
@Creates('Cursor')
@@ -812,23 +700,18 @@ class Index extends Interceptor {
// for 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('IDBKeyRange')
@Unstable()
@Native("IDBKeyRange")
class KeyRange extends Interceptor {
@DomName('IDBKeyRange.only')
factory KeyRange.only(/*Key*/ value) =>
_KeyRangeFactoryProvider.createKeyRange_only(value);
@DomName('IDBKeyRange.lowerBound')
factory KeyRange.lowerBound(/*Key*/ bound, [bool open = false]) =>
_KeyRangeFactoryProvider.createKeyRange_lowerBound(bound, open);
@DomName('IDBKeyRange.upperBound')
factory KeyRange.upperBound(/*Key*/ bound, [bool open = false]) =>
_KeyRangeFactoryProvider.createKeyRange_upperBound(bound, open);
@DomName('KeyRange.bound')
factory KeyRange.bound(/*Key*/ lower, /*Key*/ upper,
[bool lowerOpen = false, bool upperOpen = false]) =>
_KeyRangeFactoryProvider.createKeyRange_bound(
@@ -839,59 +722,38 @@ class KeyRange extends Interceptor {
throw new UnsupportedError("Not supported");
}
@DomName('IDBKeyRange.lower')
@DocsEditable()
@annotation_Creates_SerializedScriptValue
final Object lower;
@DomName('IDBKeyRange.lowerOpen')
@DocsEditable()
final bool lowerOpen;
@DomName('IDBKeyRange.upper')
@DocsEditable()
@annotation_Creates_SerializedScriptValue
final Object upper;
@DomName('IDBKeyRange.upperOpen')
@DocsEditable()
final bool upperOpen;
@JSName('bound')
@DomName('IDBKeyRange.bound')
@DocsEditable()
static KeyRange bound_(Object lower, Object upper,
[bool lowerOpen, bool upperOpen]) native;
@DomName('IDBKeyRange.includes')
@DocsEditable()
@Experimental() // untriaged
bool includes(Object key) native;
@JSName('lowerBound')
@DomName('IDBKeyRange.lowerBound')
@DocsEditable()
static KeyRange lowerBound_(Object bound, [bool open]) native;
@JSName('only')
@DomName('IDBKeyRange.only')
@DocsEditable()
static KeyRange only_(Object value) native;
@JSName('upperBound')
@DomName('IDBKeyRange.upperBound')
@DocsEditable()
static KeyRange upperBound_(Object bound, [bool open]) native;
}
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
@DomName('IDBObjectStore')
@Unstable()
@Native("IDBObjectStore")
class ObjectStore extends Interceptor {
@DomName('IDBObjectStore.add')
Future add(value, [key]) {
try {
var request;
@@ -906,7 +768,6 @@ class ObjectStore extends Interceptor {
}
}
@DomName('IDBObjectStore.clear')
Future clear() {
try {
return _completeRequest(_clear());
@@ -915,7 +776,6 @@ class ObjectStore extends Interceptor {
}
}
@DomName('IDBObjectStore.delete')
Future delete(key_OR_keyRange) {
try {
return _completeRequest(_delete(key_OR_keyRange));
@@ -924,7 +784,6 @@ class ObjectStore extends Interceptor {
}
}
@DomName('IDBObjectStore.count')
Future<int> count([key_OR_range]) {
try {
var request = _count(key_OR_range);
@@ -934,7 +793,6 @@ class ObjectStore extends Interceptor {
}
}
@DomName('IDBObjectStore.put')
Future put(value, [key]) {
try {
var request;
@@ -949,7 +807,6 @@ class ObjectStore extends Interceptor {
}
}
@DomName('IDBObjectStore.get')
Future getObject(key) {
try {
var request = _get(key);
@@ -981,7 +838,6 @@ class ObjectStore extends Interceptor {
* must be done synchronously unless they are additional async requests to
* the current transaction.
*/
@DomName('IDBObjectStore.openCursor')
Stream<CursorWithValue> openCursor(
{key, KeyRange range, String direction, bool autoAdvance}) {
var key_OR_range = null;
@@ -1004,7 +860,6 @@ class ObjectStore extends Interceptor {
return _cursorStreamFromResult(request, autoAdvance);
}
@DomName('IDBObjectStore.createIndex')
Index createIndex(String name, keyPath, {bool unique, bool multiEntry}) {
var options = {};
if (unique != null) {
@@ -1022,31 +877,19 @@ class ObjectStore extends Interceptor {
throw new UnsupportedError("Not supported");
}
@DomName('IDBObjectStore.autoIncrement')
@DocsEditable()
final bool autoIncrement;
@DomName('IDBObjectStore.indexNames')
@DocsEditable()
@Returns('DomStringList|Null')
@Creates('DomStringList')
final List<String> indexNames;
@DomName('IDBObjectStore.keyPath')
@DocsEditable()
@annotation_Creates_SerializedScriptValue
final Object keyPath;
@DomName('IDBObjectStore.name')
@DocsEditable()
String name;
@DomName('IDBObjectStore.transaction')
@DocsEditable()
final Transaction transaction;
@DomName('IDBObjectStore.add')
@DocsEditable()
@Returns('Request')
@Creates('Request')
@_annotation_Creates_IDBKey
@@ -1061,32 +904,22 @@ class ObjectStore extends Interceptor {
}
@JSName('add')
@DomName('IDBObjectStore.add')
@DocsEditable()
@Returns('Request')
@Creates('Request')
@_annotation_Creates_IDBKey
Request _add_1(value, key) native;
@JSName('add')
@DomName('IDBObjectStore.add')
@DocsEditable()
@Returns('Request')
@Creates('Request')
@_annotation_Creates_IDBKey
Request _add_2(value) native;
@JSName('clear')
@DomName('IDBObjectStore.clear')
@DocsEditable()
Request _clear() native;
@JSName('count')
@DomName('IDBObjectStore.count')
@DocsEditable()
Request _count(Object key) native;
@DomName('IDBObjectStore.createIndex')
@DocsEditable()
Index _createIndex(String name, Object keyPath, [Map options]) {
if (options != null) {
var options_1 = convertDartToNative_Dictionary(options);
@@ -1096,65 +929,37 @@ class ObjectStore extends Interceptor {
}
@JSName('createIndex')
@DomName('IDBObjectStore.createIndex')
@DocsEditable()
Index _createIndex_1(name, keyPath, options) native;
@JSName('createIndex')
@DomName('IDBObjectStore.createIndex')
@DocsEditable()
Index _createIndex_2(name, keyPath) native;
@JSName('delete')
@DomName('IDBObjectStore.delete')
@DocsEditable()
Request _delete(Object key) native;
@DomName('IDBObjectStore.deleteIndex')
@DocsEditable()
void deleteIndex(String name) native;
@JSName('get')
@DomName('IDBObjectStore.get')
@DocsEditable()
@Returns('Request')
@Creates('Request')
@annotation_Creates_SerializedScriptValue
Request _get(Object key) native;
@DomName('IDBObjectStore.getAll')
@DocsEditable()
@Experimental() // untriaged
Request getAll(Object query, [int count]) native;
@DomName('IDBObjectStore.getAllKeys')
@DocsEditable()
@Experimental() // untriaged
Request getAllKeys(Object query, [int count]) native;
@DomName('IDBObjectStore.getKey')
@DocsEditable()
@Experimental() // untriaged
Request getKey(Object key) native;
@DomName('IDBObjectStore.index')
@DocsEditable()
Index index(String name) native;
@JSName('openCursor')
@DomName('IDBObjectStore.openCursor')
@DocsEditable()
@Returns('Request')
@Creates('Request')
@Creates('Cursor')
Request _openCursor(Object range, [String direction]) native;
@DomName('IDBObjectStore.openKeyCursor')
@DocsEditable()
@Experimental() // untriaged
Request openKeyCursor(Object range, [String direction]) native;
@DomName('IDBObjectStore.put')
@DocsEditable()
@Returns('Request')
@Creates('Request')
@_annotation_Creates_IDBKey
@@ -1169,15 +974,11 @@ class ObjectStore extends Interceptor {
}
@JSName('put')
@DomName('IDBObjectStore.put')
@DocsEditable()
@Returns('Request')
@Creates('Request')
@_annotation_Creates_IDBKey
Request _put_1(value, key) native;
@JSName('put')
@DomName('IDBObjectStore.put')
@DocsEditable()
@Returns('Request')
@Creates('Request')
@_annotation_Creates_IDBKey
@@ -1214,9 +1015,6 @@ class ObjectStore extends Interceptor {
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
@DocsEditable()
@DomName('IDBObservation')
@Experimental() // untriaged
@Native("IDBObservation")
class Observation extends Interceptor {
// To suppress missing implicit constructor warnings.
@@ -1224,28 +1022,16 @@ class Observation extends Interceptor {
throw new UnsupportedError("Not supported");
}
@DomName('IDBObservation.key')
@DocsEditable()
@Experimental() // untriaged
final Object key;
@DomName('IDBObservation.type')
@DocsEditable()
@Experimental() // untriaged
final String type;
@DomName('IDBObservation.value')
@DocsEditable()
@Experimental() // untriaged
final 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.
@DocsEditable()
@DomName('IDBObserver')
@Experimental() // untriaged
@Native("IDBObserver")
class Observer extends Interceptor {
// To suppress missing implicit constructor warnings.
@@ -1253,17 +1039,12 @@ class Observer extends Interceptor {
throw new UnsupportedError("Not supported");
}
@DomName('IDBObserver.IDBObserver')
@DocsEditable()
factory Observer(ObserverCallback callback) {
return Observer._create_1(callback);
}
static Observer _create_1(callback) =>
JS('Observer', 'new IDBObserver(#)', callback);
@DomName('IDBObserver.observe')
@DocsEditable()
@Experimental() // untriaged
void observe(Database db, Transaction tx, Map options) {
var options_1 = convertDartToNative_Dictionary(options);
_observe_1(db, tx, options_1);
@@ -1271,23 +1052,14 @@ class Observer extends Interceptor {
}
@JSName('observe')
@DomName('IDBObserver.observe')
@DocsEditable()
@Experimental() // untriaged
void _observe_1(Database db, Transaction tx, options) native;
@DomName('IDBObserver.unobserve')
@DocsEditable()
@Experimental() // untriaged
void unobserve(Database db) native;
}
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
@DocsEditable()
@DomName('IDBObserverChanges')
@Experimental() // untriaged
@Native("IDBObserverChanges")
class ObserverChanges extends Interceptor {
// To suppress missing implicit constructor warnings.
@@ -1295,27 +1067,16 @@ class ObserverChanges extends Interceptor {
throw new UnsupportedError("Not supported");
}
@DomName('IDBObserverChanges.database')
@DocsEditable()
@Experimental() // untriaged
final Database database;
@DomName('IDBObserverChanges.records')
@DocsEditable()
@Experimental() // untriaged
final Object records;
@DomName('IDBObserverChanges.transaction')
@DocsEditable()
@Experimental() // untriaged
final Transaction 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.
@DocsEditable()
@DomName('IDBOpenDBRequest')
@Unstable()
@Native("IDBOpenDBRequest,IDBVersionChangeRequest")
class OpenDBRequest extends Request {
@@ -1330,8 +1091,6 @@ class OpenDBRequest extends Request {
*
* See [EventStreamProvider] for usage information.
*/
@DomName('IDBOpenDBRequest.blockedEvent')
@DocsEditable()
static const EventStreamProvider<Event> blockedEvent =
const EventStreamProvider<Event>('blocked');
@@ -1341,19 +1100,13 @@ class OpenDBRequest extends Request {
*
* See [EventStreamProvider] for usage information.
*/
@DomName('IDBOpenDBRequest.upgradeneededEvent')
@DocsEditable()
static const EventStreamProvider<VersionChangeEvent> upgradeNeededEvent =
const EventStreamProvider<VersionChangeEvent>('upgradeneeded');
/// Stream of `blocked` events handled by this [OpenDBRequest].
@DomName('IDBOpenDBRequest.onblocked')
@DocsEditable()
Stream<Event> get onBlocked => blockedEvent.forTarget(this);
/// Stream of `upgradeneeded` events handled by this [OpenDBRequest].
@DomName('IDBOpenDBRequest.onupgradeneeded')
@DocsEditable()
Stream<VersionChangeEvent> get onUpgradeNeeded =>
upgradeNeededEvent.forTarget(this);
}
@@ -1361,8 +1114,6 @@ class OpenDBRequest extends Request {
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
@DocsEditable()
@DomName('IDBRequest')
@Unstable()
@Native("IDBRequest")
class Request extends EventTarget {
@@ -1377,8 +1128,6 @@ class Request extends EventTarget {
*
* See [EventStreamProvider] for usage information.
*/
@DomName('IDBRequest.errorEvent')
@DocsEditable()
static const EventStreamProvider<Event> errorEvent =
const EventStreamProvider<Event>('error');
@@ -1388,52 +1137,33 @@ class Request extends EventTarget {
*
* See [EventStreamProvider] for usage information.
*/
@DomName('IDBRequest.successEvent')
@DocsEditable()
static const EventStreamProvider<Event> successEvent =
const EventStreamProvider<Event>('success');
@DomName('IDBRequest.error')
@DocsEditable()
final DomException error;
@DomName('IDBRequest.readyState')
@DocsEditable()
final String readyState;
@DomName('IDBRequest.result')
@DocsEditable()
dynamic get result => _convertNativeToDart_IDBAny(this._get_result);
@JSName('result')
@DomName('IDBRequest.result')
@DocsEditable()
@Creates('Null')
final dynamic _get_result;
@DomName('IDBRequest.source')
@DocsEditable()
@Creates('Null')
final Object source;
@DomName('IDBRequest.transaction')
@DocsEditable()
final Transaction transaction;
/// Stream of `error` events handled by this [Request].
@DomName('IDBRequest.onerror')
@DocsEditable()
Stream<Event> get onError => errorEvent.forTarget(this);
/// Stream of `success` events handled by this [Request].
@DomName('IDBRequest.onsuccess')
@DocsEditable()
Stream<Event> get onSuccess => successEvent.forTarget(this);
}
// Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
// for 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('IDBTransaction')
@Unstable()
@Native("IDBTransaction")
class Transaction extends EventTarget {
@@ -1476,8 +1206,6 @@ class Transaction extends EventTarget {
*
* See [EventStreamProvider] for usage information.
*/
@DomName('IDBTransaction.abortEvent')
@DocsEditable()
static const EventStreamProvider<Event> abortEvent =
const EventStreamProvider<Event>('abort');
@@ -1487,8 +1215,6 @@ class Transaction extends EventTarget {
*
* See [EventStreamProvider] for usage information.
*/
@DomName('IDBTransaction.completeEvent')
@DocsEditable()
static const EventStreamProvider<Event> completeEvent =
const EventStreamProvider<Event>('complete');
@@ -1498,58 +1224,36 @@ class Transaction extends EventTarget {
*
* See [EventStreamProvider] for usage information.
*/
@DomName('IDBTransaction.errorEvent')
@DocsEditable()
static const EventStreamProvider<Event> errorEvent =
const EventStreamProvider<Event>('error');
@DomName('IDBTransaction.db')
@DocsEditable()
final Database db;
@DomName('IDBTransaction.error')
@DocsEditable()
final DomException error;
@DomName('IDBTransaction.mode')
@DocsEditable()
final String mode;
@DomName('IDBTransaction.objectStoreNames')
@DocsEditable()
@Experimental() // untriaged
@Returns('DomStringList|Null')
@Creates('DomStringList')
final List<String> objectStoreNames;
@DomName('IDBTransaction.abort')
@DocsEditable()
void abort() native;
@DomName('IDBTransaction.objectStore')
@DocsEditable()
ObjectStore objectStore(String name) native;
/// Stream of `abort` events handled by this [Transaction].
@DomName('IDBTransaction.onabort')
@DocsEditable()
Stream<Event> get onAbort => abortEvent.forTarget(this);
/// Stream of `complete` events handled by this [Transaction].
@DomName('IDBTransaction.oncomplete')
@DocsEditable()
Stream<Event> get onComplete => completeEvent.forTarget(this);
/// Stream of `error` events handled by this [Transaction].
@DomName('IDBTransaction.onerror')
@DocsEditable()
Stream<Event> get onError => errorEvent.forTarget(this);
}
// Copyright (c) 2018, the Dart project authors. Please see the AUTHORS file
// for 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('IDBVersionChangeEvent')
@Unstable()
@Native("IDBVersionChangeEvent")
class VersionChangeEvent extends Event {
@@ -1558,8 +1262,6 @@ class VersionChangeEvent extends Event {
throw new UnsupportedError("Not supported");
}
@DomName('IDBVersionChangeEvent.IDBVersionChangeEvent')
@DocsEditable()
factory VersionChangeEvent(String type, [Map eventInitDict]) {
if (eventInitDict != null) {
var eventInitDict_1 = convertDartToNative_Dictionary(eventInitDict);
@@ -1575,30 +1277,18 @@ class VersionChangeEvent extends Event {
static VersionChangeEvent _create_2(type) =>
JS('VersionChangeEvent', 'new IDBVersionChangeEvent(#)', type);
@DomName('IDBVersionChangeEvent.dataLoss')
@DocsEditable()
@Experimental() // untriaged
final String dataLoss;
@DomName('IDBVersionChangeEvent.dataLossMessage')
@DocsEditable()
@Experimental() // untriaged
final String dataLossMessage;
@DomName('IDBVersionChangeEvent.newVersion')
@DocsEditable()
@Creates('int|String|Null')
@Returns('int|String|Null')
final int newVersion;
@DomName('IDBVersionChangeEvent.oldVersion')
@DocsEditable()
@Creates('int|String|Null')
@Returns('int|String|Null')
final int oldVersion;
@JSName('target')
@DomName('IDBVersionChangeEvent.target')
@DocsEditable()
final OpenDBRequest target;
}
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
@@ -38,9 +38,6 @@ import 'dart:_js_helper'
// WARNING: Do not edit - generated code.
@DomName('SQLStatementCallback')
// http://www.w3.org/TR/webdatabase/#sqlstatementcallback
@Experimental() // deprecated
typedef void SqlStatementCallback(
SqlTransaction transaction, SqlResultSet resultSet);
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
@@ -49,9 +46,6 @@ typedef void SqlStatementCallback(
// WARNING: Do not edit - generated code.
@DomName('SQLStatementErrorCallback')
// http://www.w3.org/TR/webdatabase/#sqlstatementerrorcallback
@Experimental() // deprecated
typedef void SqlStatementErrorCallback(
SqlTransaction transaction, SqlError error);
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
@@ -60,9 +54,6 @@ typedef void SqlStatementErrorCallback(
// WARNING: Do not edit - generated code.
@DomName('SQLTransactionCallback')
// http://www.w3.org/TR/webdatabase/#sqltransactioncallback
@Experimental() // deprecated
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
@@ -70,21 +61,13 @@ typedef void SqlTransactionCallback(SqlTransaction transaction);
// WARNING: Do not edit - generated code.
@DomName('SQLTransactionErrorCallback')
// http://www.w3.org/TR/webdatabase/#sqltransactionerrorcallback
@Experimental() // deprecated
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.
@DocsEditable()
@DomName('Database')
@SupportedBrowser(SupportedBrowser.CHROME)
@SupportedBrowser(SupportedBrowser.SAFARI)
@Experimental()
// http://www.w3.org/TR/webdatabase/#asynchronous-database-api
@Experimental() // deprecated
@Native("Database")
class SqlDatabase extends Interceptor {
// To suppress missing implicit constructor warnings.
@@ -95,8 +78,6 @@ class SqlDatabase extends Interceptor {
/// Checks if this type is supported on the current platform.
static bool get supported => JS('bool', '!!(window.openDatabase)');
@DomName('Database.version')
@DocsEditable()
final String version;
/**
@@ -113,28 +94,20 @@ class SqlDatabase extends Interceptor {
*
* * [Database.changeVersion](http://www.w3.org/TR/webdatabase/#dom-database-changeversion) from W3C.
*/
@DomName('Database.changeVersion')
@DocsEditable()
void changeVersion(String oldVersion, String newVersion,
[SqlTransactionCallback callback,
SqlTransactionErrorCallback errorCallback,
VoidCallback successCallback]) native;
@DomName('Database.readTransaction')
@DocsEditable()
void readTransaction(SqlTransactionCallback callback,
[SqlTransactionErrorCallback errorCallback,
VoidCallback successCallback]) native;
@DomName('Database.transaction')
@DocsEditable()
void transaction(SqlTransactionCallback callback,
[SqlTransactionErrorCallback errorCallback,
VoidCallback successCallback]) native;
@JSName('transaction')
@DomName('Database.transaction')
@DocsEditable()
Future<SqlTransaction> transaction_future() {
var completer = new Completer<SqlTransaction>();
transaction((value) {
@@ -150,10 +123,6 @@ class SqlDatabase extends Interceptor {
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
@DocsEditable()
@DomName('SQLError')
// http://www.w3.org/TR/webdatabase/#sqlerror
@Experimental() // deprecated
@Native("SQLError")
class SqlError extends Interceptor {
// To suppress missing implicit constructor warnings.
@@ -161,54 +130,30 @@ class SqlError extends Interceptor {
throw new UnsupportedError("Not supported");
}
@DomName('SQLError.CONSTRAINT_ERR')
@DocsEditable()
static const int CONSTRAINT_ERR = 6;
@DomName('SQLError.DATABASE_ERR')
@DocsEditable()
static const int DATABASE_ERR = 1;
@DomName('SQLError.QUOTA_ERR')
@DocsEditable()
static const int QUOTA_ERR = 4;
@DomName('SQLError.SYNTAX_ERR')
@DocsEditable()
static const int SYNTAX_ERR = 5;
@DomName('SQLError.TIMEOUT_ERR')
@DocsEditable()
static const int TIMEOUT_ERR = 7;
@DomName('SQLError.TOO_LARGE_ERR')
@DocsEditable()
static const int TOO_LARGE_ERR = 3;
@DomName('SQLError.UNKNOWN_ERR')
@DocsEditable()
static const int UNKNOWN_ERR = 0;
@DomName('SQLError.VERSION_ERR')
@DocsEditable()
static const int VERSION_ERR = 2;
@DomName('SQLError.code')
@DocsEditable()
final int code;
@DomName('SQLError.message')
@DocsEditable()
final String 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.
@DocsEditable()
@DomName('SQLResultSet')
// http://www.w3.org/TR/webdatabase/#sqlresultset
@Experimental() // deprecated
@Native("SQLResultSet")
class SqlResultSet extends Interceptor {
// To suppress missing implicit constructor warnings.
@@ -216,26 +161,16 @@ class SqlResultSet extends Interceptor {
throw new UnsupportedError("Not supported");
}
@DomName('SQLResultSet.insertId')
@DocsEditable()
final int insertId;
@DomName('SQLResultSet.rows')
@DocsEditable()
final SqlResultSetRowList rows;
@DomName('SQLResultSet.rowsAffected')
@DocsEditable()
final int 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.
@DocsEditable()
@DomName('SQLResultSetRowList')
// http://www.w3.org/TR/webdatabase/#sqlresultsetrowlist
@Experimental() // deprecated
@Native("SQLResultSetRowList")
class SqlResultSetRowList extends Interceptor
with ListMixin<Map>, ImmutableListMixin<Map>
@@ -245,8 +180,6 @@ class SqlResultSetRowList extends Interceptor
throw new UnsupportedError("Not supported");
}
@DomName('SQLResultSetRowList.length')
@DocsEditable()
int get length => JS("int", "#.length", this);
Map operator [](int index) {
@@ -292,26 +225,19 @@ class SqlResultSetRowList extends Interceptor
Map elementAt(int index) => this[index];
// -- end List<Map> mixins.
@DomName('SQLResultSetRowList.item')
@DocsEditable()
Map item(int index) {
return convertNativeToDart_Dictionary(_item_1(index));
}
@JSName('item')
@DomName('SQLResultSetRowList.item')
@DocsEditable()
_item_1(index) native;
}
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
@DocsEditable()
@DomName('SQLTransaction')
@SupportedBrowser(SupportedBrowser.CHROME)
@SupportedBrowser(SupportedBrowser.SAFARI)
@Experimental()
// http://www.w3.org/TR/webdatabase/#sqltransaction
@deprecated // deprecated
@Native("SQLTransaction")
@@ -322,16 +248,12 @@ class SqlTransaction extends Interceptor {
}
@JSName('executeSql')
@DomName('SQLTransaction.executeSql')
@DocsEditable()
void _executeSql(String sqlStatement,
[List arguments,
SqlStatementCallback callback,
SqlStatementErrorCallback errorCallback]) native;
@JSName('executeSql')
@DomName('SQLTransaction.executeSql')
@DocsEditable()
Future<SqlResultSet> executeSql(String sqlStatement, [List arguments]) {
var completer = new Completer<SqlResultSet>();
_executeSql(sqlStatement, arguments, (transaction, resultSet) {
-1
View File
@@ -144,7 +144,6 @@ $(ANNOTATIONS)$(NATIVESPEC)$(CLASS_MODIFIERS)class $CLASSNAME $EXTENDS with
}
@DomName('CSSStyleDeclaration.setProperty')
void setProperty(String propertyName, String value, [String priority]) {
return _setPropertyHelper(_browserPropertyName(propertyName),
value, priority);
+2 -33
View File
@@ -456,19 +456,16 @@ _dart2js_annotations = monitored.Dict('dartmetadata._dart2js_annotations', {
_blink_experimental_annotations = [
"@SupportedBrowser(SupportedBrowser.CHROME)",
"@Experimental()",
]
_indexed_db_annotations = [
"@SupportedBrowser(SupportedBrowser.CHROME)",
"@SupportedBrowser(SupportedBrowser.FIREFOX, '15')",
"@SupportedBrowser(SupportedBrowser.IE, '10')",
"@Experimental()",
]
_file_system_annotations = [
"@SupportedBrowser(SupportedBrowser.CHROME)",
"@Experimental()",
]
_all_but_ie9_annotations = [
@@ -494,17 +491,14 @@ _performance_annotations = [
_rtc_annotations = [ # Note: Firefox nightly builds also support this.
"@SupportedBrowser(SupportedBrowser.CHROME)",
"@Experimental()",
]
_shadow_dom_annotations = [
"@SupportedBrowser(SupportedBrowser.CHROME, '26')",
"@Experimental()",
]
_speech_recognition_annotations = [
"@SupportedBrowser(SupportedBrowser.CHROME, '25')",
"@Experimental()",
]
_svg_annotations = _all_but_ie9_annotations;
@@ -512,13 +506,11 @@ _svg_annotations = _all_but_ie9_annotations;
_web_sql_annotations = [
"@SupportedBrowser(SupportedBrowser.CHROME)",
"@SupportedBrowser(SupportedBrowser.SAFARI)",
"@Experimental()",
]
_webgl_annotations = [
"@SupportedBrowser(SupportedBrowser.CHROME)",
"@SupportedBrowser(SupportedBrowser.FIREFOX)",
"@Experimental()",
]
_web_audio_annotations = _webgl_annotations
@@ -526,7 +518,6 @@ _web_audio_annotations = _webgl_annotations
_webkit_experimental_annotations = [
"@SupportedBrowser(SupportedBrowser.CHROME)",
"@SupportedBrowser(SupportedBrowser.SAFARI)",
"@Experimental()",
]
# Annotations to be placed on generated members.
@@ -558,17 +549,15 @@ _annotations = monitored.Dict('dartmetadata._annotations', {
'Window.webkitResolveLocalFileSystemURL': _file_system_annotations,
'Element.createShadowRoot': [
"@SupportedBrowser(SupportedBrowser.CHROME, '25')",
"@Experimental()",
],
'Element.ontransitionend': _all_but_ie9_annotations,
# Placeholder to add experimental flag, implementation for this is
# pending in a separate CL.
'Element.webkitMatchesSelector': ['@Experimental()'],
'Element.webkitMatchesSelector': [],
'Event.clipboardData': [
"@SupportedBrowser(SupportedBrowser.CHROME)",
"@SupportedBrowser(SupportedBrowser.FIREFOX)",
"@SupportedBrowser(SupportedBrowser.SAFARI)",
"@Experimental()",
],
'FormData': _all_but_ie9_annotations,
'HashChangeEvent': [
@@ -619,7 +608,6 @@ _annotations = monitored.Dict('dartmetadata._annotations', {
"@SupportedBrowser(SupportedBrowser.CHROME)",
"@SupportedBrowser(SupportedBrowser.FIREFOX)",
"@SupportedBrowser(SupportedBrowser.SAFARI)",
"@Experimental()",
],
'Performance': _performance_annotations,
'PopStateEvent': _history_annotations,
@@ -760,12 +748,7 @@ class DartMetadata(object):
key = interface.id
dom_name = interface.javascript_binding_name
annotations = ["@DomName('" + dom_name + "')"]
# Only add this for members, so we don't add DocsEditable to templated
# classes (they get it from the default class template)
if member_name:
annotations.append('@DocsEditable()');
annotations = []
if key in _annotations:
annotations.extend(_annotations[key])
@@ -893,10 +876,6 @@ class DartMetadata(object):
if dart_action:
if dart_action == 'unstable':
annotations.append('@Unstable()')
elif dart_action == 'experimental':
if comment:
annotations.append('// %s' % comment)
annotations.append('@Experimental() // %s' % support_level)
elif dart_action == 'suppress':
if comment:
annotations.append('// %s' % comment)
@@ -909,16 +888,6 @@ class DartMetadata(object):
pass
else:
_logger.warn('Unknown dart_action - %s:%s' % (interface_id, member_id))
elif support_level == 'untriaged':
annotations.append('@Experimental() // untriaged')
elif support_level == 'experimental':
if comment:
annotations.append('// %s' % comment)
annotations.append('@Experimental()')
elif support_level == 'nonstandard':
if comment:
annotations.append('// %s' % comment)
annotations.append('@Experimental() // non-standard')
elif support_level == 'stable':
pass
elif support_level == 'deprecated':
-2
View File
@@ -64,8 +64,6 @@ class HtmlDartGenerator(object):
def EmitEventGetter(self, events_class_name):
self._members_emitter.Emit(
"\n @DocsEditable()"
"\n @DomName('EventTarget.addEventListener, "
"EventTarget.removeEventListener, EventTarget.dispatchEvent')"
"\n @deprecated"
"\n $TYPE get on =>\n new $TYPE(this);\n",
-1
View File
@@ -260,7 +260,6 @@ class DartiumBackend(HtmlDartGenerator):
self.DeriveQualifiedBlinkName(self._interface.id,
dart_native_name)
self._members_emitter.Emit(
'\n @DocsEditable()\n'
' static $INTERFACE_NAME $FACTORY_METHOD_NAME($PARAMETERS) => '
'$TOPLEVEL_NAME($OUTPARAMETERS);\n',
INTERFACE_NAME=self._interface_type_info.interface_name(),
-1
View File
@@ -5,7 +5,6 @@ part of html;
* [length measurement](https://developer.mozilla.org/en-US/docs/Web/CSS/length)
* in CSS.
*/
@Experimental()
class Dimension {
num _value;
String _unit;
-22
View File
@@ -10,95 +10,73 @@ class Console {
bool get _isConsoleDefined => JS('bool', 'typeof console != "undefined"');
@DomName('Console.memory')
MemoryInfo get memory =>
_isConsoleDefined ? JS('MemoryInfo', 'window.console.memory') : null;
@DomName('Console.assertCondition')
void assertCondition(bool condition, Object arg) => _isConsoleDefined
? JS('void', 'window.console.assertCondition(#, #)', condition, arg)
: null;
@DomName('Console.clear')
void clear(Object arg) =>
_isConsoleDefined ? JS('void', 'window.console.clear(#)', arg) : null;
@DomName('Console.count')
void count(Object arg) =>
_isConsoleDefined ? JS('void', 'window.console.count(#)', arg) : null;
@DomName('Console.debug')
void debug(Object arg) =>
_isConsoleDefined ? JS('void', 'window.console.debug(#)', arg) : null;
@DomName('Console.dir')
void dir(Object arg) =>
_isConsoleDefined ? JS('void', 'window.console.dir(#)', arg) : null;
@DomName('Console.dirxml')
void dirxml(Object arg) =>
_isConsoleDefined ? JS('void', 'window.console.dirxml(#)', arg) : null;
@DomName('Console.error')
void error(Object arg) =>
_isConsoleDefined ? JS('void', 'window.console.error(#)', arg) : null;
@DomName('Console.group')
void group(Object arg) =>
_isConsoleDefined ? JS('void', 'window.console.group(#)', arg) : null;
@DomName('Console.groupCollapsed')
void groupCollapsed(Object arg) => _isConsoleDefined
? JS('void', 'window.console.groupCollapsed(#)', arg)
: null;
@DomName('Console.groupEnd')
void groupEnd() =>
_isConsoleDefined ? JS('void', 'window.console.groupEnd()') : null;
@DomName('Console.info')
void info(Object arg) =>
_isConsoleDefined ? JS('void', 'window.console.info(#)', arg) : null;
@DomName('Console.log')
void log(Object arg) =>
_isConsoleDefined ? JS('void', 'window.console.log(#)', arg) : null;
@DomName('Console.markTimeline')
void markTimeline(Object arg) => _isConsoleDefined
? JS('void', 'window.console.markTimeline(#)', arg)
: null;
@DomName('Console.profile')
void profile(String title) =>
_isConsoleDefined ? JS('void', 'window.console.profile(#)', title) : null;
@DomName('Console.profileEnd')
void profileEnd(String title) => _isConsoleDefined
? JS('void', 'window.console.profileEnd(#)', title)
: null;
@DomName('Console.table')
void table(Object arg) =>
_isConsoleDefined ? JS('void', 'window.console.table(#)', arg) : null;
@DomName('Console.time')
void time(String title) =>
_isConsoleDefined ? JS('void', 'window.console.time(#)', title) : null;
@DomName('Console.timeEnd')
void timeEnd(String title) =>
_isConsoleDefined ? JS('void', 'window.console.timeEnd(#)', title) : null;
@DomName('Console.timeStamp')
void timeStamp(Object arg) =>
_isConsoleDefined ? JS('void', 'window.console.timeStamp(#)', arg) : null;
@DomName('Console.trace')
void trace(Object arg) =>
_isConsoleDefined ? JS('void', 'window.console.trace(#)', arg) : null;
@DomName('Console.warn')
void warn(Object arg) =>
_isConsoleDefined ? JS('void', 'window.console.warn(#)', arg) : null;
}
-3
View File
@@ -25,7 +25,6 @@
* on how we can make this class work with as many international keyboards as
* possible. Bugs welcome!
*/
@Experimental()
class KeyEvent extends _WrappedEvent implements KeyboardEvent {
/** The parent KeyboardEvent that this KeyEvent is wrapping and "fixing". */
KeyboardEvent _parent;
@@ -230,10 +229,8 @@ class KeyEvent extends _WrappedEvent implements KeyboardEvent {
"Cannot initialize a KeyboardEvent from a KeyEvent.");
}
@Experimental() // untriaged
bool getModifierState(String keyArgument) => throw new UnimplementedError();
@Experimental() // untriaged
bool get repeat => throw new UnimplementedError();
bool get isComposed => throw new UnimplementedError();
dynamic get _get_view => throw new UnimplementedError();
-1
View File
@@ -83,7 +83,6 @@ class _WrappedEvent implements Event {
* from W3C.
*/
// https://dvcs.w3.org/hg/webcomponents/raw-file/tip/spec/shadow/index.html#extensions-to-event
@Experimental()
List<Node> get path => wrapped.path;
dynamic get _get_currentTarget => wrapped._get_currentTarget;
@@ -4,6 +4,5 @@
part of $LIBRARYNAME;
@DocsEditable()
$(ANNOTATIONS)$(NATIVESPEC)$(CLASS_MODIFIERS)class $CLASSNAME$EXTENDS$MIXINS$IMPLEMENTS {
$!MEMBERS}
@@ -4,7 +4,6 @@
part of $LIBRARYNAME;
@DocsEditable()
$(ANNOTATIONS)$(NATIVESPEC)$(CLASS_MODIFIERS)class $CLASSNAME$EXTENDS$MIXINS$IMPLEMENTS {
$!MEMBERS
@@ -6,32 +6,6 @@
// https://code.google.com/p/dart/wiki/ContributingHTMLDocumentation
// Auto-generated dart:html library.
/**
* HTML elements and other resources for web-based applications that need to
* interact with the browser and the DOM (Document Object Model).
*
* This library includes DOM element types, CSS styling, local storage,
* media, speech, events, and more.
* To get started,
* check out the [Element] class, the base class for many of the HTML
* DOM types.
*
* ## Other resources
*
* * If you've never written a web app before, try our
* tutorials&mdash;[A Game of Darts](http://dartlang.org/docs/tutorials).
*
* * To see some web-based Dart apps in action and to play with the code,
* download
* [Dart Editor](http://www.dartlang.org/#get-started)
* and run its built-in examples.
*
* * For even more examples, see
* [Dart HTML5 Samples](https://github.com/dart-lang/dart-html5-samples)
* on Github.
*
* {@category Web}
*/
library dart.dom.html;
import 'dart:async';
@@ -163,7 +137,6 @@ class HtmlElement extends Element implements NoncedElement {
HtmlElement.created() : super.created();
// From NoncedElement
@DomName('HTMLElement.nonce')
String nonce;
}
@@ -171,7 +144,5 @@ class HtmlElement extends Element implements NoncedElement {
* Emitted for any setlike IDL entry needs a callback signature.
* Today there is only one.
*/
@DomName('FontFaceSetForEachCallback')
@Experimental() // untriaged
typedef void FontFaceSetForEachCallback(
FontFace fontFace, FontFace fontFaceAgain, FontFaceSet set);
@@ -12,91 +12,69 @@ $(ANNOTATIONS)$(CLASS_MODIFIERS)class Console {
bool get _isConsoleDefined => JS('bool', 'typeof console != "undefined"');
@DomName('Console.memory')
MemoryInfo get memory => _isConsoleDefined ?
JS('MemoryInfo', 'console.memory') : null;
@DomName('Console.assertCondition')
void assertCondition(bool condition, Object arg) => _isConsoleDefined ?
JS('void', 'console.assertCondition(#, #)', condition, arg) : null;
@DomName('Console.clear')
void clear(Object arg) => _isConsoleDefined ?
JS('void', 'console.clear(#)', arg) : null;
@DomName('Console.count')
void count(Object arg) => _isConsoleDefined ?
JS('void', 'console.count(#)', arg) : null;
@DomName('Console.debug')
void debug(Object arg) => _isConsoleDefined ?
JS('void', 'console.debug(#)', arg) : null;
@DomName('Console.dir')
void dir(Object arg) => _isConsoleDefined ?
JS('void', 'console.dir(#)', arg) : null;
@DomName('Console.dirxml')
void dirxml(Object arg) => _isConsoleDefined ?
JS('void', 'console.dirxml(#)', arg) : null;
@DomName('Console.error')
void error(Object arg) => _isConsoleDefined ?
JS('void', 'console.error(#)', arg) : null;
@DomName('Console.group')
void group(Object arg) => _isConsoleDefined ?
JS('void', 'console.group(#)', arg) : null;
@DomName('Console.groupCollapsed')
void groupCollapsed(Object arg) => _isConsoleDefined ?
JS('void', 'console.groupCollapsed(#)', arg) : null;
@DomName('Console.groupEnd')
void groupEnd() => _isConsoleDefined ?
JS('void', 'console.groupEnd()') : null;
@DomName('Console.info')
void info(Object arg) => _isConsoleDefined ?
JS('void', 'console.info(#)', arg) : null;
@DomName('Console.log')
void log(Object arg) => _isConsoleDefined ?
JS('void', 'console.log(#)', arg) : null;
@DomName('Console.markTimeline')
void markTimeline(Object arg) => _isConsoleDefined ?
JS('void', 'console.markTimeline(#)', arg) : null;
@DomName('Console.profile')
void profile(String title) => _isConsoleDefined ?
JS('void', 'console.profile(#)', title) : null;
@DomName('Console.profileEnd')
void profileEnd(String title) => _isConsoleDefined ?
JS('void', 'console.profileEnd(#)', title) : null;
@DomName('Console.table')
void table(Object arg) => _isConsoleDefined ?
JS('void', 'console.table(#)', arg) : null;
@DomName('Console.time')
void time(String title) => _isConsoleDefined ?
JS('void', 'console.time(#)', title) : null;
@DomName('Console.timeEnd')
void timeEnd(String title) => _isConsoleDefined ?
JS('void', 'console.timeEnd(#)', title) : null;
@DomName('Console.timeStamp')
void timeStamp(Object arg) => _isConsoleDefined ?
JS('void', 'console.timeStamp(#)', arg) : null;
@DomName('Console.trace')
void trace(Object arg) => _isConsoleDefined ?
JS('void', 'console.trace(#)', arg) : null;
@DomName('Console.warn')
void warn(Object arg) => _isConsoleDefined ?
JS('void', 'console.warn(#)', arg) : null;
$!MEMBERS
@@ -4,11 +4,8 @@
part of $LIBRARYNAME;
@DocsEditable()
$(ANNOTATIONS)$(NATIVESPEC)$(CLASS_MODIFIERS)class $CLASSNAME$EXTENDS$MIXINS$IMPLEMENTS {
$!MEMBERS
@DomName('HTMLAnchorElement.toString')
@DocsEditable()
String toString() => JS('String', 'String(#)', this);
}
@@ -4,11 +4,8 @@
part of $LIBRARYNAME;
@DocsEditable()
$(ANNOTATIONS)$(NATIVESPEC)$(CLASS_MODIFIERS)class $CLASSNAME$EXTENDS$MIXINS$IMPLEMENTS {
$!MEMBERS
@DomName('HTMLAreaElement.toString')
@DocsEditable()
String toString() => JS('String', 'String(#)', this);
}
@@ -44,7 +44,6 @@ $(ANNOTATIONS)$(NATIVESPEC)$(CLASS_MODIFIERS)class $CLASSNAME$EXTENDS$IMPLEMENTS
return e;
}
@DomName('KeyboardEvent.initKeyboardEvent')
void _initKeyboardEvent(String type, bool canBubble, bool cancelable,
Window view, String keyIdentifier, int location, bool ctrlKey,
bool altKey, bool shiftKey, bool metaKey) {
@@ -64,13 +63,10 @@ $(ANNOTATIONS)$(NATIVESPEC)$(CLASS_MODIFIERS)class $CLASSNAME$EXTENDS$IMPLEMENTS
}
}
@DomName('KeyboardEvent.keyCode')
final int keyCode;
@DomName('KeyboardEvent.charCode')
final int charCode;
@DomName('KeyboardEvent.which')
int get which => _which;
$!MEMBERS
}
@@ -22,14 +22,10 @@ $(ANNOTATIONS)$(NATIVESPEC)$(CLASS_MODIFIERS)class $CLASSNAME$EXTENDS$IMPLEMENTS
}
$!MEMBERS
@DomName('MouseEvent.clientX') @DomName('MouseEvent.clientY')
Point get client => new Point(_clientX, _clientY);
@DomName('MouseEvent.movementX')
@DomName('MouseEvent.movementY')
@SupportedBrowser(SupportedBrowser.CHROME)
@SupportedBrowser(SupportedBrowser.FIREFOX)
@Experimental()
Point get movement => new Point(_movementX, _movementY);
/**
@@ -56,19 +52,12 @@ $!MEMBERS
}
}
@DomName('MouseEvent.screenX')
@DomName('MouseEvent.screenY')
Point get screen => new Point(_screenX, _screenY);
@DomName('MouseEvent.layerX')
@DomName('MouseEvent.layerY')
Point get layer => new Point(_layerX, _layerY);
@DomName('MouseEvent.pageX')
@DomName('MouseEvent.pageY')
Point get page => new Point(_pageX, _pageY);
@DomName('MouseEvent.dataTransfer')
DataTransfer get dataTransfer => JS('DataTransfer', "#['dataTransfer']", this);
}
@@ -4,7 +4,6 @@
part of $LIBRARYNAME;
@DocsEditable()
$(ANNOTATIONS)$(NATIVESPEC)$(CLASS_MODIFIERS)class $CLASSNAME$EXTENDS$MIXINS$IMPLEMENTS {
factory PaymentRequest(List<Map> methodData, Map details,
[Map options]) {
@@ -24,8 +24,6 @@ $(ANNOTATIONS)$(NATIVESPEC)$(CLASS_MODIFIERS)class $CLASSNAME$EXTENDS$IMPLEMENTS
JS('void',
'(self.URL || self.webkitURL).revokeObjectURL(#)', url);
@DomName('URL.toString')
@DocsEditable()
String toString() => JS('String', 'String(#)', this);
$!MEMBERS
@@ -4,6 +4,5 @@
part of $LIBRARYNAME;
@DocsEditable()
$(ANNOTATIONS)$(NATIVESPEC)$(CLASS_MODIFIERS)class $CLASSNAME$EXTENDS$MIXINS implements EventTarget {
$!MEMBERS}
@@ -41,13 +41,10 @@ $!MEMBERS
}
@JSName('decodeAudioData')
@DomName('AudioContext.decodeAudioData')
@DocsEditable()
Future _decodeAudioData(ByteBuffer audioData,
[DecodeSuccessCallback successCallback,
DecodeErrorCallback errorCallback]) native;
@DomName('AudioContext.decodeAudioData')
Future<AudioBuffer> decodeAudioData(ByteBuffer audioData,
[DecodeSuccessCallback successCallback,
DecodeErrorCallback errorCallback]) {
@@ -6,12 +6,10 @@ part of web_audio;
$(ANNOTATIONS)$(NATIVESPEC)class $CLASSNAME$EXTENDS$IMPLEMENTS {
$!MEMBERS
@DomName('AudioNode.connect')
void connectNode(AudioNode destination, [int output = 0, int input = 0]) {
_connect(destination, output, input);
}
@DomName('AudioNode.connect')
void connectParam(AudioParam destination, [int output = 0]) {
_connect(destination, output);
}
@@ -53,7 +53,6 @@ $(ANNOTATIONS)$(NATIVESPEC)$(CLASS_MODIFIERS)class $CLASSNAME $EXTENDS with
}
@DomName('CSSStyleDeclaration.setProperty')
void setProperty(String propertyName, String value, [String priority]) {
return _setPropertyHelper(_browserPropertyName(propertyName),
value, priority);
@@ -11,8 +11,6 @@ abstract class CanvasRenderingContext {
$(ANNOTATIONS)$(NATIVESPEC)$(CLASS_MODIFIERS)class $CLASSNAME$EXTENDS implements CanvasRenderingContext {
$!MEMBERS
@DomName('CanvasRenderingContext2D.createImageDataFromImageData')
@DocsEditable()
ImageData createImageDataFromImageData(ImageData imagedata) =>
JS('ImageData', '#.createImageData(#)', this, imagedata);
@@ -52,7 +50,6 @@ $!MEMBERS
this.strokeStyle = 'hsla($h, $s%, $l%, $a)';
}
@DomName('CanvasRenderingContext2D.arc')
void arc(num x, num y, num radius, num startAngle, num endAngle,
[bool anticlockwise = false]) {
// TODO(terry): This should not be needed: dartbug.com/20939.
@@ -60,7 +57,6 @@ $!MEMBERS
endAngle, anticlockwise);
}
@DomName('CanvasRenderingContext2D.createPatternFromImage')
CanvasPattern createPatternFromImage(ImageElement image, String repetitionType) =>
JS('CanvasPattern', '#.createPattern(#, #)', this, image, repetitionType);
@@ -104,7 +100,6 @@ $!MEMBERS
* * [drawImage](http://www.whatwg.org/specs/web-apps/current-work/multipage/the-canvas-element.html#dom-context-2d-drawimage)
* from the WHATWG.
*/
@DomName('CanvasRenderingContext2D.drawImage')
void drawImageToRect(CanvasImageSource source, Rectangle destRect,
{Rectangle sourceRect}) {
if (sourceRect == null) {
@@ -155,7 +150,6 @@ $!MEMBERS
* * [drawImage](http://www.whatwg.org/specs/web-apps/current-work/multipage/the-canvas-element.html#dom-context-2d-drawimage)
* from the WHATWG.
*/
@DomName('CanvasRenderingContext2D.drawImage')
@JSName('drawImage')
void drawImage(CanvasImageSource source, num destX, num destY) native;
@@ -185,7 +179,6 @@ $!MEMBERS
* * [drawImage](http://www.whatwg.org/specs/web-apps/current-work/multipage/the-canvas-element.html#dom-context-2d-drawimage)
* from the WHATWG.
*/
@DomName('CanvasRenderingContext2D.drawImage')
@JSName('drawImage')
void drawImageScaled(CanvasImageSource source,
num destX, num destY, num destWidth, num destHeight) native;
@@ -219,7 +212,6 @@ $!MEMBERS
* * [drawImage](http://www.whatwg.org/specs/web-apps/current-work/multipage/the-canvas-element.html#dom-context-2d-drawimage)
* from the WHATWG.
*/
@DomName('CanvasRenderingContext2D.drawImage')
@JSName('drawImage')
void drawImageScaledFromSource(CanvasImageSource source,
num sourceX, num sourceY, num sourceWidth, num sourceHeight,
@@ -229,7 +221,6 @@ $!MEMBERS
@SupportedBrowser(SupportedBrowser.SAFARI)
@SupportedBrowser(SupportedBrowser.IE, '11')
@Unstable()
@DomName('CanvasRenderingContext2D.lineDashOffset')
// TODO(14316): Firefox has this functionality with mozDashOffset, but it
// needs to be polyfilled.
num get lineDashOffset => JS('num',
@@ -239,7 +230,6 @@ $!MEMBERS
@SupportedBrowser(SupportedBrowser.SAFARI)
@SupportedBrowser(SupportedBrowser.IE, '11')
@Unstable()
@DomName('CanvasRenderingContext2D.lineDashOffset')
// TODO(14316): Firefox has this functionality with mozDashOffset, but it
// needs to be polyfilled.
set lineDashOffset(num value) {
@@ -252,7 +242,6 @@ $!MEMBERS
@SupportedBrowser(SupportedBrowser.SAFARI)
@SupportedBrowser(SupportedBrowser.IE, '11')
@Unstable()
@DomName('CanvasRenderingContext2D.getLineDash')
List<num> getLineDash() {
// TODO(14316): Firefox has this functionality with mozDash, but it's a bit
// different.
@@ -267,7 +256,6 @@ $!MEMBERS
@SupportedBrowser(SupportedBrowser.SAFARI)
@SupportedBrowser(SupportedBrowser.IE, '11')
@Unstable()
@DomName('CanvasRenderingContext2D.setLineDash')
void setLineDash(List<num> dash) {
// TODO(14316): Firefox has this functionality with mozDash, but it's a bit
// different.
@@ -293,7 +281,6 @@ $!MEMBERS
* [CanvasRenderingContext2D.textBaseLine] properties are also applied to the
* drawn text.
*/
@DomName('CanvasRenderingContext2D.fillText')
void fillText(String text, num x, num y, [num maxWidth]) {
if (maxWidth != null) {
JS('void', '#.fillText(#, #, #, #)', this, text, x, y, maxWidth);
@@ -303,8 +290,6 @@ $!MEMBERS
}
/** Deprecated always returns 1.0 */
@DomName('CanvasRenderingContext2D.webkitBackingStorePixelRation')
@Experimental()
@deprecated
double get backingStorePixelRatio => 1.0;
}
@@ -4,7 +4,6 @@
part of $LIBRARYNAME;
@DocsEditable()
$(ANNOTATIONS)$(NATIVESPEC)$(CLASS_MODIFIERS)class $CLASSNAME$EXTENDS$MIXINS$IMPLEMENTS {
factory Comment([String data]) {
return JS('returns:Comment;depends:none;effects:none;new:true',
@@ -33,7 +33,6 @@ $(ANNOTATIONS)$(NATIVESPEC)$(CLASS_MODIFIERS)class $CLASSNAME$EXTENDS$IMPLEMENTS
return e;
}
@DomName('CustomEvent.detail')
get detail {
if (_dartDetail != null) {
return _dartDetail;
@@ -41,7 +41,5 @@ $(ANNOTATIONS)$(NATIVESPEC)$(CLASS_MODIFIERS)class $CLASSNAME$EXTENDS$IMPLEMENTS
return errorName;
}
$!MEMBERS
@DomName('DOMException.toString')
@DocsEditable()
String toString() => JS('String', 'String(#)', this);
}
@@ -4,7 +4,6 @@
part of $LIBRARYNAME;
@DocsEditable()
$(ANNOTATIONS)$(NATIVESPEC)$(CLASS_MODIFIERS)class $CLASSNAME$EXTENDS implements Rectangle$IMPLEMENTS {
// NOTE! All code below should be common with RectangleBase.
@@ -4,7 +4,6 @@
part of $LIBRARYNAME;
@DocsEditable()
$(ANNOTATIONS)$(NATIVESPEC)$(CLASS_MODIFIERS)class $CLASSNAME$EXTENDS implements Rectangle$IMPLEMENTS {
// NOTE! All code below should be common with RectangleBase.
@@ -4,7 +4,6 @@
part of $LIBRARYNAME;
@DocsEditable()
$(ANNOTATIONS)$(NATIVESPEC)$(CLASS_MODIFIERS)class $CLASSNAME$EXTENDS$MIXINS$IMPLEMENTS {
$!MEMBERS
@@ -4,13 +4,10 @@
part of $LIBRARYNAME;
@DocsEditable()
$(ANNOTATIONS)$(NATIVESPEC)$(CLASS_MODIFIERS)class $CLASSNAME$EXTENDS$IMPLEMENTS {
$!MEMBERS
@JSName('transaction')
@DomName('Database.transaction')
@DocsEditable()
Future<SqlTransaction> transaction_future() {
var completer = new Completer<SqlTransaction>();
transaction((value) {
@@ -7,8 +7,6 @@ part of $LIBRARYNAME;
$(ANNOTATIONS)$(NATIVESPEC)$(CLASS_MODIFIERS)class $CLASSNAME$EXTENDS$IMPLEMENTS {
$!MEMBERS
@DomName('DirectoryReader.readEntries')
@DocsEditable()
Future<List<Entry>> readEntries() {
var completer = new Completer<List<Entry>>();
_readEntries((value) {
@@ -4,7 +4,6 @@
part of $LIBRARYNAME;
@DocsEditable()
$(ANNOTATIONS)$(NATIVESPEC)$(CLASS_MODIFIERS)class $CLASSNAME extends Node
{
@@ -42,7 +41,6 @@ $!MEMBERS
registerElement2(tag, {'prototype': customElementClass, 'extends': extendsTag});
}
@DomName('Document.createElement')
@ForceInline() // Almost all call sites have one argument.
Element createElement(String tagName, [String typeExtension]) {
return (typeExtension == null)
@@ -52,41 +50,33 @@ $!MEMBERS
// The two-argument version of this is automatically generated, but we need to
// omit the typeExtension if it's null on Firefox or we get an is="null" attribute.
@DomName('Document.createElement')
_createElement_2(String tagName) =>
JS('Element', '#.createElement(#)', this, tagName);
// The three-argument version of this is automatically generated, but we need to
// omit the typeExtension if it's null on Firefox or we get an is="null" attribute.
@DomName('Document.createElementNS')
_createElementNS_2(String namespaceURI, String qualifiedName) =>
JS('Element', '#.createElementNS(#, #)', this, namespaceURI, qualifiedName);
@DomName('Document.createElementNS')
@DocsEditable()
Element createElementNS(String namespaceURI, String qualifiedName, [String typeExtension]) {
return (typeExtension == null)
? _createElementNS_2(namespaceURI, qualifiedName)
: _createElementNS(namespaceURI, qualifiedName, typeExtension);
}
@DomName('Document.createNodeIterator')
NodeIterator _createNodeIterator(Node root,
[int whatToShow, NodeFilter filter])
=> JS('NodeIterator', '#.createNodeIterator(#, #, #, false)',
this, root, whatToShow, filter);
@DomName('Document.createTreeWalker')
TreeWalker _createTreeWalker(Node root,
[int whatToShow, NodeFilter filter])
=> JS('TreeWalker', '#.createTreeWalker(#, #, #, false)',
this, root, whatToShow, filter);
@DomName('Document.visibilityState')
@SupportedBrowser(SupportedBrowser.CHROME)
@SupportedBrowser(SupportedBrowser.FIREFOX)
@SupportedBrowser(SupportedBrowser.IE, '10')
@Experimental()
String get visibilityState => JS('String',
'(#.visibilityState || #.mozVisibilityState || #.msVisibilityState ||'
'#.webkitVisibilityState)', this, this, this, this);
@@ -4,7 +4,6 @@
part of $LIBRARYNAME;
@DocsEditable()
$(ANNOTATIONS)$(NATIVESPEC)$(CLASS_MODIFIERS)class $CLASSNAME$EXTENDS$IMPLEMENTS {
$!MEMBERS
}
@@ -211,7 +211,6 @@ abstract class ElementList<T extends Element> extends ListBase<T> {
* Unlike [getBoundingClientRect], the dimensions of this rectangle
* will return the same numerical height if the element is hidden or not.
*/
@Experimental()
CssRect get contentEdge;
/**
@@ -226,7 +225,6 @@ abstract class ElementList<T extends Element> extends ListBase<T> {
* is also a rectangle equalling the dimensions of clientHeight and
* clientWidth.
*/
@Experimental()
CssRect get paddingEdge;
/**
@@ -239,7 +237,6 @@ abstract class ElementList<T extends Element> extends ListBase<T> {
* will return the same numerical height if the element is hidden or not. This
* can be used to retrieve jQuery's `outerHeight` value for an element.
*/
@Experimental()
CssRect get borderEdge;
/**
@@ -252,7 +249,6 @@ abstract class ElementList<T extends Element> extends ListBase<T> {
* will return the same numerical height if the element is hidden or not. This
* can be used to retrieve jQuery's `outerHeight` value for an element.
*/
@Experimental()
CssRect get marginEdge;
$!STREAM_GETTER_SIGNATURES
}
@@ -323,7 +319,6 @@ class _FrozenElementList<E extends Element> extends ListBase<E>
$!ELEMENT_STREAM_GETTERS
}
@DocsEditable()
$(ANNOTATIONS)$(NATIVESPEC)class $CLASSNAME$EXTENDS$IMPLEMENTS {
/**
@@ -598,7 +593,6 @@ $(ANNOTATIONS)$(NATIVESPEC)class $CLASSNAME$EXTENDS$IMPLEMENTS {
* For details about CSS selector syntax, see the
* [CSS selector specification](http://www.w3.org/TR/css3-selectors/).
*/
@DomName('Element.querySelectorAll')
ElementList<T> querySelectorAll<T extends Element>(String selectors) =>
new _FrozenElementList<T>._wrap(_querySelectorAll(selectors));
@@ -738,7 +732,6 @@ $(ANNOTATIONS)$(NATIVESPEC)class $CLASSNAME$EXTENDS$IMPLEMENTS {
* [Custom Elements](http://w3c.github.io/webcomponents/spec/custom/#dfn-attached-callback)
* draft specification.
*/
@Experimental()
void attached() {
// For the deprecation period, call the old callback.
enteredView();
@@ -752,19 +745,15 @@ $(ANNOTATIONS)$(NATIVESPEC)class $CLASSNAME$EXTENDS$IMPLEMENTS {
* [Custom Elements](http://w3c.github.io/webcomponents/spec/custom/#dfn-detached-callback)
* draft specification.
*/
@Experimental()
void detached() {
// For the deprecation period, call the old callback.
leftView();
}
/** *Deprecated*: override [attached] instead. */
@Experimental()
@deprecated
void enteredView() {}
@DomName('Element.getClientRects')
@DocsEditable()
List<Rectangle> getClientRects() {
var value = _getClientRects();
@@ -780,7 +769,6 @@ $(ANNOTATIONS)$(NATIVESPEC)class $CLASSNAME$EXTENDS$IMPLEMENTS {
}
/** *Deprecated*: override [detached] instead. */
@Experimental()
@deprecated
void leftView() {}
@@ -806,7 +794,6 @@ $(ANNOTATIONS)$(NATIVESPEC)class $CLASSNAME$EXTENDS$IMPLEMENTS {
* for the transition, or a Map with fields corresponding to those
* of the [Timing] object.
**/
@Experimental()
@SupportedBrowser(SupportedBrowser.CHROME, '36')
Animation animate(Iterable<Map<String, dynamic>> frames, [timing]) {
if (frames is! Iterable || !(frames.every((x) => x is Map))) {
@@ -825,17 +812,13 @@ $(ANNOTATIONS)$(NATIVESPEC)class $CLASSNAME$EXTENDS$IMPLEMENTS {
: _animate(convertedFrames, convertedTiming);
}
@DomName('Element.animate')
@JSName('animate')
@Experimental() // untriaged
Animation _animate(Object effect, [timing]) native;
/**
* Called by the DOM whenever an attribute on this has been changed.
*/
void attributeChanged(String name, String oldValue, String newValue) {}
@DomName('Element.localName')
@DocsEditable()
@Returns('String')
// Non-null for Elements.
String get localName => JS('String', '#', _localName);
@@ -850,7 +833,6 @@ $(ANNOTATIONS)$(NATIVESPEC)class $CLASSNAME$EXTENDS$IMPLEMENTS {
* * [Node.namespaceURI](http://www.w3.org/TR/DOM-Level-3-Core/core.html#ID-NodeNSname)
* from W3C.
*/
@DomName('Element.namespaceUri')
String get namespaceUri => _namespaceUri;
/**
@@ -902,7 +884,6 @@ $(ANNOTATIONS)$(NATIVESPEC)class $CLASSNAME$EXTENDS$IMPLEMENTS {
*
* See [EventStreamProvider] for usage information.
*/
@DomName('Element.mouseWheelEvent')
static const EventStreamProvider<WheelEvent> mouseWheelEvent =
const _CustomEventStreamProvider<WheelEvent>(
Element._determineMouseWheelEventType);
@@ -915,7 +896,6 @@ $(ANNOTATIONS)$(NATIVESPEC)class $CLASSNAME$EXTENDS$IMPLEMENTS {
*
* See [EventStreamProvider] for usage information.
*/
@DomName('Element.transitionEndEvent')
static const EventStreamProvider<TransitionEvent> transitionEndEvent =
const _CustomEventStreamProvider<TransitionEvent>(
Element._determineTransitionEventType);
@@ -1032,7 +1012,6 @@ $(ANNOTATIONS)$(NATIVESPEC)class $CLASSNAME$EXTENDS$IMPLEMENTS {
/**
* Checks if this element matches the CSS selectors.
*/
@Experimental()
bool matches(String selectors) {
if (JS('bool', '!!#.matches', this)) {
return JS('bool', '#.matches(#)', this, selectors);
@@ -1050,7 +1029,6 @@ $(ANNOTATIONS)$(NATIVESPEC)class $CLASSNAME$EXTENDS$IMPLEMENTS {
}
/** Checks if this element or any of its parents match the CSS selectors. */
@Experimental()
bool matchesWithAncestors(String selectors) {
var elem = this;
do {
@@ -1069,9 +1047,7 @@ $(ANNOTATIONS)$(NATIVESPEC)class $CLASSNAME$EXTENDS$IMPLEMENTS {
* from HTML5Rocks.
* * [Shadow DOM specification](http://www.w3.org/TR/shadow-dom/) from W3C.
*/
@DomName('Element.createShadowRoot')
@SupportedBrowser(SupportedBrowser.CHROME, '25')
@Experimental()
ShadowRoot createShadowRoot() {
return JS('ShadowRoot',
'(#.createShadowRoot || #.webkitCreateShadowRoot).call(#)',
@@ -1088,9 +1064,7 @@ $(ANNOTATIONS)$(NATIVESPEC)class $CLASSNAME$EXTENDS$IMPLEMENTS {
* * [Shadow DOM specification](http://www.w3.org/TR/shadow-dom/)
* from W3C.
*/
@DomName('Element.shadowRoot')
@SupportedBrowser(SupportedBrowser.CHROME, '25')
@Experimental()
ShadowRoot get shadowRoot =>
JS('ShadowRoot|Null', '#.shadowRoot || #.webkitShadowRoot', this, this);
@@ -1107,7 +1081,6 @@ $(ANNOTATIONS)$(NATIVESPEC)class $CLASSNAME$EXTENDS$IMPLEMENTS {
* animation frame is discouraged. See also:
* [Browser Reflow](https://developers.google.com/speed/articles/reflow)
*/
@Experimental()
CssRect get contentEdge => new _ContentCssRect(this);
/**
@@ -1127,7 +1100,6 @@ $(ANNOTATIONS)$(NATIVESPEC)class $CLASSNAME$EXTENDS$IMPLEMENTS {
* animation frame is discouraged. See also:
* [Browser Reflow](https://developers.google.com/speed/articles/reflow)
*/
@Experimental()
CssRect get paddingEdge => new _PaddingCssRect(this);
/**
@@ -1146,7 +1118,6 @@ $(ANNOTATIONS)$(NATIVESPEC)class $CLASSNAME$EXTENDS$IMPLEMENTS {
* animation frame is discouraged. See also:
* [Browser Reflow](https://developers.google.com/speed/articles/reflow)
*/
@Experimental()
CssRect get borderEdge => new _BorderCssRect(this);
/**
@@ -1165,7 +1136,6 @@ $(ANNOTATIONS)$(NATIVESPEC)class $CLASSNAME$EXTENDS$IMPLEMENTS {
* animation frame is discouraged. See also:
* [Browser Reflow](https://developers.google.com/speed/articles/reflow)
*/
@Experimental()
CssRect get marginEdge => new _MarginCssRect(this);
/**
@@ -1175,7 +1145,6 @@ $(ANNOTATIONS)$(NATIVESPEC)class $CLASSNAME$EXTENDS$IMPLEMENTS {
* This method is the Dart equivalent to jQuery's
* [offset](http://api.jquery.com/offset/) method.
*/
@Experimental()
Point get documentOffset => offsetTo(document.documentElement);
/**
@@ -1189,7 +1158,6 @@ $(ANNOTATIONS)$(NATIVESPEC)class $CLASSNAME$EXTENDS$IMPLEMENTS {
* element is _not_ an offset parent or transitive offset parent to this
* element, an [ArgumentError] is thrown.
*/
@Experimental()
Point offsetTo(Element parent) {
return Element._offsetToHelper(this, parent);
}
@@ -1430,52 +1398,29 @@ $(ANNOTATIONS)$(NATIVESPEC)class $CLASSNAME$EXTENDS$IMPLEMENTS {
return result;
}
@DomName('Element.offsetParent')
@DocsEditable()
final Element offsetParent;
@DomName('Element.offsetHeight')
@DocsEditable()
int get offsetHeight => JS('num', '#.offsetHeight', this).round();
@DomName('Element.offsetLeft')
@DocsEditable()
int get offsetLeft => JS('num', '#.offsetLeft', this).round();
@DomName('Element.offsetTop')
@DocsEditable()
int get offsetTop => JS('num', '#.offsetTop', this).round();
@DomName('Element.offsetWidth')
@DocsEditable()
int get offsetWidth => JS('num', '#.offsetWidth', this).round();
@DomName('Element.scrollHeight')
@DocsEditable()
int get scrollHeight => JS('num', '#.scrollHeight', this).round();
@DomName('Element.scrollLeft')
@DocsEditable()
int get scrollLeft => JS('num', '#.scrollLeft', this).round();
@DomName('Element.scrollLeft')
@DocsEditable()
set scrollLeft(int value) {
JS("void", "#.scrollLeft = #", this, value.round());
}
@DomName('Element.scrollTop')
@DocsEditable()
int get scrollTop => JS('num', '#.scrollTop', this).round();
@DomName('Element.scrollTop')
@DocsEditable()
set scrollTop(int value) {
JS("void", "#.scrollTop = #", this, value.round());
}
@DomName('Element.scrollWidth')
@DocsEditable()
int get scrollWidth => JS('num', '#.scrollWidth', this).round();
$!MEMBERS
@@ -1484,7 +1429,6 @@ $!MEMBERS
class _ElementFactoryProvider {
@DomName('Document.createElement')
// Optimization to improve performance until the dart2js compiler inlines this
// method.
static dynamic createElement_tag(String tag, String typeExtension) {
@@ -57,9 +57,6 @@ $(ANNOTATIONS)$(NATIVESPEC)$(CLASS_MODIFIERS)class $CLASSNAME$EXTENDS$IMPLEMENTS
throw new StateError('No selector matched for populating matchedTarget.');
}
@DomName('Event.path')
@DocsEditable()
@Experimental()
List<EventTarget> get path =>
JS('bool', '!!#.composedPath', this) ? composedPath() : [];
@@ -4,11 +4,8 @@
part of $LIBRARYNAME;
@DocsEditable()
$(ANNOTATIONS)$(NATIVESPEC)$(CLASS_MODIFIERS)class $CLASSNAME$EXTENDS$IMPLEMENTS {
@DomName('FileReader.result')
@DocsEditable()
Object get result {
var res = JS('Null|String|NativeByteBuffer', '#.result', this);
if (res is ByteBuffer) {
@@ -4,10 +4,8 @@
part of $LIBRARYNAME;
@DocsEditable()
$(ANNOTATIONS)$(NATIVESPEC)$(CLASS_MODIFIERS)class $CLASSNAME$EXTENDS$IMPLEMENTS {
@DomName('Geolocation.getCurrentPosition')
Future<Geoposition> getCurrentPosition({bool enableHighAccuracy,
Duration timeout, Duration maximumAge}) {
var options = {};
@@ -36,7 +34,6 @@ $(ANNOTATIONS)$(NATIVESPEC)$(CLASS_MODIFIERS)class $CLASSNAME$EXTENDS$IMPLEMENTS
return completer.future;
}
@DomName('Geolocation.watchPosition')
Stream<Geoposition> watchPosition({bool enableHighAccuracy,
Duration timeout, Duration maximumAge}) {
@@ -7,7 +7,6 @@ part of $LIBRARYNAME;
// We implement EventTarget and have stubs for its methods because it's tricky to
// convince the scripts to make our instance methods abstract, and the bodies that
// get generated require `this` to be an EventTarget.
@DocsEditable()
$(ANNOTATIONS)$(NATIVESPEC)$(CLASS_MODIFIERS)class $CLASSNAME implements EventTarget {
void addEventListener(String type, dynamic listener(Event event), [bool useCapture]);
@@ -4,7 +4,6 @@
part of $LIBRARYNAME;
@DocsEditable()
$(ANNOTATIONS)$(NATIVESPEC)$(CLASS_MODIFIERS)class $CLASSNAME$EXTENDS$IMPLEMENTS {
$!MEMBERS
factory AudioElement([String src]) => new AudioElement._(src);
@@ -21,7 +21,6 @@ $!MEMBERS
*/
@SupportedBrowser(SupportedBrowser.CHROME)
@SupportedBrowser(SupportedBrowser.FIREFOX)
@Experimental()
gl.RenderingContext getContext3d({alpha: true, depth: true, stencil: false,
antialias: true, premultipliedAlpha: true, preserveDrawingBuffer: false}) {
@@ -9,46 +9,35 @@ part of $LIBRARYNAME;
$(ANNOTATIONS)$(NATIVESPEC)$(CLASS_MODIFIERS)class $CLASSNAME$EXTENDS$IMPLEMENTS {
$!MEMBERS
@DomName('Document.body')
BodyElement body;
/// UNSTABLE: Chrome-only - create a Range from the given point.
@DomName('Document.caretRangeFromPoint')
@Unstable()
Range caretRangeFromPoint(int x, int y) {
return _caretRangeFromPoint(x, y);
}
@DomName('Document.elementFromPoint')
Element elementFromPoint(int x, int y) {
return _elementFromPoint(x, y);
}
@DomName('Document.head')
HeadElement get head => _head;
@DomName('Document.lastModified')
String get lastModified => _lastModified;
@DomName('Document.preferredStylesheetSet')
String get preferredStylesheetSet => _preferredStylesheetSet;
@DomName('Document.referrer')
String get referrer => _referrer;
@DomName('Document.selectedStylesheetSet')
String get selectedStylesheetSet => _selectedStylesheetSet;
set selectedStylesheetSet(String value) {
_selectedStylesheetSet = value;
}
@DomName('Document.styleSheets')
List<StyleSheet> get styleSheets => _styleSheets;
@DomName('Document.title')
String get title => _title;
@DomName('Document.title')
set title(String value) {
_title = value;
}
@@ -65,16 +54,13 @@ $!MEMBERS
* from WebPlatform.org.
* * [Fullscreen specification](http://www.w3.org/TR/fullscreen/) from W3C.
*/
@DomName('Document.webkitExitFullscreen')
@SupportedBrowser(SupportedBrowser.CHROME)
@SupportedBrowser(SupportedBrowser.SAFARI)
@Experimental()
void exitFullscreen() {
_webkitExitFullscreen();
}
@Experimental()
/**
* Register a custom subclass of Element to be instantiatable by the DOM.
*
@@ -122,7 +108,6 @@ $!MEMBERS
/** *Deprecated*: use [registerElement] instead. */
@deprecated
@Experimental()
void register(String tag, Type customElementClass, {String extendsTag}) {
return registerElement(tag, customElementClass, extendsTag: extendsTag);
}
@@ -133,11 +118,9 @@ $!MEMBERS
*
* See [EventStreamProvider] for usage information.
*/
@DomName('Document.visibilityChange')
@SupportedBrowser(SupportedBrowser.CHROME)
@SupportedBrowser(SupportedBrowser.FIREFOX)
@SupportedBrowser(SupportedBrowser.IE, '10')
@Experimental()
static const EventStreamProvider<Event> visibilityChangeEvent =
const _CustomEventStreamProvider<Event>(
_determineVisibilityChangeEventType);
@@ -159,7 +142,6 @@ $!MEMBERS
@SupportedBrowser(SupportedBrowser.CHROME)
@SupportedBrowser(SupportedBrowser.FIREFOX)
@SupportedBrowser(SupportedBrowser.IE, '10')
@Experimental()
Stream<Event> get onVisibilityChange =>
visibilityChangeEvent.forTarget(this);
@@ -171,7 +153,6 @@ $!MEMBERS
///
/// If the type is not a direct subclass of HtmlElement then the extendsTag
/// parameter must be provided.
@Experimental()
ElementUpgrader createElementUpgrader(Type type, {String extendsTag}) {
return new _JSElementUpgrader(this, type, extendsTag);
}
@@ -4,7 +4,6 @@
part of $LIBRARYNAME;
@DocsEditable()
$(ANNOTATIONS)$(NATIVESPEC)$(CLASS_MODIFIERS)class $CLASSNAME$EXTENDS$IMPLEMENTS {
$!MEMBERS
}
@@ -4,7 +4,6 @@
part of $LIBRARYNAME;
@DocsEditable()
$(ANNOTATIONS)$(NATIVESPEC)$(CLASS_MODIFIERS)class $CLASSNAME$EXTENDS$IMPLEMENTS {
$!MEMBERS
}
@@ -50,40 +50,28 @@ $!MEMBERS
* Exposes the functionality common between all InputElement types.
*/
abstract class InputElementBase implements Element {
@DomName('HTMLInputElement.autofocus')
bool autofocus;
@DomName('HTMLInputElement.disabled')
bool disabled;
@DomName('HTMLInputElement.incremental')
bool incremental;
@DomName('HTMLInputElement.indeterminate')
bool indeterminate;
@DomName('HTMLInputElement.labels')
List<Node> get labels;
@DomName('HTMLInputElement.name')
String name;
@DomName('HTMLInputElement.validationMessage')
String get validationMessage;
@DomName('HTMLInputElement.validity')
ValidityState get validity;
@DomName('HTMLInputElement.value')
String value;
@DomName('HTMLInputElement.willValidate')
bool get willValidate;
@DomName('HTMLInputElement.checkValidity')
bool checkValidity();
@DomName('HTMLInputElement.setCustomValidity')
void setCustomValidity(String error);
}
@@ -99,40 +87,28 @@ abstract class HiddenInputElement implements InputElementBase {
* Base interface for all inputs which involve text editing.
*/
abstract class TextInputElementBase implements InputElementBase {
@DomName('HTMLInputElement.autocomplete')
String autocomplete;
@DomName('HTMLInputElement.maxLength')
int maxLength;
@DomName('HTMLInputElement.pattern')
String pattern;
@DomName('HTMLInputElement.placeholder')
String placeholder;
@DomName('HTMLInputElement.readOnly')
bool readOnly;
@DomName('HTMLInputElement.required')
bool required;
@DomName('HTMLInputElement.size')
int size;
@DomName('HTMLInputElement.select')
void select();
@DomName('HTMLInputElement.selectionDirection')
String selectionDirection;
@DomName('HTMLInputElement.selectionEnd')
int selectionEnd;
@DomName('HTMLInputElement.selectionStart')
int selectionStart;
@DomName('HTMLInputElement.setSelectionRange')
void setSelectionRange(int start, int end, [String direction]);
}
@@ -149,10 +125,8 @@ abstract class TextInputElementBase implements InputElementBase {
abstract class SearchInputElement implements TextInputElementBase {
factory SearchInputElement() => new InputElement(type: 'search');
@DomName('HTMLInputElement.dirName')
String dirName;
@DomName('HTMLInputElement.list')
Element get list;
/// Returns true if this input type is supported on the current platform.
@@ -167,10 +141,8 @@ abstract class SearchInputElement implements TextInputElementBase {
abstract class TextInputElement implements TextInputElementBase {
factory TextInputElement() => new InputElement(type: 'text');
@DomName('HTMLInputElement.dirName')
String dirName;
@DomName('HTMLInputElement.list')
Element get list;
}
@@ -186,7 +158,6 @@ abstract class TextInputElement implements TextInputElementBase {
abstract class UrlInputElement implements TextInputElementBase {
factory UrlInputElement() => new InputElement(type: 'url');
@DomName('HTMLInputElement.list')
Element get list;
/// Returns true if this input type is supported on the current platform.
@@ -210,7 +181,6 @@ abstract class UrlInputElement implements TextInputElementBase {
abstract class TelephoneInputElement implements TextInputElementBase {
factory TelephoneInputElement() => new InputElement(type: 'tel');
@DomName('HTMLInputElement.list')
Element get list;
/// Returns true if this input type is supported on the current platform.
@@ -231,34 +201,24 @@ abstract class TelephoneInputElement implements TextInputElementBase {
abstract class EmailInputElement implements TextInputElementBase {
factory EmailInputElement() => new InputElement(type: 'email');
@DomName('HTMLInputElement.autocomplete')
String autocomplete;
@DomName('HTMLInputElement.autofocus')
bool autofocus;
@DomName('HTMLInputElement.list')
Element get list;
@DomName('HTMLInputElement.maxLength')
int maxLength;
@DomName('HTMLInputElement.multiple')
bool multiple;
@DomName('HTMLInputElement.pattern')
String pattern;
@DomName('HTMLInputElement.placeholder')
String placeholder;
@DomName('HTMLInputElement.readOnly')
bool readOnly;
@DomName('HTMLInputElement.required')
bool required;
@DomName('HTMLInputElement.size')
int size;
/// Returns true if this input type is supported on the current platform.
@@ -279,25 +239,18 @@ abstract class PasswordInputElement implements TextInputElementBase {
*/
abstract class RangeInputElementBase implements InputElementBase {
@DomName('HTMLInputElement.list')
Element get list;
@DomName('HTMLInputElement.max')
String max;
@DomName('HTMLInputElement.min')
String min;
@DomName('HTMLInputElement.step')
String step;
@DomName('HTMLInputElement.valueAsNumber')
num valueAsNumber;
@DomName('HTMLInputElement.stepDown')
void stepDown([int n]);
@DomName('HTMLInputElement.stepUp')
void stepUp([int n]);
}
@@ -307,17 +260,13 @@ abstract class RangeInputElementBase implements InputElementBase {
* Use [supported] to check if this is supported on the current platform.
*/
@SupportedBrowser(SupportedBrowser.CHROME, '25')
@Experimental()
abstract class DateInputElement implements RangeInputElementBase {
factory DateInputElement() => new InputElement(type: 'date');
@DomName('HTMLInputElement.valueAsDate')
DateTime valueAsDate;
@DomName('HTMLInputElement.readOnly')
bool readOnly;
@DomName('HTMLInputElement.required')
bool required;
/// Returns true if this input type is supported on the current platform.
@@ -332,17 +281,13 @@ abstract class DateInputElement implements RangeInputElementBase {
* Use [supported] to check if this is supported on the current platform.
*/
@SupportedBrowser(SupportedBrowser.CHROME, '25')
@Experimental()
abstract class MonthInputElement implements RangeInputElementBase {
factory MonthInputElement() => new InputElement(type: 'month');
@DomName('HTMLInputElement.valueAsDate')
DateTime valueAsDate;
@DomName('HTMLInputElement.readOnly')
bool readOnly;
@DomName('HTMLInputElement.required')
bool required;
/// Returns true if this input type is supported on the current platform.
@@ -357,17 +302,13 @@ abstract class MonthInputElement implements RangeInputElementBase {
* Use [supported] to check if this is supported on the current platform.
*/
@SupportedBrowser(SupportedBrowser.CHROME, '25')
@Experimental()
abstract class WeekInputElement implements RangeInputElementBase {
factory WeekInputElement() => new InputElement(type: 'week');
@DomName('HTMLInputElement.valueAsDate')
DateTime valueAsDate;
@DomName('HTMLInputElement.readOnly')
bool readOnly;
@DomName('HTMLInputElement.required')
bool required;
/// Returns true if this input type is supported on the current platform.
@@ -382,17 +323,13 @@ abstract class WeekInputElement implements RangeInputElementBase {
* Use [supported] to check if this is supported on the current platform.
*/
@SupportedBrowser(SupportedBrowser.CHROME)
@Experimental()
abstract class TimeInputElement implements RangeInputElementBase {
factory TimeInputElement() => new InputElement(type: 'time');
@DomName('HTMLInputElement.valueAsDate')
DateTime valueAsDate;
@DomName('HTMLInputElement.readOnly')
bool readOnly;
@DomName('HTMLInputElement.required')
bool required;
/// Returns true if this input type is supported on the current platform.
@@ -408,15 +345,12 @@ abstract class TimeInputElement implements RangeInputElementBase {
* Use [supported] to check if this is supported on the current platform.
*/
@SupportedBrowser(SupportedBrowser.CHROME, '25')
@Experimental()
abstract class LocalDateTimeInputElement implements RangeInputElementBase {
factory LocalDateTimeInputElement() =>
new InputElement(type: 'datetime-local');
@DomName('HTMLInputElement.readOnly')
bool readOnly;
@DomName('HTMLInputElement.required')
bool required;
/// Returns true if this input type is supported on the current platform.
@@ -431,17 +365,13 @@ abstract class LocalDateTimeInputElement implements RangeInputElementBase {
@SupportedBrowser(SupportedBrowser.CHROME)
@SupportedBrowser(SupportedBrowser.IE)
@SupportedBrowser(SupportedBrowser.SAFARI)
@Experimental()
abstract class NumberInputElement implements RangeInputElementBase {
factory NumberInputElement() => new InputElement(type: 'number');
@DomName('HTMLInputElement.placeholder')
String placeholder;
@DomName('HTMLInputElement.readOnly')
bool readOnly;
@DomName('HTMLInputElement.required')
bool required;
/// Returns true if this input type is supported on the current platform.
@@ -458,7 +388,6 @@ abstract class NumberInputElement implements RangeInputElementBase {
*/
@SupportedBrowser(SupportedBrowser.CHROME)
@SupportedBrowser(SupportedBrowser.IE, '10')
@Experimental()
abstract class RangeInputElement implements RangeInputElementBase {
factory RangeInputElement() => new InputElement(type: 'range');
@@ -477,10 +406,8 @@ abstract class RangeInputElement implements RangeInputElementBase {
abstract class CheckboxInputElement implements InputElementBase {
factory CheckboxInputElement() => new InputElement(type: 'checkbox');
@DomName('HTMLInputElement.checked')
bool checked;
@DomName('HTMLInputElement.required')
bool required;
}
@@ -499,10 +426,8 @@ abstract class CheckboxInputElement implements InputElementBase {
abstract class RadioButtonInputElement implements InputElementBase {
factory RadioButtonInputElement() => new InputElement(type: 'radio');
@DomName('HTMLInputElement.checked')
bool checked;
@DomName('HTMLInputElement.required')
bool required;
}
@@ -512,16 +437,12 @@ abstract class RadioButtonInputElement implements InputElementBase {
abstract class FileUploadInputElement implements InputElementBase {
factory FileUploadInputElement() => new InputElement(type: 'file');
@DomName('HTMLInputElement.accept')
String accept;
@DomName('HTMLInputElement.multiple')
bool multiple;
@DomName('HTMLInputElement.required')
bool required;
@DomName('HTMLInputElement.files')
List<File> files;
}
@@ -531,19 +452,14 @@ abstract class FileUploadInputElement implements InputElementBase {
abstract class SubmitButtonInputElement implements InputElementBase {
factory SubmitButtonInputElement() => new InputElement(type: 'submit');
@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;
}
@@ -554,31 +470,22 @@ abstract class SubmitButtonInputElement implements InputElementBase {
abstract class ImageButtonInputElement implements InputElementBase {
factory ImageButtonInputElement() => new InputElement(type: 'image');
@DomName('HTMLInputElement.alt')
String alt;
@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.src')
String src;
@DomName('HTMLInputElement.width')
int width;
}
@@ -4,7 +4,6 @@
part of $LIBRARYNAME;
@DocsEditable()
$(ANNOTATIONS)$(NATIVESPEC)$(CLASS_MODIFIERS)class $CLASSNAME$EXTENDS$MIXINS$IMPLEMENTS {
$!MEMBERS
@@ -4,14 +4,11 @@
part of $LIBRARYNAME;
@DocsEditable()
$(ANNOTATIONS)$(NATIVESPEC)$(CLASS_MODIFIERS)class $CLASSNAME$EXTENDS$IMPLEMENTS {
@DomName('HTMLTableElement.tBodies')
List<TableSectionElement> get tBodies =>
new _WrappedList<TableSectionElement>(_tBodies);
@DomName('HTMLTableElement.rows')
List<TableRowElement> get rows =>
new _WrappedList<TableRowElement>(_rows);
@@ -4,10 +4,8 @@
part of $LIBRARYNAME;
@DocsEditable()
$(ANNOTATIONS)$(NATIVESPEC)$(CLASS_MODIFIERS)class $CLASSNAME$EXTENDS$IMPLEMENTS {
@DomName('HTMLTableRowElement.cells')
List<TableCellElement> get cells =>
new _WrappedList<TableCellElement>(_cells);
@@ -4,10 +4,8 @@
part of $LIBRARYNAME;
@DocsEditable()
$(ANNOTATIONS)$(NATIVESPEC)$(CLASS_MODIFIERS)class $CLASSNAME$EXTENDS$IMPLEMENTS {
@DomName('HTMLTableSectionElement.rows')
List<TableRowElement> get rows =>
new _WrappedList<TableRowElement>(_rows);
@@ -6,7 +6,6 @@
part of $LIBRARYNAME;
@Experimental()
$(ANNOTATIONS)$(NATIVESPEC)$(CLASS_MODIFIERS)class $CLASSNAME$EXTENDS$IMPLEMENTS {
$!MEMBERS
@@ -5,7 +5,6 @@
part of $LIBRARYNAME;
$(ANNOTATIONS)$(NATIVESPEC)$(CLASS_MODIFIERS)class $CLASSNAME$EXTENDS$IMPLEMENTS {
@DomName('IDBCursor.delete')
Future delete() {
try {
return _completeRequest(_delete());
@@ -14,7 +13,6 @@ $(ANNOTATIONS)$(NATIVESPEC)$(CLASS_MODIFIERS)class $CLASSNAME$EXTENDS$IMPLEMENTS
}
}
@DomName('IDBCursor.value')
Future update(value) {
try {
return _completeRequest(_update(value));
@@ -24,7 +22,6 @@ $(ANNOTATIONS)$(NATIVESPEC)$(CLASS_MODIFIERS)class $CLASSNAME$EXTENDS$IMPLEMENTS
}
@JSName('continue')
@DomName('IDBCursor.continue')
void next([Object key]) {
if (key == null) {
JS('void', '#.continue()', this);
@@ -4,10 +4,7 @@
part of $LIBRARYNAME;
@DocsEditable()
$(ANNOTATIONS)$(NATIVESPEC)$(CLASS_MODIFIERS)class $CLASSNAME$EXTENDS$IMPLEMENTS {
@DomName('IDBDatabase.createObjectStore')
@DocsEditable()
ObjectStore createObjectStore(String name,
{String keyPath, bool autoIncrement}) {
var options = {};
@@ -15,7 +15,6 @@ $(ANNOTATIONS)$(NATIVESPEC)$(CLASS_MODIFIERS)class $CLASSNAME$EXTENDS$IMPLEMENTS
'window.mozIndexedDB)');
}
@DomName('IDBFactory.open')
Future<Database> open(String name,
{int version, void onUpgradeNeeded(VersionChangeEvent event),
void onBlocked(Event event)}) {
@@ -43,7 +42,6 @@ $(ANNOTATIONS)$(NATIVESPEC)$(CLASS_MODIFIERS)class $CLASSNAME$EXTENDS$IMPLEMENTS
}
}
@DomName('IDBFactory.deleteDatabase')
Future<IdbFactory> deleteDatabase(String name,
{void onBlocked(Event e)}) {
try {
@@ -5,7 +5,6 @@
part of $LIBRARYNAME;
$(ANNOTATIONS)$(NATIVESPEC)$(CLASS_MODIFIERS)class $CLASSNAME$EXTENDS$IMPLEMENTS {
@DomName('IDBIndex.count')
Future<int> count([key_OR_range]) {
try {
var request = _count(key_OR_range);
@@ -15,7 +14,6 @@ $(ANNOTATIONS)$(NATIVESPEC)$(CLASS_MODIFIERS)class $CLASSNAME$EXTENDS$IMPLEMENTS
}
}
@DomName('IDBIndex.get')
Future get(key) {
try {
var request = _get(key);
@@ -26,7 +24,6 @@ $(ANNOTATIONS)$(NATIVESPEC)$(CLASS_MODIFIERS)class $CLASSNAME$EXTENDS$IMPLEMENTS
}
}
@DomName('IDBIndex.getKey')
Future getKey(key) {
try {
var request = _getKey(key);
@@ -5,19 +5,15 @@
part of $LIBRARYNAME;
$(ANNOTATIONS)$(NATIVESPEC)$(CLASS_MODIFIERS)class $CLASSNAME$EXTENDS$IMPLEMENTS {
@DomName('IDBKeyRange.only')
factory KeyRange.only(/*Key*/ value) =>
_KeyRangeFactoryProvider.create$(CLASSNAME)_only(value);
@DomName('IDBKeyRange.lowerBound')
factory KeyRange.lowerBound(/*Key*/ bound, [bool open = false]) =>
_KeyRangeFactoryProvider.create$(CLASSNAME)_lowerBound(bound, open);
@DomName('IDBKeyRange.upperBound')
factory KeyRange.upperBound(/*Key*/ bound, [bool open = false]) =>
_KeyRangeFactoryProvider.create$(CLASSNAME)_upperBound(bound, open);
@DomName('KeyRange.bound')
factory KeyRange.bound(/*Key*/ lower, /*Key*/ upper,
[bool lowerOpen = false, bool upperOpen = false]) =>
_KeyRangeFactoryProvider.create$(CLASSNAME)_bound(
@@ -6,7 +6,6 @@ part of $LIBRARYNAME;
$(ANNOTATIONS)$(NATIVESPEC)$(CLASS_MODIFIERS)class $CLASSNAME$EXTENDS$IMPLEMENTS {
@DomName('IDBObjectStore.add')
Future add(value, [key]) {
try {
var request;
@@ -21,7 +20,6 @@ $(ANNOTATIONS)$(NATIVESPEC)$(CLASS_MODIFIERS)class $CLASSNAME$EXTENDS$IMPLEMENTS
}
}
@DomName('IDBObjectStore.clear')
Future clear() {
try {
return _completeRequest(_clear());
@@ -30,7 +28,6 @@ $(ANNOTATIONS)$(NATIVESPEC)$(CLASS_MODIFIERS)class $CLASSNAME$EXTENDS$IMPLEMENTS
}
}
@DomName('IDBObjectStore.delete')
Future delete(key_OR_keyRange){
try {
return _completeRequest(_delete(key_OR_keyRange));
@@ -39,7 +36,6 @@ $(ANNOTATIONS)$(NATIVESPEC)$(CLASS_MODIFIERS)class $CLASSNAME$EXTENDS$IMPLEMENTS
}
}
@DomName('IDBObjectStore.count')
Future<int> count([key_OR_range]) {
try {
var request = _count(key_OR_range);
@@ -49,7 +45,6 @@ $(ANNOTATIONS)$(NATIVESPEC)$(CLASS_MODIFIERS)class $CLASSNAME$EXTENDS$IMPLEMENTS
}
}
@DomName('IDBObjectStore.put')
Future put(value, [key]) {
try {
var request;
@@ -64,7 +59,6 @@ $(ANNOTATIONS)$(NATIVESPEC)$(CLASS_MODIFIERS)class $CLASSNAME$EXTENDS$IMPLEMENTS
}
}
@DomName('IDBObjectStore.get')
Future getObject(key) {
try {
var request = _get(key);
@@ -96,7 +90,6 @@ $(ANNOTATIONS)$(NATIVESPEC)$(CLASS_MODIFIERS)class $CLASSNAME$EXTENDS$IMPLEMENTS
* must be done synchronously unless they are additional async requests to
* the current transaction.
*/
@DomName('IDBObjectStore.openCursor')
Stream<CursorWithValue> openCursor({key, KeyRange range, String direction,
bool autoAdvance}) {
var key_OR_range = null;
@@ -119,7 +112,6 @@ $(ANNOTATIONS)$(NATIVESPEC)$(CLASS_MODIFIERS)class $CLASSNAME$EXTENDS$IMPLEMENTS
return _cursorStreamFromResult(request, autoAdvance);
}
@DomName('IDBObjectStore.createIndex')
Index createIndex(String name, keyPath, {bool unique, bool multiEntry}) {
var options = {};
if (unique != null) {
@@ -7,8 +7,6 @@ part of $LIBRARYNAME;
$(ANNOTATIONS)$(NATIVESPEC)$(CLASS_MODIFIERS)class $CLASSNAME$EXTENDS$IMPLEMENTS {
$!MEMBERS
@JSName('target')
@DomName('IDBVersionChangeEvent.target')
@DocsEditable()
final OpenDBRequest target;
}
@@ -4,11 +4,9 @@
part of $LIBRARYNAME;
@DocsEditable()
$(ANNOTATIONS)$(NATIVESPEC)$(CLASS_MODIFIERS)class $CLASSNAME$EXTENDS$IMPLEMENTS {
$!MEMBERS
@DomName('Location.origin')
String get origin {
if (JS('bool', '("origin" in #)', this)) {
return JS('String', '#.origin', this);
@@ -16,7 +14,5 @@ $!MEMBERS
return '${this.protocol}//${this.host}';
}
@DomName('Location.toString')
@DocsEditable()
String toString() => JS('String', 'String(#)', this);
}
@@ -29,13 +29,9 @@ $(ANNOTATIONS)$(NATIVESPEC)$(CLASS_MODIFIERS)class $CLASSNAME$EXTENDS$IMPLEMENTS
// TODO(alanknight): This really should be generated by the
// _OutputConversion in the systemnative.py script, but that doesn't
// use those conversions right now, so do this as a one-off.
@DomName('MessageEvent.data')
@DocsEditable()
dynamic get data => convertNativeToDart_SerializedScriptValue(this._get_data);
@JSName('data')
@DomName('MessageEvent.data')
@DocsEditable()
@annotation_Creates_SerializedScriptValue
@annotation_Returns_SerializedScriptValue
final dynamic _get_data;
@@ -6,7 +6,6 @@ part of $LIBRARYNAME;
$(ANNOTATIONS)$(NATIVESPEC)$(CLASS_MODIFIERS)class $CLASSNAME$EXTENDS$IMPLEMENTS {
@DomName('Navigator.getGamepads')
List<Gamepad> getGamepads() {
var gamepadList = _getGamepads();
@@ -20,7 +19,6 @@ $(ANNOTATIONS)$(NATIVESPEC)$(CLASS_MODIFIERS)class $CLASSNAME$EXTENDS$IMPLEMENTS
return gamepadList;
}
@DomName('Navigator.language')
String get language => JS('String', '#.language || #.userLanguage', this,
this);
@@ -59,9 +57,7 @@ $(ANNOTATIONS)$(NATIVESPEC)$(CLASS_MODIFIERS)class $CLASSNAME$EXTENDS$IMPLEMENTS
* See also:
* * [MediaStream.supported]
*/
@DomName('Navigator.webkitGetUserMedia')
@SupportedBrowser(SupportedBrowser.CHROME)
@Experimental()
Future<MediaStream> getUserMedia({audio: false, video: false}) {
var completer = new Completer<MediaStream>();
var options = {
@@ -199,7 +199,6 @@ $(ANNOTATIONS)$(NATIVESPEC)$(CLASS_MODIFIERS)class $CLASSNAME$EXTENDS$IMPLEMENTS
/**
* Removes this node from the DOM.
*/
@DomName('Node.removeChild')
void remove() {
// TODO(jacobr): should we throw an exception if parent is already null?
// TODO(vsm): Use the native remove when available.
@@ -212,7 +211,6 @@ $(ANNOTATIONS)$(NATIVESPEC)$(CLASS_MODIFIERS)class $CLASSNAME$EXTENDS$IMPLEMENTS
/**
* Replaces this node with another node.
*/
@DomName('Node.replaceChild')
Node replaceWith(Node otherNode) {
try {
final Node parent = this.parentNode;
@@ -270,8 +268,6 @@ $(ANNOTATIONS)$(NATIVESPEC)$(CLASS_MODIFIERS)class $CLASSNAME$EXTENDS$IMPLEMENTS
* * [Node.childNodes](https://developer.mozilla.org/en-US/docs/Web/API/Node.childNodes)
* from MDN.
*/
@DomName('Node.childNodes')
@DocsEditable()
@Returns('NodeList')
@Creates('NodeList')
final List<Node> childNodes;
@@ -50,9 +50,6 @@ $(ANNOTATIONS)$(NATIVESPEC)$(CLASS_MODIFIERS)class $CLASSNAME$EXTENDS$IMPLEMENTS
return completer.future;
}
@DomName('RTCPeerConnection.generateCertificate')
@DocsEditable()
@Experimental() // untriaged
static Future generateCertificate(/*AlgorithmIdentifier*/ keygenAlgorithm) =>
JS('dynamic', 'generateCertificate(#)', keygenAlgorithm);
@@ -13,8 +13,6 @@ $(ANNOTATIONS)$(NATIVESPEC)$(CLASS_MODIFIERS)class $CLASSNAME$EXTENDS$IMPLEMENTS
document._caretRangeFromPoint(point.x, point.y);
$!MEMBERS
@DomName('Range.getClientRects')
@DocsEditable()
List<Rectangle> getClientRects() {
var value = _getClientRects();
@@ -6,7 +6,6 @@ part of $LIBRARYNAME;
// Hack because the baseclass is private in dart:html, and we want to omit this
// type entirely but can't.
@DocsEditable()
$(ANNOTATIONS)$(NATIVESPEC)$(CLASS_MODIFIERS)class $CLASSNAME$IMPLEMENTS {
_SVGColor.internal();
}
@@ -4,7 +4,6 @@
part of $LIBRARYNAME;
@DocsEditable()
$(ANNOTATIONS)$(NATIVESPEC)$(CLASS_MODIFIERS)class $CLASSNAME$EXTENDS$IMPLEMENTS {
$!MEMBERS
}
@@ -112,18 +112,15 @@ $(ANNOTATIONS)$(NATIVESPEC)$(CLASS_MODIFIERS)class $CLASSNAME$EXTENDS$IMPLEMENTS
// Unsupported methods inherited from Element.
@DomName('Element.insertAdjacentText')
void insertAdjacentText(String where, String text) {
throw new UnsupportedError("Cannot invoke insertAdjacentText on SVG.");
}
@DomName('Element.insertAdjacentHTML')
void insertAdjacentHtml(String where, String text, {NodeValidator validator,
NodeTreeSanitizer treeSanitizer}) {
throw new UnsupportedError("Cannot invoke insertAdjacentHtml on SVG.");
}
@DomName('Element.insertAdjacentElement')
Element insertAdjacentElement(String where, Element element) {
throw new UnsupportedError("Cannot invoke insertAdjacentElement on SVG.");
}
@@ -4,7 +4,6 @@
part of $LIBRARYNAME;
@DocsEditable()
$(ANNOTATIONS)$(NATIVESPEC)$(CLASS_MODIFIERS)class $CLASSNAME$EXTENDS$IMPLEMENTS {
$!MEMBERS
}
@@ -4,7 +4,6 @@
part of $LIBRARYNAME;
@DocsEditable()
$(ANNOTATIONS)$(NATIVESPEC)$(CLASS_MODIFIERS)class $CLASSNAME$EXTENDS$IMPLEMENTS {
$!MEMBERS
}
@@ -4,7 +4,6 @@
part of $LIBRARYNAME;
@DocsEditable()
$(ANNOTATIONS)$(NATIVESPEC)$(CLASS_MODIFIERS)class $CLASSNAME$EXTENDS$IMPLEMENTS {
$!MEMBERS
}
@@ -4,13 +4,8 @@
part of $LIBRARYNAME;
@DocsEditable()
$(ANNOTATIONS)$(NATIVESPEC)$(CLASS_MODIFIERS)class $CLASSNAME$EXTENDS$IMPLEMENTS {
@DomName('Screen.availHeight')
@DomName('Screen.availLeft')
@DomName('Screen.availTop')
@DomName('Screen.availWidth')
Rectangle get available => new Rectangle(_availLeft, _availTop, _availWidth,
_availHeight);
$!MEMBERS}
@@ -13,13 +13,9 @@ $(ANNOTATIONS)$(NATIVESPEC)$(CLASS_MODIFIERS)class $CLASSNAME$EXTENDS$IMPLEMENTS
// TODO(alanknight): This really should be generated by the
// _OutputConversion in the systemnative.py script, but that doesn't
// use those conversions right now, so do this as a one-off.
@DomName('ServiceWorkerMessageEvent.data')
@DocsEditable()
dynamic get data => convertNativeToDart_SerializedScriptValue(this._get_data);
@JSName('data')
@DomName('ServiceWorkerMessageEvent.data')
@DocsEditable()
@annotation_Creates_SerializedScriptValue
@annotation_Returns_SerializedScriptValue
final dynamic _get_data;
@@ -4,7 +4,6 @@
part of $LIBRARYNAME;
@DocsEditable()
$(ANNOTATIONS)$(NATIVESPEC)$(CLASS_MODIFIERS)class $CLASSNAME$EXTENDS$IMPLEMENTS {
$!MEMBERS
@@ -19,30 +18,18 @@ $!MEMBERS
int get __radiusX => JS('num', '#.radiusX', this).round();
int get __radiusY => JS('num', '#.radiusY', this).round();
@DomName('Touch.clientX')
@DomName('Touch.clientY')
Point get client => new Point(__clientX, __clientY);
@DomName('Touch.pageX')
@DomName('Touch.pageY')
Point get page => new Point(__pageX, __pageY);
@DomName('Touch.screenX')
@DomName('Touch.screenY')
Point get screen => new Point(__screenX, __screenY);
@DomName('Touch.radiusX')
@DocsEditable()
@SupportedBrowser(SupportedBrowser.CHROME)
@SupportedBrowser(SupportedBrowser.SAFARI)
@Experimental()
int get radiusX => __radiusX;
@DomName('Touch.radiusY')
@DocsEditable()
@SupportedBrowser(SupportedBrowser.CHROME)
@SupportedBrowser(SupportedBrowser.SAFARI)
@Experimental()
int get radiusY => __radiusY;
}
@@ -4,12 +4,9 @@
part of $LIBRARYNAME;
@DocsEditable()
$(ANNOTATIONS)$(NATIVESPEC)class $CLASSNAME$EXTENDS implements _WebGL2RenderingContextBase, _WebGLRenderingContextBase {
$!MEMBERS
@DomName('WebGLRenderingContext2.readPixels')
@DocsEditable()
void readPixels(int x, int y, int width, int height, int format, int type,
TypedData pixels) {
_readPixels(x, y, width, height, format, type, pixels);
@@ -4,18 +4,13 @@
part of $LIBRARYNAME;
@DocsEditable()
$(ANNOTATIONS)$(NATIVESPEC)class $CLASSNAME$EXTENDS {
$!MEMBERS
@JSName('canvas')
@DomName('WebGLCanvas.canvas')
@DocsEditable()
final CanvasElement canvas;
@JSName('canvas')
@DomName('WebGLCanvas.offscreenCanvas')
@DocsEditable()
final OffscreenCanvas offscreenCanvas;
}
@@ -7,8 +7,6 @@ part of $LIBRARYNAME;
$(ANNOTATIONS)$(NATIVESPEC)class $CLASSNAME$EXTENDS implements CanvasRenderingContext {
$!MEMBERS
@DomName('WebGLRenderingContext.readPixels')
@DocsEditable()
void readPixels(int x, int y, int width, int height, int format, int type,
TypedData pixels) {
_readPixels(x, y, width, height, format, type, pixels);
@@ -4,7 +4,6 @@
part of $LIBRARYNAME;
@DocsEditable()
$(ANNOTATIONS)$(NATIVESPEC)$(CLASS_MODIFIERS)class $CLASSNAME$EXTENDS$MIXINS$IMPLEMENTS {
$!MEMBERS
@@ -54,7 +54,6 @@ $!MEMBERS
*
* * [WheelEvent.deltaY](http://dev.w3.org/2006/webapi/DOM-Level-3-Events/html/DOM3-Events.html#events-WheelEvent-deltaY) from the W3C.
*/
@DomName('WheelEvent.deltaY')
num get deltaY {
if (JS('bool', '#.deltaY !== undefined', this)) {
// W3C WheelEvent
@@ -72,7 +71,6 @@ $!MEMBERS
*
* * [WheelEvent.deltaX](http://dev.w3.org/2006/webapi/DOM-Level-3-Events/html/DOM3-Events.html#events-WheelEvent-deltaX) from the W3C.
*/
@DomName('WheelEvent.deltaX')
num get deltaX {
if (JS('bool', '#.deltaX !== undefined', this)) {
// W3C WheelEvent
@@ -82,7 +80,6 @@ $!MEMBERS
'deltaX is not supported');
}
@DomName('WheelEvent.deltaMode')
int get deltaMode {
if (JS('bool', '!!(#.deltaMode)', this)) {
return JS('int', '#.deltaMode', this);
@@ -4,7 +4,6 @@
part of $LIBRARYNAME;
@DocsEditable()
$(ANNOTATIONS)@Native("Window,DOMWindow")
$(CLASS_MODIFIERS)class $CLASSNAME$EXTENDS$IMPLEMENTS {
@@ -107,7 +106,6 @@ $(CLASS_MODIFIERS)class $CLASSNAME$EXTENDS$IMPLEMENTS {
* Note: The supplied [callback] needs to call [requestAnimationFrame] again
* for the animation to continue.
*/
@DomName('Window.requestAnimationFrame')
int requestAnimationFrame(FrameRequestCallback callback) {
_ensureRequestAnimationFrame();
return _requestAnimationFrame(_wrapZone(callback));
@@ -167,14 +165,12 @@ $(CLASS_MODIFIERS)class $CLASSNAME$EXTENDS$IMPLEMENTS {
@SupportedBrowser(SupportedBrowser.CHROME, '23.0')
@SupportedBrowser(SupportedBrowser.FIREFOX, '15.0')
@SupportedBrowser(SupportedBrowser.IE, '10.0')
@Experimental()
IdbFactory get indexedDB =>
JS('IdbFactory|Null', // If not supported, returns null.
'#.indexedDB || #.webkitIndexedDB || #.mozIndexedDB',
this, this, this);
/// The debugging console for this window.
@DomName('Window.console')
Console get console => Console._safeConsole;
/**
@@ -202,16 +198,13 @@ $!MEMBERS
*
* See [EventStreamProvider] for usage information.
*/
@DomName('Window.beforeunloadEvent')
static const EventStreamProvider<BeforeUnloadEvent> beforeUnloadEvent =
const _BeforeUnloadEventStreamProvider('beforeunload');
/// Stream of `beforeunload` events handled by this [Window].
@DomName('Window.onbeforeunload')
Stream<Event> get onBeforeUnload => beforeUnloadEvent.forTarget(this);
/// Stream of `wheel` events handled by this [Window].
@DomName('Window.onWheel')
Stream<WheelEvent> get onWheel => Element.wheelEvent.forTarget(this);
/**
@@ -231,11 +224,8 @@ $!MEMBERS
}
@JSName('openDatabase')
@DomName('Window.openDatabase')
@DocsEditable()
@SupportedBrowser(SupportedBrowser.CHROME)
@SupportedBrowser(SupportedBrowser.SAFARI)
@Experimental()
@Creates('SqlDatabase')
SqlDatabase openDatabase(
String name, String version, String displayName, int estimatedSize,
@@ -252,12 +242,8 @@ $!MEMBERS
return db;
}
@DomName('Window.pageXOffset')
@DocsEditable()
int get pageXOffset => JS('num', '#.pageXOffset', this).round();
@DomName('Window.pageYOffset')
@DocsEditable()
int get pageYOffset => JS('num', '#.pageYOffset', this).round();
/**
@@ -270,8 +256,6 @@ $!MEMBERS
* * [scrollX](https://developer.mozilla.org/en-US/docs/Web/API/Window.scrollX)
* from MDN.
*/
@DomName('Window.scrollX')
@DocsEditable()
int get scrollX => JS('bool', '("scrollX" in #)', this) ?
JS('num', '#.scrollX', this).round() :
document.documentElement.scrollLeft;
@@ -286,8 +270,6 @@ $!MEMBERS
* * [scrollY](https://developer.mozilla.org/en-US/docs/Web/API/Window.scrollY)
* from MDN.
*/
@DomName('Window.scrollY')
@DocsEditable()
int get scrollY => JS('bool', '("scrollY" in #)', this) ?
JS('num', '#.scrollY', this).round() :
document.documentElement.scrollTop;
@@ -4,6 +4,5 @@
part of $LIBRARYNAME;
@DocsEditable()
$(ANNOTATIONS)$(NATIVESPEC)$(CLASS_MODIFIERS)class $CLASSNAME extends EventTarget {
$!MEMBERS}
@@ -4,7 +4,6 @@
part of $LIBRARYNAME;
@DocsEditable()
$(ANNOTATIONS)$(NATIVESPEC)$(CLASS_MODIFIERS)class $CLASSNAME$EXTENDS$IMPLEMENTS {
$!MEMBERS
}
@@ -4,7 +4,6 @@
part of $LIBRARYNAME;
@DocsEditable()
$(ANNOTATIONS)$(NATIVESPEC)$(CLASS_MODIFIERS)class $CLASSNAME$EXTENDS$IMPLEMENTS {
$!MEMBERS
}
@@ -292,7 +292,6 @@ $(ANNOTATIONS)$(NATIVESPEC)$(CLASS_MODIFIERS)class $CLASSNAME$EXTENDS$IMPLEMENTS
* This API provides a subset of [request] which works on IE9. If IE9
* cross-origin support is not required then [request] should be used instead.
*/
@Experimental()
static Future<String> requestCrossOrigin(String url,
{String method, String sendData}) {
if (supportsCrossOrigin) {
@@ -381,8 +380,6 @@ $(ANNOTATIONS)$(NATIVESPEC)$(CLASS_MODIFIERS)class $CLASSNAME$EXTENDS$IMPLEMENTS
* `open` method is intended only for more complex HTTP requests where
* finer-grained control is needed.
*/
@DomName('XMLHttpRequest.open')
@DocsEditable()
void open(String method, String url, {bool async, String user, String password}) native;
$!MEMBERS