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 21 matching lines...) Expand all Loading... |
32 EventTarget | 32 EventTarget |
33 ] IDBTransaction { | 33 ] IDBTransaction { |
34 // FIXME: Eventually remove legacy enum constants, see https://bugs.webk
it.org/show_bug.cgi?id=85315 | 34 // FIXME: Eventually remove legacy enum constants, see https://bugs.webk
it.org/show_bug.cgi?id=85315 |
35 const unsigned short READ_ONLY = 0; | 35 const unsigned short READ_ONLY = 0; |
36 const unsigned short READ_WRITE = 1; | 36 const unsigned short READ_WRITE = 1; |
37 const unsigned short VERSION_CHANGE = 2; | 37 const unsigned short VERSION_CHANGE = 2; |
38 | 38 |
39 // Properties | 39 // Properties |
40 readonly attribute DOMString mode; | 40 readonly attribute DOMString mode; |
41 readonly attribute IDBDatabase db; | 41 readonly attribute IDBDatabase db; |
| 42 readonly attribute DOMError error |
| 43 getter raises (IDBDatabaseException); |
| 44 |
42 // Methods | 45 // Methods |
43 IDBObjectStore objectStore (in DOMString name) | 46 IDBObjectStore objectStore (in DOMString name) |
44 raises (IDBDatabaseException); | 47 raises (IDBDatabaseException); |
45 void abort (); | 48 void abort (); |
46 // Events | 49 // Events |
47 attribute EventListener onabort; | 50 attribute EventListener onabort; |
48 attribute EventListener oncomplete; | 51 attribute EventListener oncomplete; |
49 attribute EventListener onerror; | 52 attribute EventListener onerror; |
50 // EventTarget interface | 53 // EventTarget interface |
51 void addEventListener(in DOMString type, | 54 void addEventListener(in DOMString type, |
52 in EventListener listener, | 55 in EventListener listener, |
53 in [Optional] boolean useCapture); | 56 in [Optional] boolean useCapture); |
54 void removeEventListener(in DOMString type, | 57 void removeEventListener(in DOMString type, |
55 in EventListener listener, | 58 in EventListener listener, |
56 in [Optional] boolean useCapture); | 59 in [Optional] boolean useCapture); |
57 boolean dispatchEvent(in Event evt) | 60 boolean dispatchEvent(in Event evt) |
58 raises(EventException); | 61 raises(EventException); |
59 }; | 62 }; |
60 } | 63 } |
OLD | NEW |