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

Unified Diff: runtime/observatory/lib/src/elements/vm_connect_target.dart

Issue 2345023003: Use dartfmt on Observatory code (Closed)
Patch Set: merge Created 4 years, 3 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: runtime/observatory/lib/src/elements/vm_connect_target.dart
diff --git a/runtime/observatory/lib/src/elements/vm_connect_target.dart b/runtime/observatory/lib/src/elements/vm_connect_target.dart
index 43a0cec2768201d08ebf20738d94ea8dbd969ced..c7c71ec113d72bc7ff842b3e8ede57cb11a418b6 100644
--- a/runtime/observatory/lib/src/elements/vm_connect_target.dart
+++ b/runtime/observatory/lib/src/elements/vm_connect_target.dart
@@ -16,9 +16,7 @@ class TargetEvent {
}
class VMConnectTargetElement extends HtmlElement implements Renderable {
-
- static const tag =
- const Tag<VMConnectTargetElement>('vm-connect-target');
+ static const tag = const Tag<VMConnectTargetElement>('vm-connect-target');
RenderingScheduler<VMConnectTargetElement> _r;
@@ -37,8 +35,8 @@ class VMConnectTargetElement extends HtmlElement implements Renderable {
M.Target get target => _target;
bool get current => _current;
- factory VMConnectTargetElement(M.Target target, {bool current: false,
- RenderingQueue queue}) {
+ factory VMConnectTargetElement(M.Target target,
+ {bool current: false, RenderingQueue queue}) {
assert(target != null);
assert(current != null);
VMConnectTargetElement e = document.createElement(tag.name);
@@ -77,7 +75,8 @@ class VMConnectTargetElement extends HtmlElement implements Renderable {
..text = current ? '${target.name} (Connected)' : '${target.name}'
..onClick.where(_filter).map(_toEvent).listen(_connect),
new ButtonElement()
- ..text = '✖ Remove' ..classes = ['delete-button']
+ ..text = '✖ Remove'
+ ..classes = ['delete-button']
..onClick.map(_toEvent).listen(_delete)
];
}
@@ -95,7 +94,10 @@ class VMConnectTargetElement extends HtmlElement implements Renderable {
}
static bool _filter(MouseEvent event) {
- return !(event.button > 0 || event.metaKey || event.ctrlKey ||
- event.shiftKey || event.altKey);
+ return !(event.button > 0 ||
+ event.metaKey ||
+ event.ctrlKey ||
+ event.shiftKey ||
+ event.altKey);
}
}
« no previous file with comments | « runtime/observatory/lib/src/elements/vm_connect.dart ('k') | runtime/observatory/lib/src/elements/vm_view.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698