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

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

Issue 303673009: Create a ServiceObject for a socket (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 6 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 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 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 88
89 IOSocketListViewElement.created() : super.created(); 89 IOSocketListViewElement.created() : super.created();
90 90
91 void refresh(var done) { 91 void refresh(var done) {
92 list.reload().whenComplete(done); 92 list.reload().whenComplete(done);
93 } 93 }
94 } 94 }
95 95
96 @CustomTag('io-socket-view') 96 @CustomTag('io-socket-view')
97 class IOSocketViewElement extends ObservatoryElement { 97 class IOSocketViewElement extends ObservatoryElement {
98 @published ServiceMap socket; 98 @published Socket socket;
99 99
100 IOSocketViewElement.created() : super.created(); 100 IOSocketViewElement.created() : super.created();
101 101
102 void refresh(var done) { 102 void refresh(var done) {
103 socket.reload().whenComplete(done); 103 socket.reload().whenComplete(done);
104 } 104 }
105 } 105 }
106 106
107 @CustomTag('io-web-socket-ref') 107 @CustomTag('io-web-socket-ref')
108 class IOWebSocketRefElement extends ServiceRefElement { 108 class IOWebSocketRefElement extends ServiceRefElement {
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
227 } 227 }
228 228
229 void leftView() { 229 void leftView() {
230 super.leftView(); 230 super.leftView();
231 if (_updateTimer != null) { 231 if (_updateTimer != null) {
232 _updateTimer.cancel(); 232 _updateTimer.cancel();
233 _updateTimer = null; 233 _updateTimer = null;
234 } 234 }
235 } 235 }
236 } 236 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698