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

Side by Side Diff: third_party/polymer/components-chromium/paper-icon-button/paper-icon-button-extracted.js

Issue 1215543002: Remove Polymer 0.5. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix unit test Created 5 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
(Empty)
1
2 Polymer('paper-icon-button',{
3
4 publish: {
5
6 /**
7 * The URL of an image for the icon. If the src property is specified,
8 * the icon property should not be.
9 *
10 * @attribute src
11 * @type string
12 * @default ''
13 */
14 src: '',
15
16 /**
17 * Specifies the icon name or index in the set of icons available in
18 * the icon's icon set. If the icon property is specified,
19 * the src property should not be.
20 *
21 * @attribute icon
22 * @type string
23 * @default ''
24 */
25 icon: '',
26
27 recenteringTouch: true,
28 fill: false
29
30 },
31
32 iconChanged: function(oldIcon) {
33 var label = this.getAttribute('aria-label');
34 if (!label || label === oldIcon) {
35 this.setAttribute('aria-label', this.icon);
36 }
37 }
38
39 });
40
41
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698