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

Side by Side Diff: chrome/browser/resources/chromeos/login/oobe_buttons.js

Issue 2753513002: ChromeOS OOBE: display icons specific to screen DPI. (Closed)
Patch Set: Added hr-iron-icon Created 3 years, 9 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 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 Polymer({ 5 Polymer({
6 is: 'oobe-text-button', 6 is: 'oobe-text-button',
7 7
8 properties: { 8 properties: {
9 disabled: {type: Boolean, value: false, reflectToAttribute: true}, 9 disabled: {type: Boolean, value: false, reflectToAttribute: true},
10 10
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 onClick_: function(e) { 64 onClick_: function(e) {
65 if (this.disabled) 65 if (this.disabled)
66 e.stopPropagation(); 66 e.stopPropagation();
67 } 67 }
68 }); 68 });
69 69
70 Polymer({ 70 Polymer({
71 is: 'oobe-welcome-secondary-button', 71 is: 'oobe-welcome-secondary-button',
72 72
73 properties: { 73 properties: {
74 icon: String, 74 icon1x: String,
75 icon2x: String,
75 76
76 /* Note that we are not using "aria-label" property here, because 77 /* Note that we are not using "aria-label" property here, because
77 * we want to pass the label value but not actually declare it as an 78 * we want to pass the label value but not actually declare it as an
78 * ARIA property anywhere but the actual target element. 79 * ARIA property anywhere but the actual target element.
79 */ 80 */
80 labelForAria: String 81 labelForAria: String
81 }, 82 },
82 83
83 focus: function() { 84 focus: function() {
84 this.$.button.focus(); 85 this.$.button.focus();
85 }, 86 },
86 }); 87 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698