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

Side by Side Diff: client/dom/generated/src/wrapping/_DOMWindowWrappingImplementation.dart

Issue 9539003: Safely wrap window.top in frog dom. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address comments and merge 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
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 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 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. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 // WARNING: Do not edit - generated code. 5 // WARNING: Do not edit - generated code.
6 6
7 class _DOMWindowWrappingImplementation extends DOMWrapperBase implements DOMWind ow { 7 class _DOMWindowWrappingImplementation extends DOMWrapperBase implements DOMWind ow {
8 _DOMWindowWrappingImplementation() : super() {} 8 _DOMWindowWrappingImplementation() : super() {}
9 9
10 static create__DOMWindowWrappingImplementation() native { 10 static create__DOMWindowWrappingImplementation() native {
(...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after
291 if (options === null) { 291 if (options === null) {
292 return _open(this, url, name); 292 return _open(this, url, name);
293 } else { 293 } else {
294 return _open_2(this, url, name, options); 294 return _open_2(this, url, name, options);
295 } 295 }
296 } 296 }
297 static DOMWindow _open(receiver, url, name) native; 297 static DOMWindow _open(receiver, url, name) native;
298 static DOMWindow _open_2(receiver, url, name, options) native; 298 static DOMWindow _open_2(receiver, url, name, options) native;
299 299
300 Database openDatabase(String name, String version, String displayName, int est imatedSize, [DatabaseCallback creationCallback = null]) { 300 Database openDatabase(String name, String version, String displayName, int est imatedSize, [DatabaseCallback creationCallback = null]) {
301 if (creationCallback === null) { 301 return _openDatabase(this, name, version, displayName, estimatedSize, creati onCallback);
302 return _openDatabase(this, name, version, displayName, estimatedSize);
303 } else {
304 return _openDatabase_2(this, name, version, displayName, estimatedSize, cr eationCallback);
305 }
306 } 302 }
307 static Database _openDatabase(receiver, name, version, displayName, estimatedS ize) native; 303 static Database _openDatabase(receiver, name, version, displayName, estimatedS ize, creationCallback) native;
308 static Database _openDatabase_2(receiver, name, version, displayName, estimate dSize, creationCallback) native;
309 304
310 void postMessage(Dynamic message, String targetOrigin, [List messagePorts = nu ll]) { 305 void postMessage(Dynamic message, String targetOrigin, [List messagePorts = nu ll]) {
311 if (messagePorts === null) { 306 if (messagePorts === null) {
312 _postMessage(this, message, targetOrigin); 307 _postMessage(this, message, targetOrigin);
313 return; 308 return;
314 } else { 309 } else {
315 _postMessage_2(this, message, targetOrigin, messagePorts); 310 _postMessage_2(this, message, targetOrigin, messagePorts);
316 return; 311 return;
317 } 312 }
318 } 313 }
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
445 } 440 }
446 static void _webkitPostMessage(receiver, message, targetOrigin) native; 441 static void _webkitPostMessage(receiver, message, targetOrigin) native;
447 static void _webkitPostMessage_2(receiver, message, targetOrigin, transferList ) native; 442 static void _webkitPostMessage_2(receiver, message, targetOrigin, transferList ) native;
448 443
449 int webkitRequestAnimationFrame(RequestAnimationFrameCallback callback, Elemen t element) { 444 int webkitRequestAnimationFrame(RequestAnimationFrameCallback callback, Elemen t element) {
450 return _webkitRequestAnimationFrame(this, callback, element); 445 return _webkitRequestAnimationFrame(this, callback, element);
451 } 446 }
452 static int _webkitRequestAnimationFrame(receiver, callback, element) native; 447 static int _webkitRequestAnimationFrame(receiver, callback, element) native;
453 448
454 void webkitRequestFileSystem(int type, int size, FileSystemCallback successCal lback, [ErrorCallback errorCallback = null]) { 449 void webkitRequestFileSystem(int type, int size, FileSystemCallback successCal lback, [ErrorCallback errorCallback = null]) {
455 if (errorCallback === null) { 450 _webkitRequestFileSystem(this, type, size, successCallback, errorCallback);
456 _webkitRequestFileSystem(this, type, size, successCallback); 451 return;
457 return;
458 } else {
459 _webkitRequestFileSystem_2(this, type, size, successCallback, errorCallbac k);
460 return;
461 }
462 } 452 }
463 static void _webkitRequestFileSystem(receiver, type, size, successCallback) na tive; 453 static void _webkitRequestFileSystem(receiver, type, size, successCallback, er rorCallback) native;
464 static void _webkitRequestFileSystem_2(receiver, type, size, successCallback, errorCallback) native;
465 454
466 void webkitResolveLocalFileSystemURL(String url, [EntryCallback successCallbac k = null, ErrorCallback errorCallback = null]) { 455 void webkitResolveLocalFileSystemURL(String url, [EntryCallback successCallbac k = null, ErrorCallback errorCallback = null]) {
467 if (successCallback === null) { 456 _webkitResolveLocalFileSystemURL(this, url, successCallback, errorCallback);
468 if (errorCallback === null) { 457 return;
469 _webkitResolveLocalFileSystemURL(this, url);
470 return;
471 }
472 } else {
473 if (errorCallback === null) {
474 _webkitResolveLocalFileSystemURL_2(this, url, successCallback);
475 return;
476 } else {
477 _webkitResolveLocalFileSystemURL_3(this, url, successCallback, errorCall back);
478 return;
479 }
480 }
481 throw "Incorrect number or type of arguments";
482 } 458 }
483 static void _webkitResolveLocalFileSystemURL(receiver, url) native; 459 static void _webkitResolveLocalFileSystemURL(receiver, url, successCallback, e rrorCallback) native;
484 static void _webkitResolveLocalFileSystemURL_2(receiver, url, successCallback) native;
485 static void _webkitResolveLocalFileSystemURL_3(receiver, url, successCallback, errorCallback) native;
486 460
487 String get typeName() { return "DOMWindow"; } 461 String get typeName() { return "DOMWindow"; }
488 } 462 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698