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

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

Issue 221263002: Miscellaneous Observatory UI improvements (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 code_ref_element; 5 library code_ref_element;
6 6
7 import 'package:polymer/polymer.dart'; 7 import 'package:polymer/polymer.dart';
8 import 'service_ref.dart'; 8 import 'service_ref.dart';
9 import 'package:observatory/service.dart';
9 10
10 @CustomTag('code-ref') 11 @CustomTag('code-ref')
11 class CodeRefElement extends ServiceRefElement { 12 class CodeRefElement extends ServiceRefElement {
13 refChanged(oldValue) {
14 super.refChanged(oldValue);
15 notifyPropertyChange(#isDartCode, 0, 1);
16 }
17 @observable bool get isDartCode {
turnidge 2014/04/01 19:42:48 Could this predicate be put in the model object (C
Cutch 2014/04/02 18:26:52 Done.
18 if (ref is Code) {
19 return ref.kind == CodeKind.Dart;
20 }
21 return false;
22 }
12 CodeRefElement.created() : super.created(); 23 CodeRefElement.created() : super.created();
13 } 24 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698