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 | 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, | 38 ActiveScriptWrappable, |
39 DependentLifetime, | 39 DependentLifetime, |
40 Exposed=(Window,Worker), | 40 Exposed=(Window,Worker), |
41 ] interface IDBTransaction : EventTarget { | 41 ] interface IDBTransaction : EventTarget { |
42 | 42 |
43 // Properties | 43 // Properties |
44 [Measure] readonly attribute DOMStringList objectStoreNames; | 44 [MeasureAs=IndexedDB] readonly attribute DOMStringList objectStoreNames; |
45 readonly attribute IDBTransactionMode mode; | 45 [MeasureAs=IndexedDB] readonly attribute IDBTransactionMode mode; |
46 readonly attribute IDBDatabase db; | 46 [MeasureAs=IndexedDB] readonly attribute IDBDatabase db; |
47 readonly attribute DOMException error; | 47 [MeasureAs=IndexedDB] readonly attribute DOMException error; |
48 | 48 |
49 // Methods | 49 // Methods |
50 [RaisesException] IDBObjectStore objectStore (DOMString name); | 50 [MeasureAs=IndexedDB, RaisesException] IDBObjectStore objectStore (DOMString
name); |
51 [RaisesException] void abort (); | 51 [MeasureAs=IndexedDB, RaisesException] void abort (); |
52 | 52 |
53 // Events | 53 // Events |
54 attribute EventHandler onabort; | 54 [MeasureAs=IndexedDB] attribute EventHandler onabort; |
55 attribute EventHandler oncomplete; | 55 [MeasureAs=IndexedDB] attribute EventHandler oncomplete; |
56 attribute EventHandler onerror; | 56 [MeasureAs=IndexedDB] attribute EventHandler onerror; |
57 }; | 57 }; |
OLD | NEW |