Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(37)

Side by Side Diff: runtime/observatory/lib/src/elements/nav_bar.dart

Issue 2161363002: Refactoring of nav-notify (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Removed duplicated nav-notify tag Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « runtime/observatory/lib/src/elements/metrics.html ('k') | runtime/observatory/lib/src/elements/nav_bar.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698