OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2010 Google Inc. All rights reserved. | 2 * Copyright (C) 2010 Google Inc. All rights reserved. |
3 * Copyright (C) 2011 Apple Inc. All rights reserved. | 3 * Copyright (C) 2011 Apple Inc. All rights reserved. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
7 * are met: | 7 * are met: |
8 * | 8 * |
9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
(...skipping 18 matching lines...) Expand all Loading... |
29 [ | 29 [ |
30 ActiveDOMObject, | 30 ActiveDOMObject, |
31 GarbageCollected, | 31 GarbageCollected, |
32 ] interface IDBDatabase : EventTarget { | 32 ] interface IDBDatabase : EventTarget { |
33 readonly attribute DOMString name; | 33 readonly attribute DOMString name; |
34 [CallWith=ScriptState] readonly attribute any version; | 34 [CallWith=ScriptState] readonly attribute any version; |
35 readonly attribute DOMStringList objectStoreNames; | 35 readonly attribute DOMStringList objectStoreNames; |
36 [RaisesException] IDBObjectStore createObjectStore(DOMString name, optional
Dictionary options); | 36 [RaisesException] IDBObjectStore createObjectStore(DOMString name, optional
Dictionary options); |
37 [RaisesException] void deleteObjectStore(DOMString name); | 37 [RaisesException] void deleteObjectStore(DOMString name); |
38 // FIXME: should be union type http://crbug.com/240176 | 38 // FIXME: should be union type http://crbug.com/240176 |
39 [CallWith=ExecutionContext, RaisesException] IDBTransaction transaction(DOMS
tring storeName, optional DOMString mode = null); | 39 [CallWith=ExecutionContext, RaisesException] IDBTransaction transaction(DOMS
tring storeName, optional DOMString mode = "readonly"); |
40 [CallWith=ExecutionContext, RaisesException] IDBTransaction transaction(sequ
ence<DOMString> storeNames, optional DOMString mode = null); | 40 [CallWith=ExecutionContext, RaisesException] IDBTransaction transaction(sequ
ence<DOMString> storeNames, optional DOMString mode = "readonly"); |
41 [CallWith=ExecutionContext, RaisesException] IDBTransaction transaction(DOMS
tringList storeNames, optional DOMString mode = null); | 41 [CallWith=ExecutionContext, RaisesException] IDBTransaction transaction(DOMS
tringList storeNames, optional DOMString mode = "readonly"); |
42 void close(); | 42 void close(); |
43 attribute EventHandler onabort; | 43 attribute EventHandler onabort; |
44 attribute EventHandler onclose; | 44 attribute EventHandler onclose; |
45 attribute EventHandler onerror; | 45 attribute EventHandler onerror; |
46 attribute EventHandler onversionchange; | 46 attribute EventHandler onversionchange; |
47 }; | 47 }; |
OLD | NEW |