| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 } |
| OLD | NEW |