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 10 matching lines...) Expand all Loading... |
21 * DISCLAIMED. IN NO EVENT SHALL APPLE OR ITS CONTRIBUTORS BE LIABLE FOR ANY | 21 * DISCLAIMED. IN NO EVENT SHALL APPLE OR ITS CONTRIBUTORS BE LIABLE FOR ANY |
22 * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES | 22 * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES |
23 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; | 23 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; |
24 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND | 24 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND |
25 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 25 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
26 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF | 26 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF |
27 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 27 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
28 */ | 28 */ |
29 | 29 |
30 [ | 30 [ |
31 Conditional=INDEXED_DATABASE, | |
32 ActiveDOMObject, | 31 ActiveDOMObject, |
33 EventTarget, | 32 EventTarget |
34 JSNoStaticTables | |
35 ] interface IDBRequest { | 33 ] interface IDBRequest { |
36 readonly attribute IDBAny result | 34 readonly attribute IDBAny result |
37 getter raises (DOMException); | 35 getter raises (DOMException); |
38 readonly attribute DOMError error | 36 readonly attribute DOMError error |
39 getter raises (DOMException); | 37 getter raises (DOMException); |
40 [TreatReturnedNullStringAs=Undefined] readonly attribute DOMString webkitErr
orMessage | 38 [TreatReturnedNullStringAs=Undefined] readonly attribute DOMString webkitErr
orMessage |
41 getter raises (DOMException); | 39 getter raises (DOMException); |
42 | 40 |
43 readonly attribute IDBAny source; | 41 readonly attribute IDBAny source; |
44 readonly attribute IDBTransaction transaction; | 42 readonly attribute IDBTransaction transaction; |
45 | 43 |
46 // States | 44 // States |
47 readonly attribute DOMString readyState; | 45 readonly attribute DOMString readyState; |
48 | 46 |
49 // Events | 47 // Events |
50 attribute EventListener onsuccess; | 48 attribute EventListener onsuccess; |
51 attribute EventListener onerror; | 49 attribute EventListener onerror; |
52 | 50 |
53 // EventTarget interface | 51 // EventTarget interface |
54 void addEventListener(in DOMString type, | 52 void addEventListener(in DOMString type, |
55 in EventListener listener, | 53 in EventListener listener, |
56 in [Optional] boolean useCapture); | 54 in [Optional] boolean useCapture); |
57 void removeEventListener(in DOMString type, | 55 void removeEventListener(in DOMString type, |
58 in EventListener listener, | 56 in EventListener listener, |
59 in [Optional] boolean useCapture); | 57 in [Optional] boolean useCapture); |
60 boolean dispatchEvent(in Event evt) | 58 boolean dispatchEvent(in Event evt) |
61 raises(EventException); | 59 raises(EventException); |
62 }; | 60 }; |
OLD | NEW |