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

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

Issue 2204943005: Dynamic host and port in vm-connect element (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Removed dump.json Created 4 years, 4 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
« no previous file with comments | « runtime/observatory/lib/src/elements/vm_connect.dart ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2016, 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 import 'dart:async'; 5 import 'dart:async';
6 import 'dart:html'; 6 import 'dart:html';
7 import 'package:observatory/models.dart' as M show Target; 7 import 'package:observatory/models.dart' as M show Target;
8 import 'package:observatory/src/elements/helpers/rendering_scheduler.dart'; 8 import 'package:observatory/src/elements/helpers/rendering_scheduler.dart';
9 import 'package:observatory/src/elements/helpers/tag.dart'; 9 import 'package:observatory/src/elements/helpers/tag.dart';
10 import 'package:observatory/src/elements/helpers/uris.dart'; 10 import 'package:observatory/src/elements/helpers/uris.dart';
11 11
12 class TargetEvent { 12 class TargetEvent {
13 final M.Target target; 13 final M.Target target;
14 14
15 TargetEvent(this.target); 15 TargetEvent(this.target);
16 } 16 }
17 17
18 class VMConnectTargetElement extends HtmlElement implements Renderable{ 18 class VMConnectTargetElement extends HtmlElement implements Renderable {
19 19
20 static const tag = 20 static const tag =
21 const Tag<VMConnectTargetElement>('vm-connect-target'); 21 const Tag<VMConnectTargetElement>('vm-connect-target');
22 22
23 RenderingScheduler<VMConnectTargetElement> _r; 23 RenderingScheduler<VMConnectTargetElement> _r;
24 24
25 Stream<RenderedEvent<VMConnectTargetElement>> get onRendered => _r.onRendered; 25 Stream<RenderedEvent<VMConnectTargetElement>> get onRendered => _r.onRendered;
26 26
27 final StreamController<TargetEvent> _onConnect = 27 final StreamController<TargetEvent> _onConnect =
28 new StreamController<TargetEvent>.broadcast(); 28 new StreamController<TargetEvent>.broadcast();
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 92
93 TargetEvent _toEvent(_) { 93 TargetEvent _toEvent(_) {
94 return new TargetEvent(target); 94 return new TargetEvent(target);
95 } 95 }
96 96
97 static bool _filter(MouseEvent event) { 97 static bool _filter(MouseEvent event) {
98 return !(event.button > 0 || event.metaKey || event.ctrlKey || 98 return !(event.button > 0 || event.metaKey || event.ctrlKey ||
99 event.shiftKey || event.altKey); 99 event.shiftKey || event.altKey);
100 } 100 }
101 } 101 }
OLDNEW
« no previous file with comments | « runtime/observatory/lib/src/elements/vm_connect.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698