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

Side by Side Diff: runtime/observatory/lib/src/elements/context_ref.dart

Issue 2310003004: Removed polymer & mirror from Observatory (Closed)
Patch Set: Fixed crash in heap-map page 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 import 'dart:html'; 5 import 'dart:html';
6 import 'dart:async'; 6 import 'dart:async';
7 import 'package:observatory/models.dart' as M 7 import 'package:observatory/models.dart' as M
8 show IsolateRef, ContextRef; 8 show IsolateRef, ContextRef;
9 import 'package:observatory/src/elements/helpers/rendering_scheduler.dart'; 9 import 'package:observatory/src/elements/helpers/rendering_scheduler.dart';
10 import 'package:observatory/src/elements/helpers/tag.dart'; 10 import 'package:observatory/src/elements/helpers/tag.dart';
11 import 'package:observatory/src/elements/helpers/uris.dart'; 11 import 'package:observatory/src/elements/helpers/uris.dart';
12 12
13 class ContextRefElement extends HtmlElement implements Renderable { 13 class ContextRefElement extends HtmlElement implements Renderable {
14 static const tag = const Tag<ContextRefElement>('context-ref-wrapped'); 14 static const tag = const Tag<ContextRefElement>('context-ref');
15 15
16 RenderingScheduler<ContextRefElement> _r; 16 RenderingScheduler<ContextRefElement> _r;
17 17
18 Stream<RenderedEvent<ContextRefElement>> get onRendered => _r.onRendered; 18 Stream<RenderedEvent<ContextRefElement>> get onRendered => _r.onRendered;
19 19
20 M.IsolateRef _isolate; 20 M.IsolateRef _isolate;
21 M.ContextRef _context; 21 M.ContextRef _context;
22 22
23 M.IsolateRef get isolate => _isolate; 23 M.IsolateRef get isolate => _isolate;
24 M.ContextRef get context => _context; 24 M.ContextRef get context => _context;
(...skipping 27 matching lines...) Expand all
52 void render() { 52 void render() {
53 children = [ 53 children = [
54 new AnchorElement(href: Uris.inspect(_isolate, object: _context)) 54 new AnchorElement(href: Uris.inspect(_isolate, object: _context))
55 ..children = [ 55 ..children = [
56 new SpanElement()..classes = ['emphasize']..text = 'Context', 56 new SpanElement()..classes = ['emphasize']..text = 'Context',
57 new SpanElement()..text = ' (${_context.length})' 57 new SpanElement()..text = ' (${_context.length})'
58 ] 58 ]
59 ]; 59 ];
60 } 60 }
61 } 61 }
OLDNEW
« no previous file with comments | « runtime/observatory/lib/src/elements/code_view.dart ('k') | runtime/observatory/lib/src/elements/context_ref_wrapper.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698