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

Unified Diff: runtime/observatory/lib/src/elements/script_ref.dart

Issue 839543002: Revert "Build Observatory with runtime" (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 11 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/observatory/lib/src/elements/script_ref.dart
diff --git a/runtime/observatory/lib/src/elements/script_ref.dart b/runtime/observatory/lib/src/elements/script_ref.dart
deleted file mode 100644
index ca2eba8d2898bde3ff74b6f742bc35e323e9f75e..0000000000000000000000000000000000000000
--- a/runtime/observatory/lib/src/elements/script_ref.dart
+++ /dev/null
@@ -1,66 +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 script_ref_element;
-
-import 'package:polymer/polymer.dart';
-import 'package:observatory/service.dart';
-import 'service_ref.dart';
-
-@CustomTag('script-ref')
-class ScriptRefElement extends ServiceRefElement {
- @published int pos = -1;
-
- String get hoverText {
- if (ref == null) {
- return super.hoverText;
- }
- return ref.vmName;
- }
-
- void posChanged(oldValue) {
- _updateProperties(null);
- }
-
- void _updateProperties(_) {
- if (ref != null && ref.loaded) {
- notifyPropertyChange(#name, 0, 1);
- notifyPropertyChange(#url, 0, 1);
- }
- }
-
- String get name {
- if (ref == null) {
- return super.name;
- }
- if (pos >= 0) {
- if (ref.loaded) {
- // Script is loaded, get the line number.
- Script script = ref;
- return '${super.name}:${script.tokenToLine(pos)}';
- } else {
- ref.load().then(_updateProperties);
- }
- }
- return super.name;
- }
-
- String get url {
- if (ref == null) {
- return super.url;
- }
- if (pos >= 0) {
- if (ref.loaded) {
- // Script is loaded, get the line number.
- Script script = ref;
- return '${super.url}---pos=${pos}';
- } else {
- ref.load().then(_updateProperties);
- }
- }
- return super.url;
- }
-
- ScriptRefElement.created() : super.created();
-}
« no previous file with comments | « runtime/observatory/lib/src/elements/script_inset.html ('k') | runtime/observatory/lib/src/elements/script_ref.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698