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

Side by Side Diff: runtime/bin/vmservice/client/lib/src/elements/observatory_element.dart

Issue 299823004: Upgrade Observatory to Polymer 0.10.x (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 7 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 | Annotate | Revision Log
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 library observatory_element; 5 library observatory_element;
6 6
7 import 'package:observatory/app.dart'; 7 import 'package:observatory/app.dart';
8 import 'package:polymer/polymer.dart'; 8 import 'package:polymer/polymer.dart';
9 9
10 /// Base class for all Observatory custom elements. 10 /// Base class for all Observatory custom elements.
11 @CustomTag('observatory-element') 11 @CustomTag('observatory-element')
12 class ObservatoryElement extends PolymerElement { 12 class ObservatoryElement extends PolymerElement {
13 ObservatoryElement.created() : super.created(); 13 ObservatoryElement.created() : super.created();
14 14
15 void enteredView() { 15 void enteredView() {
16 super.enteredView(); 16 super.enteredView();
17 } 17 }
18 18
19 void leftView() { 19 void leftView() {
20 super.leftView(); 20 super.leftView();
21 } 21 }
22 22
23 void ready() {
24 super.ready();
25 }
26
23 void attributeChanged(String name, var oldValue, var newValue) { 27 void attributeChanged(String name, var oldValue, var newValue) {
24 super.attributeChanged(name, oldValue, newValue); 28 super.attributeChanged(name, oldValue, newValue);
25 } 29 }
26 30
27 String formatTimePrecise(double time) => Utils.formatTimePrecise(time); 31 String formatTimePrecise(double time) => Utils.formatTimePrecise(time);
28 32
29 String formatTime(double time) => Utils.formatTime(time); 33 String formatTime(double time) => Utils.formatTime(time);
30 34
31 String formatSeconds(double x) => Utils.formatSeconds(x); 35 String formatSeconds(double x) => Utils.formatSeconds(x);
32 36
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 'Bool', 90 'Bool',
87 'String', 91 'String',
88 'Double', 92 'Double',
89 'Instance', 93 'Instance',
90 'GrowableObjectArray', 94 'GrowableObjectArray',
91 'Array', 95 'Array',
92 'Type', 96 'Type',
93 'Error'].contains(type)); 97 'Error'].contains(type));
94 } 98 }
95 } 99 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698