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

Side by Side Diff: runtime/bin/vmservice/client/lib/src/elements/service_view.dart

Issue 197873028: Implement isolate view page. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: tweak html / gen js Created 6 years, 9 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 service_object_view_element; 5 library service_object_view_element;
6 6
7 import 'dart:html'; 7 import 'dart:html';
8 import 'package:logging/logging.dart'; 8 import 'package:logging/logging.dart';
9 import 'package:observatory/service.dart'; 9 import 'package:observatory/service.dart';
10 import 'package:observatory/elements.dart'; 10 import 'package:observatory/elements.dart';
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 case 'Array': 55 case 'Array':
56 case 'Bool': 56 case 'Bool':
57 case 'Closure': 57 case 'Closure':
58 case 'GrowableObjectArray': 58 case 'GrowableObjectArray':
59 case 'Instance': 59 case 'Instance':
60 case 'Smi': 60 case 'Smi':
61 case 'String': 61 case 'String':
62 InstanceViewElement element = new Element.tag('instance-view'); 62 InstanceViewElement element = new Element.tag('instance-view');
63 element.instance = object; 63 element.instance = object;
64 return element; 64 return element;
65 case 'Isolate':
66 IsolateViewElement element = new Element.tag('isolate-view');
67 element.isolate = object;
68 return element;
65 case 'IsolateList': 69 case 'IsolateList':
66 IsolateListElement element = new Element.tag('isolate-list'); 70 IsolateListElement element = new Element.tag('isolate-list');
67 element.isolates = object; 71 element.isolates = object;
68 return element; 72 return element;
69 case 'Library': 73 case 'Library':
70 LibraryViewElement element = new Element.tag('library-view'); 74 LibraryViewElement element = new Element.tag('library-view');
71 element.library = object; 75 element.library = object;
72 return element; 76 return element;
73 case 'Profile': 77 case 'Profile':
74 IsolateProfileElement element = new Element.tag('isolate-profile'); 78 IsolateProfileElement element = new Element.tag('isolate-profile');
(...skipping 22 matching lines...) Expand all
97 var type = object.serviceType; 101 var type = object.serviceType;
98 var element = _constructElementForObject(); 102 var element = _constructElementForObject();
99 if (element == null) { 103 if (element == null) {
100 Logger.root.info('Unable to find a view element for \'${type}\''); 104 Logger.root.info('Unable to find a view element for \'${type}\'');
101 return; 105 return;
102 } 106 }
103 children.add(element); 107 children.add(element);
104 Logger.root.info('Viewing object of \'${type}\''); 108 Logger.root.info('Viewing object of \'${type}\'');
105 } 109 }
106 } 110 }
OLDNEW
« no previous file with comments | « runtime/bin/vmservice/client/lib/src/elements/nav_bar.html ('k') | runtime/bin/vmservice/client/lib/src/service/object.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698