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

Unified Diff: runtime/observatory/lib/src/elements/sentinel_view.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/sentinel_view.dart
diff --git a/runtime/observatory/lib/src/elements/sentinel_view.dart b/runtime/observatory/lib/src/elements/sentinel_view.dart
index eb8cd90a4fc5645a0d2781d2a2ba6cfed543042c..c4707580a4f9e5a5606010656b93164e48b84cc8 100644
--- a/runtime/observatory/lib/src/elements/sentinel_view.dart
+++ b/runtime/observatory/lib/src/elements/sentinel_view.dart
@@ -15,16 +15,15 @@ import 'package:observatory/src/elements/nav/top_menu.dart';
import 'package:observatory/src/elements/nav/vm_menu.dart';
import 'package:observatory/src/elements/view_footer.dart';
-
class SentinelViewElement extends HtmlElement implements Renderable {
- static const tag = const Tag<SentinelViewElement>('sentinel-view',
- dependencies: const [
- NavTopMenuElement.tag,
- NavVMMenuElement.tag,
- NavIsolateMenuElement.tag,
- NavNotifyElement.tag,
- ViewFooterElement.tag
- ]);
+ static const tag =
+ const Tag<SentinelViewElement>('sentinel-view', dependencies: const [
+ NavTopMenuElement.tag,
+ NavVMMenuElement.tag,
+ NavIsolateMenuElement.tag,
+ NavNotifyElement.tag,
+ ViewFooterElement.tag
+ ]);
RenderingScheduler<SentinelViewElement> _r;
@@ -38,10 +37,13 @@ class SentinelViewElement extends HtmlElement implements Renderable {
M.Sentinel get sentinel => _sentinel;
- factory SentinelViewElement(M.VM vm, M.IsolateRef isolate, M.Sentinel sentinel,
- M.EventRepository events,
- M.NotificationRepository notifications,
- {RenderingQueue queue}) {
+ factory SentinelViewElement(
+ M.VM vm,
+ M.IsolateRef isolate,
+ M.Sentinel sentinel,
+ M.EventRepository events,
+ M.NotificationRepository notifications,
+ {RenderingQueue queue}) {
assert(vm != null);
assert(isolate != null);
assert(sentinel != null);
@@ -82,13 +84,13 @@ class SentinelViewElement extends HtmlElement implements Renderable {
navMenu('sentinel'),
new NavNotifyElement(_notifications, queue: _r.queue)
]),
- new DivElement()..classes = ['content-centered-big']
+ new DivElement()
+ ..classes = ['content-centered-big']
..children = [
new HeadingElement.h2()
..text = 'Sentinel: #{_sentinel.valueAsString}',
new HRElement(),
- new DivElement()
- ..text = _sentinelKindToDescription(_sentinel.kind),
+ new DivElement()..text = _sentinelKindToDescription(_sentinel.kind),
new HRElement(),
new ViewFooterElement(queue: _r.queue)
]
@@ -101,19 +103,18 @@ class SentinelViewElement extends HtmlElement implements Renderable {
return 'This object has been reclaimed by the garbage collector.';
case M.SentinelKind.expired:
return 'The handle to this object has expired. '
- 'Consider refreshing the page.';
+ 'Consider refreshing the page.';
case M.SentinelKind.notInitialized:
return 'This object will be initialized once it is accessed by '
- 'the program.';
+ 'the program.';
case M.SentinelKind.initializing:
return 'This object is currently being initialized.';
case M.SentinelKind.optimizedOut:
return 'This object is no longer needed and has been removed by the '
- 'optimizing compiler.';
+ 'optimizing compiler.';
case M.SentinelKind.free:
return '';
}
throw new Exception('Unknown SentinelKind: $kind');
}
-
}
« no previous file with comments | « runtime/observatory/lib/src/elements/sentinel_value.dart ('k') | runtime/observatory/lib/src/elements/source_inset.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698