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

Side by Side Diff: runtime/bin/vmservice/observatory/lib/src/elements/instance_ref.dart

Issue 515303005: Allow observatory to distinguish between user-level and vm-level types. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: gen js, fix test Created 6 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 | Annotate | Revision Log
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 library instance_ref_element; 5 library instance_ref_element;
6 6
7 import 'package:polymer/polymer.dart'; 7 import 'package:polymer/polymer.dart';
8 import 'package:observatory/service.dart'; 8 import 'package:observatory/service.dart';
9 import 'service_ref.dart'; 9 import 'service_ref.dart';
10 10
11 @CustomTag('instance-ref') 11 @CustomTag('instance-ref')
12 class InstanceRefElement extends ServiceRefElement { 12 class InstanceRefElement extends ServiceRefElement {
13 InstanceRefElement.created() : super.created(); 13 InstanceRefElement.created() : super.created();
14 14
15 String get hoverText { 15 String get hoverText {
16 if (ref != null) { 16 if (ref != null) {
17 if (ref.serviceType == 'Null') { 17 if (ref.type == 'Sentinel') {
18 if (ref.id == 'objects/optimized-out') { 18 if (ref.id == 'objects/optimized-out') {
19 return 'This object is no longer needed and has been removed by the op timizing compiler.'; 19 return 'This object is no longer needed and has been removed by the op timizing compiler.';
20 } else if (ref.id == 'objects/collected') { 20 } else if (ref.id == 'objects/collected') {
21 return 'This object has been reclaimed by the garbage collector.'; 21 return 'This object has been reclaimed by the garbage collector.';
22 } else if (ref.id == 'objects/expired') { 22 } else if (ref.id == 'objects/expired') {
23 return 'The handle to this object has expired. Consider refreshing th e page.'; 23 return 'The handle to this object has expired. Consider refreshing th e page.';
24 } else if (ref.id == 'objects/not-initialized') { 24 } else if (ref.id == 'objects/not-initialized') {
25 return 'This object will be initialized once it is accessed by the pro gram.'; 25 return 'This object will be initialized once it is accessed by the pro gram.';
26 } else if (ref.id == 'objects/being-initialized') { 26 } else if (ref.id == 'objects/being-initialized') {
27 return 'This object is currently being initialized.'; 27 return 'This object is currently being initialized.';
(...skipping 20 matching lines...) Expand all
48 notifyPropertyChange(#ref, 0, 1); 48 notifyPropertyChange(#ref, 0, 1);
49 }).whenComplete(done); 49 }).whenComplete(done);
50 } else { 50 } else {
51 ServiceMap refMap = ref; 51 ServiceMap refMap = ref;
52 refMap['fields'] = null; 52 refMap['fields'] = null;
53 refMap['elements'] = null; 53 refMap['elements'] = null;
54 done(); 54 done();
55 } 55 }
56 } 56 }
57 } 57 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698