Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(273)

Unified Diff: sdk/lib/html/dartium/html_dartium.dart

Issue 11434079: Adding dart:indexed_db. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Syncing with latest. Created 8 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
Download patch
« no previous file with comments | « sdk/lib/html/dart2js/html_dart2js.dart ('k') | sdk/lib/html/scripts/dartdomgenerator.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/html/dartium/html_dartium.dart
diff --git a/sdk/lib/html/dartium/html_dartium.dart b/sdk/lib/html/dartium/html_dartium.dart
index 08cbb928d0a3385f84b529b47483ca336a036a20..a126afb325dedd23f5d4313b6ee07ec5a4b0ab31 100644
--- a/sdk/lib/html/dartium/html_dartium.dart
+++ b/sdk/lib/html/dartium/html_dartium.dart
@@ -2,6 +2,7 @@ library html;
import 'dart:collection';
import 'dart:html_common';
+import 'dart:indexed_db';
import 'dart:isolate';
import 'dart:json';
import 'dart:nativewrappers';
@@ -11865,963 +11866,6 @@ class HttpRequestUploadEvents extends Events {
// WARNING: Do not edit - generated code.
-/// @domName IDBAny
-class IDBAny extends NativeFieldWrapperClass1 {
- IDBAny.internal();
-
-}
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
-
-// WARNING: Do not edit - generated code.
-
-
-/// @domName IDBCursor
-class IDBCursor extends NativeFieldWrapperClass1 {
- IDBCursor.internal();
-
- static const int NEXT = 0;
-
- static const int NEXT_NO_DUPLICATE = 1;
-
- static const int PREV = 2;
-
- static const int PREV_NO_DUPLICATE = 3;
-
-
- /** @domName IDBCursor.direction */
- String get direction native "IDBCursor_direction_Getter";
-
-
- /** @domName IDBCursor.key */
- Object get key native "IDBCursor_key_Getter";
-
-
- /** @domName IDBCursor.primaryKey */
- Object get primaryKey native "IDBCursor_primaryKey_Getter";
-
-
- /** @domName IDBCursor.source */
- dynamic get source native "IDBCursor_source_Getter";
-
-
- /** @domName IDBCursor.advance */
- void advance(int count) native "IDBCursor_advance_Callback";
-
- void continueFunction([/*IDBKey*/ key]) {
- if (?key) {
- _continue_1(key);
- return;
- }
- _continue_2();
- }
-
-
- /** @domName IDBCursor.continue_1 */
- void _continue_1(key) native "IDBCursor_continue_1_Callback";
-
-
- /** @domName IDBCursor.continue_2 */
- void _continue_2() native "IDBCursor_continue_2_Callback";
-
-
- /** @domName IDBCursor.delete */
- IDBRequest delete() native "IDBCursor_delete_Callback";
-
-
- /** @domName IDBCursor.update */
- IDBRequest update(Object value) native "IDBCursor_update_Callback";
-
-}
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
-
-// WARNING: Do not edit - generated code.
-
-
-/// @domName IDBCursorWithValue
-class IDBCursorWithValue extends IDBCursor {
- IDBCursorWithValue.internal(): super.internal();
-
-
- /** @domName IDBCursorWithValue.value */
- Object get value native "IDBCursorWithValue_value_Getter";
-
-}
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
-
-// WARNING: Do not edit - generated code.
-
-
-/// @domName IDBDatabase
-class IDBDatabase extends EventTarget {
- IDBDatabase.internal(): super.internal();
-
- /// @domName EventTarget.addEventListener, EventTarget.removeEventListener, EventTarget.dispatchEvent; @docsEditable true
- IDBDatabaseEvents get on =>
- new IDBDatabaseEvents(this);
-
-
- /** @domName IDBDatabase.name */
- String get name native "IDBDatabase_name_Getter";
-
-
- /** @domName IDBDatabase.objectStoreNames */
- List<String> get objectStoreNames native "IDBDatabase_objectStoreNames_Getter";
-
-
- /** @domName IDBDatabase.version */
- dynamic get version native "IDBDatabase_version_Getter";
-
-
- /** @domName IDBDatabase.addEventListener */
- void $dom_addEventListener(String type, EventListener listener, [bool useCapture]) native "IDBDatabase_addEventListener_Callback";
-
-
- /** @domName IDBDatabase.close */
- void close() native "IDBDatabase_close_Callback";
-
-
- /** @domName IDBDatabase.createObjectStore */
- IDBObjectStore createObjectStore(String name, [Map options]) native "IDBDatabase_createObjectStore_Callback";
-
-
- /** @domName IDBDatabase.deleteObjectStore */
- void deleteObjectStore(String name) native "IDBDatabase_deleteObjectStore_Callback";
-
-
- /** @domName IDBDatabase.dispatchEvent */
- bool $dom_dispatchEvent(Event evt) native "IDBDatabase_dispatchEvent_Callback";
-
-
- /** @domName IDBDatabase.removeEventListener */
- void $dom_removeEventListener(String type, EventListener listener, [bool useCapture]) native "IDBDatabase_removeEventListener_Callback";
-
-
- /** @domName IDBDatabase.setVersion */
- IDBVersionChangeRequest setVersion(String version) native "IDBDatabase_setVersion_Callback";
-
- IDBTransaction transaction(storeName_OR_storeNames, /*DOMString*/ mode) {
- if ((storeName_OR_storeNames is List<String> || storeName_OR_storeNames == null) && (mode is String || mode == null)) {
- return _transaction_1(storeName_OR_storeNames, mode);
- }
- if ((storeName_OR_storeNames is List<String> || storeName_OR_storeNames == null) && (mode is String || mode == null)) {
- return _transaction_2(storeName_OR_storeNames, mode);
- }
- if ((storeName_OR_storeNames is String || storeName_OR_storeNames == null) && (mode is String || mode == null)) {
- return _transaction_3(storeName_OR_storeNames, mode);
- }
- throw "Incorrect number or type of arguments";
- }
-
-
- /** @domName IDBDatabase.transaction_1 */
- IDBTransaction _transaction_1(storeName_OR_storeNames, mode) native "IDBDatabase_transaction_1_Callback";
-
-
- /** @domName IDBDatabase.transaction_2 */
- IDBTransaction _transaction_2(storeName_OR_storeNames, mode) native "IDBDatabase_transaction_2_Callback";
-
-
- /** @domName IDBDatabase.transaction_3 */
- IDBTransaction _transaction_3(storeName_OR_storeNames, mode) native "IDBDatabase_transaction_3_Callback";
-
-}
-
-class IDBDatabaseEvents extends Events {
- IDBDatabaseEvents(EventTarget _ptr) : super(_ptr);
-
- EventListenerList get abort => this['abort'];
-
- EventListenerList get error => this['error'];
-
- EventListenerList get versionChange => this['versionchange'];
-}
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
-
-// WARNING: Do not edit - generated code.
-
-
-/// @domName IDBDatabaseException
-class IDBDatabaseException extends NativeFieldWrapperClass1 {
- IDBDatabaseException.internal();
-
- static const int ABORT_ERR = 20;
-
- static const int CONSTRAINT_ERR = 4;
-
- static const int DATA_ERR = 5;
-
- static const int NON_TRANSIENT_ERR = 2;
-
- static const int NOT_ALLOWED_ERR = 6;
-
- static const int NOT_FOUND_ERR = 8;
-
- static const int NO_ERR = 0;
-
- static const int QUOTA_ERR = 22;
-
- static const int READ_ONLY_ERR = 9;
-
- static const int TIMEOUT_ERR = 23;
-
- static const int TRANSACTION_INACTIVE_ERR = 7;
-
- static const int UNKNOWN_ERR = 1;
-
- static const int VER_ERR = 12;
-
-
- /** @domName IDBDatabaseException.code */
- int get code native "IDBDatabaseException_code_Getter";
-
-
- /** @domName IDBDatabaseException.message */
- String get message native "IDBDatabaseException_message_Getter";
-
-
- /** @domName IDBDatabaseException.name */
- String get name native "IDBDatabaseException_name_Getter";
-
-
- /** @domName IDBDatabaseException.toString */
- String toString() native "IDBDatabaseException_toString_Callback";
-
-}
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
-
-// WARNING: Do not edit - generated code.
-
-
-/// @domName IDBFactory
-class IDBFactory extends NativeFieldWrapperClass1 {
- IDBFactory.internal();
-
-
- /** @domName IDBFactory.cmp */
- int cmp(/*IDBKey*/ first, /*IDBKey*/ second) native "IDBFactory_cmp_Callback";
-
-
- /** @domName IDBFactory.deleteDatabase */
- IDBVersionChangeRequest deleteDatabase(String name) native "IDBFactory_deleteDatabase_Callback";
-
- IDBOpenDBRequest open(/*DOMString*/ name, [/*long long*/ version]) {
- if (?version) {
- return _open_1(name, version);
- }
- return _open_2(name);
- }
-
-
- /** @domName IDBFactory.open_1 */
- IDBOpenDBRequest _open_1(name, version) native "IDBFactory_open_1_Callback";
-
-
- /** @domName IDBFactory.open_2 */
- IDBOpenDBRequest _open_2(name) native "IDBFactory_open_2_Callback";
-
-
- /** @domName IDBFactory.webkitGetDatabaseNames */
- IDBRequest webkitGetDatabaseNames() native "IDBFactory_webkitGetDatabaseNames_Callback";
-
-}
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
-
-// WARNING: Do not edit - generated code.
-
-
-/// @domName IDBIndex
-class IDBIndex extends NativeFieldWrapperClass1 {
- IDBIndex.internal();
-
-
- /** @domName IDBIndex.keyPath */
- dynamic get keyPath native "IDBIndex_keyPath_Getter";
-
-
- /** @domName IDBIndex.multiEntry */
- bool get multiEntry native "IDBIndex_multiEntry_Getter";
-
-
- /** @domName IDBIndex.name */
- String get name native "IDBIndex_name_Getter";
-
-
- /** @domName IDBIndex.objectStore */
- IDBObjectStore get objectStore native "IDBIndex_objectStore_Getter";
-
-
- /** @domName IDBIndex.unique */
- bool get unique native "IDBIndex_unique_Getter";
-
- IDBRequest count([key_OR_range]) {
- if (!?key_OR_range) {
- return _count_1();
- }
- if ((key_OR_range is IDBKeyRange || key_OR_range == null)) {
- return _count_2(key_OR_range);
- }
- return _count_3(key_OR_range);
- throw "Incorrect number or type of arguments";
- }
-
-
- /** @domName IDBIndex.count_1 */
- IDBRequest _count_1() native "IDBIndex_count_1_Callback";
-
-
- /** @domName IDBIndex.count_2 */
- IDBRequest _count_2(key_OR_range) native "IDBIndex_count_2_Callback";
-
-
- /** @domName IDBIndex.count_3 */
- IDBRequest _count_3(key_OR_range) native "IDBIndex_count_3_Callback";
-
- IDBRequest get(key) {
- if ((key is IDBKeyRange || key == null)) {
- return _get_1(key);
- }
- return _get_2(key);
- throw "Incorrect number or type of arguments";
- }
-
-
- /** @domName IDBIndex.get_1 */
- IDBRequest _get_1(key) native "IDBIndex_get_1_Callback";
-
-
- /** @domName IDBIndex.get_2 */
- IDBRequest _get_2(key) native "IDBIndex_get_2_Callback";
-
- IDBRequest getKey(key) {
- if ((key is IDBKeyRange || key == null)) {
- return _getKey_1(key);
- }
- return _getKey_2(key);
- throw "Incorrect number or type of arguments";
- }
-
-
- /** @domName IDBIndex.getKey_1 */
- IDBRequest _getKey_1(key) native "IDBIndex_getKey_1_Callback";
-
-
- /** @domName IDBIndex.getKey_2 */
- IDBRequest _getKey_2(key) native "IDBIndex_getKey_2_Callback";
-
- IDBRequest openCursor([key_OR_range, /*DOMString*/ direction]) {
- if (!?key_OR_range && !?direction) {
- return _openCursor_1();
- }
- if ((key_OR_range is IDBKeyRange || key_OR_range == null) && !?direction) {
- return _openCursor_2(key_OR_range);
- }
- if ((key_OR_range is IDBKeyRange || key_OR_range == null) && (direction is String || direction == null)) {
- return _openCursor_3(key_OR_range, direction);
- }
- if (!?direction) {
- return _openCursor_4(key_OR_range);
- }
- if ((direction is String || direction == null)) {
- return _openCursor_5(key_OR_range, direction);
- }
- throw "Incorrect number or type of arguments";
- }
-
-
- /** @domName IDBIndex.openCursor_1 */
- IDBRequest _openCursor_1() native "IDBIndex_openCursor_1_Callback";
-
-
- /** @domName IDBIndex.openCursor_2 */
- IDBRequest _openCursor_2(key_OR_range) native "IDBIndex_openCursor_2_Callback";
-
-
- /** @domName IDBIndex.openCursor_3 */
- IDBRequest _openCursor_3(key_OR_range, direction) native "IDBIndex_openCursor_3_Callback";
-
-
- /** @domName IDBIndex.openCursor_4 */
- IDBRequest _openCursor_4(key_OR_range) native "IDBIndex_openCursor_4_Callback";
-
-
- /** @domName IDBIndex.openCursor_5 */
- IDBRequest _openCursor_5(key_OR_range, direction) native "IDBIndex_openCursor_5_Callback";
-
- IDBRequest openKeyCursor([key_OR_range, /*DOMString*/ direction]) {
- if (!?key_OR_range && !?direction) {
- return _openKeyCursor_1();
- }
- if ((key_OR_range is IDBKeyRange || key_OR_range == null) && !?direction) {
- return _openKeyCursor_2(key_OR_range);
- }
- if ((key_OR_range is IDBKeyRange || key_OR_range == null) && (direction is String || direction == null)) {
- return _openKeyCursor_3(key_OR_range, direction);
- }
- if (!?direction) {
- return _openKeyCursor_4(key_OR_range);
- }
- if ((direction is String || direction == null)) {
- return _openKeyCursor_5(key_OR_range, direction);
- }
- throw "Incorrect number or type of arguments";
- }
-
-
- /** @domName IDBIndex.openKeyCursor_1 */
- IDBRequest _openKeyCursor_1() native "IDBIndex_openKeyCursor_1_Callback";
-
-
- /** @domName IDBIndex.openKeyCursor_2 */
- IDBRequest _openKeyCursor_2(key_OR_range) native "IDBIndex_openKeyCursor_2_Callback";
-
-
- /** @domName IDBIndex.openKeyCursor_3 */
- IDBRequest _openKeyCursor_3(key_OR_range, direction) native "IDBIndex_openKeyCursor_3_Callback";
-
-
- /** @domName IDBIndex.openKeyCursor_4 */
- IDBRequest _openKeyCursor_4(key_OR_range) native "IDBIndex_openKeyCursor_4_Callback";
-
-
- /** @domName IDBIndex.openKeyCursor_5 */
- IDBRequest _openKeyCursor_5(key_OR_range, direction) native "IDBIndex_openKeyCursor_5_Callback";
-
-}
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
-
-// WARNING: Do not edit - generated code.
-
-
-/// @domName IDBKey
-class IDBKey extends NativeFieldWrapperClass1 {
- IDBKey.internal();
-
-}
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for 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
-class IDBKeyRange extends NativeFieldWrapperClass1 {
- /**
- * @domName IDBKeyRange.only
- */
- factory IDBKeyRange.only(/*IDBKey*/ value) =>
- _IDBKeyRangeFactoryProvider.createIDBKeyRange_only(value);
-
- /**
- * @domName IDBKeyRange.lowerBound
- */
- factory IDBKeyRange.lowerBound(/*IDBKey*/ bound, [bool open = false]) =>
- _IDBKeyRangeFactoryProvider.createIDBKeyRange_lowerBound(bound, open);
-
- /**
- * @domName IDBKeyRange.upperBound
- */
- factory IDBKeyRange.upperBound(/*IDBKey*/ bound, [bool open = false]) =>
- _IDBKeyRangeFactoryProvider.createIDBKeyRange_upperBound(bound, open);
-
- /**
- * @domName IDBKeyRange.bound
- */
- factory IDBKeyRange.bound(/*IDBKey*/ lower, /*IDBKey*/ upper,
- [bool lowerOpen = false, bool upperOpen = false]) =>
- _IDBKeyRangeFactoryProvider.createIDBKeyRange_bound(
- lower, upper, lowerOpen, upperOpen);
-
- IDBKeyRange.internal();
-
-
- /** @domName IDBKeyRange.lower */
- dynamic get lower native "IDBKeyRange_lower_Getter";
-
-
- /** @domName IDBKeyRange.lowerOpen */
- bool get lowerOpen native "IDBKeyRange_lowerOpen_Getter";
-
-
- /** @domName IDBKeyRange.upper */
- dynamic get upper native "IDBKeyRange_upper_Getter";
-
-
- /** @domName IDBKeyRange.upperOpen */
- bool get upperOpen native "IDBKeyRange_upperOpen_Getter";
-
- static IDBKeyRange bound_(/*IDBKey*/ lower, /*IDBKey*/ upper, [/*boolean*/ lowerOpen, /*boolean*/ upperOpen]) {
- if (?upperOpen) {
- return _bound_1(lower, upper, lowerOpen, upperOpen);
- }
- if (?lowerOpen) {
- return _bound_2(lower, upper, lowerOpen);
- }
- return _bound_3(lower, upper);
- }
-
-
- /** @domName IDBKeyRange.bound_1 */
- static IDBKeyRange _bound_1(lower, upper, lowerOpen, upperOpen) native "IDBKeyRange_bound_1_Callback";
-
-
- /** @domName IDBKeyRange.bound_2 */
- static IDBKeyRange _bound_2(lower, upper, lowerOpen) native "IDBKeyRange_bound_2_Callback";
-
-
- /** @domName IDBKeyRange.bound_3 */
- static IDBKeyRange _bound_3(lower, upper) native "IDBKeyRange_bound_3_Callback";
-
- static IDBKeyRange lowerBound_(/*IDBKey*/ bound, [/*boolean*/ open]) {
- if (?open) {
- return _lowerBound_1(bound, open);
- }
- return _lowerBound_2(bound);
- }
-
-
- /** @domName IDBKeyRange.lowerBound_1 */
- static IDBKeyRange _lowerBound_1(bound, open) native "IDBKeyRange_lowerBound_1_Callback";
-
-
- /** @domName IDBKeyRange.lowerBound_2 */
- static IDBKeyRange _lowerBound_2(bound) native "IDBKeyRange_lowerBound_2_Callback";
-
-
- /** @domName IDBKeyRange.only_ */
- static IDBKeyRange only_(/*IDBKey*/ value) native "IDBKeyRange_only__Callback";
-
- static IDBKeyRange upperBound_(/*IDBKey*/ bound, [/*boolean*/ open]) {
- if (?open) {
- return _upperBound_1(bound, open);
- }
- return _upperBound_2(bound);
- }
-
-
- /** @domName IDBKeyRange.upperBound_1 */
- static IDBKeyRange _upperBound_1(bound, open) native "IDBKeyRange_upperBound_1_Callback";
-
-
- /** @domName IDBKeyRange.upperBound_2 */
- static IDBKeyRange _upperBound_2(bound) native "IDBKeyRange_upperBound_2_Callback";
-
-}
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
-
-// WARNING: Do not edit - generated code.
-
-
-/// @domName IDBObjectStore
-class IDBObjectStore extends NativeFieldWrapperClass1 {
- IDBObjectStore.internal();
-
-
- /** @domName IDBObjectStore.autoIncrement */
- bool get autoIncrement native "IDBObjectStore_autoIncrement_Getter";
-
-
- /** @domName IDBObjectStore.indexNames */
- List<String> get indexNames native "IDBObjectStore_indexNames_Getter";
-
-
- /** @domName IDBObjectStore.keyPath */
- dynamic get keyPath native "IDBObjectStore_keyPath_Getter";
-
-
- /** @domName IDBObjectStore.name */
- String get name native "IDBObjectStore_name_Getter";
-
-
- /** @domName IDBObjectStore.transaction */
- IDBTransaction get transaction native "IDBObjectStore_transaction_Getter";
-
- IDBRequest add(/*any*/ value, [/*IDBKey*/ key]) {
- if (?key) {
- return _add_1(value, key);
- }
- return _add_2(value);
- }
-
-
- /** @domName IDBObjectStore.add_1 */
- IDBRequest _add_1(value, key) native "IDBObjectStore_add_1_Callback";
-
-
- /** @domName IDBObjectStore.add_2 */
- IDBRequest _add_2(value) native "IDBObjectStore_add_2_Callback";
-
-
- /** @domName IDBObjectStore.clear */
- IDBRequest clear() native "IDBObjectStore_clear_Callback";
-
- IDBRequest count([key_OR_range]) {
- if (!?key_OR_range) {
- return _count_1();
- }
- if ((key_OR_range is IDBKeyRange || key_OR_range == null)) {
- return _count_2(key_OR_range);
- }
- return _count_3(key_OR_range);
- throw "Incorrect number or type of arguments";
- }
-
-
- /** @domName IDBObjectStore.count_1 */
- IDBRequest _count_1() native "IDBObjectStore_count_1_Callback";
-
-
- /** @domName IDBObjectStore.count_2 */
- IDBRequest _count_2(key_OR_range) native "IDBObjectStore_count_2_Callback";
-
-
- /** @domName IDBObjectStore.count_3 */
- IDBRequest _count_3(key_OR_range) native "IDBObjectStore_count_3_Callback";
-
- IDBIndex createIndex(/*DOMString*/ name, keyPath, [/*Dictionary*/ options]) {
- if ((name is String || name == null) && (keyPath is List<String> || keyPath == null) && (options is Map || options == null)) {
- return _createIndex_1(name, keyPath, options);
- }
- if ((name is String || name == null) && (keyPath is String || keyPath == null) && (options is Map || options == null)) {
- return _createIndex_2(name, keyPath, options);
- }
- throw "Incorrect number or type of arguments";
- }
-
-
- /** @domName IDBObjectStore.createIndex_1 */
- IDBIndex _createIndex_1(name, keyPath, options) native "IDBObjectStore_createIndex_1_Callback";
-
-
- /** @domName IDBObjectStore.createIndex_2 */
- IDBIndex _createIndex_2(name, keyPath, options) native "IDBObjectStore_createIndex_2_Callback";
-
- IDBRequest delete(key_OR_keyRange) {
- if ((key_OR_keyRange is IDBKeyRange || key_OR_keyRange == null)) {
- return _delete_1(key_OR_keyRange);
- }
- return _delete_2(key_OR_keyRange);
- throw "Incorrect number or type of arguments";
- }
-
-
- /** @domName IDBObjectStore.delete_1 */
- IDBRequest _delete_1(key_OR_keyRange) native "IDBObjectStore_delete_1_Callback";
-
-
- /** @domName IDBObjectStore.delete_2 */
- IDBRequest _delete_2(key_OR_keyRange) native "IDBObjectStore_delete_2_Callback";
-
-
- /** @domName IDBObjectStore.deleteIndex */
- void deleteIndex(String name) native "IDBObjectStore_deleteIndex_Callback";
-
- IDBRequest getObject(key) {
- if ((key is IDBKeyRange || key == null)) {
- return _get_1(key);
- }
- return _get_2(key);
- throw "Incorrect number or type of arguments";
- }
-
-
- /** @domName IDBObjectStore.get_1 */
- IDBRequest _get_1(key) native "IDBObjectStore_get_1_Callback";
-
-
- /** @domName IDBObjectStore.get_2 */
- IDBRequest _get_2(key) native "IDBObjectStore_get_2_Callback";
-
-
- /** @domName IDBObjectStore.index */
- IDBIndex index(String name) native "IDBObjectStore_index_Callback";
-
- IDBRequest openCursor([key_OR_range, /*DOMString*/ direction]) {
- if (!?key_OR_range && !?direction) {
- return _openCursor_1();
- }
- if ((key_OR_range is IDBKeyRange || key_OR_range == null) && !?direction) {
- return _openCursor_2(key_OR_range);
- }
- if ((key_OR_range is IDBKeyRange || key_OR_range == null) && (direction is String || direction == null)) {
- return _openCursor_3(key_OR_range, direction);
- }
- if (!?direction) {
- return _openCursor_4(key_OR_range);
- }
- if ((direction is String || direction == null)) {
- return _openCursor_5(key_OR_range, direction);
- }
- throw "Incorrect number or type of arguments";
- }
-
-
- /** @domName IDBObjectStore.openCursor_1 */
- IDBRequest _openCursor_1() native "IDBObjectStore_openCursor_1_Callback";
-
-
- /** @domName IDBObjectStore.openCursor_2 */
- IDBRequest _openCursor_2(key_OR_range) native "IDBObjectStore_openCursor_2_Callback";
-
-
- /** @domName IDBObjectStore.openCursor_3 */
- IDBRequest _openCursor_3(key_OR_range, direction) native "IDBObjectStore_openCursor_3_Callback";
-
-
- /** @domName IDBObjectStore.openCursor_4 */
- IDBRequest _openCursor_4(key_OR_range) native "IDBObjectStore_openCursor_4_Callback";
-
-
- /** @domName IDBObjectStore.openCursor_5 */
- IDBRequest _openCursor_5(key_OR_range, direction) native "IDBObjectStore_openCursor_5_Callback";
-
- IDBRequest put(/*any*/ value, [/*IDBKey*/ key]) {
- if (?key) {
- return _put_1(value, key);
- }
- return _put_2(value);
- }
-
-
- /** @domName IDBObjectStore.put_1 */
- IDBRequest _put_1(value, key) native "IDBObjectStore_put_1_Callback";
-
-
- /** @domName IDBObjectStore.put_2 */
- IDBRequest _put_2(value) native "IDBObjectStore_put_2_Callback";
-
-}
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
-
-// WARNING: Do not edit - generated code.
-
-
-/// @domName IDBOpenDBRequest
-class IDBOpenDBRequest extends IDBRequest implements EventTarget {
- IDBOpenDBRequest.internal(): super.internal();
-
- /// @domName EventTarget.addEventListener, EventTarget.removeEventListener, EventTarget.dispatchEvent; @docsEditable true
- IDBOpenDBRequestEvents get on =>
- new IDBOpenDBRequestEvents(this);
-
-}
-
-class IDBOpenDBRequestEvents extends IDBRequestEvents {
- IDBOpenDBRequestEvents(EventTarget _ptr) : super(_ptr);
-
- EventListenerList get blocked => this['blocked'];
-
- EventListenerList get upgradeNeeded => this['upgradeneeded'];
-}
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
-
-// WARNING: Do not edit - generated code.
-
-
-/// @domName IDBRequest
-class IDBRequest extends EventTarget {
- IDBRequest.internal(): super.internal();
-
- /// @domName EventTarget.addEventListener, EventTarget.removeEventListener, EventTarget.dispatchEvent; @docsEditable true
- IDBRequestEvents get on =>
- new IDBRequestEvents(this);
-
-
- /** @domName IDBRequest.error */
- DOMError get error native "IDBRequest_error_Getter";
-
-
- /** @domName IDBRequest.errorCode */
- int get errorCode native "IDBRequest_errorCode_Getter";
-
-
- /** @domName IDBRequest.readyState */
- String get readyState native "IDBRequest_readyState_Getter";
-
-
- /** @domName IDBRequest.result */
- dynamic get result native "IDBRequest_result_Getter";
-
-
- /** @domName IDBRequest.source */
- dynamic get source native "IDBRequest_source_Getter";
-
-
- /** @domName IDBRequest.transaction */
- IDBTransaction get transaction native "IDBRequest_transaction_Getter";
-
-
- /** @domName IDBRequest.webkitErrorMessage */
- String get webkitErrorMessage native "IDBRequest_webkitErrorMessage_Getter";
-
-
- /** @domName IDBRequest.addEventListener */
- void $dom_addEventListener(String type, EventListener listener, [bool useCapture]) native "IDBRequest_addEventListener_Callback";
-
-
- /** @domName IDBRequest.dispatchEvent */
- bool $dom_dispatchEvent(Event evt) native "IDBRequest_dispatchEvent_Callback";
-
-
- /** @domName IDBRequest.removeEventListener */
- void $dom_removeEventListener(String type, EventListener listener, [bool useCapture]) native "IDBRequest_removeEventListener_Callback";
-
-}
-
-class IDBRequestEvents extends Events {
- IDBRequestEvents(EventTarget _ptr) : super(_ptr);
-
- EventListenerList get error => this['error'];
-
- EventListenerList get success => this['success'];
-}
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
-
-// WARNING: Do not edit - generated code.
-
-
-/// @domName IDBTransaction
-class IDBTransaction extends EventTarget {
- IDBTransaction.internal(): super.internal();
-
- /// @domName EventTarget.addEventListener, EventTarget.removeEventListener, EventTarget.dispatchEvent; @docsEditable true
- IDBTransactionEvents get on =>
- new IDBTransactionEvents(this);
-
- static const int READ_ONLY = 0;
-
- static const int READ_WRITE = 1;
-
- static const int VERSION_CHANGE = 2;
-
-
- /** @domName IDBTransaction.db */
- IDBDatabase get db native "IDBTransaction_db_Getter";
-
-
- /** @domName IDBTransaction.error */
- DOMError get error native "IDBTransaction_error_Getter";
-
-
- /** @domName IDBTransaction.mode */
- String get mode native "IDBTransaction_mode_Getter";
-
-
- /** @domName IDBTransaction.abort */
- void abort() native "IDBTransaction_abort_Callback";
-
-
- /** @domName IDBTransaction.addEventListener */
- void $dom_addEventListener(String type, EventListener listener, [bool useCapture]) native "IDBTransaction_addEventListener_Callback";
-
-
- /** @domName IDBTransaction.dispatchEvent */
- bool $dom_dispatchEvent(Event evt) native "IDBTransaction_dispatchEvent_Callback";
-
-
- /** @domName IDBTransaction.objectStore */
- IDBObjectStore objectStore(String name) native "IDBTransaction_objectStore_Callback";
-
-
- /** @domName IDBTransaction.removeEventListener */
- void $dom_removeEventListener(String type, EventListener listener, [bool useCapture]) native "IDBTransaction_removeEventListener_Callback";
-
-}
-
-class IDBTransactionEvents extends Events {
- IDBTransactionEvents(EventTarget _ptr) : super(_ptr);
-
- EventListenerList get abort => this['abort'];
-
- EventListenerList get complete => this['complete'];
-
- EventListenerList get error => this['error'];
-}
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
-
-// WARNING: Do not edit - generated code.
-
-
-/// @domName IDBVersionChangeEvent
-class IDBUpgradeNeededEvent extends Event {
- IDBUpgradeNeededEvent.internal(): super.internal();
-
-
- /** @domName IDBUpgradeNeededEvent.newVersion */
- int get newVersion native "IDBUpgradeNeededEvent_newVersion_Getter";
-
-
- /** @domName IDBUpgradeNeededEvent.oldVersion */
- int get oldVersion native "IDBUpgradeNeededEvent_oldVersion_Getter";
-
-}
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
-
-// WARNING: Do not edit - generated code.
-
-
-/// @domName IDBVersionChangeEvent
-class IDBVersionChangeEvent extends Event {
- IDBVersionChangeEvent.internal(): super.internal();
-
-
- /** @domName IDBVersionChangeEvent.version */
- String get version native "IDBVersionChangeEvent_version_Getter";
-
-}
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
-
-// WARNING: Do not edit - generated code.
-
-
-/// @domName IDBVersionChangeRequest
-class IDBVersionChangeRequest extends IDBRequest implements EventTarget {
- IDBVersionChangeRequest.internal(): super.internal();
-
- /// @domName EventTarget.addEventListener, EventTarget.removeEventListener, EventTarget.dispatchEvent; @docsEditable true
- IDBVersionChangeRequestEvents get on =>
- new IDBVersionChangeRequestEvents(this);
-
-}
-
-class IDBVersionChangeRequestEvents extends IDBRequestEvents {
- IDBVersionChangeRequestEvents(EventTarget _ptr) : super(_ptr);
-
- EventListenerList get blocked => this['blocked'];
-}
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
-
-// WARNING: Do not edit - generated code.
-
-
/// @domName HTMLIFrameElement
class IFrameElement extends _Element_Merged {
@@ -14675,7 +13719,7 @@ class LocalWindow extends EventTarget implements Window {
/** @domName DOMWindow.indexedDB */
- IDBFactory get indexedDB native "DOMWindow_indexedDB_Getter";
+ IdbFactory get indexedDB native "DOMWindow_indexedDB_Getter";
/** @domName DOMWindow.innerHeight */
@@ -14822,10 +13866,6 @@ class LocalWindow extends EventTarget implements Window {
Window get top native "DOMWindow_top_Getter";
- /** @domName DOMWindow.webkitIndexedDB */
- IDBFactory get webkitIndexedDB native "DOMWindow_webkitIndexedDB_Getter";
-
-
/** @domName DOMWindow.webkitNotifications */
NotificationCenter get webkitNotifications native "DOMWindow_webkitNotifications_Getter";
@@ -25408,7 +24448,7 @@ class WorkerContext extends EventTarget {
/** @domName WorkerContext.indexedDB */
- IDBFactory get indexedDB native "WorkerContext_indexedDB_Getter";
+ IdbFactory get indexedDB native "WorkerContext_indexedDB_Getter";
/** @domName WorkerContext.location */
@@ -25423,10 +24463,6 @@ class WorkerContext extends EventTarget {
WorkerContext get self native "WorkerContext_self_Getter";
- /** @domName WorkerContext.webkitIndexedDB */
- IDBFactory get webkitIndexedDB native "WorkerContext_webkitIndexedDB_Getter";
-
-
/** @domName WorkerContext.webkitNotifications */
NotificationCenter get webkitNotifications native "WorkerContext_webkitNotifications_Getter";
@@ -29625,25 +28661,6 @@ class KeyEvent implements KeyboardEvent {
// BSD-style license that can be found in the LICENSE file.
-class _IDBKeyRangeFactoryProvider {
-
- static IDBKeyRange createIDBKeyRange_only(/*IDBKey*/ value) =>
- IDBKeyRange.only_(value);
-
- static IDBKeyRange createIDBKeyRange_lowerBound(
- /*IDBKey*/ bound, [bool open = false]) =>
- IDBKeyRange.lowerBound_(bound, open);
-
- static IDBKeyRange createIDBKeyRange_upperBound(
- /*IDBKey*/ bound, [bool open = false]) =>
- IDBKeyRange.upperBound_(bound, open);
-
- static IDBKeyRange createIDBKeyRange_bound(
- /*IDBKey*/ lower, /*IDBKey*/ upper,
- [bool lowerOpen = false, bool upperOpen = false]) =>
- IDBKeyRange.bound_(lower, upper, lowerOpen, upperOpen);
-}
-
class _TypedArrayFactoryProvider {
static Float32Array createFloat32Array(int length) => _F32(length);
static Float32Array createFloat32Array_fromList(List<num> list) =>
« no previous file with comments | « sdk/lib/html/dart2js/html_dart2js.dart ('k') | sdk/lib/html/scripts/dartdomgenerator.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698