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

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

Issue 1351623008: MD Settings: Languages model for language pages (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@SingletonPrefs
Patch Set: Created 5 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 unified diff | Download patch
OLDNEW
1 Polymer({ 1
2 Polymer({
2 is: 'paper-icon-button', 3 is: 'paper-icon-button',
3 4
4 hostAttributes: { 5 hostAttributes: {
5 role: 'button', 6 role: 'button',
6 tabindex: '0' 7 tabindex: '0'
7 }, 8 },
8 9
9 behaviors: [ 10 behaviors: [
10 Polymer.PaperInkyFocusBehavior 11 Polymer.PaperInkyFocusBehavior
11 ], 12 ],
(...skipping 26 matching lines...) Expand all
38 }, 39 },
39 40
40 _altChanged: function(newValue, oldValue) { 41 _altChanged: function(newValue, oldValue) {
41 var label = this.getAttribute('aria-label'); 42 var label = this.getAttribute('aria-label');
42 43
43 // Don't stomp over a user-set aria-label. 44 // Don't stomp over a user-set aria-label.
44 if (!label || oldValue == label) { 45 if (!label || oldValue == label) {
45 this.setAttribute('aria-label', newValue); 46 this.setAttribute('aria-label', newValue);
46 } 47 }
47 } 48 }
48 }); 49 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698