Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(341)

Side by Side Diff: client/html/generated/html/frog/Window.dart

Issue 9537001: Generate dart:html bindings for Dartium as well as Frog. All unittests now pass (or are disabled fo… (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(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 _WindowImpl extends _EventTargetImpl implements Window native "@*DOMWindow " {
6
7 _DocumentImpl get document() native "return this.document.documentElement;";
8
9 void requestLayoutFrame(TimeoutHandler callback) {
10 _addMeasurementFrameCallback(callback);
11 }
12
13
14 static final int PERSISTENT = 1;
15
16 static final int TEMPORARY = 0;
17
18 final _DOMApplicationCacheImpl applicationCache;
19
20 final _NavigatorImpl clientInformation;
21
22 final bool closed;
23
24 final _ConsoleImpl console;
25
26 final _CryptoImpl crypto;
27
28 String defaultStatus;
29
30 String defaultstatus;
31
32 final num devicePixelRatio;
33
34 final _EventImpl event;
35
36 final _ElementImpl frameElement;
37
38 final _WindowImpl frames;
39
40 final _HistoryImpl history;
41
42 final int innerHeight;
43
44 final int innerWidth;
45
46 final int length;
47
48 final _StorageImpl localStorage;
49
50 _LocationImpl location;
51
52 final _BarInfoImpl locationbar;
53
54 final _BarInfoImpl menubar;
55
56 String name;
57
58 final _NavigatorImpl navigator;
59
60 final bool offscreenBuffering;
61
62 final _WindowImpl opener;
63
64 final int outerHeight;
65
66 final int outerWidth;
67
68 final int pageXOffset;
69
70 final int pageYOffset;
71
72 final _WindowImpl parent;
73
74 final _PerformanceImpl performance;
75
76 final _BarInfoImpl personalbar;
77
78 final _ScreenImpl screen;
79
80 final int screenLeft;
81
82 final int screenTop;
83
84 final int screenX;
85
86 final int screenY;
87
88 final int scrollX;
89
90 final int scrollY;
91
92 final _BarInfoImpl scrollbars;
93
94 final _WindowImpl self;
95
96 final _StorageImpl sessionStorage;
97
98 String status;
99
100 final _BarInfoImpl statusbar;
101
102 final _StyleMediaImpl styleMedia;
103
104 final _BarInfoImpl toolbar;
105
106 final _WindowImpl top;
107
108 final _IDBFactoryImpl webkitIndexedDB;
109
110 final _NotificationCenterImpl webkitNotifications;
111
112 final _StorageInfoImpl webkitStorageInfo;
113
114 final _WindowImpl window;
115
116 _WindowEventsImpl get on() =>
117 new _WindowEventsImpl(this);
118
119 void _addEventListener(String type, EventListener listener, [bool useCapture = null]) native "this.addEventListener(type, listener, useCapture);";
120
121 void alert(String message) native;
122
123 String atob(String string) native;
124
125 void blur() native;
126
127 String btoa(String string) native;
128
129 void captureEvents() native;
130
131 void clearInterval(int handle) native;
132
133 void clearTimeout(int handle) native;
134
135 void close() native;
136
137 bool confirm(String message) native;
138
139 bool _dispatchEvent(_EventImpl evt) native "return this.dispatchEvent(evt);";
140
141 bool find(String string, bool caseSensitive, bool backwards, bool wrap, bool w holeWord, bool searchInFrames, bool showDialog) native;
142
143 void focus() native;
144
145 _CSSStyleDeclarationImpl _getComputedStyle(_ElementImpl element, String pseudo Element) native "return this.getComputedStyle(element, pseudoElement);";
146
147 _CSSRuleListImpl getMatchedCSSRules(_ElementImpl element, String pseudoElement ) native;
148
149 _DOMSelectionImpl getSelection() native;
150
151 _MediaQueryListImpl matchMedia(String query) native;
152
153 void moveBy(num x, num y) native;
154
155 void moveTo(num x, num y) native;
156
157 _WindowImpl open(String url, String name, [String options = null]) native;
158
159 _DatabaseImpl openDatabase(String name, String version, String displayName, in t estimatedSize, [DatabaseCallback creationCallback = null]) native;
160
161 void postMessage(Dynamic message, String targetOrigin, [List messagePorts = nu ll]) native;
162
163 void print() native;
164
165 String prompt(String message, String defaultValue) native;
166
167 void releaseEvents() native;
168
169 void _removeEventListener(String type, EventListener listener, [bool useCaptur e = null]) native "this.removeEventListener(type, listener, useCapture);";
170
171 void resizeBy(num x, num y) native;
172
173 void resizeTo(num width, num height) native;
174
175 void scroll(int x, int y) native;
176
177 void scrollBy(int x, int y) native;
178
179 void scrollTo(int x, int y) native;
180
181 int setInterval(TimeoutHandler handler, int timeout) native;
182
183 int setTimeout(TimeoutHandler handler, int timeout) native;
184
185 Object showModalDialog(String url, [Object dialogArgs = null, String featureAr gs = null]) native;
186
187 void stop() native;
188
189 void webkitCancelAnimationFrame(int id) native;
190
191 void webkitCancelRequestAnimationFrame(int id) native;
192
193 _PointImpl webkitConvertPointFromNodeToPage(_NodeImpl node, _PointImpl p) nati ve;
194
195 _PointImpl webkitConvertPointFromPageToNode(_NodeImpl node, _PointImpl p) nati ve;
196
197 void webkitPostMessage(Dynamic message, String targetOrigin, [List transferLis t = null]) native;
198
199 int webkitRequestAnimationFrame(RequestAnimationFrameCallback callback, _Eleme ntImpl element) native;
200
201 void webkitRequestFileSystem(int type, int size, FileSystemCallback successCal lback, [ErrorCallback errorCallback = null]) native;
202
203 void webkitResolveLocalFileSystemURL(String url, [EntryCallback successCallbac k = null, ErrorCallback errorCallback = null]) native;
204
205 }
206
207 class _WindowEventsImpl extends _EventsImpl implements WindowEvents {
208 _WindowEventsImpl(_ptr) : super(_ptr);
209
210 EventListenerList get abort() => _get('abort');
211
212 EventListenerList get animationEnd() => _get('webkitAnimationEnd');
213
214 EventListenerList get animationIteration() => _get('webkitAnimationIteration') ;
215
216 EventListenerList get animationStart() => _get('webkitAnimationStart');
217
218 EventListenerList get beforeUnload() => _get('beforeunload');
219
220 EventListenerList get blur() => _get('blur');
221
222 EventListenerList get canPlay() => _get('canplay');
223
224 EventListenerList get canPlayThrough() => _get('canplaythrough');
225
226 EventListenerList get change() => _get('change');
227
228 EventListenerList get click() => _get('click');
229
230 EventListenerList get contentLoaded() => _get('DOMContentLoaded');
231
232 EventListenerList get contextMenu() => _get('contextmenu');
233
234 EventListenerList get deviceMotion() => _get('devicemotion');
235
236 EventListenerList get deviceOrientation() => _get('deviceorientation');
237
238 EventListenerList get doubleClick() => _get('dblclick');
239
240 EventListenerList get drag() => _get('drag');
241
242 EventListenerList get dragEnd() => _get('dragend');
243
244 EventListenerList get dragEnter() => _get('dragenter');
245
246 EventListenerList get dragLeave() => _get('dragleave');
247
248 EventListenerList get dragOver() => _get('dragover');
249
250 EventListenerList get dragStart() => _get('dragstart');
251
252 EventListenerList get drop() => _get('drop');
253
254 EventListenerList get durationChange() => _get('durationchange');
255
256 EventListenerList get emptied() => _get('emptied');
257
258 EventListenerList get ended() => _get('ended');
259
260 EventListenerList get error() => _get('error');
261
262 EventListenerList get focus() => _get('focus');
263
264 EventListenerList get hashChange() => _get('hashchange');
265
266 EventListenerList get input() => _get('input');
267
268 EventListenerList get invalid() => _get('invalid');
269
270 EventListenerList get keyDown() => _get('keydown');
271
272 EventListenerList get keyPress() => _get('keypress');
273
274 EventListenerList get keyUp() => _get('keyup');
275
276 EventListenerList get load() => _get('load');
277
278 EventListenerList get loadStart() => _get('loadstart');
279
280 EventListenerList get loadedData() => _get('loadeddata');
281
282 EventListenerList get loadedMetadata() => _get('loadedmetadata');
283
284 EventListenerList get message() => _get('message');
285
286 EventListenerList get mouseDown() => _get('mousedown');
287
288 EventListenerList get mouseMove() => _get('mousemove');
289
290 EventListenerList get mouseOut() => _get('mouseout');
291
292 EventListenerList get mouseOver() => _get('mouseover');
293
294 EventListenerList get mouseUp() => _get('mouseup');
295
296 EventListenerList get mouseWheel() => _get('mousewheel');
297
298 EventListenerList get offline() => _get('offline');
299
300 EventListenerList get online() => _get('online');
301
302 EventListenerList get pageHide() => _get('pagehide');
303
304 EventListenerList get pageShow() => _get('pageshow');
305
306 EventListenerList get pause() => _get('pause');
307
308 EventListenerList get play() => _get('play');
309
310 EventListenerList get playing() => _get('playing');
311
312 EventListenerList get popState() => _get('popstate');
313
314 EventListenerList get progress() => _get('progress');
315
316 EventListenerList get rateChange() => _get('ratechange');
317
318 EventListenerList get reset() => _get('reset');
319
320 EventListenerList get resize() => _get('resize');
321
322 EventListenerList get scroll() => _get('scroll');
323
324 EventListenerList get search() => _get('search');
325
326 EventListenerList get seeked() => _get('seeked');
327
328 EventListenerList get seeking() => _get('seeking');
329
330 EventListenerList get select() => _get('select');
331
332 EventListenerList get stalled() => _get('stalled');
333
334 EventListenerList get storage() => _get('storage');
335
336 EventListenerList get submit() => _get('submit');
337
338 EventListenerList get suspend() => _get('suspend');
339
340 EventListenerList get timeUpdate() => _get('timeupdate');
341
342 EventListenerList get touchCancel() => _get('touchcancel');
343
344 EventListenerList get touchEnd() => _get('touchend');
345
346 EventListenerList get touchMove() => _get('touchmove');
347
348 EventListenerList get touchStart() => _get('touchstart');
349
350 EventListenerList get transitionEnd() => _get('webkitTransitionEnd');
351
352 EventListenerList get unload() => _get('unload');
353
354 EventListenerList get volumeChange() => _get('volumechange');
355
356 EventListenerList get waiting() => _get('waiting');
357 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698