OLD | NEW |
---|---|
1 /* | 1 /* |
2 * Copyright (C) 2010 Google Inc. All rights reserved. | 2 * Copyright (C) 2010 Google Inc. All rights reserved. |
3 * Copyright (C) 2011 Apple Inc. All rights reserved. | 3 * Copyright (C) 2011 Apple Inc. All rights reserved. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
7 * are met: | 7 * are met: |
8 * | 8 * |
9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
(...skipping 22 matching lines...) Expand all Loading... | |
33 "versionchange" | 33 "versionchange" |
34 }; | 34 }; |
35 | 35 |
36 [ | 36 [ |
37 ActiveDOMObject, | 37 ActiveDOMObject, |
38 GarbageCollected, | 38 GarbageCollected, |
39 ] interface IDBDatabase : EventTarget { | 39 ] interface IDBDatabase : EventTarget { |
40 readonly attribute DOMString name; | 40 readonly attribute DOMString name; |
41 [CallWith=ScriptState] readonly attribute any version; | 41 [CallWith=ScriptState] readonly attribute any version; |
42 readonly attribute DOMStringList objectStoreNames; | 42 readonly attribute DOMStringList objectStoreNames; |
43 // FIXME: |options| should be an IDL dictionary (IDBObjectStoreParameters) | |
bashi
2014/11/14 02:19:53
IDBObjectStoreParameters is an IDL dictionary whic
| |
43 [RaisesException] IDBObjectStore createObjectStore(DOMString name, optional Dictionary options); | 44 [RaisesException] IDBObjectStore createObjectStore(DOMString name, optional Dictionary options); |
44 [RaisesException] void deleteObjectStore(DOMString name); | 45 [RaisesException] void deleteObjectStore(DOMString name); |
45 // FIXME: should be union type http://crbug.com/240176 | 46 // FIXME: should be union type http://crbug.com/240176 |
46 [CallWith=ScriptState, RaisesException] IDBTransaction transaction(DOMString storeName, optional IDBTransactionMode mode = "readonly"); | 47 [CallWith=ScriptState, RaisesException] IDBTransaction transaction(DOMString storeName, optional IDBTransactionMode mode = "readonly"); |
47 [CallWith=ScriptState, RaisesException] IDBTransaction transaction(sequence< DOMString> storeNames, optional IDBTransactionMode mode = "readonly"); | 48 [CallWith=ScriptState, RaisesException] IDBTransaction transaction(sequence< DOMString> storeNames, optional IDBTransactionMode mode = "readonly"); |
48 [CallWith=ScriptState, RaisesException] IDBTransaction transaction(DOMString List storeNames, optional IDBTransactionMode mode = "readonly"); | 49 [CallWith=ScriptState, RaisesException] IDBTransaction transaction(DOMString List storeNames, optional IDBTransactionMode mode = "readonly"); |
49 void close(); | 50 void close(); |
50 attribute EventHandler onabort; | 51 attribute EventHandler onabort; |
51 attribute EventHandler onclose; | 52 attribute EventHandler onclose; |
52 attribute EventHandler onerror; | 53 attribute EventHandler onerror; |
53 attribute EventHandler onversionchange; | 54 attribute EventHandler onversionchange; |
54 }; | 55 }; |
OLD | NEW |