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

Unified Diff: modules/indexeddb/IDBDatabase.idl

Issue 1660113002: Updated to Chrome 45 (2454) moved from SVN to git. Base URL: https://github.com/dart-lang/webcore.git@roll_45
Patch Set: Created 4 years, 11 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 | « modules/indexeddb/IDBCursorWithValue.idl ('k') | modules/indexeddb/IDBFactory.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: modules/indexeddb/IDBDatabase.idl
diff --git a/modules/indexeddb/IDBDatabase.idl b/modules/indexeddb/IDBDatabase.idl
index 36ab560e13039b7397aca8df5b207fde7bf5b6c5..1df577ef13ae996feac023657142fd86b00f237d 100644
--- a/modules/indexeddb/IDBDatabase.idl
+++ b/modules/indexeddb/IDBDatabase.idl
@@ -24,29 +24,23 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-// https://dvcs.w3.org/hg/IndexedDB/raw-file/default/Overview.html#idl-def-IDBDatabase
-
-// FIXME: de-duplicate this when crbug.com/390758 is fixed.
-enum IDBTransactionMode {
- "readonly",
- "readwrite",
- "versionchange"
-};
+// https://w3c.github.io/IndexedDB/#idl-def-IDBDatabase
[
+ Exposed=(Window,Worker),
ActiveDOMObject,
GarbageCollected,
] interface IDBDatabase : EventTarget {
readonly attribute DOMString name;
- [CallWith=ScriptState] readonly attribute any version;
- readonly attribute DOMStringList objectStoreNames;
- [RaisesException] IDBObjectStore createObjectStore(DOMString name, optional Dictionary options);
+ // TODO(jsbell): DOMString version is non-standard, to support databases created with old API.
+ readonly attribute (unsigned long long or DOMString) version;
+ [Measure] readonly attribute DOMStringList objectStoreNames;
+
+ [RaisesException] IDBObjectStore createObjectStore(DOMString name, optional IDBObjectStoreParameters options);
[RaisesException] void deleteObjectStore(DOMString name);
- // FIXME: should be union type http://crbug.com/240176
- [CallWith=ScriptState, RaisesException] IDBTransaction transaction(DOMString storeName, optional IDBTransactionMode mode = "readonly");
- [CallWith=ScriptState, RaisesException] IDBTransaction transaction(sequence<DOMString> storeNames, optional IDBTransactionMode mode = "readonly");
- [CallWith=ScriptState, RaisesException] IDBTransaction transaction(DOMStringList storeNames, optional IDBTransactionMode mode = "readonly");
+ [CallWith=ScriptState, RaisesException] IDBTransaction transaction((DOMString or sequence<DOMString> or DOMStringList) storeNames, optional IDBTransactionMode mode = "readonly");
void close();
+
attribute EventHandler onabort;
attribute EventHandler onclose;
attribute EventHandler onerror;
« no previous file with comments | « modules/indexeddb/IDBCursorWithValue.idl ('k') | modules/indexeddb/IDBFactory.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698