Index: runtime/observatory/lib/src/elements/library_ref_wrapper.dart |
diff --git a/runtime/observatory/lib/src/elements/code_ref_wrapper.dart b/runtime/observatory/lib/src/elements/library_ref_wrapper.dart |
similarity index 59% |
copy from runtime/observatory/lib/src/elements/code_ref_wrapper.dart |
copy to runtime/observatory/lib/src/elements/library_ref_wrapper.dart |
index 503a784ca03e23009c04be49611879f9aa8fb13b..0a2caf40eb1b065661f0a4f783bd8ed27971ca57 100644 |
--- a/runtime/observatory/lib/src/elements/code_ref_wrapper.dart |
+++ b/runtime/observatory/lib/src/elements/library_ref_wrapper.dart |
@@ -5,25 +5,25 @@ |
import 'dart:html'; |
import 'package:observatory/app.dart'; |
-import 'package:observatory/service_html.dart' show Code; |
-import 'package:observatory/src/elements/code_ref.dart'; |
+import 'package:observatory/service_html.dart' show Library; |
+import 'package:observatory/src/elements/library_ref.dart'; |
import 'package:observatory/src/elements/helpers/tag.dart'; |
import 'package:observatory/src/elements/shims/binding.dart'; |
@bindable |
-class CodeRefElementWrapper extends HtmlElement { |
+class LibraryRefElementWrapper extends HtmlElement { |
- static const binder = const Binder<CodeRefElementWrapper>(const { |
+ static const binder = const Binder<LibraryRefElementWrapper>(const { |
'ref': #ref |
}); |
- static const tag = const Tag<CodeRefElementWrapper>('code-ref'); |
+ static const tag = const Tag<LibraryRefElementWrapper>('library-ref'); |
- Code _code; |
- Code get ref => _code; |
- void set ref(Code ref) { _code = ref; render(); } |
+ Library _library; |
+ Library get ref => _library; |
+ void set ref(Library ref) { _library = ref; render(); } |
- CodeRefElementWrapper.created() : super.created() { |
+ LibraryRefElementWrapper.created() : super.created() { |
binder.registerCallback(this); |
createShadowRoot(); |
render(); |
@@ -42,14 +42,14 @@ class CodeRefElementWrapper extends HtmlElement { |
shadowRoot.children = [ |
new StyleElement() |
..text = ''' |
- code-ref-wrapped > a[href]:hover { |
+ library-ref-wrapped > a[href]:hover { |
text-decoration: underline; |
} |
- code-ref-wrapped > a[href] { |
+ library-ref-wrapped > a[href] { |
color: #0489c3; |
text-decoration: none; |
}''', |
- new CodeRefElement(_code.isolate, _code, |
+ new LibraryRefElement(_library.isolate, _library, |
queue: ObservatoryApplication.app.queue) |
]; |
} |