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

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

Issue 2119733003: Wrapping leaf nodes in non polymer elements (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Converted error-ref tag 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) 2015, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, 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 library view_footer_element; 5 library view_footer_element;
6 6
7 import 'package:polymer/polymer.dart'; 7 import 'dart:html';
8 import 'observatory_element.dart'; 8 import 'package:observatory/src/elements/helpers/tag.dart';
9 9
10 @CustomTag('view-footer') 10 class ViewFooterElement extends HtmlElement {
11 class ViewFooterElement extends ObservatoryElement { 11 static const tag = const Tag<ViewFooterElement>('view-footer');
12
13 factory ViewFooterElement() => document.createElement(tag.name);
14
12 ViewFooterElement.created() : super.created(); 15 ViewFooterElement.created() : super.created();
16
17 @override
18 void attached() { super.attached(); render(); }
19
20 void render() {
21 children = [
22 new AnchorElement()
23 ..href = 'https://www.dartlang.org/tools/observatory'
24 ..text = 'View documentation',
25 new AnchorElement()
26 ..href = 'https://github.com/dart-lang/sdk/issues/new?title=Observator y:&amp;body=Observatory%20Feedback'
27 ..text = 'File a bug report'
28 ];
29 }
13 } 30 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698