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 service_ref_element; | 5 library service_ref_element; |
6 | 6 |
7 import 'dart:html'; | 7 import 'dart:html'; |
8 | 8 |
9 import 'package:logging/logging.dart'; | 9 import 'package:logging/logging.dart'; |
10 import 'package:observatory/service.dart'; | 10 import 'package:observatory/service.dart'; |
11 import 'package:polymer/polymer.dart'; | 11 import 'package:polymer/polymer.dart'; |
12 | 12 |
13 import 'class_ref.dart'; | 13 import 'class_ref.dart'; |
14 import 'library_ref.dart'; | 14 import 'library_ref.dart'; |
15 import 'observatory_element.dart'; | 15 import 'observatory_element.dart'; |
16 | 16 |
17 @CustomTag('service-ref') | |
18 class ServiceRefElement extends ObservatoryElement { | 17 class ServiceRefElement extends ObservatoryElement { |
19 @published ServiceObject ref; | 18 @published ServiceObject ref; |
20 @published bool internal = false; | 19 @published bool internal = false; |
21 @published String expandKey; | 20 @published String expandKey; |
22 ServiceRefElement.created() : super.created(); | 21 ServiceRefElement.created() : super.created(); |
23 | 22 |
24 void refChanged(oldValue) { | 23 void refChanged(oldValue) { |
25 notifyPropertyChange(#url, "", url); | 24 notifyPropertyChange(#url, "", url); |
26 notifyPropertyChange(#name, [], name); | 25 notifyPropertyChange(#name, [], name); |
27 notifyPropertyChange(#nameIsEmpty, 0, 1); | 26 notifyPropertyChange(#nameIsEmpty, 0, 1); |
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
158 return; | 157 return; |
159 } | 158 } |
160 children.add(element); | 159 children.add(element); |
161 } | 160 } |
162 } | 161 } |
163 | 162 |
164 @CustomTag('object-ref') | 163 @CustomTag('object-ref') |
165 class ObjectRefElement extends ServiceRefElement { | 164 class ObjectRefElement extends ServiceRefElement { |
166 ObjectRefElement.created() : super.created(); | 165 ObjectRefElement.created() : super.created(); |
167 } | 166 } |
OLD | NEW |