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

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

Side-by-side diff isn't available for this file because of its large size.
Issue 10540016: indexedDB work (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 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:
Download patch
Index: lib/html/dartium/html_dartium.dart
diff --git a/lib/html/dartium/html_dartium.dart b/lib/html/dartium/html_dartium.dart
index 25c5e77b30bd206130bd85b4d7a847237d9c0c93..36f0e65661894324a79d822d56c1f246f1abca61 100644
--- a/lib/html/dartium/html_dartium.dart
+++ b/lib/html/dartium/html_dartium.dart
@@ -5048,6 +5048,8 @@ class _DOMWindowImpl extends _DOMWrapperBase implements Window {
void cancelAnimationFrame(int id) => webkitCancelAnimationFrame(id);
+ IDBFactory get indexedDB() => webkitIndexedDB;
+
_EventsImpl _on;
_DOMWindowEventsImpl get on() {
@@ -11263,19 +11265,13 @@ class _IDBDatabaseImpl extends _DOMWrapperBase implements IDBDatabase {
IDBVersionChangeRequest setVersion(String version) native "IDBDatabase_setVersion_Callback";
- IDBTransaction transaction(storeName_OR_storeNames, mode) {
+ IDBTransaction transaction(storeName_OR_storeNames, String mode) {
if (storeName_OR_storeNames is List<String> && mode is String) {
return _transaction_1(storeName_OR_storeNames, mode);
}
if (storeName_OR_storeNames is String && mode is String) {
return _transaction_2(storeName_OR_storeNames, mode);
}
- if (storeName_OR_storeNames is List<String> && mode is int) {
- return _transaction_3(storeName_OR_storeNames, mode);
- }
- if (storeName_OR_storeNames is String && mode is int) {
- return _transaction_4(storeName_OR_storeNames, mode);
- }
throw "Incorrect number or type of arguments";
}
@@ -11283,10 +11279,6 @@ class _IDBDatabaseImpl extends _DOMWrapperBase implements IDBDatabase {
IDBTransaction _transaction_2(storeName_OR_storeNames, mode) native "IDBDatabase_transaction_2_Callback";
- IDBTransaction _transaction_3(storeName_OR_storeNames, mode) native "IDBDatabase_transaction_3_Callback";
-
- IDBTransaction _transaction_4(storeName_OR_storeNames, mode) native "IDBDatabase_transaction_4_Callback";
-
}
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
@@ -28538,7 +28530,7 @@ interface IDBDatabase extends EventTarget {
IDBVersionChangeRequest setVersion(String version);
/** @domName IDBDatabase.transaction */
- IDBTransaction transaction(storeName_OR_storeNames, mode);
+ IDBTransaction transaction(storeName_OR_storeNames, String mode);
}
interface IDBDatabaseEvents extends Events {
@@ -38859,6 +38851,8 @@ interface Window extends EventTarget {
void cancelAnimationFrame(int id);
+ IDBFactory get indexedDB();
+
/**
* @domName EventTarget.addEventListener, EventTarget.removeEventListener, EventTarget.dispatchEvent
@@ -40696,6 +40690,28 @@ class _TextFactoryProvider {
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
+// IDBOpenRequest is not in WebKit but is needed for FireFox. Dartium will not
+// implement this interface until it appears in the WebKit IDL.
+//
+// See:
+// http://www.w3.org/TR/IndexedDB/#request-api
+// http://dvcs.w3.org/hg/IndexedDB/raw-file/tip/Overview.html#request-api
+
+interface IDBOpenDBRequest extends IDBRequest {
+
+ IDBOpenDBRequestEvents get on();
+}
+
+interface IDBOpenDBRequestEvents extends IDBRequestEvents {
+
+ EventListenerList get blocked();
+
+ EventListenerList get upgradeneeded();
+}
+// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
+// for details. All rights reserved. Use of this source code is governed by a
+// BSD-style license that can be found in the LICENSE file.
+
typedef Object ComputeValue();
class _MeasurementRequest<T> {

Powered by Google App Engine
This is Rietveld 408576698