| 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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 } | 46 } |
| 47 | 47 |
| 48 @CustomTag('isolate-nav-menu') | 48 @CustomTag('isolate-nav-menu') |
| 49 class IsolateNavMenuElement extends ObservatoryElement { | 49 class IsolateNavMenuElement extends ObservatoryElement { |
| 50 @published bool last = false; | 50 @published bool last = false; |
| 51 @published Isolate isolate; | 51 @published Isolate isolate; |
| 52 | 52 |
| 53 IsolateNavMenuElement.created() : super.created(); | 53 IsolateNavMenuElement.created() : super.created(); |
| 54 } | 54 } |
| 55 | 55 |
| 56 @CustomTag('library-nav-menu') | |
| 57 class LibraryNavMenuElement extends ObservatoryElement { | |
| 58 @published Library library; | |
| 59 @published bool last = false; | |
| 60 | |
| 61 LibraryNavMenuElement.created() : super.created(); | |
| 62 } | |
| 63 | |
| 64 @CustomTag('class-nav-menu') | 56 @CustomTag('class-nav-menu') |
| 65 class ClassNavMenuElement extends ObservatoryElement { | 57 class ClassNavMenuElement extends ObservatoryElement { |
| 66 @published Class cls; | 58 @published Class cls; |
| 67 @published bool last = false; | 59 @published bool last = false; |
| 68 | 60 |
| 69 ClassNavMenuElement.created() : super.created(); | 61 ClassNavMenuElement.created() : super.created(); |
| 70 } | 62 } |
| 71 | 63 |
| 72 @CustomTag('nav-notify') | 64 @CustomTag('nav-notify') |
| 73 class NavNotifyElement extends ObservatoryElement { | 65 class NavNotifyElement extends ObservatoryElement { |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 } |
| OLD | NEW |