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

Side by Side Diff: runtime/bin/vmservice/client/lib/src/elements/io_view.dart

Issue 293363007: Add 'Sockets' to observatory. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Deploy Created 6 years, 7 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 io_view_element; 5 library io_view_element;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 import 'observatory_element.dart'; 8 import 'observatory_element.dart';
9 import 'service_ref.dart'; 9 import 'service_ref.dart';
10 import 'package:observatory/service.dart'; 10 import 'package:observatory/service.dart';
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 _updateTimer = null; 70 _updateTimer = null;
71 } 71 }
72 } 72 }
73 } 73 }
74 74
75 @CustomTag('io-socket-ref') 75 @CustomTag('io-socket-ref')
76 class IOSocketRefElement extends ServiceRefElement { 76 class IOSocketRefElement extends ServiceRefElement {
77 IOSocketRefElement.created() : super.created(); 77 IOSocketRefElement.created() : super.created();
78 } 78 }
79 79
80 @CustomTag('io-socket-list-view')
81 class IOSocketListViewElement extends ObservatoryElement {
82 @published ServiceMap list;
83
84 IOSocketListViewElement.created() : super.created();
85
86 void refresh(var done) {
87 list.reload().whenComplete(done);
88 }
89 }
90
80 @CustomTag('io-socket-view') 91 @CustomTag('io-socket-view')
81 class IOSocketViewElement extends ObservatoryElement { 92 class IOSocketViewElement extends ObservatoryElement {
82 @published ServiceMap socket; 93 @published ServiceMap socket;
83 94
84 IOSocketViewElement.created() : super.created(); 95 IOSocketViewElement.created() : super.created();
85 96
86 void refresh(var done) { 97 void refresh(var done) {
87 socket.reload().whenComplete(done); 98 socket.reload().whenComplete(done);
88 } 99 }
89 } 100 }
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 } 142 }
132 143
133 void leftView() { 144 void leftView() {
134 super.leftView(); 145 super.leftView();
135 if (_updateTimer != null) { 146 if (_updateTimer != null) {
136 _updateTimer.cancel(); 147 _updateTimer.cancel();
137 _updateTimer = null; 148 _updateTimer = null;
138 } 149 }
139 } 150 }
140 } 151 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698