| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2010 Google Inc. All rights reserved. | 2 * Copyright (C) 2010 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * | 7 * |
| 8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF | 22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF |
| 23 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 23 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 24 */ | 24 */ |
| 25 | 25 |
| 26 module storage { | 26 module storage { |
| 27 | 27 |
| 28 interface [ | 28 interface [ |
| 29 Conditional=INDEXED_DATABASE | 29 Conditional=INDEXED_DATABASE |
| 30 ] IDBObjectStore { | 30 ] IDBObjectStore { |
| 31 readonly attribute [TreatReturnedNullStringAs=Null] DOMString name; | 31 readonly attribute [TreatReturnedNullStringAs=Null] DOMString name; |
| 32 readonly attribute IDBAny keyPath; | 32 readonly attribute [TreatReturnedNullStringAs=Null] DOMString keyPath; |
| 33 readonly attribute DOMStringList indexNames; | 33 readonly attribute DOMStringList indexNames; |
| 34 readonly attribute IDBTransaction transaction; | 34 readonly attribute IDBTransaction transaction; |
| 35 readonly attribute boolean autoIncrement; | |
| 36 | 35 |
| 37 [CallWith=ScriptExecutionContext] IDBRequest put(in SerializedScriptValu
e value, in [Optional] IDBKey key) | 36 [CallWith=ScriptExecutionContext] IDBRequest put(in SerializedScriptValu
e value, in [Optional] IDBKey key) |
| 38 raises (IDBDatabaseException); | 37 raises (IDBDatabaseException); |
| 39 [CallWith=ScriptExecutionContext] IDBRequest add(in SerializedScriptValu
e value, in [Optional] IDBKey key) | 38 [CallWith=ScriptExecutionContext] IDBRequest add(in SerializedScriptValu
e value, in [Optional] IDBKey key) |
| 40 raises (IDBDatabaseException); | 39 raises (IDBDatabaseException); |
| 41 [CallWith=ScriptExecutionContext, ImplementedAs=deleteFunction] IDBReque
st delete(in IDBKeyRange keyRange) | 40 [CallWith=ScriptExecutionContext, ImplementedAs=deleteFunction] IDBReque
st delete(in IDBKeyRange keyRange) |
| 42 raises (IDBDatabaseException); | 41 raises (IDBDatabaseException); |
| 43 [CallWith=ScriptExecutionContext, ImplementedAs=deleteFunction] IDBReque
st delete(in IDBKey key) | 42 [CallWith=ScriptExecutionContext, ImplementedAs=deleteFunction] IDBReque
st delete(in IDBKey key) |
| 44 raises (IDBDatabaseException); | 43 raises (IDBDatabaseException); |
| 45 [CallWith=ScriptExecutionContext] IDBRequest clear() | 44 [CallWith=ScriptExecutionContext] IDBRequest clear() |
| 46 raises (IDBDatabaseException); | 45 raises (IDBDatabaseException); |
| 47 [CallWith=ScriptExecutionContext] IDBRequest get(in IDBKeyRange key) | 46 [CallWith=ScriptExecutionContext] IDBRequest get(in IDBKeyRange key) |
| 48 raises (IDBDatabaseException); | 47 raises (IDBDatabaseException); |
| 49 [CallWith=ScriptExecutionContext] IDBRequest get(in IDBKey key) | 48 [CallWith=ScriptExecutionContext] IDBRequest get(in IDBKey key) |
| 50 raises (IDBDatabaseException); | 49 raises (IDBDatabaseException); |
| 51 [CallWith=ScriptExecutionContext] IDBRequest openCursor(in [Optional] ID
BKeyRange range, in [Optional] DOMString direction) | 50 [CallWith=ScriptExecutionContext] IDBRequest openCursor(in [Optional] ID
BKeyRange range, in [Optional] DOMString direction) |
| 52 raises (IDBDatabaseException); | 51 raises (IDBDatabaseException); |
| 53 [CallWith=ScriptExecutionContext] IDBRequest openCursor(in IDBKey key, i
n [Optional] DOMString direction) | 52 [CallWith=ScriptExecutionContext] IDBRequest openCursor(in IDBKey key, i
n [Optional] DOMString direction) |
| 54 raises (IDBDatabaseException); | 53 raises (IDBDatabaseException); |
| 55 | 54 |
| 56 // FIXME: remove these when https://bugs.webkit.org/show_bug.cgi?id=8532
6 is fixed. | 55 // FIXME: remove these when https://bugs.webkit.org/show_bug.cgi?id=8532
6 is fixed. |
| 57 [CallWith=ScriptExecutionContext] IDBRequest openCursor(in IDBKeyRange r
ange, in unsigned short direction) | 56 [CallWith=ScriptExecutionContext] IDBRequest openCursor(in IDBKeyRange r
ange, in unsigned short direction) |
| 58 raises (IDBDatabaseException); | 57 raises (IDBDatabaseException); |
| 59 [CallWith=ScriptExecutionContext] IDBRequest openCursor(in IDBKey key, i
n unsigned short direction) | 58 [CallWith=ScriptExecutionContext] IDBRequest openCursor(in IDBKey key, i
n unsigned short direction) |
| 60 raises (IDBDatabaseException); | 59 raises (IDBDatabaseException); |
| 61 | 60 |
| 62 IDBIndex createIndex(in DOMString name, in DOMString[] keyPath, in [Opti
onal] Dictionary options) | |
| 63 raises (IDBDatabaseException); | |
| 64 IDBIndex createIndex(in DOMString name, in DOMString keyPath, in [Option
al] Dictionary options) | 61 IDBIndex createIndex(in DOMString name, in DOMString keyPath, in [Option
al] Dictionary options) |
| 65 raises (IDBDatabaseException); | 62 raises (IDBDatabaseException); |
| 66 IDBIndex index(in DOMString name) | 63 IDBIndex index(in DOMString name) |
| 67 raises (IDBDatabaseException); | 64 raises (IDBDatabaseException); |
| 68 void deleteIndex(in DOMString name) | 65 void deleteIndex(in DOMString name) |
| 69 raises (IDBDatabaseException); | 66 raises (IDBDatabaseException); |
| 70 [CallWith=ScriptExecutionContext] IDBRequest count(in [Optional] IDBKeyR
ange range) | 67 [CallWith=ScriptExecutionContext] IDBRequest count(in [Optional] IDBKeyR
ange range) |
| 71 raises (IDBDatabaseException); | 68 raises (IDBDatabaseException); |
| 72 [CallWith=ScriptExecutionContext] IDBRequest count(in IDBKey key) | 69 [CallWith=ScriptExecutionContext] IDBRequest count(in IDBKey key) |
| 73 raises (IDBDatabaseException); | 70 raises (IDBDatabaseException); |
| 74 }; | 71 }; |
| 75 } | 72 } |
| OLD | NEW |