| Index: modules/indexeddb/IDBObjectStore.idl
|
| diff --git a/modules/indexeddb/IDBObjectStore.idl b/modules/indexeddb/IDBObjectStore.idl
|
| index daa79234f594aab7f4837886161285fb36ad1a31..14bd1daf49cd17faa3e07ec659470d0250578e4c 100644
|
| --- a/modules/indexeddb/IDBObjectStore.idl
|
| +++ b/modules/indexeddb/IDBObjectStore.idl
|
| @@ -23,25 +23,28 @@
|
| * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
| */
|
|
|
| +// https://dvcs.w3.org/hg/IndexedDB/raw-file/default/Overview.html#idl-def-IDBObjectStore
|
| +
|
| [
|
| + GarbageCollected,
|
| ] interface IDBObjectStore {
|
| [TreatReturnedNullStringAs=Null] readonly attribute DOMString name;
|
| - [CallWith=ExecutionContext] readonly attribute any keyPath;
|
| + [CallWith=ScriptState] readonly attribute any keyPath;
|
| readonly attribute DOMStringList indexNames;
|
| readonly attribute IDBTransaction transaction;
|
| readonly attribute boolean autoIncrement;
|
|
|
| [CallWith=ScriptState, RaisesException] IDBRequest put(any value, [Default=Undefined] optional any key);
|
| [CallWith=ScriptState, RaisesException] IDBRequest add(any value, [Default=Undefined] optional any key);
|
| - [CallWith=ExecutionContext, ImplementedAs=deleteFunction, RaisesException] IDBRequest delete(any key);
|
| - [CallWith=ExecutionContext, RaisesException] IDBRequest clear();
|
| - [CallWith=ExecutionContext, RaisesException] IDBRequest get(any key);
|
| - [CallWith=ExecutionContext, RaisesException] IDBRequest openCursor([Default=Undefined] optional any range, [Default=NullString] optional DOMString direction);
|
| - [CallWith=ExecutionContext, RaisesException, RuntimeEnabled=IndexedDBExperimental] IDBRequest openKeyCursor([Default=Undefined] optional any range, [Default=NullString] optional DOMString direction);
|
| -
|
| - [CallWith=ExecutionContext, RaisesException] IDBIndex createIndex(DOMString name, sequence<DOMString> keyPath, optional Dictionary options);
|
| - [CallWith=ExecutionContext, RaisesException] IDBIndex createIndex(DOMString name, DOMString keyPath, optional Dictionary options);
|
| + [CallWith=ScriptState, ImplementedAs=deleteFunction, RaisesException] IDBRequest delete(any key);
|
| + [CallWith=ScriptState, RaisesException] IDBRequest get(any key);
|
| + [CallWith=ScriptState, RaisesException] IDBRequest clear();
|
| + [CallWith=ScriptState, RaisesException] IDBRequest openCursor([Default=Undefined] optional any range, optional DOMString direction = null);
|
| + [CallWith=ScriptState, RaisesException, RuntimeEnabled=IndexedDBExperimental] IDBRequest openKeyCursor([Default=Undefined] optional any range, optional DOMString direction = null);
|
| + // FIXME: should be union type http://crbug.com/240176
|
| + [CallWith=ScriptState, RaisesException] IDBIndex createIndex(DOMString name, DOMString keyPath, optional Dictionary options);
|
| + [CallWith=ScriptState, RaisesException] IDBIndex createIndex(DOMString name, sequence<DOMString> keyPath, optional Dictionary options);
|
| [RaisesException] IDBIndex index(DOMString name);
|
| [RaisesException] void deleteIndex(DOMString name);
|
| - [CallWith=ExecutionContext, RaisesException] IDBRequest count([Default=Undefined] optional any key);
|
| + [CallWith=ScriptState, RaisesException] IDBRequest count([Default=Undefined] optional any key);
|
| };
|
|
|