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

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

Issue 823403004: Begin migrating the vm service from a rest-style interface to a json-rpc style interface. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: remove old-style standalone tests. Created 5 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, 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 debugger_page_element; 5 library debugger_page_element;
6 6
7 import 'dart:html'; 7 import 'dart:html';
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:polymer/polymer.dart'; 10 import 'package:polymer/polymer.dart';
(...skipping 27 matching lines...) Expand all
38 } 38 }
39 } 39 }
40 40
41 @CustomTag('debugger-stack') 41 @CustomTag('debugger-stack')
42 class DebuggerStackElement extends ObservatoryElement { 42 class DebuggerStackElement extends ObservatoryElement {
43 @published Isolate isolate; 43 @published Isolate isolate;
44 @published ServiceMap stack; 44 @published ServiceMap stack;
45 @published int activeFrame = 0; 45 @published int activeFrame = 0;
46 46
47 isolateChanged(oldValue) { 47 isolateChanged(oldValue) {
48 isolate.get('stacktrace').then((result) { 48 isolate.getStack().then((result) {
49 stack = result; 49 stack = result;
50 }); 50 });
51 } 51 }
52 52
53 DebuggerStackElement.created() : super.created(); 53 DebuggerStackElement.created() : super.created();
54 } 54 }
55 55
56 @CustomTag('debugger-frame') 56 @CustomTag('debugger-frame')
57 class DebuggerFrameElement extends ObservatoryElement { 57 class DebuggerFrameElement extends ObservatoryElement {
58 @published ObservableMap frame; 58 @published ObservableMap frame;
59 59
60 // When true, the frame will start out expanded. 60 // When true, the frame will start out expanded.
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 print('Debugger command (not implemented): $text'); 126 print('Debugger command (not implemented): $text');
127 text = ''; 127 text = '';
128 break; 128 break;
129 } 129 }
130 }); 130 });
131 } 131 }
132 132
133 DebuggerInputElement.created() : super.created(); 133 DebuggerInputElement.created() : super.created();
134 } 134 }
135 135
OLDNEW
« no previous file with comments | « runtime/observatory/lib/src/elements/cpu_profile.html ('k') | runtime/observatory/lib/src/elements/debugger.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698