| OLD | NEW |
| 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 interface ApplicationCache extends EventTarget { | 7 interface ApplicationCache extends EventTarget { |
| 8 | 8 |
| 9 int get status(); | 9 final int status; |
| 10 | 10 |
| 11 void abort(); | 11 void abort(); |
| 12 | 12 |
| 13 void addEventListener(String type, EventListener listener, [bool useCapture]); | 13 void addEventListener(String type, EventListener listener, [bool useCapture]); |
| 14 | 14 |
| 15 bool dispatchEvent(Event evt); | 15 bool dispatchEvent(Event evt); |
| 16 | 16 |
| 17 void removeEventListener(String type, EventListener listener, [bool useCapture
]); | 17 void removeEventListener(String type, EventListener listener, [bool useCapture
]); |
| 18 | 18 |
| 19 void swapCache(); | 19 void swapCache(); |
| 20 | 20 |
| 21 void update(); | 21 void update(); |
| 22 } | 22 } |
| 23 | 23 |
| 24 interface DOMApplicationCache extends ApplicationCache { | 24 interface DOMApplicationCache extends ApplicationCache { |
| 25 | 25 |
| 26 static final int CHECKING = 2; | 26 static final int CHECKING = 2; |
| 27 | 27 |
| 28 static final int DOWNLOADING = 3; | 28 static final int DOWNLOADING = 3; |
| 29 | 29 |
| 30 static final int IDLE = 1; | 30 static final int IDLE = 1; |
| 31 | 31 |
| 32 static final int OBSOLETE = 5; | 32 static final int OBSOLETE = 5; |
| 33 | 33 |
| 34 static final int UNCACHED = 0; | 34 static final int UNCACHED = 0; |
| 35 | 35 |
| 36 static final int UPDATEREADY = 4; | 36 static final int UPDATEREADY = 4; |
| 37 } | 37 } |
| OLD | NEW |