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

Unified Diff: client/dom/generated/src/wrapping/_EntryWrappingImplementation.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/_EntryWrappingImplementation.dart
diff --git a/client/dom/generated/src/wrapping/_EntryWrappingImplementation.dart b/client/dom/generated/src/wrapping/_EntryWrappingImplementation.dart
index f93063272b590daf13a9909552c5a80935384fbf..036c9cee5177a9892920b3c687bda542b3f91732 100644
--- a/client/dom/generated/src/wrapping/_EntryWrappingImplementation.dart
+++ b/client/dom/generated/src/wrapping/_EntryWrappingImplementation.dart
@@ -27,111 +27,34 @@ class _EntryWrappingImplementation extends DOMWrapperBase implements Entry {
static String _get_name(var _this) native;
void copyTo(DirectoryEntry parent, [String name = null, EntryCallback successCallback = null, ErrorCallback errorCallback = null]) {
- if (name === null) {
- if (successCallback === null) {
- if (errorCallback === null) {
- _copyTo(this, parent);
- return;
- }
- }
- } else {
- if (successCallback === null) {
- if (errorCallback === null) {
- _copyTo_2(this, parent, name);
- return;
- }
- } else {
- if (errorCallback === null) {
- _copyTo_3(this, parent, name, successCallback);
- return;
- } else {
- _copyTo_4(this, parent, name, successCallback, errorCallback);
- return;
- }
- }
- }
- throw "Incorrect number or type of arguments";
+ _copyTo(this, parent, name, successCallback, errorCallback);
+ return;
}
- static void _copyTo(receiver, parent) native;
- static void _copyTo_2(receiver, parent, name) native;
- static void _copyTo_3(receiver, parent, name, successCallback) native;
- static void _copyTo_4(receiver, parent, name, successCallback, errorCallback) native;
+ static void _copyTo(receiver, parent, name, successCallback, errorCallback) native;
void getMetadata(MetadataCallback successCallback, [ErrorCallback errorCallback = null]) {
- if (errorCallback === null) {
- _getMetadata(this, successCallback);
- return;
- } else {
- _getMetadata_2(this, successCallback, errorCallback);
- return;
- }
+ _getMetadata(this, successCallback, errorCallback);
+ return;
}
- static void _getMetadata(receiver, successCallback) native;
- static void _getMetadata_2(receiver, successCallback, errorCallback) native;
+ static void _getMetadata(receiver, successCallback, errorCallback) native;
void getParent([EntryCallback successCallback = null, ErrorCallback errorCallback = null]) {
- if (successCallback === null) {
- if (errorCallback === null) {
- _getParent(this);
- return;
- }
- } else {
- if (errorCallback === null) {
- _getParent_2(this, successCallback);
- return;
- } else {
- _getParent_3(this, successCallback, errorCallback);
- return;
- }
- }
- throw "Incorrect number or type of arguments";
+ _getParent(this, successCallback, errorCallback);
+ return;
}
- static void _getParent(receiver) native;
- static void _getParent_2(receiver, successCallback) native;
- static void _getParent_3(receiver, successCallback, errorCallback) native;
+ static void _getParent(receiver, successCallback, errorCallback) native;
void moveTo(DirectoryEntry parent, [String name = null, EntryCallback successCallback = null, ErrorCallback errorCallback = null]) {
- if (name === null) {
- if (successCallback === null) {
- if (errorCallback === null) {
- _moveTo(this, parent);
- return;
- }
- }
- } else {
- if (successCallback === null) {
- if (errorCallback === null) {
- _moveTo_2(this, parent, name);
- return;
- }
- } else {
- if (errorCallback === null) {
- _moveTo_3(this, parent, name, successCallback);
- return;
- } else {
- _moveTo_4(this, parent, name, successCallback, errorCallback);
- return;
- }
- }
- }
- throw "Incorrect number or type of arguments";
+ _moveTo(this, parent, name, successCallback, errorCallback);
+ return;
}
- static void _moveTo(receiver, parent) native;
- static void _moveTo_2(receiver, parent, name) native;
- static void _moveTo_3(receiver, parent, name, successCallback) native;
- static void _moveTo_4(receiver, parent, name, successCallback, errorCallback) native;
+ static void _moveTo(receiver, parent, name, successCallback, errorCallback) native;
void remove(VoidCallback successCallback, [ErrorCallback errorCallback = null]) {
- if (errorCallback === null) {
- _remove(this, successCallback);
- return;
- } else {
- _remove_2(this, successCallback, errorCallback);
- return;
- }
+ _remove(this, successCallback, errorCallback);
+ return;
}
- static void _remove(receiver, successCallback) native;
- static void _remove_2(receiver, successCallback, errorCallback) native;
+ static void _remove(receiver, successCallback, errorCallback) native;
String toURL() {
return _toURL(this);

Powered by Google App Engine
This is Rietveld 408576698