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

Unified Diff: runtime/bin/vmservice/client/lib/src/observatory_elements/function_view.html

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/function_view.html
diff --git a/runtime/bin/vmservice/client/lib/src/observatory_elements/function_view.html b/runtime/bin/vmservice/client/lib/src/observatory_elements/function_view.html
index f03e621c689002862ea8b105870832e22e4880fb..a89ce852495c833c33bb60fc700dde791a3152e4 100644
--- a/runtime/bin/vmservice/client/lib/src/observatory_elements/function_view.html
+++ b/runtime/bin/vmservice/client/lib/src/observatory_elements/function_view.html
@@ -1,10 +1,26 @@
<head>
<link rel="import" href="class_ref.html">
<link rel="import" href="code_ref.html">
+ <link rel="import" href="nav_bar.html">
<link rel="import" href="observatory_element.html">
</head>
<polymer-element name="function-view" extends="observatory-element">
<template>
+ <nav-bar>
+ <top-nav-menu></top-nav-menu>
+ <isolate-nav-menu app="{{ app }}" isolate="{{ app.locationManager.currentIsolate() }}">
+ </isolate-nav-menu>
+ <template if="{{ function['owner']['type'] == '@Class' }}">
+ <!-- TODO(turnidge): Add library nav menu here. -->
+ <class-nav-menu app="{{ app }}" cls="{{ function['owner'] }}"></class-nav-menu>
+ </template>
+ <template if="{{ function['owner']['type'] == '@Library' }}">
+ <library-nav-menu app="{{ app }}" library="{{ function['owner'] }}"></library-nav-menu>
+ </template>
+ <nav-menu link="." anchor="{{ function['user_name'] }}" last="{{ true }}"></nav-menu>
+ <nav-refresh callback="{{ refresh }}"></nav-refresh>
+ </nav-bar>
+
<div class="row">
<div class="col-md-8 col-md-offset-2">
<div class="panel panel-warning">
@@ -51,4 +67,4 @@
</div>
</template>
<script type="application/dart" src="function_view.dart"></script>
-</polymer-element>
+</polymer-element>

Powered by Google App Engine
This is Rietveld 408576698