| 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; |
| 11 import 'package:polymer/polymer.dart'; | 11 import 'package:polymer/polymer.dart'; |
| 12 | 12 |
| 13 | 13 |
| 14 @CustomTag('nav-bar') | 14 @CustomTag('nav-bar') |
| 15 class NavBarElement extends ObservatoryElement { | 15 class NavBarElement extends ObservatoryElement { |
| 16 @published bool notifyOnPause = true; | |
| 17 @published bool pad = true; | 16 @published bool pad = true; |
| 18 | 17 |
| 19 // Desired nav var height in pixels. | 18 // Desired nav var height in pixels. |
| 20 static const height = 40; | 19 static const height = 40; |
| 21 | 20 |
| 22 NavBarElement.created() : super.created(); | 21 NavBarElement.created() : super.created(); |
| 23 } | 22 } |
| 24 | 23 |
| 25 @CustomTag('top-nav-menu') | 24 @CustomTag('top-nav-menu') |
| 26 class TopNavMenuElement extends ObservatoryElement { | 25 class TopNavMenuElement extends ObservatoryElement { |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 110 @observable get isUnexpectedError { | 109 @observable get isUnexpectedError { |
| 111 return (exception is! NetworkRpcException); | 110 return (exception is! NetworkRpcException); |
| 112 } | 111 } |
| 113 | 112 |
| 114 void closeItem(MouseEvent e, var detail, Element target) { | 113 void closeItem(MouseEvent e, var detail, Element target) { |
| 115 notifications.remove(notification); | 114 notifications.remove(notification); |
| 116 } | 115 } |
| 117 | 116 |
| 118 NavNotifyExceptionElement.created() : super.created(); | 117 NavNotifyExceptionElement.created() : super.created(); |
| 119 } | 118 } |
| OLD | NEW |