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

Unified Diff: client/dom/generated/src/wrapping/_DirectoryEntryWrappingImplementation.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/_DirectoryEntryWrappingImplementation.dart
diff --git a/client/dom/generated/src/wrapping/_DirectoryEntryWrappingImplementation.dart b/client/dom/generated/src/wrapping/_DirectoryEntryWrappingImplementation.dart
index 4bf452d5960a2d227e11704dff090eb2c0c3e790..f004f50a3de5bc355d64d864e0aba0f58181f4e9 100644
--- a/client/dom/generated/src/wrapping/_DirectoryEntryWrappingImplementation.dart
+++ b/client/dom/generated/src/wrapping/_DirectoryEntryWrappingImplementation.dart
@@ -17,78 +17,22 @@ class _DirectoryEntryWrappingImplementation extends _EntryWrappingImplementation
static DirectoryReader _createReader(receiver) native;
void getDirectory(String path, [Object flags = null, EntryCallback successCallback = null, ErrorCallback errorCallback = null]) {
- if (flags === null) {
- if (successCallback === null) {
- if (errorCallback === null) {
- _getDirectory(this, path);
- return;
- }
- }
- } else {
- if (successCallback === null) {
- if (errorCallback === null) {
- _getDirectory_2(this, path, flags);
- return;
- }
- } else {
- if (errorCallback === null) {
- _getDirectory_3(this, path, flags, successCallback);
- return;
- } else {
- _getDirectory_4(this, path, flags, successCallback, errorCallback);
- return;
- }
- }
- }
- throw "Incorrect number or type of arguments";
+ _getDirectory(this, path, flags, successCallback, errorCallback);
+ return;
}
- static void _getDirectory(receiver, path) native;
- static void _getDirectory_2(receiver, path, flags) native;
- static void _getDirectory_3(receiver, path, flags, successCallback) native;
- static void _getDirectory_4(receiver, path, flags, successCallback, errorCallback) native;
+ static void _getDirectory(receiver, path, flags, successCallback, errorCallback) native;
void getFile(String path, [Object flags = null, EntryCallback successCallback = null, ErrorCallback errorCallback = null]) {
- if (flags === null) {
- if (successCallback === null) {
- if (errorCallback === null) {
- _getFile(this, path);
- return;
- }
- }
- } else {
- if (successCallback === null) {
- if (errorCallback === null) {
- _getFile_2(this, path, flags);
- return;
- }
- } else {
- if (errorCallback === null) {
- _getFile_3(this, path, flags, successCallback);
- return;
- } else {
- _getFile_4(this, path, flags, successCallback, errorCallback);
- return;
- }
- }
- }
- throw "Incorrect number or type of arguments";
+ _getFile(this, path, flags, successCallback, errorCallback);
+ return;
}
- static void _getFile(receiver, path) native;
- static void _getFile_2(receiver, path, flags) native;
- static void _getFile_3(receiver, path, flags, successCallback) native;
- static void _getFile_4(receiver, path, flags, successCallback, errorCallback) native;
+ static void _getFile(receiver, path, flags, successCallback, errorCallback) native;
void removeRecursively(VoidCallback successCallback, [ErrorCallback errorCallback = null]) {
- if (errorCallback === null) {
- _removeRecursively(this, successCallback);
- return;
- } else {
- _removeRecursively_2(this, successCallback, errorCallback);
- return;
- }
+ _removeRecursively(this, successCallback, errorCallback);
+ return;
}
- static void _removeRecursively(receiver, successCallback) native;
- static void _removeRecursively_2(receiver, successCallback, errorCallback) native;
+ static void _removeRecursively(receiver, successCallback, errorCallback) native;
String get typeName() { return "DirectoryEntry"; }
}

Powered by Google App Engine
This is Rietveld 408576698