OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2012, 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 interface WorkerContext { |
| 8 |
| 9 static final int PERSISTENT = 1; |
| 10 |
| 11 static final int TEMPORARY = 0; |
| 12 |
| 13 final WorkerLocation location; |
| 14 |
| 15 final WorkerNavigator navigator; |
| 16 |
| 17 EventListener onerror; |
| 18 |
| 19 final WorkerContext self; |
| 20 |
| 21 final IDBFactory webkitIndexedDB; |
| 22 |
| 23 final NotificationCenter webkitNotifications; |
| 24 |
| 25 void addEventListener(String type, EventListener listener, [bool useCapture]); |
| 26 |
| 27 void clearInterval(int handle); |
| 28 |
| 29 void clearTimeout(int handle); |
| 30 |
| 31 void close(); |
| 32 |
| 33 bool dispatchEvent(Event evt); |
| 34 |
| 35 void importScripts(); |
| 36 |
| 37 Database openDatabase(String name, String version, String displayName, int est
imatedSize, [DatabaseCallback creationCallback]); |
| 38 |
| 39 DatabaseSync openDatabaseSync(String name, String version, String displayName,
int estimatedSize, [DatabaseCallback creationCallback]); |
| 40 |
| 41 void removeEventListener(String type, EventListener listener, [bool useCapture
]); |
| 42 |
| 43 int setInterval(TimeoutHandler handler, int timeout); |
| 44 |
| 45 int setTimeout(TimeoutHandler handler, int timeout); |
| 46 |
| 47 void webkitRequestFileSystem(int type, int size, [FileSystemCallback successCa
llback, ErrorCallback errorCallback]); |
| 48 |
| 49 DOMFileSystemSync webkitRequestFileSystemSync(int type, int size); |
| 50 |
| 51 EntrySync webkitResolveLocalFileSystemSyncURL(String url); |
| 52 |
| 53 void webkitResolveLocalFileSystemURL(String url, [EntryCallback successCallbac
k, ErrorCallback errorCallback]); |
| 54 } |
OLD | NEW |