| OLD | NEW |
| 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 Loading... |
| 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 } |
| OLD | NEW |