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

Unified Diff: runtime/observatory/lib/src/elements/nav/notify.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/nav/notify.dart
diff --git a/runtime/observatory/lib/src/elements/nav/notify.dart b/runtime/observatory/lib/src/elements/nav/notify.dart
index 5411e11aac16b7b1cdb55972f728203b2cda70f5..cbba2dbb6f936726102e1df81e3dcb35fef919c9 100644
--- a/runtime/observatory/lib/src/elements/nav/notify.dart
+++ b/runtime/observatory/lib/src/elements/nav/notify.dart
@@ -12,8 +12,10 @@ import 'package:observatory/src/elements/nav/notify_exception.dart';
class NavNotifyElement extends HtmlElement implements Renderable {
static const tag = const Tag<NavNotifyElement>('nav-notify',
- dependencies: const [ NavNotifyEventElement.tag,
- NavNotifyExceptionElement.tag ]);
+ dependencies: const [
+ NavNotifyEventElement.tag,
+ NavNotifyExceptionElement.tag
+ ]);
RenderingScheduler _r;
@@ -30,7 +32,7 @@ class NavNotifyElement extends HtmlElement implements Renderable {
_notifyOnPause = _r.checkAndReact(_notifyOnPause, value);
factory NavNotifyElement(M.NotificationRepository repository,
- {bool notifyOnPause: true, RenderingQueue queue}) {
+ {bool notifyOnPause: true, RenderingQueue queue}) {
assert(repository != null);
assert(notifyOnPause != null);
NavNotifyElement e = document.createElement(tag.name);
@@ -62,8 +64,8 @@ class NavNotifyElement extends HtmlElement implements Renderable {
new DivElement()
..children = [
new DivElement()
- ..children = _repository.list()
- .where(_filter).map(_toElement).toList()
+ ..children =
+ _repository.list().where(_filter).map(_toElement).toList()
]
];
}
@@ -78,12 +80,11 @@ class NavNotifyElement extends HtmlElement implements Renderable {
HtmlElement _toElement(M.Notification notification) {
if (notification is M.EventNotification) {
return new NavNotifyEventElement(notification.event, queue: _r.queue)
- ..onDelete.listen((_) => _repository.delete(notification));
+ ..onDelete.listen((_) => _repository.delete(notification));
} else if (notification is M.ExceptionNotification) {
- return new NavNotifyExceptionElement(
- notification.exception, stacktrace: notification.stacktrace,
- queue: _r.queue)
- ..onDelete.listen((_) => _repository.delete(notification));
+ return new NavNotifyExceptionElement(notification.exception,
+ stacktrace: notification.stacktrace, queue: _r.queue)
+ ..onDelete.listen((_) => _repository.delete(notification));
} else {
assert(false);
return new DivElement()..text = 'Invalid Notification Type';
« no previous file with comments | « runtime/observatory/lib/src/elements/nav/menu_item.dart ('k') | runtime/observatory/lib/src/elements/nav/notify_event.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698