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

Side by Side Diff: runtime/observatory/lib/src/elements/nav/menu_wrapper.dart

Issue 2168463004: Converted Observatory isolate-nav-menu element (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Merged with master 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 import 'dart:html'; 5 import 'dart:html';
6 6
7 import 'package:observatory/app.dart'; 7 import 'package:observatory/app.dart';
8 import 'package:observatory/src/elements/helpers/tag.dart'; 8 import 'package:observatory/src/elements/helpers/tag.dart';
9 import 'package:observatory/src/elements/shims/binding.dart'; 9 import 'package:observatory/src/elements/shims/binding.dart';
10 import 'package:observatory/src/elements/nav/menu.dart'; 10 import 'package:observatory/src/elements/nav/menu.dart';
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 void attached() { 46 void attached() {
47 super.attached(); 47 super.attached();
48 render(); 48 render();
49 } 49 }
50 50
51 void render() { 51 void render() {
52 shadowRoot.children = []; 52 shadowRoot.children = [];
53 if (_anchor == null || _last == null) return; 53 if (_anchor == null || _last == null) return;
54 54
55 shadowRoot.children = [ 55 shadowRoot.children = [
56 new NavMenuElement(_anchor, link: _link, last: last, 56 new NavMenuElement(_anchor, link: '#$_link', last: last,
Cutch 2016/07/22 13:38:17 same question
cbernaschina 2016/07/22 17:26:43 same answer
57 queue: ObservatoryApplication.app.queue) 57 queue: ObservatoryApplication.app.queue)
58 ..children = [new ContentElement()] 58 ..children = [new ContentElement()]
59 ]; 59 ];
60 } 60 }
61 61
62 bool _getBoolAttribute(String name) { 62 bool _getBoolAttribute(String name) {
63 final String value = getAttribute(name); 63 final String value = getAttribute(name);
64 return !(value == null || value == 'false'); 64 return !(value == null || value == 'false');
65 } 65 }
66 } 66 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698