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

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

Issue 2168463004: Converted Observatory isolate-nav-menu element (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Added sources to observatory_sources.gypi Created 4 years, 5 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 library nav_bar_element; 5 library nav_bar_element;
6 6
7 import 'dart:html' hide Notification; 7 import 'dart:html' hide Notification;
8 import 'observatory_element.dart'; 8 import 'observatory_element.dart';
9 import 'package:observatory/service.dart'; 9 import 'package:observatory/service.dart';
10 import 'package:observatory/app.dart' show Notification; 10 import 'package:observatory/app.dart' show Notification;
(...skipping 27 matching lines...) Expand all
38 if (name != null && target != null) { 38 if (name != null && target != null) {
39 return '${name}@${target.networkAddress}'; 39 return '${name}@${target.networkAddress}';
40 } else { 40 } else {
41 return '<initializing>'; 41 return '<initializing>';
42 } 42 }
43 } 43 }
44 44
45 VMNavMenuElement.created() : super.created(); 45 VMNavMenuElement.created() : super.created();
46 } 46 }
47 47
48 @CustomTag('isolate-nav-menu')
49 class IsolateNavMenuElement extends ObservatoryElement {
50 @published bool last = false;
51 @published Isolate isolate;
52
53 IsolateNavMenuElement.created() : super.created();
54 }
55
56 @CustomTag('library-nav-menu') 48 @CustomTag('library-nav-menu')
57 class LibraryNavMenuElement extends ObservatoryElement { 49 class LibraryNavMenuElement extends ObservatoryElement {
58 @published Library library; 50 @published Library library;
59 @published bool last = false; 51 @published bool last = false;
60 52
61 LibraryNavMenuElement.created() : super.created(); 53 LibraryNavMenuElement.created() : super.created();
62 } 54 }
63 55
64 @CustomTag('class-nav-menu') 56 @CustomTag('class-nav-menu')
65 class ClassNavMenuElement extends ObservatoryElement { 57 class ClassNavMenuElement extends ObservatoryElement {
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 @observable get isUnexpectedError { 102 @observable get isUnexpectedError {
111 return (exception is! NetworkRpcException); 103 return (exception is! NetworkRpcException);
112 } 104 }
113 105
114 void closeItem(MouseEvent e, var detail, Element target) { 106 void closeItem(MouseEvent e, var detail, Element target) {
115 notifications.remove(notification); 107 notifications.remove(notification);
116 } 108 }
117 109
118 NavNotifyExceptionElement.created() : super.created(); 110 NavNotifyExceptionElement.created() : super.created();
119 } 111 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698