OLD | NEW |
| (Empty) |
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 | |
3 // BSD-style license that can be found in the LICENSE file. | |
4 | |
5 // WARNING: Do not edit - generated code. | |
6 | |
7 class _DOMApplicationCacheWrappingImplementation extends DOMWrapperBase implemen
ts DOMApplicationCache { | |
8 _DOMApplicationCacheWrappingImplementation() : super() {} | |
9 | |
10 static create__DOMApplicationCacheWrappingImplementation() native { | |
11 return new _DOMApplicationCacheWrappingImplementation(); | |
12 } | |
13 | |
14 int get status() { return _get_status(this); } | |
15 static int _get_status(var _this) native; | |
16 | |
17 void abort() { | |
18 _abort(this); | |
19 return; | |
20 } | |
21 static void _abort(receiver) native; | |
22 | |
23 void addEventListener(String type, EventListener listener, [bool useCapture =
null]) { | |
24 if (useCapture === null) { | |
25 _addEventListener_DOMApplicationCache(this, type, listener); | |
26 return; | |
27 } else { | |
28 _addEventListener_DOMApplicationCache_2(this, type, listener, useCapture); | |
29 return; | |
30 } | |
31 } | |
32 static void _addEventListener_DOMApplicationCache(receiver, type, listener) na
tive; | |
33 static void _addEventListener_DOMApplicationCache_2(receiver, type, listener,
useCapture) native; | |
34 | |
35 bool dispatchEvent(Event evt) { | |
36 return _dispatchEvent_DOMApplicationCache(this, evt); | |
37 } | |
38 static bool _dispatchEvent_DOMApplicationCache(receiver, evt) native; | |
39 | |
40 void removeEventListener(String type, EventListener listener, [bool useCapture
= null]) { | |
41 if (useCapture === null) { | |
42 _removeEventListener_DOMApplicationCache(this, type, listener); | |
43 return; | |
44 } else { | |
45 _removeEventListener_DOMApplicationCache_2(this, type, listener, useCaptur
e); | |
46 return; | |
47 } | |
48 } | |
49 static void _removeEventListener_DOMApplicationCache(receiver, type, listener)
native; | |
50 static void _removeEventListener_DOMApplicationCache_2(receiver, type, listene
r, useCapture) native; | |
51 | |
52 void swapCache() { | |
53 _swapCache(this); | |
54 return; | |
55 } | |
56 static void _swapCache(receiver) native; | |
57 | |
58 void update() { | |
59 _update(this); | |
60 return; | |
61 } | |
62 static void _update(receiver) native; | |
63 | |
64 String get typeName() { return "DOMApplicationCache"; } | |
65 } | |
OLD | NEW |