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/observatory/lib/src/elements/error_ref_wrapper.dart

Issue 2273203004: Converted Observatory persistent-hangles-page element (Closed)
Patch Set: Addressed comments and fixed style Created 4 years, 3 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) 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: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'; 8 import 'package:observatory/service.dart';
9 import 'package:observatory/src/elements/error_ref.dart'; 9 import 'package:observatory/src/elements/error_ref.dart';
10 import 'package:observatory/src/elements/helpers/tag.dart'; 10 import 'package:observatory/src/elements/helpers/tag.dart';
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 if (_error == null) { 44 if (_error == null) {
45 return; 45 return;
46 } 46 }
47 47
48 shadowRoot.children = [ 48 shadowRoot.children = [
49 new StyleElement() 49 new StyleElement()
50 ..text = ''' 50 ..text = '''
51 error-ref-wrapped > pre { 51 error-ref-wrapped > pre {
52 background-color: #f5f5f5; 52 background-color: #f5f5f5;
53 border: 1px solid #ccc; 53 border: 1px solid #ccc;
54 padding: 10px; 54 padding-left: 10px;
55 padding-right: 10px;
55 font-family: consolas, courier, monospace; 56 font-family: consolas, courier, monospace;
56 font-size: 1em; 57 font-size: 1em;
57 line-height: 1.2em; 58 line-height: 1.2em;
58 white-space: pre; 59 white-space: pre;
59 } 60 }
60 ''', 61 ''',
61 new ErrorRefElement(_error, queue: ObservatoryApplication.app.queue) 62 new ErrorRefElement(_error, queue: ObservatoryApplication.app.queue)
62 ]; 63 ];
63 } 64 }
64 } 65 }
OLDNEW
« no previous file with comments | « runtime/observatory/lib/src/elements/css/shared.css ('k') | runtime/observatory/lib/src/elements/heap_snapshot.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698