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

Unified 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 side-by-side diff with in-line comments
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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/dom/src/_chrome/app_runtime.dart
diff --git a/tools/dom/src/_chrome/app_runtime.dart b/tools/dom/src/_chrome/app_runtime.dart
index 03658f0a5c59c1a84a9db89cd98af3ad3a9b298e..a6e135b01f01b1d2d603c788bdc82d85ed924d98 100644
--- a/tools/dom/src/_chrome/app_runtime.dart
+++ b/tools/dom/src/_chrome/app_runtime.dart
@@ -15,10 +15,8 @@ class AppRuntimeLaunchItem extends ChromeObject {
* Public constructor
*/
AppRuntimeLaunchItem({FileEntry entry, String type}) {
- if (entry != null)
- this.entry = entry;
- if (type != null)
- this.type = type;
+ if (entry != null) this.entry = entry;
+ if (type != null) this.type = type;
}
/*
@@ -42,7 +40,6 @@ class AppRuntimeLaunchItem extends ChromeObject {
set type(String type) {
JS('void', '#.type = #', this._jsObject, type);
}
-
}
class AppRuntimeLaunchData extends ChromeObject {
@@ -50,10 +47,8 @@ class AppRuntimeLaunchData extends ChromeObject {
* Public constructor
*/
AppRuntimeLaunchData({String id, List<AppRuntimeLaunchItem> items}) {
- if (id != null)
- this.id = id;
- if (items != null)
- this.items = items;
+ if (id != null) this.id = id;
+ if (items != null) this.items = items;
}
/*
@@ -84,7 +79,6 @@ class AppRuntimeLaunchData extends ChromeObject {
set items(List<AppRuntimeLaunchItem> items) {
JS('void', '#.items = #', this._jsObject, convertArgument(items));
}
-
}
/**
@@ -99,6 +93,7 @@ class Event_app_runtime_onLaunched extends Event {
callback(new AppRuntimeLaunchData._proxy(launchData));
}
}
+
super.addListener(__proxy_callback);
}
@@ -108,6 +103,7 @@ class Event_app_runtime_onLaunched extends Event {
callback(new AppRuntimeLaunchData._proxy(launchData));
}
}
+
super.removeListener(__proxy_callback);
}
@@ -117,6 +113,7 @@ class Event_app_runtime_onLaunched extends Event {
callback(new AppRuntimeLaunchData._proxy(launchData));
}
}
+
super.hasListener(__proxy_callback);
}
@@ -151,7 +148,9 @@ class API_app_runtime {
Event_app_runtime_onLaunched onLaunched;
Event_app_runtime_onRestarted onRestarted;
API_app_runtime(this._jsObject) {
- onLaunched = new Event_app_runtime_onLaunched(JS('', '#.onLaunched', this._jsObject));
- onRestarted = new Event_app_runtime_onRestarted(JS('', '#.onRestarted', this._jsObject));
+ onLaunched = new Event_app_runtime_onLaunched(
+ JS('', '#.onLaunched', this._jsObject));
+ onRestarted = new Event_app_runtime_onRestarted(
+ JS('', '#.onRestarted', this._jsObject));
}
}
« 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