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

Unified Diff: runtime/bin/vmservice/client/lib/src/elements/service_ref.dart

Issue 443713004: Rename vmservice/client to vmservice/observatory to match package name. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: runtime/bin/vmservice/client/lib/src/elements/service_ref.dart
===================================================================
--- runtime/bin/vmservice/client/lib/src/elements/service_ref.dart (revision 38989)
+++ runtime/bin/vmservice/client/lib/src/elements/service_ref.dart (working copy)
@@ -1,56 +0,0 @@
-// 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 service_ref_element;
-
-import 'package:polymer/polymer.dart';
-import 'observatory_element.dart';
-import 'package:observatory/service.dart';
-
-@CustomTag('service-ref')
-class ServiceRefElement extends ObservatoryElement {
- @published ServiceObject ref;
- @published bool internal = false;
- ServiceRefElement.created() : super.created();
-
- void refChanged(oldValue) {
- notifyPropertyChange(#url, "", url);
- notifyPropertyChange(#name, [], name);
- notifyPropertyChange(#nameIsEmpty, 0, 1);
- notifyPropertyChange(#hoverText, "", hoverText);
- }
-
- String get url {
- if (ref == null) {
- return 'NULL REF';
- }
- return gotoLink(ref.link);
- }
-
- String get serviceId {
- if (ref == null) {
- return 'NULL REF';
- }
- return ref.id;
- }
-
- String get hoverText {
- if (ref == null) {
- return 'NULL REF';
- }
- return ref.vmName;
- }
-
- String get name {
- if (ref == null) {
- return 'NULL REF';
- }
- return ref.name;
- }
-
- // Workaround isEmpty not being useable due to missing @MirrorsUsed.
- bool get nameIsEmpty {
- return name.isEmpty;
- }
-}

Powered by Google App Engine
This is Rietveld 408576698