Index: modules/indexeddb/IDBCursor.idl |
diff --git a/modules/indexeddb/IDBCursor.idl b/modules/indexeddb/IDBCursor.idl |
index b96920ba650708be220a2e5557f3cdabdf9ff052..a0a25f3ef50afb86b5b475fc9f28984edb94c516 100644 |
--- a/modules/indexeddb/IDBCursor.idl |
+++ b/modules/indexeddb/IDBCursor.idl |
@@ -23,7 +23,7 @@ |
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
*/ |
-// http://www.w3.org/TR/IndexedDB/#idl-def-IDBCursor |
+// https://w3c.github.io/IndexedDB/#idl-def-IDBCursorDirection |
enum IDBCursorDirection { |
"next", |
@@ -32,19 +32,21 @@ enum IDBCursorDirection { |
"prevunique" |
}; |
+// https://w3c.github.io/IndexedDB/#idl-def-IDBCursor |
+ |
[ |
+ Exposed=(Window,Worker), |
GarbageCollected |
] interface IDBCursor { |
- |
+ [CallWith=ScriptState] readonly attribute any source; |
readonly attribute IDBCursorDirection direction; |
[CallWith=ScriptState, CachedAttribute=isKeyDirty] readonly attribute any key; |
[CallWith=ScriptState, CachedAttribute=isPrimaryKeyDirty] readonly attribute any primaryKey; |
- [CallWith=ScriptState] readonly attribute any source; |
[CallWith=ScriptState, RaisesException] IDBRequest update(any value); |
[RaisesException] void advance([EnforceRange] unsigned long count); |
- // FIXMEDART: Define new names for these (see b/4436830). |
[CallWith=ScriptState, ImplementedAs=continueFunction, RaisesException] void continue([Default=Undefined] optional any key); |
+ // TODO(jsbell): Proposal: https://github.com/w3c/IndexedDB/issues/14 |
[CallWith=ScriptState, RaisesException, RuntimeEnabled=IndexedDBExperimental] void continuePrimaryKey(any key, any primaryKey); |
[CallWith=ScriptState, ImplementedAs=deleteFunction, RaisesException] IDBRequest delete(); |
}; |