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

Unified Diff: runtime/bin/vmservice/client/lib/src/elements/nav_bar.html

Issue 381383010: Add breakpoints and single-stepping to Observatory. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: fix bugs, gen js Created 6 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 side-by-side diff with in-line comments
Download patch
Index: runtime/bin/vmservice/client/lib/src/elements/nav_bar.html
diff --git a/runtime/bin/vmservice/client/lib/src/elements/nav_bar.html b/runtime/bin/vmservice/client/lib/src/elements/nav_bar.html
index b1411d96de2d424f617baeecae2dd0ab55f607a1..a690cf2488e6becdfcda8946cbe8d2cb16b11ad1 100644
--- a/runtime/bin/vmservice/client/lib/src/elements/nav_bar.html
+++ b/runtime/bin/vmservice/client/lib/src/elements/nav_bar.html
@@ -1,4 +1,5 @@
<link rel="import" href="../../../../packages/polymer/polymer.html">
+<link rel="import" href="action_link.html">
<link rel="import" href="observatory_element.html">
<polymer-element name="nav-bar" extends="observatory-element">
@@ -315,27 +316,30 @@
background: rgba(255,255,255,0.5);
}
</style>
- <template if="{{ event.eventType == 'IsolateInterrupted' }}">
+ <template if="{{ event.eventType == 'IsolateInterrupted' ||
+ event.eventType == 'BreakpointReached' ||
+ event.eventType == 'ExceptionThrown' }}">
<div class="item">
Isolate
- <a class="link" on-click="{{ goto }}" href="{{ event.isolate.link }}">{{ event.isolate.name }}</a>
+ <a class="link" on-click="{{ goto }}"
+ href="{{ event.isolate.link }}">{{ event.isolate.name }}</a>
is paused
- <a class="boxclose" on-click="{{ closeItem }}">&times;</a>
- </div>
- </template>
- <template if="{{ event.eventType == 'BreakpointReached' }}">
- <div class="item">
- Isolate
- <a class="link" on-click="{{ goto }}" href="{{ event.isolate.link }}">{{ event.isolate.name }}</a>
- is paused at breakpoint {{ event.breakpoint['id'] }}
- <a class="boxclose" on-click="{{ closeItem }}">&times;</a>
- </div>
- </template>
- <template if="{{ event.eventType == 'ExceptionThrown' }}">
- <div class="item">
- Isolate
- <a class="link" on-click="{{ goto }}" href="{{ event.isolate.link }}">{{ event.isolate.name }}</a>
- is paused at exception
+ <template if="{{ event.breakpoint != null }}">
+ at breakpoint
+ </template>
+ <template if="{{ event.eventType == 'ExceptionThrown' }}">
+ at exception
+ </template>
+
+ <br><br>
+ <action-link callback="{{ resume }}" label="resume" color="white">
+ </action-link>
+ <action-link callback="{{ stepInto }}" label="step" color="white">
+ </action-link>
+ <action-link callback="{{ stepOver }}" label="step&nbsp;over"
+ color="white"></action-link>
+ <action-link callback="{{ stepOut }}" label="step&nbsp;out"
+ color="white"></action-link>
<a class="boxclose" on-click="{{ closeItem }}">&times;</a>
</div>
</template>

Powered by Google App Engine
This is Rietveld 408576698