Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(430)

Side by Side Diff: client/html/generated/src/wrapping/_IDBTransactionWrappingImplementation.dart

Issue 8835006: New version of dart:html (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix typos Created 9 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 // WARNING: Do not edit - generated code. 5 // WARNING: Do not edit - generated code.
6 6
7 class IDBTransactionWrappingImplementation extends DOMWrapperBase implements IDB Transaction { 7 class IDBTransactionWrappingImplementation extends DOMWrapperBase implements IDB Transaction {
8 IDBTransactionWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} 8 IDBTransactionWrappingImplementation._wrap(ptr) : super._wrap(ptr) {}
9 9
10 IDBDatabase get db() { return LevelDom.wrapIDBDatabase(_ptr.db); } 10 IDBDatabase get db() { return LevelDom.wrapIDBDatabase(_ptr.db); }
11 11
12 int get mode() { return _ptr.mode; } 12 int get mode() { return _ptr.mode; }
13 13
14 EventListener get onabort() { return LevelDom.wrapEventListener(_ptr.onabort); }
15
16 void set onabort(EventListener value) { _ptr.onabort = LevelDom.unwrap(value); }
17
18 EventListener get oncomplete() { return LevelDom.wrapEventListener(_ptr.oncomp lete); }
19
20 void set oncomplete(EventListener value) { _ptr.oncomplete = LevelDom.unwrap(v alue); }
21
22 EventListener get onerror() { return LevelDom.wrapEventListener(_ptr.onerror); }
23
24 void set onerror(EventListener value) { _ptr.onerror = LevelDom.unwrap(value); }
25
26 void abort() { 14 void abort() {
27 _ptr.abort(); 15 _ptr.abort();
28 return; 16 return;
29 } 17 }
30 18
31 void addEventListener(String type, EventListener listener, [bool useCapture = null]) { 19 void addEventListener(String type, EventListener listener, [bool useCapture]) {
32 if (useCapture === null) { 20 if (useCapture === null) {
33 _ptr.addEventListener(type, LevelDom.unwrap(listener)); 21 _ptr.addEventListener(type, LevelDom.unwrap(listener));
34 return; 22 return;
35 } else { 23 } else {
36 _ptr.addEventListener(type, LevelDom.unwrap(listener), useCapture); 24 _ptr.addEventListener(type, LevelDom.unwrap(listener), useCapture);
37 return; 25 return;
38 } 26 }
39 } 27 }
40 28
41 bool dispatchEvent(Event evt) { 29 bool dispatchEvent(Event evt) {
42 return _ptr.dispatchEvent(LevelDom.unwrap(evt)); 30 return _ptr.dispatchEvent(LevelDom.unwrap(evt));
43 } 31 }
44 32
45 IDBObjectStore objectStore(String name) { 33 IDBObjectStore objectStore(String name) {
46 return LevelDom.wrapIDBObjectStore(_ptr.objectStore(name)); 34 return LevelDom.wrapIDBObjectStore(_ptr.objectStore(name));
47 } 35 }
48 36
49 void removeEventListener(String type, EventListener listener, [bool useCapture = null]) { 37 void removeEventListener(String type, EventListener listener, [bool useCapture ]) {
50 if (useCapture === null) { 38 if (useCapture === null) {
51 _ptr.removeEventListener(type, LevelDom.unwrap(listener)); 39 _ptr.removeEventListener(type, LevelDom.unwrap(listener));
52 return; 40 return;
53 } else { 41 } else {
54 _ptr.removeEventListener(type, LevelDom.unwrap(listener), useCapture); 42 _ptr.removeEventListener(type, LevelDom.unwrap(listener), useCapture);
55 return; 43 return;
56 } 44 }
57 } 45 }
58 } 46 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698