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

Unified Diff: client/dom/generated/src/wrapping/_WorkerContextWrappingImplementation.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, 10 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 side-by-side diff with in-line comments
Download patch
Index: client/dom/generated/src/wrapping/_WorkerContextWrappingImplementation.dart
diff --git a/client/dom/generated/src/wrapping/_WorkerContextWrappingImplementation.dart b/client/dom/generated/src/wrapping/_WorkerContextWrappingImplementation.dart
index d17dfc2b442ba901114a67c331f9c931d7115b57..f33e780da9cd2d768660c6a58038b5a16e360301 100644
--- a/client/dom/generated/src/wrapping/_WorkerContextWrappingImplementation.dart
+++ b/client/dom/generated/src/wrapping/_WorkerContextWrappingImplementation.dart
@@ -74,24 +74,14 @@ class _WorkerContextWrappingImplementation extends DOMWrapperBase implements Wor
static void _importScripts(receiver) native;
Database openDatabase(String name, String version, String displayName, int estimatedSize, [DatabaseCallback creationCallback = null]) {
- if (creationCallback === null) {
- return _openDatabase(this, name, version, displayName, estimatedSize);
- } else {
- return _openDatabase_2(this, name, version, displayName, estimatedSize, creationCallback);
- }
+ return _openDatabase(this, name, version, displayName, estimatedSize, creationCallback);
}
- static Database _openDatabase(receiver, name, version, displayName, estimatedSize) native;
- static Database _openDatabase_2(receiver, name, version, displayName, estimatedSize, creationCallback) native;
+ static Database _openDatabase(receiver, name, version, displayName, estimatedSize, creationCallback) native;
DatabaseSync openDatabaseSync(String name, String version, String displayName, int estimatedSize, [DatabaseCallback creationCallback = null]) {
- if (creationCallback === null) {
- return _openDatabaseSync(this, name, version, displayName, estimatedSize);
- } else {
- return _openDatabaseSync_2(this, name, version, displayName, estimatedSize, creationCallback);
- }
+ return _openDatabaseSync(this, name, version, displayName, estimatedSize, creationCallback);
}
- static DatabaseSync _openDatabaseSync(receiver, name, version, displayName, estimatedSize) native;
- static DatabaseSync _openDatabaseSync_2(receiver, name, version, displayName, estimatedSize, creationCallback) native;
+ static DatabaseSync _openDatabaseSync(receiver, name, version, displayName, estimatedSize, creationCallback) native;
void removeEventListener(String type, EventListener listener, [bool useCapture = null]) {
if (useCapture === null) {
@@ -116,25 +106,10 @@ class _WorkerContextWrappingImplementation extends DOMWrapperBase implements Wor
static int _setTimeout(receiver, handler, timeout) native;
void webkitRequestFileSystem(int type, int size, [FileSystemCallback successCallback = null, ErrorCallback errorCallback = null]) {
- if (successCallback === null) {
- if (errorCallback === null) {
- _webkitRequestFileSystem(this, type, size);
- return;
- }
- } else {
- if (errorCallback === null) {
- _webkitRequestFileSystem_2(this, type, size, successCallback);
- return;
- } else {
- _webkitRequestFileSystem_3(this, type, size, successCallback, errorCallback);
- return;
- }
- }
- throw "Incorrect number or type of arguments";
+ _webkitRequestFileSystem(this, type, size, successCallback, errorCallback);
+ return;
}
- static void _webkitRequestFileSystem(receiver, type, size) native;
- static void _webkitRequestFileSystem_2(receiver, type, size, successCallback) native;
- static void _webkitRequestFileSystem_3(receiver, type, size, successCallback, errorCallback) native;
+ static void _webkitRequestFileSystem(receiver, type, size, successCallback, errorCallback) native;
DOMFileSystemSync webkitRequestFileSystemSync(int type, int size) {
return _webkitRequestFileSystemSync(this, type, size);
@@ -147,25 +122,10 @@ class _WorkerContextWrappingImplementation extends DOMWrapperBase implements Wor
static EntrySync _webkitResolveLocalFileSystemSyncURL(receiver, url) native;
void webkitResolveLocalFileSystemURL(String url, [EntryCallback successCallback = null, ErrorCallback errorCallback = null]) {
- if (successCallback === null) {
- if (errorCallback === null) {
- _webkitResolveLocalFileSystemURL(this, url);
- return;
- }
- } else {
- if (errorCallback === null) {
- _webkitResolveLocalFileSystemURL_2(this, url, successCallback);
- return;
- } else {
- _webkitResolveLocalFileSystemURL_3(this, url, successCallback, errorCallback);
- return;
- }
- }
- throw "Incorrect number or type of arguments";
+ _webkitResolveLocalFileSystemURL(this, url, successCallback, errorCallback);
+ return;
}
- static void _webkitResolveLocalFileSystemURL(receiver, url) native;
- static void _webkitResolveLocalFileSystemURL_2(receiver, url, successCallback) native;
- static void _webkitResolveLocalFileSystemURL_3(receiver, url, successCallback, errorCallback) native;
+ static void _webkitResolveLocalFileSystemURL(receiver, url, successCallback, errorCallback) native;
String get typeName() { return "WorkerContext"; }
}
« no previous file with comments | « client/dom/generated/src/wrapping/_Uint8ClampedArrayWrappingImplementation.dart ('k') | client/dom/scripts/systemfrog.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698