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 12 matching lines...) Expand all Loading... |
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 ] IDBIndex { | 30 ] IDBIndex { |
31 readonly attribute DOMString name; | 31 readonly attribute DOMString name; |
32 readonly attribute IDBObjectStore objectStore; | 32 readonly attribute IDBObjectStore objectStore; |
33 readonly attribute DOMString keyPath; | 33 readonly attribute IDBAny keyPath; |
34 readonly attribute boolean unique; | 34 readonly attribute boolean unique; |
35 readonly attribute boolean multiEntry; | 35 readonly attribute boolean multiEntry; |
36 | 36 |
37 [CallWith=ScriptExecutionContext] IDBRequest openCursor(in [Optional] ID
BKeyRange range, in [Optional] DOMString direction) | 37 [CallWith=ScriptExecutionContext] IDBRequest openCursor(in [Optional] ID
BKeyRange range, in [Optional] DOMString direction) |
38 raises (IDBDatabaseException); | 38 raises (IDBDatabaseException); |
39 [CallWith=ScriptExecutionContext] IDBRequest openCursor(in IDBKey key, i
n [Optional] DOMString direction) | 39 [CallWith=ScriptExecutionContext] IDBRequest openCursor(in IDBKey key, i
n [Optional] DOMString direction) |
40 raises (IDBDatabaseException); | 40 raises (IDBDatabaseException); |
41 | 41 |
42 [CallWith=ScriptExecutionContext] IDBRequest openKeyCursor(in [Optional]
IDBKeyRange range, in [Optional] DOMString direction) | 42 [CallWith=ScriptExecutionContext] IDBRequest openKeyCursor(in [Optional]
IDBKeyRange range, in [Optional] DOMString direction) |
43 raises (IDBDatabaseException); | 43 raises (IDBDatabaseException); |
(...skipping 19 matching lines...) Expand all Loading... |
63 raises (IDBDatabaseException); | 63 raises (IDBDatabaseException); |
64 [CallWith=ScriptExecutionContext] IDBRequest getKey(in IDBKey key) | 64 [CallWith=ScriptExecutionContext] IDBRequest getKey(in IDBKey key) |
65 raises (IDBDatabaseException); | 65 raises (IDBDatabaseException); |
66 [CallWith=ScriptExecutionContext] IDBRequest count(in [Optional] IDBKeyR
ange range) | 66 [CallWith=ScriptExecutionContext] IDBRequest count(in [Optional] IDBKeyR
ange range) |
67 raises (IDBDatabaseException); | 67 raises (IDBDatabaseException); |
68 [CallWith=ScriptExecutionContext] IDBRequest count(in IDBKey key) | 68 [CallWith=ScriptExecutionContext] IDBRequest count(in IDBKey key) |
69 raises (IDBDatabaseException); | 69 raises (IDBDatabaseException); |
70 }; | 70 }; |
71 | 71 |
72 } | 72 } |
OLD | NEW |