| 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: |
| 6 // This file contains documentation that is merged into the real source. |
| 7 // Do not make code changes here. |
| 8 |
| 9 /// @domName WorkerContext |
| 10 interface WorkerContext extends EventTarget { |
| 11 |
| 12 /** |
| 13 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve
ntTarget.dispatchEvent |
| 14 */ |
| 15 WorkerContextEvents get on(); |
| 16 |
| 17 static final int PERSISTENT = 1; |
| 18 |
| 19 static final int TEMPORARY = 0; |
| 20 |
| 21 /** @domName WorkerContext.location */ |
| 22 final WorkerLocation location; |
| 23 |
| 24 /** @domName WorkerContext.navigator */ |
| 25 final WorkerNavigator navigator; |
| 26 |
| 27 /** @domName WorkerContext.self */ |
| 28 final WorkerContext self; |
| 29 |
| 30 /** @domName WorkerContext.webkitIndexedDB */ |
| 31 final IDBFactory webkitIndexedDB; |
| 32 |
| 33 /** @domName WorkerContext.webkitNotifications */ |
| 34 final NotificationCenter webkitNotifications; |
| 35 |
| 36 /** @domName WorkerContext.addEventListener */ |
| 37 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]); |
| 38 |
| 39 /** @domName WorkerContext.clearInterval */ |
| 40 void clearInterval(int handle); |
| 41 |
| 42 /** @domName WorkerContext.clearTimeout */ |
| 43 void clearTimeout(int handle); |
| 44 |
| 45 /** @domName WorkerContext.close */ |
| 46 void close(); |
| 47 |
| 48 /** @domName WorkerContext.dispatchEvent */ |
| 49 bool $dom_dispatchEvent(Event evt); |
| 50 |
| 51 /** @domName WorkerContext.importScripts */ |
| 52 void importScripts(); |
| 53 |
| 54 /** @domName WorkerContext.openDatabase */ |
| 55 Database openDatabase(String name, String version, String displayName, int est
imatedSize, [DatabaseCallback creationCallback]); |
| 56 |
| 57 /** @domName WorkerContext.openDatabaseSync */ |
| 58 DatabaseSync openDatabaseSync(String name, String version, String displayName,
int estimatedSize, [DatabaseCallback creationCallback]); |
| 59 |
| 60 /** @domName WorkerContext.removeEventListener */ |
| 61 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]); |
| 62 |
| 63 /** @domName WorkerContext.setInterval */ |
| 64 int setInterval(TimeoutHandler handler, int timeout); |
| 65 |
| 66 /** @domName WorkerContext.setTimeout */ |
| 67 int setTimeout(TimeoutHandler handler, int timeout); |
| 68 |
| 69 /** @domName WorkerContext.webkitRequestFileSystem */ |
| 70 void webkitRequestFileSystem(int type, int size, [FileSystemCallback successCa
llback, ErrorCallback errorCallback]); |
| 71 |
| 72 /** @domName WorkerContext.webkitRequestFileSystemSync */ |
| 73 DOMFileSystemSync webkitRequestFileSystemSync(int type, int size); |
| 74 |
| 75 /** @domName WorkerContext.webkitResolveLocalFileSystemSyncURL */ |
| 76 EntrySync webkitResolveLocalFileSystemSyncURL(String url); |
| 77 |
| 78 /** @domName WorkerContext.webkitResolveLocalFileSystemURL */ |
| 79 void webkitResolveLocalFileSystemURL(String url, [EntryCallback successCallbac
k, ErrorCallback errorCallback]); |
| 80 } |
| 81 |
| 82 interface WorkerContextEvents extends Events { |
| 83 |
| 84 EventListenerList get error(); |
| 85 } |
| OLD | NEW |