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

Unified Diff: runtime/bin/vmservice/observatory/lib/src/elements/code_view.dart

Issue 810623005: 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/bin/vmservice/observatory/lib/src/elements/code_view.dart
diff --git a/runtime/bin/vmservice/observatory/lib/src/elements/code_view.dart b/runtime/bin/vmservice/observatory/lib/src/elements/code_view.dart
deleted file mode 100644
index f44af1f597e39e5f86135788ebe83ce218cefdf2..0000000000000000000000000000000000000000
--- a/runtime/bin/vmservice/observatory/lib/src/elements/code_view.dart
+++ /dev/null
@@ -1,60 +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 code_view_element;
-
-import 'dart:html';
-import 'observatory_element.dart';
-import 'package:observatory/service.dart';
-import 'package:polymer/polymer.dart';
-
-@CustomTag('code-view')
-class CodeViewElement extends ObservatoryElement {
- @published Code code;
- CodeViewElement.created() : super.created();
-
- @override
- void attached() {
- super.attached();
- if (code == null) {
- return;
- }
- code.load().then((Code c) {
- c.loadScript();
- });
- }
-
- void refresh(var done) {
- code.reload().whenComplete(done);
- }
-
- Element _findJumpTarget(Element target) {
- var jumpTarget = target.attributes['data-jump-target'];
- if (jumpTarget == '') {
- return null;
- }
- var address = int.parse(jumpTarget);
- var node = shadowRoot.querySelector('#addr-$address');
- if (node == null) {
- return null;
- }
- return node;
- }
-
- void mouseOver(Event e, var detail, Node target) {
- var jt = _findJumpTarget(target);
- if (jt == null) {
- return;
- }
- jt.classes.add('highlight');
- }
-
- void mouseOut(Event e, var detail, Node target) {
- var jt = _findJumpTarget(target);
- if (jt == null) {
- return;
- }
- jt.classes.remove('highlight');
- }
-}

Powered by Google App Engine
This is Rietveld 408576698