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

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

Issue 2495153002: ChromeOS OOBE: Implement network selection screen "Back" button. (Closed)
Patch Set: Update after review Created 4 years, 1 month 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 13
14 focus: function() { 14 focus: function() {
15 this.$.textButton.focus(); 15 this.$.textButton.focus();
16 }, 16 },
17 17
18 onClick_: function(e) { 18 onClick_: function(e) {
19 if (this.disabled) 19 if (this.disabled)
20 e.stopPropagation(); 20 e.stopPropagation();
21 } 21 }
22 }); 22 });
23 23
24 Polymer({ 24 Polymer({
25 is: 'oobe-back-button',
26
27 properties: {
28 disabled: {type: Boolean, value: false, reflectToAttribute: true},
29 },
30
31 focus: function() {
32 this.$.button.focus();
33 },
34
35 onClick_: function(e) {
36 if (this.disabled)
37 e.stopPropagation();
38 }
39 });
40
41 Polymer({
25 is: 'oobe-welcome-secondary-button', 42 is: 'oobe-welcome-secondary-button',
26 43
27 properties: { 44 properties: {
28 icon: String, 45 icon: String,
29 46
30 ariaLabel: String 47 ariaLabel: String
31 }, 48 },
32 }); 49 });
OLDNEW
« no previous file with comments | « chrome/browser/resources/chromeos/login/oobe_buttons.html ('k') | chrome/browser/resources/chromeos/login/oobe_dialog.css » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698