| 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 10 matching lines...) Expand all Loading... |
| 21 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 21 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 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 ] IDBCursor { | 30 ] IDBCursor { |
| 31 // FIXME: Eventually remove legacy enum constants, see https://bugs.webk
it.org/show_bug.cgi?id=85315 |
| 31 const unsigned short NEXT = 0; | 32 const unsigned short NEXT = 0; |
| 32 const unsigned short NEXT_NO_DUPLICATE = 1; | 33 const unsigned short NEXT_NO_DUPLICATE = 1; |
| 33 const unsigned short PREV = 2; | 34 const unsigned short PREV = 2; |
| 34 const unsigned short PREV_NO_DUPLICATE = 3; | 35 const unsigned short PREV_NO_DUPLICATE = 3; |
| 35 | 36 |
| 36 readonly attribute unsigned short direction; | 37 readonly attribute DOMString direction; |
| 37 readonly attribute IDBKey key; | 38 readonly attribute IDBKey key; |
| 38 readonly attribute IDBKey primaryKey; | 39 readonly attribute IDBKey primaryKey; |
| 39 readonly attribute IDBAny source; | 40 readonly attribute IDBAny source; |
| 40 | 41 |
| 41 [CallWith=ScriptExecutionContext] IDBRequest update(in SerializedScriptV
alue value) | 42 [CallWith=ScriptExecutionContext] IDBRequest update(in SerializedScriptV
alue value) |
| 42 raises (IDBDatabaseException); | 43 raises (IDBDatabaseException); |
| 43 void advance(in unsigned long count) | 44 void advance(in unsigned long count) |
| 44 raises (IDBDatabaseException); | 45 raises (IDBDatabaseException); |
| 45 [ImplementedAs=continueFunction] void continue(in [Optional] IDBKey key) | 46 [ImplementedAs=continueFunction] void continue(in [Optional] IDBKey key) |
| 46 raises (IDBDatabaseException); | 47 raises (IDBDatabaseException); |
| 47 [CallWith=ScriptExecutionContext, ImplementedAs=deleteFunction] IDBReque
st delete() | 48 [CallWith=ScriptExecutionContext, ImplementedAs=deleteFunction] IDBReque
st delete() |
| 48 raises (IDBDatabaseException); | 49 raises (IDBDatabaseException); |
| 49 }; | 50 }; |
| 50 } | 51 } |
| OLD | NEW |