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

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

Issue 2194383002: Converted Observatory code-ref function-ref element (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Fixed CSS problem 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
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 import 'dart:html'; 5 import 'dart:html';
6 import 'dart:async'; 6 import 'dart:async';
7 7
8 import 'package:observatory/app.dart'; 8 import 'package:observatory/app.dart';
9 import 'package:observatory/models.dart' show IsolateUpdateEvent; 9 import 'package:observatory/models.dart' show IsolateUpdateEvent;
10 import 'package:observatory/mocks.dart' show IsolateUpdateEventMock; 10 import 'package:observatory/mocks.dart' show IsolateUpdateEventMock;
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 _subscription = null; 65 _subscription = null;
66 } 66 }
67 } 67 }
68 68
69 void render() { 69 void render() {
70 shadowRoot.children = []; 70 shadowRoot.children = [];
71 if (ref == null) return; 71 if (ref == null) return;
72 72
73 shadowRoot.children = [ 73 shadowRoot.children = [
74 new StyleElement() 74 new StyleElement()
75 ..text = '@import "packages/observatory/src/elements/css/shared.css";', 75 ..text = '''
76 isolate-ref-wrapped > a[href]:hover {
77 text-decoration: underline;
78 }
79 isolate-ref-wrapped > a[href] {
80 color: #0489c3;
81 text-decoration: none;
82 }''',
76 new IsolateRefElement(_isolate, _updates, 83 new IsolateRefElement(_isolate, _updates,
77 queue: ObservatoryApplication.app.queue) 84 queue: ObservatoryApplication.app.queue)
78 ]; 85 ];
79 } 86 }
80 } 87 }
OLDNEW
« no previous file with comments | « runtime/observatory/lib/src/elements/instructions_view.html ('k') | runtime/observatory/lib/src/elements/isolate_summary.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698