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

Side by Side Diff: tools/dom/src/_chrome/app_runtime.dart

Issue 2827793002: Format all files under tools and utils directory. (Closed)
Patch Set: Format all files under tools and utils directory. Created 3 years, 8 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
« no previous file with comments | « tools/dom/src/_ListIterators.dart ('k') | tools/dom/src/_chrome/app_window.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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 // Generated from namespace: app.runtime 5 // Generated from namespace: app.runtime
6 6
7 part of chrome; 7 part of chrome;
8 8
9 /** 9 /**
10 * Types 10 * Types
11 */ 11 */
12 12
13 class AppRuntimeLaunchItem extends ChromeObject { 13 class AppRuntimeLaunchItem extends ChromeObject {
14 /* 14 /*
15 * Public constructor 15 * Public constructor
16 */ 16 */
17 AppRuntimeLaunchItem({FileEntry entry, String type}) { 17 AppRuntimeLaunchItem({FileEntry entry, String type}) {
18 if (entry != null) 18 if (entry != null) this.entry = entry;
19 this.entry = entry; 19 if (type != null) this.type = type;
20 if (type != null)
21 this.type = type;
22 } 20 }
23 21
24 /* 22 /*
25 * Private constructor 23 * Private constructor
26 */ 24 */
27 AppRuntimeLaunchItem._proxy(_jsObject) : super._proxy(_jsObject); 25 AppRuntimeLaunchItem._proxy(_jsObject) : super._proxy(_jsObject);
28 26
29 /* 27 /*
30 * Public accessors 28 * Public accessors
31 */ 29 */
32 /// FileEntry for the file. 30 /// FileEntry for the file.
33 FileEntry get entry => JS('FileEntry', '#.entry', this._jsObject); 31 FileEntry get entry => JS('FileEntry', '#.entry', this._jsObject);
34 32
35 set entry(FileEntry entry) { 33 set entry(FileEntry entry) {
36 JS('void', '#.entry = #', this._jsObject, convertArgument(entry)); 34 JS('void', '#.entry = #', this._jsObject, convertArgument(entry));
37 } 35 }
38 36
39 /// The MIME type of the file. 37 /// The MIME type of the file.
40 String get type => JS('String', '#.type', this._jsObject); 38 String get type => JS('String', '#.type', this._jsObject);
41 39
42 set type(String type) { 40 set type(String type) {
43 JS('void', '#.type = #', this._jsObject, type); 41 JS('void', '#.type = #', this._jsObject, type);
44 } 42 }
45
46 } 43 }
47 44
48 class AppRuntimeLaunchData extends ChromeObject { 45 class AppRuntimeLaunchData extends ChromeObject {
49 /* 46 /*
50 * Public constructor 47 * Public constructor
51 */ 48 */
52 AppRuntimeLaunchData({String id, List<AppRuntimeLaunchItem> items}) { 49 AppRuntimeLaunchData({String id, List<AppRuntimeLaunchItem> items}) {
53 if (id != null) 50 if (id != null) this.id = id;
54 this.id = id; 51 if (items != null) this.items = items;
55 if (items != null)
56 this.items = items;
57 } 52 }
58 53
59 /* 54 /*
60 * Private constructor 55 * Private constructor
61 */ 56 */
62 AppRuntimeLaunchData._proxy(_jsObject) : super._proxy(_jsObject); 57 AppRuntimeLaunchData._proxy(_jsObject) : super._proxy(_jsObject);
63 58
64 /* 59 /*
65 * Public accessors 60 * Public accessors
66 */ 61 */
(...skipping 10 matching lines...) Expand all
77 for (int i = 0; i < count; i++) { 72 for (int i = 0; i < count; i++) {
78 var item = JS('', '#.items[#]', this._jsObject, i); 73 var item = JS('', '#.items[#]', this._jsObject, i);
79 __proxy_items.add(new AppRuntimeLaunchItem._proxy(item)); 74 __proxy_items.add(new AppRuntimeLaunchItem._proxy(item));
80 } 75 }
81 return __proxy_items; 76 return __proxy_items;
82 } 77 }
83 78
84 set items(List<AppRuntimeLaunchItem> items) { 79 set items(List<AppRuntimeLaunchItem> items) {
85 JS('void', '#.items = #', this._jsObject, convertArgument(items)); 80 JS('void', '#.items = #', this._jsObject, convertArgument(items));
86 } 81 }
87
88 } 82 }
89 83
90 /** 84 /**
91 * Events 85 * Events
92 */ 86 */
93 87
94 /// Fired when an app is launched from the launcher. 88 /// Fired when an app is launched from the launcher.
95 class Event_app_runtime_onLaunched extends Event { 89 class Event_app_runtime_onLaunched extends Event {
96 void addListener(void callback(AppRuntimeLaunchData launchData)) { 90 void addListener(void callback(AppRuntimeLaunchData launchData)) {
97 void __proxy_callback(launchData) { 91 void __proxy_callback(launchData) {
98 if (callback != null) { 92 if (callback != null) {
99 callback(new AppRuntimeLaunchData._proxy(launchData)); 93 callback(new AppRuntimeLaunchData._proxy(launchData));
100 } 94 }
101 } 95 }
96
102 super.addListener(__proxy_callback); 97 super.addListener(__proxy_callback);
103 } 98 }
104 99
105 void removeListener(void callback(AppRuntimeLaunchData launchData)) { 100 void removeListener(void callback(AppRuntimeLaunchData launchData)) {
106 void __proxy_callback(launchData) { 101 void __proxy_callback(launchData) {
107 if (callback != null) { 102 if (callback != null) {
108 callback(new AppRuntimeLaunchData._proxy(launchData)); 103 callback(new AppRuntimeLaunchData._proxy(launchData));
109 } 104 }
110 } 105 }
106
111 super.removeListener(__proxy_callback); 107 super.removeListener(__proxy_callback);
112 } 108 }
113 109
114 bool hasListener(void callback(AppRuntimeLaunchData launchData)) { 110 bool hasListener(void callback(AppRuntimeLaunchData launchData)) {
115 void __proxy_callback(launchData) { 111 void __proxy_callback(launchData) {
116 if (callback != null) { 112 if (callback != null) {
117 callback(new AppRuntimeLaunchData._proxy(launchData)); 113 callback(new AppRuntimeLaunchData._proxy(launchData));
118 } 114 }
119 } 115 }
116
120 super.hasListener(__proxy_callback); 117 super.hasListener(__proxy_callback);
121 } 118 }
122 119
123 Event_app_runtime_onLaunched(jsObject) : super._(jsObject, 1); 120 Event_app_runtime_onLaunched(jsObject) : super._(jsObject, 1);
124 } 121 }
125 122
126 /// Fired at Chrome startup to apps that were running when Chrome last shut 123 /// Fired at Chrome startup to apps that were running when Chrome last shut
127 /// down. 124 /// down.
128 class Event_app_runtime_onRestarted extends Event { 125 class Event_app_runtime_onRestarted extends Event {
129 void addListener(void callback()) => super.addListener(callback); 126 void addListener(void callback()) => super.addListener(callback);
(...skipping 14 matching lines...) Expand all
144 * API connection 141 * API connection
145 */ 142 */
146 Object _jsObject; 143 Object _jsObject;
147 144
148 /* 145 /*
149 * Events 146 * Events
150 */ 147 */
151 Event_app_runtime_onLaunched onLaunched; 148 Event_app_runtime_onLaunched onLaunched;
152 Event_app_runtime_onRestarted onRestarted; 149 Event_app_runtime_onRestarted onRestarted;
153 API_app_runtime(this._jsObject) { 150 API_app_runtime(this._jsObject) {
154 onLaunched = new Event_app_runtime_onLaunched(JS('', '#.onLaunched', this._j sObject)); 151 onLaunched = new Event_app_runtime_onLaunched(
155 onRestarted = new Event_app_runtime_onRestarted(JS('', '#.onRestarted', this ._jsObject)); 152 JS('', '#.onLaunched', this._jsObject));
153 onRestarted = new Event_app_runtime_onRestarted(
154 JS('', '#.onRestarted', this._jsObject));
156 } 155 }
157 } 156 }
OLDNEW
« no previous file with comments | « tools/dom/src/_ListIterators.dart ('k') | tools/dom/src/_chrome/app_window.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698