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

Unified Diff: runtime/observatory/lib/src/elements/general_error.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/general_error.dart
diff --git a/runtime/observatory/lib/src/elements/general_error.dart b/runtime/observatory/lib/src/elements/general_error.dart
index 473e724e64689a442e82f267728bfeb1f63e45cc..f902da8f78d4328873b2ca860f338b4cd035626a 100644
--- a/runtime/observatory/lib/src/elements/general_error.dart
+++ b/runtime/observatory/lib/src/elements/general_error.dart
@@ -15,8 +15,7 @@ import 'package:observatory/src/elements/nav/top_menu.dart';
class GeneralErrorElement extends HtmlElement implements Renderable {
static const tag = const Tag<GeneralErrorElement>('general-error',
- dependencies: const [NavTopMenuElement.tag,
- NavNotifyElement.tag]);
+ dependencies: const [NavTopMenuElement.tag, NavNotifyElement.tag]);
RenderingScheduler _r;
@@ -29,9 +28,8 @@ class GeneralErrorElement extends HtmlElement implements Renderable {
set message(String value) => _message = _r.checkAndReact(_message, value);
-
factory GeneralErrorElement(M.NotificationRepository notifications,
- {String message: '', RenderingQueue queue}) {
+ {String message: '', RenderingQueue queue}) {
assert(notifications != null);
assert(message != null);
GeneralErrorElement e = document.createElement(tag.name);
@@ -62,11 +60,13 @@ class GeneralErrorElement extends HtmlElement implements Renderable {
new NavTopMenuElement(queue: _r.queue),
new NavNotifyElement(_notifications, queue: _r.queue)
]),
- new DivElement()..classes = ['content-centered']
+ new DivElement()
+ ..classes = ['content-centered']
..children = [
new HeadingElement.h1()..text = 'Error',
new BRElement(),
- new DivElement()..classes = ['well']
+ new DivElement()
+ ..classes = ['well']
..text = message
]
];
« no previous file with comments | « runtime/observatory/lib/src/elements/function_view.dart ('k') | runtime/observatory/lib/src/elements/heap_map.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698