| 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:polymer/polymer.dart'; | 7 import 'package:polymer/polymer.dart'; |
| 8 import 'package:observatory/observatory.dart'; | 8 import 'package:observatory/observatory.dart'; |
| 9 export 'package:observatory/observatory.dart'; | 9 export 'package:observatory/observatory.dart'; |
| 10 | 10 |
| 11 /// Base class for all custom elements. Holds an observable | 11 /// Base class for all custom elements. Holds an observable |
| 12 /// [ObservableApplication] and applies author styles. | 12 /// [ObservableApplication] and applies author styles. |
| 13 @CustomTag('observatory-element') | 13 @CustomTag('observatory-element') |
| 14 class ObservatoryElement extends PolymerElement { | 14 class ObservatoryElement extends PolymerElement { |
| 15 ObservatoryElement.created() : super.created(); | 15 ObservatoryElement.created() : super.created(); |
| 16 | 16 |
| 17 void enteredView() { | 17 void enteredView() { |
| 18 super.enteredView(); | 18 super.enteredView(); |
| 19 } | 19 } |
| 20 | 20 |
| 21 void leftView() { | 21 void leftView() { |
| 22 super.leftView(); | 22 super.leftView(); |
| 23 } | 23 } |
| 24 | 24 |
| 25 void attributeChanged(String name, String oldValue, String newValue) { |
| 26 super.attributeChanged(name, oldValue, newValue); |
| 27 } |
| 28 |
| 25 @published ObservatoryApplication app; | 29 @published ObservatoryApplication app; |
| 26 bool get applyAuthorStyles => true; | 30 bool get applyAuthorStyles => true; |
| 27 } | 31 } |
| OLD | NEW |