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

Unified Diff: third_party/polymer/v0_8/components/polymer/src/lib/annotations/demo/app-chrome.html

Issue 1082403004: Import Polymer 0.8 and several key elements. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Also remove polymer/explainer Created 5 years, 8 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: third_party/polymer/v0_8/components/polymer/src/lib/annotations/demo/app-chrome.html
diff --git a/third_party/polymer/v0_8/components/polymer/src/lib/annotations/demo/app-chrome.html b/third_party/polymer/v0_8/components/polymer/src/lib/annotations/demo/app-chrome.html
new file mode 100644
index 0000000000000000000000000000000000000000..c9d369d7e9a30b0cef1d3565b1ab6e4bbe651484
--- /dev/null
+++ b/third_party/polymer/v0_8/components/polymer/src/lib/annotations/demo/app-chrome.html
@@ -0,0 +1,60 @@
+<!doctype html>
+<html>
+<head>
+
+ <script src="../../../../perf-lib/perf.js"></script>
+
+ <title>Template Test</title>
+
+ <meta charset="utf-8">
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
+
+ <link rel="import" href="../../lang.html">
+ <link rel="import" href="../../module.html">
+
+ <link rel="import" href="../annotations.html">
+
+ <style>
+ pre {
+ font-family: monospace;
+ font-size: 11px;
+ }
+ </style>
+
+</head>
+<body>
+
+ <script>console.perf();</script>
+
+ <template>
+
+ <span id="foo" attribute="{{path}}" oneway="[[otherpath]]" style:="{{specialStyle}}">{{text}}</span>
+
+ </template>
+
+ <pre></pre>
+
+ <script>
+
+ using('Annotations', function(Annotations) {
+
+ var template = document.querySelector('template');
+ var list = Annotations.parseAnnotations(template);
+ console.log(list);
+
+ var out = document.querySelector('pre');
+ out.textContent = JSON.stringify(list, function(key, value) {
+ if (key === 'parent') {
+ return '<parent reference>';
+ }
+ return value;
+ }, ' ');
+
+ });
+
+ </script>
+
+ <script>console.perfEnd();</script>
+
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698