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

Unified Diff: runtime/bin/vmservice/client/lib/src/observatory_elements/navigation_bar_isolate.dart

Issue 185413015: Update the navbar in the observatory (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: new js Created 6 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: runtime/bin/vmservice/client/lib/src/observatory_elements/navigation_bar_isolate.dart
diff --git a/runtime/bin/vmservice/client/lib/src/observatory_elements/navigation_bar_isolate.dart b/runtime/bin/vmservice/client/lib/src/observatory_elements/navigation_bar_isolate.dart
deleted file mode 100644
index e42a66e2ef025b96be9f5f98b76c99f37f627747..0000000000000000000000000000000000000000
--- a/runtime/bin/vmservice/client/lib/src/observatory_elements/navigation_bar_isolate.dart
+++ /dev/null
@@ -1,47 +0,0 @@
-// Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
-
-library navigation_bar_isolate_element;
-
-import 'observatory_element.dart';
-import 'package:polymer/polymer.dart';
-
-@CustomTag('navigation-bar-isolate')
-class NavigationBarIsolateElement extends ObservatoryElement {
- NavigationBarIsolateElement.created() : super.created();
- @observable List<String> links = toObservable(
- [ 'Stacktrace', 'Library', 'CPU Profile']);
-
- void appChanged(oldValue) {
- super.appChanged(oldValue);
- notifyPropertyChange(#currentIsolateName, '', currentIsolateName);
- }
-
- String currentIsolateName() {
- if (app == null) {
- return '';
- }
- var isolate = app.locationManager.currentIsolate();
- if (isolate == null) {
- return '';
- }
- return isolate.name;
- }
-
- String currentIsolateLink(String link) {
- if (app == null) {
- return '';
- }
- switch (link) {
- case 'Stacktrace':
- return app.locationManager.currentIsolateRelativeLink('stacktrace');
- case 'Library':
- return app.locationManager.currentIsolateRelativeLink('library');
- case 'CPU Profile':
- return app.locationManager.currentIsolateRelativeLink('profile');
- default:
- return app.locationManager.currentIsolateRelativeLink('');
- }
- }
-}

Powered by Google App Engine
This is Rietveld 408576698