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 19 matching lines...) Expand all Loading... |
30 // http://www.w3.org/TR/IndexedDB/#idl-def-IDBRequestReadyState | 30 // http://www.w3.org/TR/IndexedDB/#idl-def-IDBRequestReadyState |
31 | 31 |
32 enum IDBRequestReadyState { | 32 enum IDBRequestReadyState { |
33 "pending", | 33 "pending", |
34 "done" | 34 "done" |
35 }; | 35 }; |
36 | 36 |
37 // http://www.w3.org/TR/IndexedDB/#idl-def-IDBRequest | 37 // http://www.w3.org/TR/IndexedDB/#idl-def-IDBRequest |
38 | 38 |
39 [ | 39 [ |
| 40 ActiveScriptWrappable, |
| 41 DependentLifetime, |
40 Exposed=(Window,Worker), | 42 Exposed=(Window,Worker), |
41 DependentLifetime, | |
42 GarbageCollected, | 43 GarbageCollected, |
43 ] interface IDBRequest : EventTarget { | 44 ] interface IDBRequest : EventTarget { |
44 [RaisesException=Getter, CachedAttribute=isResultDirty] readonly attribute a
ny result; | 45 [RaisesException=Getter, CachedAttribute=isResultDirty] readonly attribute a
ny result; |
45 [RaisesException=Getter] readonly attribute DOMException error; | 46 [RaisesException=Getter] readonly attribute DOMException error; |
46 | 47 |
47 readonly attribute any source; | 48 readonly attribute any source; |
48 readonly attribute IDBTransaction transaction; | 49 readonly attribute IDBTransaction transaction; |
49 | 50 |
50 // States | 51 // States |
51 readonly attribute IDBRequestReadyState readyState; | 52 readonly attribute IDBRequestReadyState readyState; |
52 | 53 |
53 // Events | 54 // Events |
54 attribute EventHandler onsuccess; | 55 attribute EventHandler onsuccess; |
55 attribute EventHandler onerror; | 56 attribute EventHandler onerror; |
56 }; | 57 }; |
OLD | NEW |