Index: runtime/observatory/lib/src/elements/nav_bar.dart |
diff --git a/runtime/observatory/lib/src/elements/nav_bar.dart b/runtime/observatory/lib/src/elements/nav_bar.dart |
index e27bf9ee149d2bed0b45e5fa8dd9ce4786a4effa..005a5d91d7dc75258d0063ab9be3ee4fb7e2c3db 100644 |
--- a/runtime/observatory/lib/src/elements/nav_bar.dart |
+++ b/runtime/observatory/lib/src/elements/nav_bar.dart |
@@ -4,10 +4,8 @@ |
library nav_bar_element; |
-import 'dart:html' hide Notification; |
import 'observatory_element.dart'; |
import 'package:observatory/service.dart'; |
-import 'package:observatory/app.dart' show Notification; |
import 'package:polymer/polymer.dart'; |
@CustomTag('library-nav-menu') |
@@ -17,52 +15,3 @@ class LibraryNavMenuElement extends ObservatoryElement { |
LibraryNavMenuElement.created() : super.created(); |
} |
- |
-@CustomTag('nav-notify') |
-class NavNotifyElement extends ObservatoryElement { |
- @published ObservableList<Notification> notifications; |
- @published bool notifyOnPause = true; |
- |
- NavNotifyElement.created() : super.created(); |
-} |
- |
-@CustomTag('nav-notify-event') |
-class NavNotifyEventElement extends ObservatoryElement { |
- @published ObservableList<Notification> notifications; |
- @published Notification notification; |
- @published ServiceEvent event; |
- @published bool notifyOnPause = true; |
- |
- void closeItem(MouseEvent e, var detail, Element target) { |
- notifications.remove(notification); |
- } |
- |
- NavNotifyEventElement.created() : super.created(); |
-} |
- |
-@CustomTag('nav-notify-exception') |
-class NavNotifyExceptionElement extends ObservatoryElement { |
- @published ObservableList<Notification> notifications; |
- @published Notification notification; |
- @published var exception; |
- @published var stacktrace; |
- |
- exceptionChanged() { |
- notifyPropertyChange(#isNetworkError, true, false); |
- notifyPropertyChange(#isUnexpectedError, true, false); |
- } |
- |
- @observable get isNetworkError { |
- return (exception is NetworkRpcException); |
- } |
- |
- @observable get isUnexpectedError { |
- return (exception is! NetworkRpcException); |
- } |
- |
- void closeItem(MouseEvent e, var detail, Element target) { |
- notifications.remove(notification); |
- } |
- |
- NavNotifyExceptionElement.created() : super.created(); |
-} |