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

Unified Diff: runtime/observatory/lib/src/elements/nav/library_menu_wrapper.dart

Issue 2164903003: Converted Observatory library-nav-menu element (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Added missing file into observatory_sources.gypi Created 4 years, 5 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/nav/library_menu_wrapper.dart
diff --git a/runtime/observatory/lib/src/elements/nav/class_menu_wrapper.dart b/runtime/observatory/lib/src/elements/nav/library_menu_wrapper.dart
similarity index 64%
copy from runtime/observatory/lib/src/elements/nav/class_menu_wrapper.dart
copy to runtime/observatory/lib/src/elements/nav/library_menu_wrapper.dart
index d1e56ace7a92abd0904f31565db793b777033afb..6e48155a2d6e4d5ed2a595e2aab7f8466a86dbd2 100644
--- a/runtime/observatory/lib/src/elements/nav/class_menu_wrapper.dart
+++ b/runtime/observatory/lib/src/elements/nav/library_menu_wrapper.dart
@@ -8,27 +8,27 @@ import 'package:observatory/app.dart';
import 'package:observatory/service.dart';
import 'package:observatory/src/elements/helpers/tag.dart';
import 'package:observatory/src/elements/shims/binding.dart';
-import 'package:observatory/src/elements/nav/class_menu.dart';
+import 'package:observatory/src/elements/nav/library_menu.dart';
-class NavClassMenuElementWrapper extends HtmlElement {
- static final binder = new Binder<NavClassMenuElementWrapper>(
- const [const Binding('last'), const Binding('cls')]);
+class NavLibraryMenuElementWrapper extends HtmlElement {
+ static final binder = new Binder<NavLibraryMenuElementWrapper>(
+ const [const Binding('last'), const Binding('library')]);
static const tag =
- const Tag<NavClassMenuElementWrapper>('class-nav-menu');
+ const Tag<NavLibraryMenuElementWrapper>('library-nav-menu');
bool _last = false;
- Class _cls;
+ Library _library;
bool get last => _last;
- Class get cls => _cls;
+ Library get library => _library;
set last(bool value) {
_last = value; render();
}
- set cls(Class value) {
- _cls = value; render();
+ set library(Library value) {
+ _library = value; render();
}
- NavClassMenuElementWrapper.created() : super.created() {
+ NavLibraryMenuElementWrapper.created() : super.created() {
binder.registerCallback(this);
_last = _getBoolAttribute('last');
createShadowRoot();
@@ -43,10 +43,10 @@ class NavClassMenuElementWrapper extends HtmlElement {
void render() {
shadowRoot.children = [];
- if (_cls == null || _last == null) return;
+ if (_library == null || _last == null) return;
shadowRoot.children = [
- new NavClassMenuElement(cls.isolate, cls, last: last,
+ new NavLibraryMenuElement(library.isolate, library, last: last,
queue: ObservatoryApplication.app.queue)
..children = [new ContentElement()]
];
« no previous file with comments | « runtime/observatory/lib/src/elements/nav/library_menu.dart ('k') | runtime/observatory/lib/src/elements/nav_bar.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698