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

Side by Side Diff: client/html/generated/html/dartium/IDBRequest.dart

Issue 9537001: Generate dart:html bindings for Dartium as well as Frog. All unittests now pass (or are disabled fo… (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 9 months 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
(Empty)
1
2 class _IDBRequestImpl extends _DOMTypeBase implements IDBRequest {
3 _IDBRequestImpl._wrap(ptr) : super._wrap(ptr);
4
5 int get errorCode() => _wrap(_ptr.errorCode);
6
7 EventListener get onerror() => _wrap(_ptr.onerror);
8
9 void set onerror(EventListener value) { _ptr.onerror = _unwrap(value); }
10
11 EventListener get onsuccess() => _wrap(_ptr.onsuccess);
12
13 void set onsuccess(EventListener value) { _ptr.onsuccess = _unwrap(value); }
14
15 int get readyState() => _wrap(_ptr.readyState);
16
17 IDBAny get result() => _wrap(_ptr.result);
18
19 IDBAny get source() => _wrap(_ptr.source);
20
21 IDBTransaction get transaction() => _wrap(_ptr.transaction);
22
23 String get webkitErrorMessage() => _wrap(_ptr.webkitErrorMessage);
24
25 void addEventListener(String type, EventListener listener, [bool useCapture = null]) {
26 if (useCapture === null) {
27 _ptr.addEventListener(_unwrap(type), _unwrap(listener));
28 return;
29 } else {
30 _ptr.addEventListener(_unwrap(type), _unwrap(listener), _unwrap(useCapture ));
31 return;
32 }
33 }
34
35 bool dispatchEvent(Event evt) {
36 return _wrap(_ptr.dispatchEvent(_unwrap(evt)));
37 }
38
39 void removeEventListener(String type, EventListener listener, [bool useCapture = null]) {
40 if (useCapture === null) {
41 _ptr.removeEventListener(_unwrap(type), _unwrap(listener));
42 return;
43 } else {
44 _ptr.removeEventListener(_unwrap(type), _unwrap(listener), _unwrap(useCapt ure));
45 return;
46 }
47 }
48 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698