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

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

Issue 2718133004: ChromeOS OOBE: More accessibility fixes. (Closed)
Patch Set: 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
11 inverse: Boolean, 11 inverse: Boolean,
12 12
13 ariaLabel: String, 13 labelForAria: String,
14 }, 14 },
15 15
16 focus: function() { 16 focus: function() {
17 this.$.textButton.focus(); 17 this.$.textButton.focus();
18 }, 18 },
19 19
20 onClick_: function(e) { 20 onClick_: function(e) {
21 if (this.disabled) 21 if (this.disabled)
22 e.stopPropagation(); 22 e.stopPropagation();
23 } 23 }
24 }); 24 });
25 25
26 Polymer({ 26 Polymer({
27 is: 'oobe-back-button', 27 is: 'oobe-back-button',
28 28
29 properties: { 29 properties: {
30 disabled: {type: Boolean, value: false, reflectToAttribute: true}, 30 disabled: {type: Boolean, value: false, reflectToAttribute: true},
31 31
32 ariaLabel: String, 32 labelForAria: String,
33 }, 33 },
34 34
35 focus: function() { 35 focus: function() {
36 this.$.button.focus(); 36 this.$.button.focus();
37 }, 37 },
38 38
39 onClick_: function(e) { 39 onClick_: function(e) {
40 if (this.disabled) 40 if (this.disabled)
41 e.stopPropagation(); 41 e.stopPropagation();
42 } 42 }
(...skipping 15 matching lines...) Expand all
58 e.stopPropagation(); 58 e.stopPropagation();
59 } 59 }
60 }); 60 });
61 61
62 Polymer({ 62 Polymer({
63 is: 'oobe-welcome-secondary-button', 63 is: 'oobe-welcome-secondary-button',
64 64
65 properties: { 65 properties: {
66 icon: String, 66 icon: String,
67 67
68 ariaLabel: String 68 labelForAria: String
69 }, 69 },
70 70
71 focus: function() { 71 focus: function() {
72 this.$.button.focus(); 72 this.$.button.focus();
73 }, 73 },
74 }); 74 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698