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

Side by Side Diff: runtime/observatory/lib/src/elements/service_ref.dart

Issue 2167053002: Converted Observatory nav-notify element (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Fixed template ciclic references that were blocking initialization Created 4 years, 5 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
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 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
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 }
OLDNEW
« no previous file with comments | « runtime/observatory/lib/src/elements/script_view.html ('k') | runtime/observatory/lib/src/elements/service_ref.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698