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

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

Issue 1726773002: Refactor service tests in preparation of running on sky_shell (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 10 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) 2015, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, 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 timeline_page_element; 5 library timeline_page_element;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 import 'dart:convert'; 8 import 'dart:convert';
9 import 'dart:html'; 9 import 'dart:html';
10 import 'observatory_element.dart'; 10 import 'observatory_element.dart';
11 import 'package:observatory/app.dart';
12 import 'package:observatory/service_html.dart'; 11 import 'package:observatory/service_html.dart';
13 import 'package:polymer/polymer.dart'; 12 import 'package:polymer/polymer.dart';
14 13
15 14
16 @CustomTag('timeline-page') 15 @CustomTag('timeline-page')
17 class TimelinePageElement extends ObservatoryElement { 16 class TimelinePageElement extends ObservatoryElement {
18 TimelinePageElement.created() : super.created(); 17 TimelinePageElement.created() : super.created();
19 18
20 attached() { 19 attached() {
21 super.attached(); 20 super.attached();
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 final top = e.offset.top; 73 final top = e.offset.top;
75 final bottomMargin = 32; 74 final bottomMargin = 32;
76 final mainHeight = totalHeight - top - bottomMargin; 75 final mainHeight = totalHeight - top - bottomMargin;
77 e.style.setProperty('height', '${mainHeight}px'); 76 e.style.setProperty('height', '${mainHeight}px');
78 e.style.setProperty('width', '100%'); 77 e.style.setProperty('width', '100%');
79 } 78 }
80 79
81 80
82 StreamSubscription _resizeSubscription; 81 StreamSubscription _resizeSubscription;
83 } 82 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698