OLD | NEW |
1 | 1 |
2 class IDBRequest native "*IDBRequest" { | 2 class IDBRequestJS implements IDBRequest native "*IDBRequest" { |
3 | 3 |
4 static final int DONE = 2; | 4 static final int DONE = 2; |
5 | 5 |
6 static final int LOADING = 1; | 6 static final int LOADING = 1; |
7 | 7 |
8 int get errorCode() native "return this.errorCode;"; | 8 int get errorCode() native "return this.errorCode;"; |
9 | 9 |
10 EventListener get onerror() native "return this.onerror;"; | 10 EventListener get onerror() native "return this.onerror;"; |
11 | 11 |
12 void set onerror(EventListener value) native "this.onerror = value;"; | 12 void set onerror(EventListener value) native "this.onerror = value;"; |
13 | 13 |
14 EventListener get onsuccess() native "return this.onsuccess;"; | 14 EventListener get onsuccess() native "return this.onsuccess;"; |
15 | 15 |
16 void set onsuccess(EventListener value) native "this.onsuccess = value;"; | 16 void set onsuccess(EventListener value) native "this.onsuccess = value;"; |
17 | 17 |
18 int get readyState() native "return this.readyState;"; | 18 int get readyState() native "return this.readyState;"; |
19 | 19 |
20 IDBAny get result() native "return this.result;"; | 20 IDBAnyJS get result() native "return this.result;"; |
21 | 21 |
22 IDBAny get source() native "return this.source;"; | 22 IDBAnyJS get source() native "return this.source;"; |
23 | 23 |
24 IDBTransaction get transaction() native "return this.transaction;"; | 24 IDBTransactionJS get transaction() native "return this.transaction;"; |
25 | 25 |
26 String get webkitErrorMessage() native "return this.webkitErrorMessage;"; | 26 String get webkitErrorMessage() native "return this.webkitErrorMessage;"; |
27 | 27 |
28 void addEventListener(String type, EventListener listener, [bool useCapture =
null]) native; | 28 void addEventListener(String type, EventListener listener, [bool useCapture =
null]) native; |
29 | 29 |
30 bool dispatchEvent(Event evt) native; | 30 bool dispatchEvent(EventJS evt) native; |
31 | 31 |
32 void removeEventListener(String type, EventListener listener, [bool useCapture
= null]) native; | 32 void removeEventListener(String type, EventListener listener, [bool useCapture
= null]) native; |
33 | 33 |
34 var dartObjectLocalStorage; | 34 var dartObjectLocalStorage; |
35 | 35 |
36 String get typeName() native; | 36 String get typeName() native; |
37 } | 37 } |
OLD | NEW |