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 17 matching lines...) Expand all Loading... |
28 | 28 |
29 enum IDBTransactionMode { | 29 enum IDBTransactionMode { |
30 "readonly", | 30 "readonly", |
31 "readwrite", | 31 "readwrite", |
32 "versionchange" | 32 "versionchange" |
33 }; | 33 }; |
34 | 34 |
35 // https://w3c.github.io/IndexedDB/#idl-def-IDBTransaction | 35 // https://w3c.github.io/IndexedDB/#idl-def-IDBTransaction |
36 | 36 |
37 [ | 37 [ |
| 38 ActiveScriptWrappable, |
| 39 DependentLifetime, |
38 Exposed=(Window,Worker), | 40 Exposed=(Window,Worker), |
39 DependentLifetime, | 41 GarbageCollected, |
40 GarbageCollected | |
41 ] interface IDBTransaction : EventTarget { | 42 ] interface IDBTransaction : EventTarget { |
42 | 43 |
43 // Properties | 44 // Properties |
44 [Measure] readonly attribute DOMStringList objectStoreNames; | 45 [Measure] readonly attribute DOMStringList objectStoreNames; |
45 readonly attribute IDBTransactionMode mode; | 46 readonly attribute IDBTransactionMode mode; |
46 readonly attribute IDBDatabase db; | 47 readonly attribute IDBDatabase db; |
47 readonly attribute DOMException error; | 48 readonly attribute DOMException error; |
48 | 49 |
49 // Methods | 50 // Methods |
50 [RaisesException] IDBObjectStore objectStore (DOMString name); | 51 [RaisesException] IDBObjectStore objectStore (DOMString name); |
51 [RaisesException] void abort (); | 52 [RaisesException] void abort (); |
52 | 53 |
53 // Events | 54 // Events |
54 attribute EventHandler onabort; | 55 attribute EventHandler onabort; |
55 attribute EventHandler oncomplete; | 56 attribute EventHandler oncomplete; |
56 attribute EventHandler onerror; | 57 attribute EventHandler onerror; |
57 }; | 58 }; |
OLD | NEW |