| 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 class _DOMWindowJs extends _EventTargetJs implements DOMWindow native "@*DOMWind
ow" { | |
| 6 | |
| 7 static final int PERSISTENT = 1; | |
| 8 | |
| 9 static final int TEMPORARY = 0; | |
| 10 | |
| 11 final _DOMApplicationCacheJs applicationCache; | |
| 12 | |
| 13 final _NavigatorJs clientInformation; | |
| 14 | |
| 15 final bool closed; | |
| 16 | |
| 17 final _ConsoleJs console; | |
| 18 | |
| 19 final _CryptoJs crypto; | |
| 20 | |
| 21 String defaultStatus; | |
| 22 | |
| 23 String defaultstatus; | |
| 24 | |
| 25 final num devicePixelRatio; | |
| 26 | |
| 27 final _DocumentJs document; | |
| 28 | |
| 29 final _EventJs event; | |
| 30 | |
| 31 final _DOMWindowJs frames; | |
| 32 | |
| 33 final _HistoryJs history; | |
| 34 | |
| 35 final int innerHeight; | |
| 36 | |
| 37 final int innerWidth; | |
| 38 | |
| 39 final int length; | |
| 40 | |
| 41 final _StorageJs localStorage; | |
| 42 | |
| 43 _LocationJs location; | |
| 44 | |
| 45 final _BarInfoJs locationbar; | |
| 46 | |
| 47 final _BarInfoJs menubar; | |
| 48 | |
| 49 String name; | |
| 50 | |
| 51 final _NavigatorJs navigator; | |
| 52 | |
| 53 final bool offscreenBuffering; | |
| 54 | |
| 55 final _DOMWindowJs opener; | |
| 56 | |
| 57 final int outerHeight; | |
| 58 | |
| 59 final int outerWidth; | |
| 60 | |
| 61 final int pageXOffset; | |
| 62 | |
| 63 final int pageYOffset; | |
| 64 | |
| 65 final _DOMWindowJs parent; | |
| 66 | |
| 67 final _PerformanceJs performance; | |
| 68 | |
| 69 final _BarInfoJs personalbar; | |
| 70 | |
| 71 final _ScreenJs screen; | |
| 72 | |
| 73 final int screenLeft; | |
| 74 | |
| 75 final int screenTop; | |
| 76 | |
| 77 final int screenX; | |
| 78 | |
| 79 final int screenY; | |
| 80 | |
| 81 final int scrollX; | |
| 82 | |
| 83 final int scrollY; | |
| 84 | |
| 85 final _BarInfoJs scrollbars; | |
| 86 | |
| 87 final _DOMWindowJs self; | |
| 88 | |
| 89 final _StorageJs sessionStorage; | |
| 90 | |
| 91 String status; | |
| 92 | |
| 93 final _BarInfoJs statusbar; | |
| 94 | |
| 95 final _StyleMediaJs styleMedia; | |
| 96 | |
| 97 final _BarInfoJs toolbar; | |
| 98 | |
| 99 final _IDBFactoryJs webkitIndexedDB; | |
| 100 | |
| 101 final _NotificationCenterJs webkitNotifications; | |
| 102 | |
| 103 final _StorageInfoJs webkitStorageInfo; | |
| 104 | |
| 105 final _DOMWindowJs window; | |
| 106 | |
| 107 void addEventListener(String type, EventListener listener, [bool useCapture =
null]) native; | |
| 108 | |
| 109 void alert(String message) native; | |
| 110 | |
| 111 String atob(String string) native; | |
| 112 | |
| 113 void blur() native; | |
| 114 | |
| 115 String btoa(String string) native; | |
| 116 | |
| 117 void captureEvents() native; | |
| 118 | |
| 119 void clearInterval(int handle) native; | |
| 120 | |
| 121 void clearTimeout(int handle) native; | |
| 122 | |
| 123 void close() native; | |
| 124 | |
| 125 bool confirm(String message) native; | |
| 126 | |
| 127 bool dispatchEvent(_EventJs evt) native; | |
| 128 | |
| 129 bool find(String string, bool caseSensitive, bool backwards, bool wrap, bool w
holeWord, bool searchInFrames, bool showDialog) native; | |
| 130 | |
| 131 void focus() native; | |
| 132 | |
| 133 _CSSStyleDeclarationJs getComputedStyle(_ElementJs element, String pseudoEleme
nt) native; | |
| 134 | |
| 135 _CSSRuleListJs getMatchedCSSRules(_ElementJs element, String pseudoElement) na
tive; | |
| 136 | |
| 137 _DOMSelectionJs getSelection() native; | |
| 138 | |
| 139 _MediaQueryListJs matchMedia(String query) native; | |
| 140 | |
| 141 void moveBy(num x, num y) native; | |
| 142 | |
| 143 void moveTo(num x, num y) native; | |
| 144 | |
| 145 _DOMWindowJs open(String url, String name, [String options = null]) native; | |
| 146 | |
| 147 _DatabaseJs openDatabase(String name, String version, String displayName, int
estimatedSize, [DatabaseCallback creationCallback = null]) native; | |
| 148 | |
| 149 void postMessage(Dynamic message, String targetOrigin, [List messagePorts = nu
ll]) native; | |
| 150 | |
| 151 void print() native; | |
| 152 | |
| 153 String prompt(String message, String defaultValue) native; | |
| 154 | |
| 155 void releaseEvents() native; | |
| 156 | |
| 157 void removeEventListener(String type, EventListener listener, [bool useCapture
= null]) native; | |
| 158 | |
| 159 void resizeBy(num x, num y) native; | |
| 160 | |
| 161 void resizeTo(num width, num height) native; | |
| 162 | |
| 163 void scroll(int x, int y) native; | |
| 164 | |
| 165 void scrollBy(int x, int y) native; | |
| 166 | |
| 167 void scrollTo(int x, int y) native; | |
| 168 | |
| 169 int setInterval(TimeoutHandler handler, int timeout) native; | |
| 170 | |
| 171 int setTimeout(TimeoutHandler handler, int timeout) native; | |
| 172 | |
| 173 Object showModalDialog(String url, [Object dialogArgs = null, String featureAr
gs = null]) native; | |
| 174 | |
| 175 void stop() native; | |
| 176 | |
| 177 void webkitCancelAnimationFrame(int id) native; | |
| 178 | |
| 179 void webkitCancelRequestAnimationFrame(int id) native; | |
| 180 | |
| 181 _WebKitPointJs webkitConvertPointFromNodeToPage(_NodeJs node, _WebKitPointJs p
) native; | |
| 182 | |
| 183 _WebKitPointJs webkitConvertPointFromPageToNode(_NodeJs node, _WebKitPointJs p
) native; | |
| 184 | |
| 185 void webkitPostMessage(Dynamic message, String targetOrigin, [List transferLis
t = null]) native; | |
| 186 | |
| 187 int webkitRequestAnimationFrame(RequestAnimationFrameCallback callback, _Eleme
ntJs element) native; | |
| 188 | |
| 189 void webkitRequestFileSystem(int type, int size, FileSystemCallback successCal
lback, [ErrorCallback errorCallback = null]) native; | |
| 190 | |
| 191 void webkitResolveLocalFileSystemURL(String url, [EntryCallback successCallbac
k = null, ErrorCallback errorCallback = null]) native; | |
| 192 | |
| 193 | |
| 194 Window get _top() native "return this.top;"; | |
| 195 | |
| 196 // Override top to return secure wrapper. | |
| 197 Window get top() => _DOMWindowCrossFrameImpl._createSafe(_top); | |
| 198 } | |
| OLD | NEW |