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

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

Issue 2164903003: Converted Observatory library-nav-menu element (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Adding _getBoolAttribute helper method 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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 } 46 }
47 47
48 @CustomTag('isolate-nav-menu') 48 @CustomTag('isolate-nav-menu')
49 class IsolateNavMenuElement extends ObservatoryElement { 49 class IsolateNavMenuElement extends ObservatoryElement {
50 @published bool last = false; 50 @published bool last = false;
51 @published Isolate isolate; 51 @published Isolate isolate;
52 52
53 IsolateNavMenuElement.created() : super.created(); 53 IsolateNavMenuElement.created() : super.created();
54 } 54 }
55 55
56 @CustomTag('library-nav-menu')
57 class LibraryNavMenuElement extends ObservatoryElement {
58 @published Library library;
59 @published bool last = false;
60
61 LibraryNavMenuElement.created() : super.created();
62 }
63
64 @CustomTag('class-nav-menu') 56 @CustomTag('class-nav-menu')
65 class ClassNavMenuElement extends ObservatoryElement { 57 class ClassNavMenuElement extends ObservatoryElement {
66 @published Class cls; 58 @published Class cls;
67 @published bool last = false; 59 @published bool last = false;
68 60
69 ClassNavMenuElement.created() : super.created(); 61 ClassNavMenuElement.created() : super.created();
70 } 62 }
71 63
72 @CustomTag('nav-notify') 64 @CustomTag('nav-notify')
73 class NavNotifyElement extends ObservatoryElement { 65 class NavNotifyElement extends ObservatoryElement {
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
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