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

Side by Side Diff: client/html/src/WindowWrappingImplementation.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) 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
3 // BSD-style license that can be found in the LICENSE file.
4
5 // TODO(jacobr): define a base class containing the overlap between
6 // this class and ElementEvents.
7 class WindowEventsImplementation extends EventsImplementation
8 implements WindowEvents {
9 WindowEventsImplementation._wrap(_ptr) : super._wrap(_ptr);
10
11 EventListenerList get abort() => _get('abort');
12 EventListenerList get beforeUnload() => _get('beforeunload');
13 EventListenerList get blur() => _get('blur');
14 EventListenerList get canPlay() => _get('canplay');
15 EventListenerList get canPlayThrough() => _get('canplaythrough');
16 EventListenerList get change() => _get('change');
17 EventListenerList get click() => _get('click');
18 EventListenerList get contextMenu() => _get('contextmenu');
19 EventListenerList get dblClick() => _get('dblclick');
20 EventListenerList get deviceMotion() => _get('devicemotion');
21 EventListenerList get deviceOrientation() => _get('deviceorientation');
22 EventListenerList get drag() => _get('drag');
23 EventListenerList get dragEnd() => _get('dragend');
24 EventListenerList get dragEnter() => _get('dragenter');
25 EventListenerList get dragLeave() => _get('dragleave');
26 EventListenerList get dragOver() => _get('dragover');
27 EventListenerList get dragStart() => _get('dragstart');
28 EventListenerList get drop() => _get('drop');
29 EventListenerList get durationChange() => _get('durationchange');
30 EventListenerList get emptied() => _get('emptied');
31 EventListenerList get ended() => _get('ended');
32 EventListenerList get error() => _get('error');
33 EventListenerList get focus() => _get('focus');
34 EventListenerList get hashChange() => _get('hashchange');
35 EventListenerList get input() => _get('input');
36 EventListenerList get invalid() => _get('invalid');
37 EventListenerList get keyDown() => _get('keydown');
38 EventListenerList get keyPress() => _get('keypress');
39 EventListenerList get keyUp() => _get('keyup');
40 EventListenerList get load() => _get('load');
41 EventListenerList get loadedData() => _get('loadeddata');
42 EventListenerList get loadedMetaData() => _get('loadedmetadata');
43 EventListenerList get loadStart() => _get('loadstart');
44 EventListenerList get message() => _get('message');
45 EventListenerList get mouseDown() => _get('mousedown');
46 EventListenerList get mouseMove() => _get('mousemove');
47 EventListenerList get mouseOut() => _get('mouseout');
48 EventListenerList get mouseOver() => _get('mouseover');
49 EventListenerList get mouseUp() => _get('mouseup');
50 EventListenerList get mouseWheel() => _get('mousewheel');
51 EventListenerList get offline() => _get('offline');
52 EventListenerList get online() => _get('online');
53 EventListenerList get pageHide() => _get('pagehide');
54 EventListenerList get pageShow() => _get('pageshow');
55 EventListenerList get pause() => _get('pause');
56 EventListenerList get play() => _get('play');
57 EventListenerList get playing() => _get('playing');
58 EventListenerList get popState() => _get('popstate');
59 EventListenerList get progress() => _get('progress');
60 EventListenerList get rateChange() => _get('ratechange');
61 EventListenerList get reset() => _get('reset');
62 EventListenerList get resize() => _get('resize');
63 EventListenerList get scroll() => _get('scroll');
64 EventListenerList get search() => _get('search');
65 EventListenerList get seeked() => _get('seeked');
66 EventListenerList get seeking() => _get('seeking');
67 EventListenerList get select() => _get('select');
68 EventListenerList get stalled() => _get('stalled');
69 EventListenerList get storage() => _get('storage');
70 EventListenerList get submit() => _get('submit');
71 EventListenerList get suspend() => _get('suspend');
72 EventListenerList get timeUpdate() => _get('timeupdate');
73 EventListenerList get touchCancel() => _get('touchcancel');
74 EventListenerList get touchEnd() => _get('touchend');
75 EventListenerList get touchMove() => _get('touchmove');
76 EventListenerList get touchStart() => _get('touchstart');
77 EventListenerList get unLoad() => _get('unload');
78 EventListenerList get volumeChange() => _get('volumechange');
79 EventListenerList get waiting() => _get('waiting');
80 EventListenerList get animationEnd() => _get('webkitAnimationEnd');
81 EventListenerList get animationIteration() => _get('webkitAnimationIteration') ;
82 EventListenerList get animationStart() => _get('webkitAnimationStart');
83 EventListenerList get transitionEnd() => _get('webkitTransitionEnd');
84 EventListenerList get contentLoaded() => _get('DOMContentLoaded');
85 }
86
87 /** @domName Window */
88 class WindowWrappingImplementation extends EventTargetWrappingImplementation imp lements Window {
89 WindowWrappingImplementation._wrap(ptr) : super._wrap(ptr);
90
91 DOMApplicationCache get applicationCache() => LevelDom.wrapDOMApplicationCache (_ptr.applicationCache);
92
93 Navigator get clientInformation() => LevelDom.wrapNavigator(_ptr.clientInforma tion);
94
95 void set clientInformation(Navigator value) { _ptr.clientInformation = LevelDo m.unwrap(value); }
96
97 bool get closed() => _ptr.closed;
98
99 Console get console() => LevelDom.wrapConsole(_ptr.console);
100
101 void set console(Console value) { _ptr.console = LevelDom.unwrap(value); }
102
103 Crypto get crypto() => LevelDom.wrapCrypto(_ptr.crypto);
104
105 String get defaultStatus() => _ptr.defaultStatus;
106
107 void set defaultStatus(String value) { _ptr.defaultStatus = value; }
108
109 num get devicePixelRatio() => _ptr.devicePixelRatio;
110
111 void set devicePixelRatio(num value) { _ptr.devicePixelRatio = value; }
112
113 Document get document() => LevelDom.wrapDocument(_ptr.document);
114
115 Event get event() => LevelDom.wrapEvent(_ptr.event);
116
117 void set event(Event value) { _ptr.event = LevelDom.unwrap(value); }
118
119 Element get frameElement() => LevelDom.wrapElement(_ptr.frameElement);
120
121 Window get frames() => LevelDom.wrapWindow(_ptr.frames);
122
123 void set frames(Window value) { _ptr.frames = LevelDom.unwrap(value); }
124
125 History get history() => LevelDom.wrapHistory(_ptr.history);
126
127 void set history(History value) { _ptr.history = LevelDom.unwrap(value); }
128
129 int get innerHeight() => _ptr.innerHeight;
130
131 void set innerHeight(int value) { _ptr.innerHeight = value; }
132
133 int get innerWidth() => _ptr.innerWidth;
134
135 void set innerWidth(int value) { _ptr.innerWidth = value; }
136
137 int get length() => _ptr.length;
138
139 void set length(int value) { _ptr.length = value; }
140
141 Storage get localStorage() => LevelDom.wrapStorage(_ptr.localStorage);
142
143 Location get location() => LevelDom.wrapLocation(_ptr.location);
144
145 void set location(Location value) { _ptr.location = LevelDom.unwrap(value); }
146
147 BarInfo get locationbar() => LevelDom.wrapBarInfo(_ptr.locationbar);
148
149 void set locationbar(BarInfo value) { _ptr.locationbar = LevelDom.unwrap(value ); }
150
151 BarInfo get menubar() => LevelDom.wrapBarInfo(_ptr.menubar);
152
153 void set menubar(BarInfo value) { _ptr.menubar = LevelDom.unwrap(value); }
154
155 String get name() => _ptr.name;
156
157 void set name(String value) { _ptr.name = value; }
158
159 Navigator get navigator() => LevelDom.wrapNavigator(_ptr.navigator);
160
161 void set navigator(Navigator value) { _ptr.navigator = LevelDom.unwrap(value); }
162
163 bool get offscreenBuffering() => _ptr.offscreenBuffering;
164
165 void set offscreenBuffering(bool value) { _ptr.offscreenBuffering = value; }
166
167 EventListener get onabort() => LevelDom.wrapEventListener(_ptr.onabort);
168
169 void set onabort(EventListener value) { _ptr.onabort = LevelDom.unwrap(value); }
170
171 EventListener get onbeforeunload() => LevelDom.wrapEventListener(_ptr.onbefore unload);
172
173 void set onbeforeunload(EventListener value) { _ptr.onbeforeunload = LevelDom. unwrap(value); }
174
175 EventListener get onblur() => LevelDom.wrapEventListener(_ptr.onblur);
176
177 void set onblur(EventListener value) { _ptr.onblur = LevelDom.unwrap(value); }
178
179 EventListener get oncanplay() => LevelDom.wrapEventListener(_ptr.oncanplay);
180
181 void set oncanplay(EventListener value) { _ptr.oncanplay = LevelDom.unwrap(val ue); }
182
183 EventListener get oncanplaythrough() => LevelDom.wrapEventListener(_ptr.oncanp laythrough);
184
185 void set oncanplaythrough(EventListener value) { _ptr.oncanplaythrough = Level Dom.unwrap(value); }
186
187 EventListener get onchange() => LevelDom.wrapEventListener(_ptr.onchange);
188
189 void set onchange(EventListener value) { _ptr.onchange = LevelDom.unwrap(value ); }
190
191 EventListener get onclick() => LevelDom.wrapEventListener(_ptr.onclick);
192
193 void set onclick(EventListener value) { _ptr.onclick = LevelDom.unwrap(value); }
194
195 EventListener get oncontextmenu() => LevelDom.wrapEventListener(_ptr.oncontext menu);
196
197 void set oncontextmenu(EventListener value) { _ptr.oncontextmenu = LevelDom.un wrap(value); }
198
199 EventListener get ondblclick() => LevelDom.wrapEventListener(_ptr.ondblclick);
200
201 void set ondblclick(EventListener value) { _ptr.ondblclick = LevelDom.unwrap(v alue); }
202
203 EventListener get ondevicemotion() => LevelDom.wrapEventListener(_ptr.ondevice motion);
204
205 void set ondevicemotion(EventListener value) { _ptr.ondevicemotion = LevelDom. unwrap(value); }
206
207 EventListener get ondeviceorientation() => LevelDom.wrapEventListener(_ptr.ond eviceorientation);
208
209 void set ondeviceorientation(EventListener value) { _ptr.ondeviceorientation = LevelDom.unwrap(value); }
210
211 EventListener get ondrag() => LevelDom.wrapEventListener(_ptr.ondrag);
212
213 void set ondrag(EventListener value) { _ptr.ondrag = LevelDom.unwrap(value); }
214
215 EventListener get ondragend() => LevelDom.wrapEventListener(_ptr.ondragend);
216
217 void set ondragend(EventListener value) { _ptr.ondragend = LevelDom.unwrap(val ue); }
218
219 EventListener get ondragenter() => LevelDom.wrapEventListener(_ptr.ondragenter );
220
221 void set ondragenter(EventListener value) { _ptr.ondragenter = LevelDom.unwrap (value); }
222
223 EventListener get ondragleave() => LevelDom.wrapEventListener(_ptr.ondragleave );
224
225 void set ondragleave(EventListener value) { _ptr.ondragleave = LevelDom.unwrap (value); }
226
227 EventListener get ondragover() => LevelDom.wrapEventListener(_ptr.ondragover);
228
229 void set ondragover(EventListener value) { _ptr.ondragover = LevelDom.unwrap(v alue); }
230
231 EventListener get ondragstart() => LevelDom.wrapEventListener(_ptr.ondragstart );
232
233 void set ondragstart(EventListener value) { _ptr.ondragstart = LevelDom.unwrap (value); }
234
235 EventListener get ondrop() => LevelDom.wrapEventListener(_ptr.ondrop);
236
237 void set ondrop(EventListener value) { _ptr.ondrop = LevelDom.unwrap(value); }
238
239 EventListener get ondurationchange() => LevelDom.wrapEventListener(_ptr.ondura tionchange);
240
241 void set ondurationchange(EventListener value) { _ptr.ondurationchange = Level Dom.unwrap(value); }
242
243 EventListener get onemptied() => LevelDom.wrapEventListener(_ptr.onemptied);
244
245 void set onemptied(EventListener value) { _ptr.onemptied = LevelDom.unwrap(val ue); }
246
247 EventListener get onended() => LevelDom.wrapEventListener(_ptr.onended);
248
249 void set onended(EventListener value) { _ptr.onended = LevelDom.unwrap(value); }
250
251 EventListener get onerror() => LevelDom.wrapEventListener(_ptr.onerror);
252
253 void set onerror(EventListener value) { _ptr.onerror = LevelDom.unwrap(value); }
254
255 EventListener get onfocus() => LevelDom.wrapEventListener(_ptr.onfocus);
256
257 void set onfocus(EventListener value) { _ptr.onfocus = LevelDom.unwrap(value); }
258
259 EventListener get onhashchange() => LevelDom.wrapEventListener(_ptr.onhashchan ge);
260
261 void set onhashchange(EventListener value) { _ptr.onhashchange = LevelDom.unwr ap(value); }
262
263 EventListener get oninput() => LevelDom.wrapEventListener(_ptr.oninput);
264
265 void set oninput(EventListener value) { _ptr.oninput = LevelDom.unwrap(value); }
266
267 EventListener get oninvalid() => LevelDom.wrapEventListener(_ptr.oninvalid);
268
269 void set oninvalid(EventListener value) { _ptr.oninvalid = LevelDom.unwrap(val ue); }
270
271 EventListener get onkeydown() => LevelDom.wrapEventListener(_ptr.onkeydown);
272
273 void set onkeydown(EventListener value) { _ptr.onkeydown = LevelDom.unwrap(val ue); }
274
275 EventListener get onkeypress() => LevelDom.wrapEventListener(_ptr.onkeypress);
276
277 void set onkeypress(EventListener value) { _ptr.onkeypress = LevelDom.unwrap(v alue); }
278
279 EventListener get onkeyup() => LevelDom.wrapEventListener(_ptr.onkeyup);
280
281 void set onkeyup(EventListener value) { _ptr.onkeyup = LevelDom.unwrap(value); }
282
283 EventListener get onload() => LevelDom.wrapEventListener(_ptr.onload);
284
285 void set onload(EventListener value) { _ptr.onload = LevelDom.unwrap(value); }
286
287 EventListener get onloadeddata() => LevelDom.wrapEventListener(_ptr.onloadedda ta);
288
289 void set onloadeddata(EventListener value) { _ptr.onloadeddata = LevelDom.unwr ap(value); }
290
291 EventListener get onloadedmetadata() => LevelDom.wrapEventListener(_ptr.onload edmetadata);
292
293 void set onloadedmetadata(EventListener value) { _ptr.onloadedmetadata = Level Dom.unwrap(value); }
294
295 EventListener get onloadstart() => LevelDom.wrapEventListener(_ptr.onloadstart );
296
297 void set onloadstart(EventListener value) { _ptr.onloadstart = LevelDom.unwrap (value); }
298
299 EventListener get onmessage() => LevelDom.wrapEventListener(_ptr.onmessage);
300
301 void set onmessage(EventListener value) { _ptr.onmessage = LevelDom.unwrap(val ue); }
302
303 EventListener get onmousedown() => LevelDom.wrapEventListener(_ptr.onmousedown );
304
305 void set onmousedown(EventListener value) { _ptr.onmousedown = LevelDom.unwrap (value); }
306
307 EventListener get onmousemove() => LevelDom.wrapEventListener(_ptr.onmousemove );
308
309 void set onmousemove(EventListener value) { _ptr.onmousemove = LevelDom.unwrap (value); }
310
311 EventListener get onmouseout() => LevelDom.wrapEventListener(_ptr.onmouseout);
312
313 void set onmouseout(EventListener value) { _ptr.onmouseout = LevelDom.unwrap(v alue); }
314
315 EventListener get onmouseover() => LevelDom.wrapEventListener(_ptr.onmouseover );
316
317 void set onmouseover(EventListener value) { _ptr.onmouseover = LevelDom.unwrap (value); }
318
319 EventListener get onmouseup() => LevelDom.wrapEventListener(_ptr.onmouseup);
320
321 void set onmouseup(EventListener value) { _ptr.onmouseup = LevelDom.unwrap(val ue); }
322
323 EventListener get onmousewheel() => LevelDom.wrapEventListener(_ptr.onmousewhe el);
324
325 void set onmousewheel(EventListener value) { _ptr.onmousewheel = LevelDom.unwr ap(value); }
326
327 EventListener get onoffline() => LevelDom.wrapEventListener(_ptr.onoffline);
328
329 void set onoffline(EventListener value) { _ptr.onoffline = LevelDom.unwrap(val ue); }
330
331 EventListener get ononline() => LevelDom.wrapEventListener(_ptr.ononline);
332
333 void set ononline(EventListener value) { _ptr.ononline = LevelDom.unwrap(value ); }
334
335 EventListener get onpagehide() => LevelDom.wrapEventListener(_ptr.onpagehide);
336
337 void set onpagehide(EventListener value) { _ptr.onpagehide = LevelDom.unwrap(v alue); }
338
339 EventListener get onpageshow() => LevelDom.wrapEventListener(_ptr.onpageshow);
340
341 void set onpageshow(EventListener value) { _ptr.onpageshow = LevelDom.unwrap(v alue); }
342
343 EventListener get onpause() => LevelDom.wrapEventListener(_ptr.onpause);
344
345 void set onpause(EventListener value) { _ptr.onpause = LevelDom.unwrap(value); }
346
347 EventListener get onplay() => LevelDom.wrapEventListener(_ptr.onplay);
348
349 void set onplay(EventListener value) { _ptr.onplay = LevelDom.unwrap(value); }
350
351 EventListener get onplaying() => LevelDom.wrapEventListener(_ptr.onplaying);
352
353 void set onplaying(EventListener value) { _ptr.onplaying = LevelDom.unwrap(val ue); }
354
355 EventListener get onpopstate() => LevelDom.wrapEventListener(_ptr.onpopstate);
356
357 void set onpopstate(EventListener value) { _ptr.onpopstate = LevelDom.unwrap(v alue); }
358
359 EventListener get onprogress() => LevelDom.wrapEventListener(_ptr.onprogress);
360
361 void set onprogress(EventListener value) { _ptr.onprogress = LevelDom.unwrap(v alue); }
362
363 EventListener get onratechange() => LevelDom.wrapEventListener(_ptr.onratechan ge);
364
365 void set onratechange(EventListener value) { _ptr.onratechange = LevelDom.unwr ap(value); }
366
367 EventListener get onreset() => LevelDom.wrapEventListener(_ptr.onreset);
368
369 void set onreset(EventListener value) { _ptr.onreset = LevelDom.unwrap(value); }
370
371 EventListener get onresize() => LevelDom.wrapEventListener(_ptr.onresize);
372
373 void set onresize(EventListener value) { _ptr.onresize = LevelDom.unwrap(value ); }
374
375 EventListener get onscroll() => LevelDom.wrapEventListener(_ptr.onscroll);
376
377 void set onscroll(EventListener value) { _ptr.onscroll = LevelDom.unwrap(value ); }
378
379 EventListener get onsearch() => LevelDom.wrapEventListener(_ptr.onsearch);
380
381 void set onsearch(EventListener value) { _ptr.onsearch = LevelDom.unwrap(value ); }
382
383 EventListener get onseeked() => LevelDom.wrapEventListener(_ptr.onseeked);
384
385 void set onseeked(EventListener value) { _ptr.onseeked = LevelDom.unwrap(value ); }
386
387 EventListener get onseeking() => LevelDom.wrapEventListener(_ptr.onseeking);
388
389 void set onseeking(EventListener value) { _ptr.onseeking = LevelDom.unwrap(val ue); }
390
391 EventListener get onselect() => LevelDom.wrapEventListener(_ptr.onselect);
392
393 void set onselect(EventListener value) { _ptr.onselect = LevelDom.unwrap(value ); }
394
395 EventListener get onstalled() => LevelDom.wrapEventListener(_ptr.onstalled);
396
397 void set onstalled(EventListener value) { _ptr.onstalled = LevelDom.unwrap(val ue); }
398
399 EventListener get onstorage() => LevelDom.wrapEventListener(_ptr.onstorage);
400
401 void set onstorage(EventListener value) { _ptr.onstorage = LevelDom.unwrap(val ue); }
402
403 EventListener get onsubmit() => LevelDom.wrapEventListener(_ptr.onsubmit);
404
405 void set onsubmit(EventListener value) { _ptr.onsubmit = LevelDom.unwrap(value ); }
406
407 EventListener get onsuspend() => LevelDom.wrapEventListener(_ptr.onsuspend);
408
409 void set onsuspend(EventListener value) { _ptr.onsuspend = LevelDom.unwrap(val ue); }
410
411 EventListener get ontimeupdate() => LevelDom.wrapEventListener(_ptr.ontimeupda te);
412
413 void set ontimeupdate(EventListener value) { _ptr.ontimeupdate = LevelDom.unwr ap(value); }
414
415 EventListener get ontouchcancel() => LevelDom.wrapEventListener(_ptr.ontouchca ncel);
416
417 void set ontouchcancel(EventListener value) { _ptr.ontouchcancel = LevelDom.un wrap(value); }
418
419 EventListener get ontouchend() => LevelDom.wrapEventListener(_ptr.ontouchend);
420
421 void set ontouchend(EventListener value) { _ptr.ontouchend = LevelDom.unwrap(v alue); }
422
423 EventListener get ontouchmove() => LevelDom.wrapEventListener(_ptr.ontouchmove );
424
425 void set ontouchmove(EventListener value) { _ptr.ontouchmove = LevelDom.unwrap (value); }
426
427 EventListener get ontouchstart() => LevelDom.wrapEventListener(_ptr.ontouchsta rt);
428
429 void set ontouchstart(EventListener value) { _ptr.ontouchstart = LevelDom.unwr ap(value); }
430
431 EventListener get onunload() => LevelDom.wrapEventListener(_ptr.onunload);
432
433 void set onunload(EventListener value) { _ptr.onunload = LevelDom.unwrap(value ); }
434
435 EventListener get onvolumechange() => LevelDom.wrapEventListener(_ptr.onvolume change);
436
437 void set onvolumechange(EventListener value) { _ptr.onvolumechange = LevelDom. unwrap(value); }
438
439 EventListener get onwaiting() => LevelDom.wrapEventListener(_ptr.onwaiting);
440
441 void set onwaiting(EventListener value) { _ptr.onwaiting = LevelDom.unwrap(val ue); }
442
443 EventListener get onwebkitanimationend() => LevelDom.wrapEventListener(_ptr.on webkitanimationend);
444
445 void set onwebkitanimationend(EventListener value) { _ptr.onwebkitanimationend = LevelDom.unwrap(value); }
446
447 EventListener get onwebkitanimationiteration() => LevelDom.wrapEventListener(_ ptr.onwebkitanimationiteration);
448
449 void set onwebkitanimationiteration(EventListener value) { _ptr.onwebkitanimat ioniteration = LevelDom.unwrap(value); }
450
451 EventListener get onwebkitanimationstart() => LevelDom.wrapEventListener(_ptr. onwebkitanimationstart);
452
453 void set onwebkitanimationstart(EventListener value) { _ptr.onwebkitanimations tart = LevelDom.unwrap(value); }
454
455 EventListener get onwebkittransitionend() => LevelDom.wrapEventListener(_ptr.o nwebkittransitionend);
456
457 void set onwebkittransitionend(EventListener value) { _ptr.onwebkittransitione nd = LevelDom.unwrap(value); }
458
459 Window get opener() => LevelDom.wrapWindow(_ptr.opener);
460
461 void set opener(Window value) { _ptr.opener = LevelDom.unwrap(value); }
462
463 int get outerHeight() => _ptr.outerHeight;
464
465 void set outerHeight(int value) { _ptr.outerHeight = value; }
466
467 int get outerWidth() => _ptr.outerWidth;
468
469 void set outerWidth(int value) { _ptr.outerWidth = value; }
470
471 int get pageXOffset() => _ptr.pageXOffset;
472
473 int get pageYOffset() => _ptr.pageYOffset;
474
475 Window get parent() => LevelDom.wrapWindow(_ptr.parent);
476
477 void set parent(Window value) { _ptr.parent = LevelDom.unwrap(value); }
478
479 BarInfo get personalbar() => LevelDom.wrapBarInfo(_ptr.personalbar);
480
481 void set personalbar(BarInfo value) { _ptr.personalbar = LevelDom.unwrap(value ); }
482
483 Screen get screen() => LevelDom.wrapScreen(_ptr.screen);
484
485 void set screen(Screen value) { _ptr.screen = LevelDom.unwrap(value); }
486
487 int get screenLeft() => _ptr.screenLeft;
488
489 void set screenLeft(int value) { _ptr.screenLeft = value; }
490
491 int get screenTop() => _ptr.screenTop;
492
493 void set screenTop(int value) { _ptr.screenTop = value; }
494
495 int get screenX() => _ptr.screenX;
496
497 void set screenX(int value) { _ptr.screenX = value; }
498
499 int get screenY() => _ptr.screenY;
500
501 void set screenY(int value) { _ptr.screenY = value; }
502
503 int get scrollX() => _ptr.scrollX;
504
505 void set scrollX(int value) { _ptr.scrollX = value; }
506
507 int get scrollY() => _ptr.scrollY;
508
509 void set scrollY(int value) { _ptr.scrollY = value; }
510
511 BarInfo get scrollbars() => LevelDom.wrapBarInfo(_ptr.scrollbars);
512
513 void set scrollbars(BarInfo value) { _ptr.scrollbars = LevelDom.unwrap(value); }
514
515 Window get self() => LevelDom.wrapWindow(_ptr.self);
516
517 void set self(Window value) { _ptr.self = LevelDom.unwrap(value); }
518
519 Storage get sessionStorage() => LevelDom.wrapStorage(_ptr.sessionStorage);
520
521 String get status() => _ptr.status;
522
523 void set status(String value) { _ptr.status = value; }
524
525 BarInfo get statusbar() => LevelDom.wrapBarInfo(_ptr.statusbar);
526
527 void set statusbar(BarInfo value) { _ptr.statusbar = LevelDom.unwrap(value); }
528
529 StyleMedia get styleMedia() => LevelDom.wrapStyleMedia(_ptr.styleMedia);
530
531 BarInfo get toolbar() => LevelDom.wrapBarInfo(_ptr.toolbar);
532
533 void set toolbar(BarInfo value) { _ptr.toolbar = LevelDom.unwrap(value); }
534
535 Window get top() => LevelDom.wrapWindow(_ptr.top);
536
537 void set top(Window value) { _ptr.top = LevelDom.unwrap(value); }
538
539 NotificationCenter get webkitNotifications() => LevelDom.wrapNotificationCente r(_ptr.webkitNotifications);
540
541 void alert([String message = null]) {
542 if (message === null) {
543 _ptr.alert();
544 } else {
545 _ptr.alert(message);
546 }
547 }
548
549 String atob([String string = null]) {
550 if (string === null) {
551 return _ptr.atob();
552 } else {
553 return _ptr.atob(string);
554 }
555 }
556
557 void blur() {
558 _ptr.blur();
559 }
560
561 String btoa([String string = null]) {
562 if (string === null) {
563 return _ptr.btoa();
564 } else {
565 return _ptr.btoa(string);
566 }
567 }
568
569 void captureEvents() {
570 _ptr.captureEvents();
571 }
572
573 void clearInterval([int handle = null]) {
574 if (handle === null) {
575 _ptr.clearInterval();
576 } else {
577 _ptr.clearInterval(handle);
578 }
579 }
580
581 void clearTimeout([int handle = null]) {
582 if (handle === null) {
583 _ptr.clearTimeout();
584 } else {
585 _ptr.clearTimeout(handle);
586 }
587 }
588
589 void close() {
590 _ptr.close();
591 }
592
593 bool confirm([String message = null]) {
594 if (message === null) {
595 return _ptr.confirm();
596 } else {
597 return _ptr.confirm(message);
598 }
599 }
600
601 FileReader createFileReader() =>
602 LevelDom.wrapFileReader(_ptr.createFileReader());
603
604 CSSMatrix createCSSMatrix([String cssValue = null]) {
605 if (cssValue === null) {
606 return LevelDom.wrapCSSMatrix(_ptr.createWebKitCSSMatrix());
607 } else {
608 return LevelDom.wrapCSSMatrix(_ptr.createWebKitCSSMatrix(cssValue));
609 }
610 }
611
612 bool find([String string = null, bool caseSensitive = null, bool backwards = n ull, bool wrap = null, bool wholeWord = null, bool searchInFrames = null, bool s howDialog = null]) {
613 if (string === null) {
614 if (caseSensitive === null) {
615 if (backwards === null) {
616 if (wrap === null) {
617 if (wholeWord === null) {
618 if (searchInFrames === null) {
619 if (showDialog === null) {
620 return _ptr.find();
621 }
622 }
623 }
624 }
625 }
626 }
627 } else {
628 if (caseSensitive === null) {
629 if (backwards === null) {
630 if (wrap === null) {
631 if (wholeWord === null) {
632 if (searchInFrames === null) {
633 if (showDialog === null) {
634 return _ptr.find(string);
635 }
636 }
637 }
638 }
639 }
640 } else {
641 if (backwards === null) {
642 if (wrap === null) {
643 if (wholeWord === null) {
644 if (searchInFrames === null) {
645 if (showDialog === null) {
646 return _ptr.find(string, caseSensitive);
647 }
648 }
649 }
650 }
651 } else {
652 if (wrap === null) {
653 if (wholeWord === null) {
654 if (searchInFrames === null) {
655 if (showDialog === null) {
656 return _ptr.find(string, caseSensitive, backwards);
657 }
658 }
659 }
660 } else {
661 if (wholeWord === null) {
662 if (searchInFrames === null) {
663 if (showDialog === null) {
664 return _ptr.find(string, caseSensitive, backwards, wrap);
665 }
666 }
667 } else {
668 if (searchInFrames === null) {
669 if (showDialog === null) {
670 return _ptr.find(string, caseSensitive, backwards, wrap, whole Word);
671 }
672 } else {
673 if (showDialog === null) {
674 return _ptr.find(string, caseSensitive, backwards, wrap, whole Word, searchInFrames);
675 } else {
676 return _ptr.find(string, caseSensitive, backwards, wrap, whole Word, searchInFrames, showDialog);
677 }
678 }
679 }
680 }
681 }
682 }
683 }
684 throw "Incorrect number or type of arguments";
685 }
686
687 void focus() {
688 _ptr.focus();
689 }
690
691 DOMSelection getSelection() =>
692 LevelDom.wrapDOMSelection(_ptr.getSelection());
693
694 MediaQueryList matchMedia(String query) {
695 return LevelDom.wrapMediaQueryList(_ptr.matchMedia(query));
696 }
697
698 void moveBy(num x, num y) {
699 _ptr.moveBy(x, y);
700 }
701
702 void moveTo(num x, num y) {
703 _ptr.moveTo(x, y);
704 }
705
706 Window open(String url, String target, [String features = null]) {
707 if (features === null) {
708 return LevelDom.wrapWindow(_ptr.open(url, target));
709 } else {
710 return LevelDom.wrapWindow(_ptr.open(url, target, features));
711 }
712 }
713
714 // TODO(jacobr): cleanup.
715 void postMessage(String message, [var messagePort = null, var targetOrigin = n ull]) {
716 if (targetOrigin === null) {
717 if (messagePort === null) {
718 _ptr.postMessage(message);
719 return;
720 } else {
721 // messagePort is really the targetOrigin string.
722 _ptr.postMessage(message, messagePort);
723 return;
724 }
725 } else {
726 _ptr.postMessage(message, LevelDom.unwrap(messagePort), targetOrigin);
727 return;
728 }
729 throw "Incorrect number or type of arguments";
730 }
731
732 void print() {
733 _ptr.print();
734 }
735
736 String prompt([String message = null, String defaultValue = null]) {
737 if (message === null) {
738 if (defaultValue === null) {
739 return _ptr.prompt();
740 }
741 } else {
742 if (defaultValue === null) {
743 return _ptr.prompt(message);
744 } else {
745 return _ptr.prompt(message, defaultValue);
746 }
747 }
748 throw "Incorrect number or type of arguments";
749 }
750
751 void releaseEvents() {
752 _ptr.releaseEvents();
753 }
754
755 void resizeBy(num x, num y) {
756 _ptr.resizeBy(x, y);
757 }
758
759 void resizeTo(num width, num height) {
760 _ptr.resizeTo(width, height);
761 }
762
763 void scroll(int x, int y) {
764 _ptr.scroll(x, y);
765 }
766
767 void scrollBy(int x, int y) {
768 _ptr.scrollBy(x, y);
769 }
770
771 void scrollTo(int x, int y) {
772 _ptr.scrollTo(x, y);
773 }
774
775 int setInterval(TimeoutHandler handler, int timeout) =>
776 _ptr.setInterval(handler, timeout);
777
778 int setTimeout(TimeoutHandler handler, int timeout) =>
779 _ptr.setTimeout(handler, timeout);
780
781 Object showModalDialog(String url, [Object dialogArgs = null, String featureAr gs = null]) {
782 if (dialogArgs === null) {
783 if (featureArgs === null) {
784 return _ptr.showModalDialog(url);
785 }
786 } else {
787 if (featureArgs === null) {
788 return _ptr.showModalDialog(url, LevelDom.unwrap(dialogArgs));
789 } else {
790 return _ptr.showModalDialog(url, LevelDom.unwrap(dialogArgs),
791 featureArgs);
792 }
793 }
794 throw "Incorrect number or type of arguments";
795 }
796
797 void stop() {
798 _ptr.stop();
799 }
800
801 void webkitCancelRequestAnimationFrame(int id) {
802 _ptr.webkitCancelRequestAnimationFrame(id);
803 }
804
805 Point webkitConvertPointFromNodeToPage([Node node = null, Point p = null]) {
806 if (node === null) {
807 if (p === null) {
808 return LevelDom.wrapPoint(_ptr.webkitConvertPointFromNodeToPage());
809 }
810 } else {
811 if (p === null) {
812 return LevelDom.wrapPoint(_ptr.webkitConvertPointFromNodeToPage(LevelDom .unwrap(node)));
813 } else {
814 return LevelDom.wrapPoint(_ptr.webkitConvertPointFromNodeToPage(LevelDom .unwrap(node), LevelDom.unwrap(p)));
815 }
816 }
817 throw "Incorrect number or type of arguments";
818 }
819
820 Point webkitConvertPointFromPageToNode([Node node = null, Point p = null]) {
821 if (node === null) {
822 if (p === null) {
823 return LevelDom.wrapPoint(_ptr.webkitConvertPointFromPageToNode());
824 }
825 } else {
826 if (p === null) {
827 return LevelDom.wrapPoint(_ptr.webkitConvertPointFromPageToNode(LevelDom .unwrap(node)));
828 } else {
829 return LevelDom.wrapPoint(_ptr.webkitConvertPointFromPageToNode(LevelDom .unwrap(node), LevelDom.unwrap(p)));
830 }
831 }
832 throw "Incorrect number or type of arguments";
833 }
834
835 int webkitRequestAnimationFrame(RequestAnimationFrameCallback callback, [Eleme nt element = null]) {
836 return _ptr.webkitRequestAnimationFrame(callback, LevelDom.unwrap(element));
837 }
838
839 void requestLayoutFrame(TimeoutHandler callback) {
840 _addMeasurementFrameCallback(callback);
841 }
842
843 WindowEvents get on() {
844 if (_on === null) {
845 _on = new WindowEventsImplementation._wrap(_ptr);
846 }
847 return _on;
848 }
849 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698