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 22 matching lines...) Expand all Loading... |
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, | 40 ActiveScriptWrappable, |
41 DependentLifetime, | 41 DependentLifetime, |
42 Exposed=(Window,Worker), | 42 Exposed=(Window,Worker), |
43 GarbageCollected, | |
44 ] interface IDBRequest : EventTarget { | 43 ] interface IDBRequest : EventTarget { |
45 [RaisesException=Getter, CachedAttribute=isResultDirty] readonly attribute a
ny result; | 44 [RaisesException=Getter, CachedAttribute=isResultDirty] readonly attribute a
ny result; |
46 [RaisesException=Getter] readonly attribute DOMException error; | 45 [RaisesException=Getter] readonly attribute DOMException error; |
47 | 46 |
48 readonly attribute any source; | 47 readonly attribute any source; |
49 readonly attribute IDBTransaction transaction; | 48 readonly attribute IDBTransaction transaction; |
50 | 49 |
51 // States | 50 // States |
52 readonly attribute IDBRequestReadyState readyState; | 51 readonly attribute IDBRequestReadyState readyState; |
53 | 52 |
54 // Events | 53 // Events |
55 attribute EventHandler onsuccess; | 54 attribute EventHandler onsuccess; |
56 attribute EventHandler onerror; | 55 attribute EventHandler onerror; |
57 }; | 56 }; |
OLD | NEW |