| 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 26 matching lines...) Expand all Loading... |
| 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; | 42 readonly attribute DOMError error; |
| 43 | 43 |
| 44 // Methods | 44 // Methods |
| 45 IDBObjectStore objectStore (in DOMString name) | 45 IDBObjectStore objectStore (in DOMString name) |
| 46 raises (IDBDatabaseException); | 46 raises (IDBDatabaseException); |
| 47 void abort (); | 47 void abort () |
| 48 raises (IDBDatabaseException); |
| 48 | 49 |
| 49 // Events | 50 // Events |
| 50 attribute EventListener onabort; | 51 attribute EventListener onabort; |
| 51 attribute EventListener oncomplete; | 52 attribute EventListener oncomplete; |
| 52 attribute EventListener onerror; | 53 attribute EventListener onerror; |
| 53 // EventTarget interface | 54 // EventTarget interface |
| 54 void addEventListener(in DOMString type, | 55 void addEventListener(in DOMString type, |
| 55 in EventListener listener, | 56 in EventListener listener, |
| 56 in [Optional] boolean useCapture); | 57 in [Optional] boolean useCapture); |
| 57 void removeEventListener(in DOMString type, | 58 void removeEventListener(in DOMString type, |
| 58 in EventListener listener, | 59 in EventListener listener, |
| 59 in [Optional] boolean useCapture); | 60 in [Optional] boolean useCapture); |
| 60 boolean dispatchEvent(in Event evt) | 61 boolean dispatchEvent(in Event evt) |
| 61 raises(EventException); | 62 raises(EventException); |
| 62 }; | 63 }; |
| 63 } | 64 } |
| OLD | NEW |