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 23 matching lines...) Expand all Loading... |
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 ] interface IDBRequest : EventTarget { | 43 ] interface IDBRequest : EventTarget { |
44 [CallWith=ScriptState, RaisesException=Getter, CachedAttribute=isResultDirty
] readonly attribute any result; | 44 [Measure, CallWith=ScriptState, RaisesException=Getter, CachedAttribute=isRe
sultDirty] readonly attribute any result; |
45 [RaisesException=Getter] readonly attribute DOMException error; | 45 [Measure, RaisesException=Getter] readonly attribute DOMException error; |
46 | 46 |
47 [CallWith=ScriptState] readonly attribute any source; | 47 [Measure, CallWith=ScriptState] readonly attribute any source; |
48 readonly attribute IDBTransaction transaction; | 48 [Measure] readonly attribute IDBTransaction transaction; |
49 | 49 |
50 // States | 50 // States |
51 readonly attribute IDBRequestReadyState readyState; | 51 [Measure] readonly attribute IDBRequestReadyState readyState; |
52 | 52 |
53 // Events | 53 // Events |
54 attribute EventHandler onsuccess; | 54 [Measure] attribute EventHandler onsuccess; |
55 attribute EventHandler onerror; | 55 [Measure] attribute EventHandler onerror; |
56 }; | 56 }; |
OLD | NEW |