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

Unified Diff: sdk/lib/indexed_db/dartium/indexed_db_dartium.dart

Issue 319283003: Refactor dart:_blink into classes to improve startup time (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Rebase Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sdk/lib/html/dartium/html_dartium.dart ('k') | sdk/lib/svg/dartium/svg_dartium.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/indexed_db/dartium/indexed_db_dartium.dart
diff --git a/sdk/lib/indexed_db/dartium/indexed_db_dartium.dart b/sdk/lib/indexed_db/dartium/indexed_db_dartium.dart
index c39811ef682542d37088e2928f9944afef33a2a1..8d97428d03326acc6716e648e5c8c95582ff9ec3 100644
--- a/sdk/lib/indexed_db/dartium/indexed_db_dartium.dart
+++ b/sdk/lib/indexed_db/dartium/indexed_db_dartium.dart
@@ -80,41 +80,41 @@ class Cursor extends NativeFieldWrapperClass2 {
@DomName('IDBCursor.direction')
@DocsEditable()
- String get direction => _blink.Native_IDBCursor_direction_Getter(this);
+ String get direction => _blink.BlinkIDBCursor.$direction_Getter(this);
@DomName('IDBCursor.key')
@DocsEditable()
- Object get key => _blink.Native_IDBCursor_key_Getter(this);
+ Object get key => _blink.BlinkIDBCursor.$key_Getter(this);
@DomName('IDBCursor.primaryKey')
@DocsEditable()
- Object get primaryKey => _blink.Native_IDBCursor_primaryKey_Getter(this);
+ Object get primaryKey => _blink.BlinkIDBCursor.$primaryKey_Getter(this);
@DomName('IDBCursor.source')
@DocsEditable()
- Object get source => _blink.Native_IDBCursor_source_Getter(this);
+ Object get source => _blink.BlinkIDBCursor.$source_Getter(this);
@DomName('IDBCursor.advance')
@DocsEditable()
- void advance(int count) => _blink.Native_IDBCursor_advance_Callback(this, count);
+ void advance(int count) => _blink.BlinkIDBCursor.$advance_Callback(this, count);
@DomName('IDBCursor.continuePrimaryKey')
@DocsEditable()
@Experimental() // untriaged
- void continuePrimaryKey(Object key, Object primaryKey) => _blink.Native_IDBCursor_continuePrimaryKey_Callback(this, key, primaryKey);
+ void continuePrimaryKey(Object key, Object primaryKey) => _blink.BlinkIDBCursor.$continuePrimaryKey_Callback(this, key, primaryKey);
@DomName('IDBCursor.delete')
@DocsEditable()
- Request _delete() => _blink.Native_IDBCursor_delete_Callback(this);
+ Request _delete() => _blink.BlinkIDBCursor.$delete_Callback(this);
@DomName('IDBCursor.next')
@DocsEditable()
@Experimental() // non-standard
- void next([Object key]) => _blink.Native_IDBCursor_next_Callback(this, key);
+ void next([Object key]) => _blink.BlinkIDBCursor.$next_Callback(this, key);
@DomName('IDBCursor.update')
@DocsEditable()
- Request _update(Object value) => _blink.Native_IDBCursor_update_Callback(this, value);
+ Request _update(Object value) => _blink.BlinkIDBCursor.$update_Callback(this, value);
}
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
@@ -133,7 +133,7 @@ class CursorWithValue extends Cursor {
@DomName('IDBCursorWithValue.value')
@DocsEditable()
- Object get value => _blink.Native_IDBCursorWithValue_value_Getter(this);
+ Object get value => _blink.BlinkIDBCursorWithValue.$value_Getter(this);
}
// Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
@@ -216,41 +216,41 @@ class Database extends EventTarget {
@DomName('IDBDatabase.name')
@DocsEditable()
- String get name => _blink.Native_IDBDatabase_name_Getter(this);
+ String get name => _blink.BlinkIDBDatabase.$name_Getter(this);
@DomName('IDBDatabase.objectStoreNames')
@DocsEditable()
- List<String> get objectStoreNames => _blink.Native_IDBDatabase_objectStoreNames_Getter(this);
+ List<String> get objectStoreNames => _blink.BlinkIDBDatabase.$objectStoreNames_Getter(this);
@DomName('IDBDatabase.version')
@DocsEditable()
- Object get version => _blink.Native_IDBDatabase_version_Getter(this);
+ Object get version => _blink.BlinkIDBDatabase.$version_Getter(this);
@DomName('IDBDatabase.close')
@DocsEditable()
- void close() => _blink.Native_IDBDatabase_close_Callback(this);
+ void close() => _blink.BlinkIDBDatabase.$close_Callback(this);
@DomName('IDBDatabase.createObjectStore')
@DocsEditable()
- ObjectStore _createObjectStore(String name, [Map options]) => _blink.Native_IDBDatabase_createObjectStore_Callback(this, name, options);
+ ObjectStore _createObjectStore(String name, [Map options]) => _blink.BlinkIDBDatabase.$createObjectStore_Callback(this, name, options);
@DomName('IDBDatabase.deleteObjectStore')
@DocsEditable()
- void deleteObjectStore(String name) => _blink.Native_IDBDatabase_deleteObjectStore_Callback(this, name);
+ void deleteObjectStore(String name) => _blink.BlinkIDBDatabase.$deleteObjectStore_Callback(this, name);
- Transaction transaction(storeName_OR_storeNames, String mode) => _blink.Native_IDBDatabase_transaction(this, storeName_OR_storeNames, mode);
+ Transaction transaction(storeName_OR_storeNames, String mode) => _blink.BlinkIDBDatabase.$transaction(this, storeName_OR_storeNames, mode);
@DomName('IDBDatabase.transactionList')
@DocsEditable()
- Transaction transactionList(List<String> storeNames, String mode) => _blink.Native_IDBDatabase_transactionList_Callback(this, storeNames, mode);
+ Transaction transactionList(List<String> storeNames, String mode) => _blink.BlinkIDBDatabase.$transactionList_Callback(this, storeNames, mode);
@DomName('IDBDatabase.transactionStore')
@DocsEditable()
- Transaction transactionStore(String storeName, String mode) => _blink.Native_IDBDatabase_transactionStore_Callback(this, storeName, mode);
+ Transaction transactionStore(String storeName, String mode) => _blink.BlinkIDBDatabase.$transactionStore_Callback(this, storeName, mode);
@DomName('IDBDatabase.transactionStores')
@DocsEditable()
- Transaction transactionStores(List<String> storeNames, String mode) => _blink.Native_IDBDatabase_transactionStores_Callback(this, storeNames, mode);
+ Transaction transactionStores(List<String> storeNames, String mode) => _blink.BlinkIDBDatabase.$transactionStores_Callback(this, storeNames, mode);
/// Stream of `abort` events handled by this [Database].
@DomName('IDBDatabase.onabort')
@@ -366,20 +366,20 @@ class IdbFactory extends NativeFieldWrapperClass2 {
@DomName('IDBFactory.cmp')
@DocsEditable()
- int cmp(Object first, Object second) => _blink.Native_IDBFactory_cmp_Callback(this, first, second);
+ int cmp(Object first, Object second) => _blink.BlinkIDBFactory.$cmp_Callback(this, first, second);
@DomName('IDBFactory.deleteDatabase')
@DocsEditable()
- OpenDBRequest _deleteDatabase(String name) => _blink.Native_IDBFactory_deleteDatabase_Callback(this, name);
+ OpenDBRequest _deleteDatabase(String name) => _blink.BlinkIDBFactory.$deleteDatabase_Callback(this, name);
- OpenDBRequest _open(String name, [int version]) => _blink.Native_IDBFactory__open(this, name, version);
+ OpenDBRequest _open(String name, [int version]) => _blink.BlinkIDBFactory.$_open(this, name, version);
@DomName('IDBFactory.webkitGetDatabaseNames')
@DocsEditable()
@SupportedBrowser(SupportedBrowser.CHROME)
@SupportedBrowser(SupportedBrowser.SAFARI)
@Experimental()
- Request _webkitGetDatabaseNames() => _blink.Native_IDBFactory_webkitGetDatabaseNames_Callback(this);
+ Request _webkitGetDatabaseNames() => _blink.BlinkIDBFactory.$webkitGetDatabaseNames_Callback(this);
}
@@ -497,43 +497,43 @@ class Index extends NativeFieldWrapperClass2 {
@DomName('IDBIndex.keyPath')
@DocsEditable()
- Object get keyPath => _blink.Native_IDBIndex_keyPath_Getter(this);
+ Object get keyPath => _blink.BlinkIDBIndex.$keyPath_Getter(this);
@DomName('IDBIndex.multiEntry')
@DocsEditable()
- bool get multiEntry => _blink.Native_IDBIndex_multiEntry_Getter(this);
+ bool get multiEntry => _blink.BlinkIDBIndex.$multiEntry_Getter(this);
@DomName('IDBIndex.name')
@DocsEditable()
- String get name => _blink.Native_IDBIndex_name_Getter(this);
+ String get name => _blink.BlinkIDBIndex.$name_Getter(this);
@DomName('IDBIndex.objectStore')
@DocsEditable()
- ObjectStore get objectStore => _blink.Native_IDBIndex_objectStore_Getter(this);
+ ObjectStore get objectStore => _blink.BlinkIDBIndex.$objectStore_Getter(this);
@DomName('IDBIndex.unique')
@DocsEditable()
- bool get unique => _blink.Native_IDBIndex_unique_Getter(this);
+ bool get unique => _blink.BlinkIDBIndex.$unique_Getter(this);
@DomName('IDBIndex.count')
@DocsEditable()
- Request _count(Object key) => _blink.Native_IDBIndex_count_Callback(this, key);
+ Request _count(Object key) => _blink.BlinkIDBIndex.$count_Callback(this, key);
@DomName('IDBIndex.get')
@DocsEditable()
- Request _get(Object key) => _blink.Native_IDBIndex_get_Callback(this, key);
+ Request _get(Object key) => _blink.BlinkIDBIndex.$get_Callback(this, key);
@DomName('IDBIndex.getKey')
@DocsEditable()
- Request _getKey(Object key) => _blink.Native_IDBIndex_getKey_Callback(this, key);
+ Request _getKey(Object key) => _blink.BlinkIDBIndex.$getKey_Callback(this, key);
@DomName('IDBIndex.openCursor')
@DocsEditable()
- Request _openCursor(Object key, [String direction]) => _blink.Native_IDBIndex_openCursor_Callback(this, key, direction);
+ Request _openCursor(Object key, [String direction]) => _blink.BlinkIDBIndex.$openCursor_Callback(this, key, direction);
@DomName('IDBIndex.openKeyCursor')
@DocsEditable()
- Request _openKeyCursor(Object key, [String direction]) => _blink.Native_IDBIndex_openKeyCursor_Callback(this, key, direction);
+ Request _openKeyCursor(Object key, [String direction]) => _blink.BlinkIDBIndex.$openKeyCursor_Callback(this, key, direction);
}
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
@@ -567,39 +567,39 @@ class KeyRange extends NativeFieldWrapperClass2 {
@DomName('IDBKeyRange.lower')
@DocsEditable()
- Object get lower => _blink.Native_IDBKeyRange_lower_Getter(this);
+ Object get lower => _blink.BlinkIDBKeyRange.$lower_Getter(this);
@DomName('IDBKeyRange.lowerOpen')
@DocsEditable()
- bool get lowerOpen => _blink.Native_IDBKeyRange_lowerOpen_Getter(this);
+ bool get lowerOpen => _blink.BlinkIDBKeyRange.$lowerOpen_Getter(this);
@DomName('IDBKeyRange.upper')
@DocsEditable()
- Object get upper => _blink.Native_IDBKeyRange_upper_Getter(this);
+ Object get upper => _blink.BlinkIDBKeyRange.$upper_Getter(this);
@DomName('IDBKeyRange.upperOpen')
@DocsEditable()
- bool get upperOpen => _blink.Native_IDBKeyRange_upperOpen_Getter(this);
+ bool get upperOpen => _blink.BlinkIDBKeyRange.$upperOpen_Getter(this);
@DomName('IDBKeyRange.bound_')
@DocsEditable()
@Experimental() // non-standard
- static KeyRange bound_(Object lower, Object upper, [bool lowerOpen, bool upperOpen]) => _blink.Native_IDBKeyRange_bound__Callback(lower, upper, lowerOpen, upperOpen);
+ static KeyRange bound_(Object lower, Object upper, [bool lowerOpen, bool upperOpen]) => _blink.BlinkIDBKeyRange.$bound__Callback(lower, upper, lowerOpen, upperOpen);
@DomName('IDBKeyRange.lowerBound_')
@DocsEditable()
@Experimental() // non-standard
- static KeyRange lowerBound_(Object bound, [bool open]) => _blink.Native_IDBKeyRange_lowerBound__Callback(bound, open);
+ static KeyRange lowerBound_(Object bound, [bool open]) => _blink.BlinkIDBKeyRange.$lowerBound__Callback(bound, open);
@DomName('IDBKeyRange.only_')
@DocsEditable()
@Experimental() // non-standard
- static KeyRange only_(Object value) => _blink.Native_IDBKeyRange_only__Callback(value);
+ static KeyRange only_(Object value) => _blink.BlinkIDBKeyRange.$only__Callback(value);
@DomName('IDBKeyRange.upperBound_')
@DocsEditable()
@Experimental() // non-standard
- static KeyRange upperBound_(Object bound, [bool open]) => _blink.Native_IDBKeyRange_upperBound__Callback(bound, open);
+ static KeyRange upperBound_(Object bound, [bool open]) => _blink.BlinkIDBKeyRange.$upperBound__Callback(bound, open);
}
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
@@ -742,66 +742,66 @@ class ObjectStore extends NativeFieldWrapperClass2 {
@DomName('IDBObjectStore.autoIncrement')
@DocsEditable()
- bool get autoIncrement => _blink.Native_IDBObjectStore_autoIncrement_Getter(this);
+ bool get autoIncrement => _blink.BlinkIDBObjectStore.$autoIncrement_Getter(this);
@DomName('IDBObjectStore.indexNames')
@DocsEditable()
- List<String> get indexNames => _blink.Native_IDBObjectStore_indexNames_Getter(this);
+ List<String> get indexNames => _blink.BlinkIDBObjectStore.$indexNames_Getter(this);
@DomName('IDBObjectStore.keyPath')
@DocsEditable()
- Object get keyPath => _blink.Native_IDBObjectStore_keyPath_Getter(this);
+ Object get keyPath => _blink.BlinkIDBObjectStore.$keyPath_Getter(this);
@DomName('IDBObjectStore.name')
@DocsEditable()
- String get name => _blink.Native_IDBObjectStore_name_Getter(this);
+ String get name => _blink.BlinkIDBObjectStore.$name_Getter(this);
@DomName('IDBObjectStore.transaction')
@DocsEditable()
- Transaction get transaction => _blink.Native_IDBObjectStore_transaction_Getter(this);
+ Transaction get transaction => _blink.BlinkIDBObjectStore.$transaction_Getter(this);
@DomName('IDBObjectStore.add')
@DocsEditable()
- Request _add(Object value, [Object key]) => _blink.Native_IDBObjectStore_add_Callback(this, value, key);
+ Request _add(Object value, [Object key]) => _blink.BlinkIDBObjectStore.$add_Callback(this, value, key);
@DomName('IDBObjectStore.clear')
@DocsEditable()
- Request _clear() => _blink.Native_IDBObjectStore_clear_Callback(this);
+ Request _clear() => _blink.BlinkIDBObjectStore.$clear_Callback(this);
@DomName('IDBObjectStore.count')
@DocsEditable()
- Request _count(Object key) => _blink.Native_IDBObjectStore_count_Callback(this, key);
+ Request _count(Object key) => _blink.BlinkIDBObjectStore.$count_Callback(this, key);
- Index _createIndex(String name, keyPath, [Map options]) => _blink.Native_IDBObjectStore__createIndex(this, name, keyPath, options);
+ Index _createIndex(String name, keyPath, [Map options]) => _blink.BlinkIDBObjectStore.$_createIndex(this, name, keyPath, options);
@DomName('IDBObjectStore.delete')
@DocsEditable()
- Request _delete(Object key) => _blink.Native_IDBObjectStore_delete_Callback(this, key);
+ Request _delete(Object key) => _blink.BlinkIDBObjectStore.$delete_Callback(this, key);
@DomName('IDBObjectStore.deleteIndex')
@DocsEditable()
- void deleteIndex(String name) => _blink.Native_IDBObjectStore_deleteIndex_Callback(this, name);
+ void deleteIndex(String name) => _blink.BlinkIDBObjectStore.$deleteIndex_Callback(this, name);
@DomName('IDBObjectStore.get')
@DocsEditable()
- Request _get(Object key) => _blink.Native_IDBObjectStore_get_Callback(this, key);
+ Request _get(Object key) => _blink.BlinkIDBObjectStore.$get_Callback(this, key);
@DomName('IDBObjectStore.index')
@DocsEditable()
- Index index(String name) => _blink.Native_IDBObjectStore_index_Callback(this, name);
+ Index index(String name) => _blink.BlinkIDBObjectStore.$index_Callback(this, name);
@DomName('IDBObjectStore.openCursor')
@DocsEditable()
- Request _openCursor(Object key, [String direction]) => _blink.Native_IDBObjectStore_openCursor_Callback(this, key, direction);
+ Request _openCursor(Object key, [String direction]) => _blink.BlinkIDBObjectStore.$openCursor_Callback(this, key, direction);
@DomName('IDBObjectStore.openKeyCursor')
@DocsEditable()
@Experimental() // untriaged
- Request openKeyCursor(Object range, String direction) => _blink.Native_IDBObjectStore_openKeyCursor_Callback(this, range, direction);
+ Request openKeyCursor(Object range, String direction) => _blink.BlinkIDBObjectStore.$openKeyCursor_Callback(this, range, direction);
@DomName('IDBObjectStore.put')
@DocsEditable()
- Request _put(Object value, [Object key]) => _blink.Native_IDBObjectStore_put_Callback(this, value, key);
+ Request _put(Object value, [Object key]) => _blink.BlinkIDBObjectStore.$put_Callback(this, value, key);
/**
@@ -912,23 +912,23 @@ class Request extends EventTarget {
@DomName('IDBRequest.error')
@DocsEditable()
- DomError get error => _blink.Native_IDBRequest_error_Getter(this);
+ DomError get error => _blink.BlinkIDBRequest.$error_Getter(this);
@DomName('IDBRequest.readyState')
@DocsEditable()
- String get readyState => _blink.Native_IDBRequest_readyState_Getter(this);
+ String get readyState => _blink.BlinkIDBRequest.$readyState_Getter(this);
@DomName('IDBRequest.result')
@DocsEditable()
- Object get result => _blink.Native_IDBRequest_result_Getter(this);
+ Object get result => _blink.BlinkIDBRequest.$result_Getter(this);
@DomName('IDBRequest.source')
@DocsEditable()
- Object get source => _blink.Native_IDBRequest_source_Getter(this);
+ Object get source => _blink.BlinkIDBRequest.$source_Getter(this);
@DomName('IDBRequest.transaction')
@DocsEditable()
- Transaction get transaction => _blink.Native_IDBRequest_transaction_Getter(this);
+ Transaction get transaction => _blink.BlinkIDBRequest.$transaction_Getter(this);
/// Stream of `error` events handled by this [Request].
@DomName('IDBRequest.onerror')
@@ -1013,23 +1013,23 @@ class Transaction extends EventTarget {
@DomName('IDBTransaction.db')
@DocsEditable()
- Database get db => _blink.Native_IDBTransaction_db_Getter(this);
+ Database get db => _blink.BlinkIDBTransaction.$db_Getter(this);
@DomName('IDBTransaction.error')
@DocsEditable()
- DomError get error => _blink.Native_IDBTransaction_error_Getter(this);
+ DomError get error => _blink.BlinkIDBTransaction.$error_Getter(this);
@DomName('IDBTransaction.mode')
@DocsEditable()
- String get mode => _blink.Native_IDBTransaction_mode_Getter(this);
+ String get mode => _blink.BlinkIDBTransaction.$mode_Getter(this);
@DomName('IDBTransaction.abort')
@DocsEditable()
- void abort() => _blink.Native_IDBTransaction_abort_Callback(this);
+ void abort() => _blink.BlinkIDBTransaction.$abort_Callback(this);
@DomName('IDBTransaction.objectStore')
@DocsEditable()
- ObjectStore objectStore(String name) => _blink.Native_IDBTransaction_objectStore_Callback(this, name);
+ ObjectStore objectStore(String name) => _blink.BlinkIDBTransaction.$objectStore_Callback(this, name);
/// Stream of `abort` events handled by this [Transaction].
@DomName('IDBTransaction.onabort')
@@ -1064,19 +1064,19 @@ class VersionChangeEvent extends Event {
@DomName('IDBVersionChangeEvent.dataLoss')
@DocsEditable()
@Experimental() // untriaged
- String get dataLoss => _blink.Native_IDBVersionChangeEvent_dataLoss_Getter(this);
+ String get dataLoss => _blink.BlinkIDBVersionChangeEvent.$dataLoss_Getter(this);
@DomName('IDBVersionChangeEvent.dataLossMessage')
@DocsEditable()
@Experimental() // untriaged
- String get dataLossMessage => _blink.Native_IDBVersionChangeEvent_dataLossMessage_Getter(this);
+ String get dataLossMessage => _blink.BlinkIDBVersionChangeEvent.$dataLossMessage_Getter(this);
@DomName('IDBVersionChangeEvent.newVersion')
@DocsEditable()
- Object get newVersion => _blink.Native_IDBVersionChangeEvent_newVersion_Getter(this);
+ Object get newVersion => _blink.BlinkIDBVersionChangeEvent.$newVersion_Getter(this);
@DomName('IDBVersionChangeEvent.oldVersion')
@DocsEditable()
- Object get oldVersion => _blink.Native_IDBVersionChangeEvent_oldVersion_Getter(this);
+ Object get oldVersion => _blink.BlinkIDBVersionChangeEvent.$oldVersion_Getter(this);
}
« no previous file with comments | « sdk/lib/html/dartium/html_dartium.dart ('k') | sdk/lib/svg/dartium/svg_dartium.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698