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

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

Issue 2204973003: Converted Observatory class-ref & library-ref elements (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Fixed indentation Created 4 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/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)
];
}
« no previous file with comments | « runtime/observatory/lib/src/elements/library_ref_as_value.html ('k') | runtime/observatory/lib/src/elements/library_view.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698