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

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

Issue 1013563002: CPU profile displayed in three tables with a tree (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 8 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 | Annotate | Revision Log
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:async'; 7 import 'dart:async';
8 import 'dart:html'; 8 import 'dart:html';
9 import 'observatory_element.dart'; 9 import 'observatory_element.dart';
10 import 'package:observatory/service.dart'; 10 import 'package:observatory/service.dart';
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 if (callback != null) { 52 if (callback != null) {
53 callback(refreshDone); 53 callback(refreshDone);
54 } 54 }
55 } 55 }
56 56
57 void refreshDone() { 57 void refreshDone() {
58 active = false; 58 active = false;
59 } 59 }
60 } 60 }
61 61
62 @CustomTag('nav-control')
63 class NavControlElement extends ObservatoryElement {
64 NavControlElement.created() : super.created();
65
66 void forward(Event e, var detail, Element target) {
67 app.locationManager.forward();
68 }
69
70 void back(Event e, var detail, Element target) {
71 app.locationManager.back();
72 }
73 }
74
75 @CustomTag('top-nav-menu') 62 @CustomTag('top-nav-menu')
76 class TopNavMenuElement extends ObservatoryElement { 63 class TopNavMenuElement extends ObservatoryElement {
77 @published bool last = false; 64 @published bool last = false;
78 65
79 TopNavMenuElement.created() : super.created(); 66 TopNavMenuElement.created() : super.created();
80 } 67 }
81 68
82 @CustomTag('isolate-nav-menu') 69 @CustomTag('isolate-nav-menu')
83 class IsolateNavMenuElement extends ObservatoryElement { 70 class IsolateNavMenuElement extends ObservatoryElement {
84 @published bool last = false; 71 @published bool last = false;
(...skipping 14 matching lines...) Expand all
99 class ClassNavMenuElement extends ObservatoryElement { 86 class ClassNavMenuElement extends ObservatoryElement {
100 @published Class cls; 87 @published Class cls;
101 @published bool last = false; 88 @published bool last = false;
102 89
103 ClassNavMenuElement.created() : super.created(); 90 ClassNavMenuElement.created() : super.created();
104 } 91 }
105 92
106 @CustomTag('nav-notify') 93 @CustomTag('nav-notify')
107 class NavNotifyElement extends ObservatoryElement { 94 class NavNotifyElement extends ObservatoryElement {
108 @published ObservableList<ServiceEvent> events; 95 @published ObservableList<ServiceEvent> events;
109 96
110 NavNotifyElement.created() : super.created(); 97 NavNotifyElement.created() : super.created();
111 } 98 }
112 99
113 @CustomTag('nav-notify-item') 100 @CustomTag('nav-notify-item')
114 class NavNotifyItemElement extends ObservatoryElement { 101 class NavNotifyItemElement extends ObservatoryElement {
115 @published ObservableList<ServiceEvent> events; 102 @published ObservableList<ServiceEvent> events;
116 @published ServiceEvent event; 103 @published ServiceEvent event;
117 104
118 Future resume(_) { 105 Future resume(_) {
119 app.removePauseEvents(event.isolate); 106 app.removePauseEvents(event.isolate);
120 return event.isolate.resume(); 107 return event.isolate.resume();
121 } 108 }
122 Future stepInto(_) { 109 Future stepInto(_) {
123 app.removePauseEvents(event.isolate); 110 app.removePauseEvents(event.isolate);
124 return event.isolate.stepInto(); 111 return event.isolate.stepInto();
125 } 112 }
126 Future stepOver(_) { 113 Future stepOver(_) {
127 app.removePauseEvents(event.isolate); 114 app.removePauseEvents(event.isolate);
128 return event.isolate.stepOver(); 115 return event.isolate.stepOver();
129 } 116 }
130 Future stepOut(_) { 117 Future stepOut(_) {
131 app.removePauseEvents(event.isolate); 118 app.removePauseEvents(event.isolate);
132 return event.isolate.stepOut(); 119 return event.isolate.stepOut();
133 } 120 }
134 121
135 void closeItem(MouseEvent e, var detail, Element target) { 122 void closeItem(MouseEvent e, var detail, Element target) {
136 events.remove(event); 123 events.remove(event);
137 } 124 }
138 125
139 NavNotifyItemElement.created() : super.created(); 126 NavNotifyItemElement.created() : super.created();
140 } 127 }
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