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

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

Issue 979823003: Major rework of vm service events. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 9 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 isolate_summary_element; 5 library isolate_summary_element;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 import 'observatory_element.dart'; 8 import 'observatory_element.dart';
9 import 'package:observatory/app.dart'; 9 import 'package:observatory/app.dart';
10 import 'package:observatory/service.dart'; 10 import 'package:observatory/service.dart';
11 import 'package:polymer/polymer.dart'; 11 import 'package:polymer/polymer.dart';
12 12
13 @CustomTag('isolate-summary') 13 @CustomTag('isolate-summary')
14 class IsolateSummaryElement extends ObservatoryElement { 14 class IsolateSummaryElement extends ObservatoryElement {
15 IsolateSummaryElement.created() : super.created(); 15 IsolateSummaryElement.created() : super.created();
16 16
17 @published Isolate isolate; 17 @published Isolate isolate;
18 } 18 }
19 19
20 @CustomTag('isolate-run-state') 20 @CustomTag('isolate-run-state')
21 class IsolateRunStateElement extends ObservatoryElement { 21 class IsolateRunStateElement extends ObservatoryElement {
22 IsolateRunStateElement.created() : super.created(); 22 IsolateRunStateElement.created() : super.created();
23 23
24 @published Isolate isolate; 24 @published Isolate isolate;
25
26 Future pause(_) {
27 return isolate.pause();
28 }
29 Future resume(_) {
30 app.removePauseEvents(isolate);
31 return isolate.resume();
32 }
33 Future stepInto(_) {
34 app.removePauseEvents(isolate);
35 return isolate.stepInto();
36 }
37 Future stepOver(_) {
38 app.removePauseEvents(isolate);
39 return isolate.stepOver();
40 }
41 Future stepOut(_) {
42 app.removePauseEvents(isolate);
43 return isolate.stepOut();
44 }
45 } 25 }
46 26
47 @CustomTag('isolate-location') 27 @CustomTag('isolate-location')
48 class IsolateLocationElement extends ObservatoryElement { 28 class IsolateLocationElement extends ObservatoryElement {
49 IsolateLocationElement.created() : super.created(); 29 IsolateLocationElement.created() : super.created();
50 30
51 @published Isolate isolate; 31 @published Isolate isolate;
52 } 32 }
53 33
54 @CustomTag('isolate-shared-summary') 34 @CustomTag('isolate-shared-summary')
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 chart.update(counters); 85 chart.update(counters);
106 var element = shadowRoot.querySelector('#counterPieChart'); 86 var element = shadowRoot.querySelector('#counterPieChart');
107 if (element != null) { 87 if (element != null) {
108 chart.draw(element); 88 chart.draw(element);
109 } 89 }
110 } 90 }
111 } 91 }
112 92
113 93
114 94
OLDNEW
« no previous file with comments | « runtime/observatory/lib/src/elements/debugger.dart ('k') | runtime/observatory/lib/src/elements/isolate_summary.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698