| // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
| // for details. All rights reserved. Use of this source code is governed by a |
| // BSD-style license that can be found in the LICENSE file. |
| |
| library observatory_element; |
| |
| import 'package:polymer/polymer.dart'; |
| import 'package:observatory/observatory.dart'; |
| export 'package:observatory/observatory.dart'; |
| |
| /// Base class for all custom elements. Holds an observable |
| /// [ObservableApplication] and applies author styles. |
| @CustomTag('observatory-element') |
| class ObservatoryElement extends PolymerElement { |
| ObservatoryElement.created() : super.created(); |
| |
| void enteredView() { |
| super.enteredView(); |
| } |
| |
| void leftView() { |
| super.leftView(); |
| } |
| |
| @published ObservatoryApplication app; |
| bool get applyAuthorStyles => true; |
| } |