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

Unified Diff: third_party/polymer/components-chromium/paper-item/paper-item.html

Issue 592593002: Inline scripts were extracted from Polymer elements. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: s/echo ""/echo/ Created 6 years, 3 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/components-chromium/paper-item/paper-item.html
diff --git a/third_party/polymer/components-chromium/paper-item/paper-item.html b/third_party/polymer/components-chromium/paper-item/paper-item.html
new file mode 100644
index 0000000000000000000000000000000000000000..2e993b02520e1654c6cdbb0b82d4f38d0510724e
--- /dev/null
+++ b/third_party/polymer/components-chromium/paper-item/paper-item.html
@@ -0,0 +1,54 @@
+<!--
+Copyright (c) 2014 The Polymer Project Authors. All rights reserved.
+This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
+The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
+The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
+Code distributed by Google as part of the polymer project is also
+subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
+-->
+
+<!--
+@group Paper Elements
+
+`paper-item` is a list-item object for use in menus. It may contain and icon and/or
+a text label.
+
+Example:
+
+ <core-menu>
+ <paper-item icon="refresh" label="Refresh"></paper-item>
+ <paper-item label="Help"></paper-item>
+ <paper-item label="Sign Out"></paper-item>
+ </core-menu>
+
+To use as a link, put an `&lt;a&gt;` element in the item.
+
+Example:
+
+ <paper-item icon="home" label="Home">
+ <a href="http://www.polymer-project.org"></a>
+ </paper-item>
+
+@class paper-item
+-->
+
+<link href="../polymer/polymer.html" rel="import">
+<link href="../core-icon/core-icon.html" rel="import">
+<link href="../paper-ripple/paper-ripple.html" rel="import">
+
+<link href="paper-item.css" rel="stylesheet" shim-shadowdom="">
+
+<polymer-element name="paper-item" attributes="label iconSrc icon" center="" horizontal="" layout="" assetpath="">
+
+ <template>
+
+ <paper-ripple id="ripple"></paper-ripple>
+
+ <core-icon id="icon" hidden?="{{!iconSrc &amp;&amp; !icon}}" src="{{iconSrc}}" icon="{{icon}}"></core-icon>
+ <div id="label">{{label}}</div>
+ <content></content>
+ </template>
+
+
+</polymer-element>
+<script src="paper-item-extracted.js"></script>

Powered by Google App Engine
This is Rietveld 408576698