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

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

Issue 2165913004: Converted Observatory class-nav-menu element (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: 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;
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 } 54 }
55 55
56 @CustomTag('library-nav-menu') 56 @CustomTag('library-nav-menu')
57 class LibraryNavMenuElement extends ObservatoryElement { 57 class LibraryNavMenuElement extends ObservatoryElement {
58 @published Library library; 58 @published Library library;
59 @published bool last = false; 59 @published bool last = false;
60 60
61 LibraryNavMenuElement.created() : super.created(); 61 LibraryNavMenuElement.created() : super.created();
62 } 62 }
63 63
64 @CustomTag('class-nav-menu')
65 class ClassNavMenuElement extends ObservatoryElement {
66 @published Class cls;
67 @published bool last = false;
68
69 ClassNavMenuElement.created() : super.created();
70 }
71
72 @CustomTag('nav-notify') 64 @CustomTag('nav-notify')
73 class NavNotifyElement extends ObservatoryElement { 65 class NavNotifyElement extends ObservatoryElement {
74 @published ObservableList<Notification> notifications; 66 @published ObservableList<Notification> notifications;
75 @published bool notifyOnPause = true; 67 @published bool notifyOnPause = true;
76 68
77 NavNotifyElement.created() : super.created(); 69 NavNotifyElement.created() : super.created();
78 } 70 }
79 71
80 @CustomTag('nav-notify-event') 72 @CustomTag('nav-notify-event')
81 class NavNotifyEventElement extends ObservatoryElement { 73 class NavNotifyEventElement extends ObservatoryElement {
(...skipping 28 matching lines...) Expand all
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698