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

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: Merged with master 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 19 matching lines...) Expand all
30 if (name != null && target != null) { 30 if (name != null && target != null) {
31 return '${name}@${target.networkAddress}'; 31 return '${name}@${target.networkAddress}';
32 } else { 32 } else {
33 return '<initializing>'; 33 return '<initializing>';
34 } 34 }
35 } 35 }
36 36
37 VMNavMenuElement.created() : super.created(); 37 VMNavMenuElement.created() : super.created();
38 } 38 }
39 39
40 @CustomTag('isolate-nav-menu')
41 class IsolateNavMenuElement extends ObservatoryElement {
42 @published bool last = false;
43 @published Isolate isolate;
44
45 IsolateNavMenuElement.created() : super.created();
46 }
47
48 @CustomTag('library-nav-menu') 40 @CustomTag('library-nav-menu')
49 class LibraryNavMenuElement extends ObservatoryElement { 41 class LibraryNavMenuElement extends ObservatoryElement {
50 @published Library library; 42 @published Library library;
51 @published bool last = false; 43 @published bool last = false;
52 44
53 LibraryNavMenuElement.created() : super.created(); 45 LibraryNavMenuElement.created() : super.created();
54 } 46 }
55 47
56 @CustomTag('class-nav-menu') 48 @CustomTag('class-nav-menu')
57 class ClassNavMenuElement extends ObservatoryElement { 49 class ClassNavMenuElement extends ObservatoryElement {
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 @observable get isUnexpectedError { 94 @observable get isUnexpectedError {
103 return (exception is! NetworkRpcException); 95 return (exception is! NetworkRpcException);
104 } 96 }
105 97
106 void closeItem(MouseEvent e, var detail, Element target) { 98 void closeItem(MouseEvent e, var detail, Element target) {
107 notifications.remove(notification); 99 notifications.remove(notification);
108 } 100 }
109 101
110 NavNotifyExceptionElement.created() : super.created(); 102 NavNotifyExceptionElement.created() : super.created();
111 } 103 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698