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

Side by Side 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, 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 _DirectoryEntryWrappingImplementation extends _EntryWrappingImplementation implements DirectoryEntry { 7 class _DirectoryEntryWrappingImplementation extends _EntryWrappingImplementation implements DirectoryEntry {
8 _DirectoryEntryWrappingImplementation() : super() {} 8 _DirectoryEntryWrappingImplementation() : super() {}
9 9
10 static create__DirectoryEntryWrappingImplementation() native { 10 static create__DirectoryEntryWrappingImplementation() native {
11 return new _DirectoryEntryWrappingImplementation(); 11 return new _DirectoryEntryWrappingImplementation();
12 } 12 }
13 13
14 DirectoryReader createReader() { 14 DirectoryReader createReader() {
15 return _createReader(this); 15 return _createReader(this);
16 } 16 }
17 static DirectoryReader _createReader(receiver) native; 17 static DirectoryReader _createReader(receiver) native;
18 18
19 void getDirectory(String path, [Object flags = null, EntryCallback successCall back = null, ErrorCallback errorCallback = null]) { 19 void getDirectory(String path, [Object flags = null, EntryCallback successCall back = null, ErrorCallback errorCallback = null]) {
20 if (flags === null) { 20 _getDirectory(this, path, flags, successCallback, errorCallback);
21 if (successCallback === null) { 21 return;
22 if (errorCallback === null) {
23 _getDirectory(this, path);
24 return;
25 }
26 }
27 } else {
28 if (successCallback === null) {
29 if (errorCallback === null) {
30 _getDirectory_2(this, path, flags);
31 return;
32 }
33 } else {
34 if (errorCallback === null) {
35 _getDirectory_3(this, path, flags, successCallback);
36 return;
37 } else {
38 _getDirectory_4(this, path, flags, successCallback, errorCallback);
39 return;
40 }
41 }
42 }
43 throw "Incorrect number or type of arguments";
44 } 22 }
45 static void _getDirectory(receiver, path) native; 23 static void _getDirectory(receiver, path, flags, successCallback, errorCallbac k) native;
46 static void _getDirectory_2(receiver, path, flags) native;
47 static void _getDirectory_3(receiver, path, flags, successCallback) native;
48 static void _getDirectory_4(receiver, path, flags, successCallback, errorCallb ack) native;
49 24
50 void getFile(String path, [Object flags = null, EntryCallback successCallback = null, ErrorCallback errorCallback = null]) { 25 void getFile(String path, [Object flags = null, EntryCallback successCallback = null, ErrorCallback errorCallback = null]) {
51 if (flags === null) { 26 _getFile(this, path, flags, successCallback, errorCallback);
52 if (successCallback === null) { 27 return;
53 if (errorCallback === null) {
54 _getFile(this, path);
55 return;
56 }
57 }
58 } else {
59 if (successCallback === null) {
60 if (errorCallback === null) {
61 _getFile_2(this, path, flags);
62 return;
63 }
64 } else {
65 if (errorCallback === null) {
66 _getFile_3(this, path, flags, successCallback);
67 return;
68 } else {
69 _getFile_4(this, path, flags, successCallback, errorCallback);
70 return;
71 }
72 }
73 }
74 throw "Incorrect number or type of arguments";
75 } 28 }
76 static void _getFile(receiver, path) native; 29 static void _getFile(receiver, path, flags, successCallback, errorCallback) na tive;
77 static void _getFile_2(receiver, path, flags) native;
78 static void _getFile_3(receiver, path, flags, successCallback) native;
79 static void _getFile_4(receiver, path, flags, successCallback, errorCallback) native;
80 30
81 void removeRecursively(VoidCallback successCallback, [ErrorCallback errorCallb ack = null]) { 31 void removeRecursively(VoidCallback successCallback, [ErrorCallback errorCallb ack = null]) {
82 if (errorCallback === null) { 32 _removeRecursively(this, successCallback, errorCallback);
83 _removeRecursively(this, successCallback); 33 return;
84 return;
85 } else {
86 _removeRecursively_2(this, successCallback, errorCallback);
87 return;
88 }
89 } 34 }
90 static void _removeRecursively(receiver, successCallback) native; 35 static void _removeRecursively(receiver, successCallback, errorCallback) nativ e;
91 static void _removeRecursively_2(receiver, successCallback, errorCallback) nat ive;
92 36
93 String get typeName() { return "DirectoryEntry"; } 37 String get typeName() { return "DirectoryEntry"; }
94 } 38 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698