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

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

Issue 2204973003: Converted Observatory class-ref & library-ref elements (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Fixed indentation 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 6
7 import 'package:observatory/app.dart'; 7 import 'package:observatory/app.dart';
8 import 'package:observatory/service.dart' show ServiceFunction; 8 import 'package:observatory/service.dart' show ServiceFunction;
9 import 'package:observatory/src/elements/function_ref.dart'; 9 import 'package:observatory/src/elements/function_ref.dart';
10 import 'package:observatory/src/elements/helpers/tag.dart'; 10 import 'package:observatory/src/elements/helpers/tag.dart';
(...skipping 27 matching lines...) Expand all
38 render(); 38 render();
39 } 39 }
40 40
41 void render() { 41 void render() {
42 shadowRoot.children = []; 42 shadowRoot.children = [];
43 if (ref == null) return; 43 if (ref == null) return;
44 44
45 shadowRoot.children = [ 45 shadowRoot.children = [
46 new StyleElement() 46 new StyleElement()
47 ..text = ''' 47 ..text = '''
48 class-ref-wrapped > a[href]:hover,
48 function-ref-wrapped > a[href]:hover { 49 function-ref-wrapped > a[href]:hover {
49 text-decoration: underline; 50 text-decoration: underline;
50 } 51 }
52 class-ref-wrapped > a[href],
51 function-ref-wrapped > a[href] { 53 function-ref-wrapped > a[href] {
52 color: #0489c3; 54 color: #0489c3;
53 text-decoration: none; 55 text-decoration: none;
54 }''', 56 }''',
55 new FunctionRefElement(_function.isolate, _function, qualified: qualified, 57 new FunctionRefElement(_function.isolate, _function, qualified: qualified,
56 queue: ObservatoryApplication.app.queue) 58 queue: ObservatoryApplication.app.queue)
57 ]; 59 ];
58 } 60 }
59 } 61 }
OLDNEW
« no previous file with comments | « runtime/observatory/lib/src/elements/function_ref.dart ('k') | runtime/observatory/lib/src/elements/function_view.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698