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

Side by Side Diff: third_party/polymer/components-chromium/paper-fab/paper-fab-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-fab',{
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 /**
28 * Set this to true to style this is a "mini" FAB.
29 *
30 * @attribute mini
31 * @type boolean
32 * @default false
33 */
34 mini: false,
35
36 raised: true,
37 recenteringTouch: true,
38 fill: false
39
40 },
41
42 iconChanged: function(oldIcon) {
43 var label = this.getAttribute('aria-label');
44 if (!label || label === oldIcon) {
45 this.setAttribute('aria-label', this.icon);
46 }
47 }
48
49 });
50
51
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698