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

Side by Side Diff: client/dom/generated/src/wrapping/_StorageInfoWrappingImplementation.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 _StorageInfoWrappingImplementation extends DOMWrapperBase implements Stora geInfo { 7 class _StorageInfoWrappingImplementation extends DOMWrapperBase implements Stora geInfo {
8 _StorageInfoWrappingImplementation() : super() {} 8 _StorageInfoWrappingImplementation() : super() {}
9 9
10 static create__StorageInfoWrappingImplementation() native { 10 static create__StorageInfoWrappingImplementation() native {
11 return new _StorageInfoWrappingImplementation(); 11 return new _StorageInfoWrappingImplementation();
12 } 12 }
13 13
14 void queryUsageAndQuota(int storageType, [StorageInfoUsageCallback usageCallba ck = null, StorageInfoErrorCallback errorCallback = null]) { 14 void queryUsageAndQuota(int storageType, [StorageInfoUsageCallback usageCallba ck = null, StorageInfoErrorCallback errorCallback = null]) {
15 if (usageCallback === null) { 15 _queryUsageAndQuota(this, storageType, usageCallback, errorCallback);
16 if (errorCallback === null) { 16 return;
17 _queryUsageAndQuota(this, storageType);
18 return;
19 }
20 } else {
21 if (errorCallback === null) {
22 _queryUsageAndQuota_2(this, storageType, usageCallback);
23 return;
24 } else {
25 _queryUsageAndQuota_3(this, storageType, usageCallback, errorCallback);
26 return;
27 }
28 }
29 throw "Incorrect number or type of arguments";
30 } 17 }
31 static void _queryUsageAndQuota(receiver, storageType) native; 18 static void _queryUsageAndQuota(receiver, storageType, usageCallback, errorCal lback) native;
32 static void _queryUsageAndQuota_2(receiver, storageType, usageCallback) native ;
33 static void _queryUsageAndQuota_3(receiver, storageType, usageCallback, errorC allback) native;
34 19
35 void requestQuota(int storageType, int newQuotaInBytes, [StorageInfoQuotaCallb ack quotaCallback = null, StorageInfoErrorCallback errorCallback = null]) { 20 void requestQuota(int storageType, int newQuotaInBytes, [StorageInfoQuotaCallb ack quotaCallback = null, StorageInfoErrorCallback errorCallback = null]) {
36 if (quotaCallback === null) { 21 _requestQuota(this, storageType, newQuotaInBytes, quotaCallback, errorCallba ck);
37 if (errorCallback === null) { 22 return;
38 _requestQuota(this, storageType, newQuotaInBytes);
39 return;
40 }
41 } else {
42 if (errorCallback === null) {
43 _requestQuota_2(this, storageType, newQuotaInBytes, quotaCallback);
44 return;
45 } else {
46 _requestQuota_3(this, storageType, newQuotaInBytes, quotaCallback, error Callback);
47 return;
48 }
49 }
50 throw "Incorrect number or type of arguments";
51 } 23 }
52 static void _requestQuota(receiver, storageType, newQuotaInBytes) native; 24 static void _requestQuota(receiver, storageType, newQuotaInBytes, quotaCallbac k, errorCallback) native;
53 static void _requestQuota_2(receiver, storageType, newQuotaInBytes, quotaCallb ack) native;
54 static void _requestQuota_3(receiver, storageType, newQuotaInBytes, quotaCallb ack, errorCallback) native;
55 25
56 String get typeName() { return "StorageInfo"; } 26 String get typeName() { return "StorageInfo"; }
57 } 27 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698