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:async'; | 7 import 'dart:async'; |
8 import 'dart:html'; | 8 import 'dart:html' hide Notification; |
9 import 'observatory_element.dart'; | 9 import 'observatory_element.dart'; |
10 import 'package:observatory/service.dart'; | 10 import 'package:observatory/service.dart'; |
| 11 import 'package:observatory/app.dart' show Notification; |
11 import 'package:polymer/polymer.dart'; | 12 import 'package:polymer/polymer.dart'; |
12 | 13 |
13 | 14 |
14 @CustomTag('nav-bar') | 15 @CustomTag('nav-bar') |
15 class NavBarElement extends ObservatoryElement { | 16 class NavBarElement extends ObservatoryElement { |
16 @published bool notifyOnPause = true; | 17 @published bool notifyOnPause = true; |
17 @published bool pad = true; | 18 @published bool pad = true; |
18 | 19 |
19 NavBarElement.created() : super.created(); | 20 NavBarElement.created() : super.created(); |
20 } | 21 } |
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
143 @observable get isUnexpectedError { | 144 @observable get isUnexpectedError { |
144 return (exception is! NetworkRpcException); | 145 return (exception is! NetworkRpcException); |
145 } | 146 } |
146 | 147 |
147 void closeItem(MouseEvent e, var detail, Element target) { | 148 void closeItem(MouseEvent e, var detail, Element target) { |
148 notifications.remove(notification); | 149 notifications.remove(notification); |
149 } | 150 } |
150 | 151 |
151 NavNotifyExceptionElement.created() : super.created(); | 152 NavNotifyExceptionElement.created() : super.created(); |
152 } | 153 } |
OLD | NEW |