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

Side by Side Diff: runtime/bin/vmservice/client/lib/src/elements/function_ref.dart

Issue 237683004: Disable applyAuthorStyles (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 8 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 | Annotate | Revision Log
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 function_ref_element; 5 library function_ref_element;
6 6
7 import 'package:polymer/polymer.dart'; 7 import 'package:polymer/polymer.dart';
8 import 'package:observatory/service.dart'; 8 import 'package:observatory/service.dart';
9 import 'service_ref.dart'; 9 import 'service_ref.dart';
10 10
11 @CustomTag('function-ref') 11 @CustomTag('function-ref')
12 class FunctionRefElement extends ServiceRefElement { 12 class FunctionRefElement extends ServiceRefElement {
13 @published bool qualified = true; 13 @published bool qualified = true;
14 14
15 void refChanged(oldValue) { 15 void refChanged(oldValue) {
16 super.refChanged(oldValue); 16 super.refChanged(oldValue);
17 notifyPropertyChange(#hasParent, 0, 1); 17 notifyPropertyChange(#hasParent, 0, 1);
18 notifyPropertyChange(#hasClass, 0, 1); 18 notifyPropertyChange(#hasClass, 0, 1);
19 ServiceMap refMap = ref; 19 ServiceMap refMap = ref;
20 isDart = (refMap != null) &&
21 (refMap['kind'] != 'Collected') &&
22 (refMap['kind'] != 'Native') &&
23 (refMap['kind'] != 'Tag') &&
24 (refMap['kind'] != 'Reused');
20 hasParent = (refMap != null && refMap['parent'] != null); 25 hasParent = (refMap != null && refMap['parent'] != null);
21 hasClass = (refMap != null && 26 hasClass = (refMap != null &&
22 refMap['owner'] != null && 27 refMap['owner'] != null &&
23 refMap['owner'].serviceType == 'Class'); 28 refMap['owner'].serviceType == 'Class');
24 } 29 }
25 30
26 @observable bool hasParent = false; 31 @observable bool hasParent = false;
27 @observable bool hasClass = false; 32 @observable bool hasClass = false;
33 @observable bool isDart = false;
28 34
29 FunctionRefElement.created() : super.created(); 35 FunctionRefElement.created() : super.created();
30 } 36 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698