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

Side by Side Diff: runtime/observatory/lib/src/elements/object_common.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 import 'package:observatory/src/elements/class_ref.dart'; 8 import 'package:observatory/src/elements/class_ref.dart';
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/inbound_references.dart'; 11 import 'package:observatory/src/elements/inbound_references.dart';
12 import 'package:observatory/src/elements/retaining_path.dart'; 12 import 'package:observatory/src/elements/retaining_path.dart';
13 import 'package:observatory/src/elements/sentinel_value.dart'; 13 import 'package:observatory/src/elements/sentinel_value.dart';
14 import 'package:observatory/utils.dart'; 14 import 'package:observatory/utils.dart';
15 15
16 class ObjectCommonElement extends HtmlElement implements Renderable { 16 class ObjectCommonElement extends HtmlElement implements Renderable {
17 static const tag = const Tag<ObjectCommonElement>('object-common-wrapped', 17 static const tag = const Tag<ObjectCommonElement>('object-common',
18 dependencies: const [ 18 dependencies: const [
19 ClassRefElement.tag, 19 ClassRefElement.tag,
20 InboundReferencesElement.tag, 20 InboundReferencesElement.tag,
21 RetainingPathElement.tag, 21 RetainingPathElement.tag,
22 SentinelValueElement.tag 22 SentinelValueElement.tag
23 ]); 23 ]);
24 24
25 RenderingScheduler<ObjectCommonElement> _r; 25 RenderingScheduler<ObjectCommonElement> _r;
26 26
27 Stream<RenderedEvent<ObjectCommonElement>> get onRendered => _r.onRendered; 27 Stream<RenderedEvent<ObjectCommonElement>> get onRendered => _r.onRendered;
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
208 button.onClick.listen((_) async { 208 button.onClick.listen((_) async {
209 button.disabled = true; 209 button.disabled = true;
210 _loadingRetainedBytes = true; 210 _loadingRetainedBytes = true;
211 _retainedSize = await _retainedSizes.get(_isolate, _object.id); 211 _retainedSize = await _retainedSizes.get(_isolate, _object.id);
212 _r.dirty(); 212 _r.dirty();
213 }); 213 });
214 content.add(button); 214 content.add(button);
215 return content; 215 return content;
216 } 216 }
217 } 217 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698