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

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

Issue 11421111: Fixed button focusing in OOBE screens. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Cleaned up the code. Created 8 years 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 /** 5 /**
6 * @fileoverview Oobe network screen implementation. 6 * @fileoverview Oobe network screen implementation.
7 */ 7 */
8 8
9 cr.define('oobe', function() { 9 cr.define('oobe', function() {
10 /** 10 /**
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 /** 64 /**
65 * Buttons in oobe wizard's button strip. 65 * Buttons in oobe wizard's button strip.
66 * @type {array} Array of Buttons. 66 * @type {array} Array of Buttons.
67 */ 67 */
68 get buttons() { 68 get buttons() {
69 var buttons = []; 69 var buttons = [];
70 70
71 var continueButton = this.ownerDocument.createElement('button'); 71 var continueButton = this.ownerDocument.createElement('button');
72 continueButton.id = 'continue-button'; 72 continueButton.id = 'continue-button';
73 continueButton.textContent = localStrings.getString('continueButton'); 73 continueButton.textContent = localStrings.getString('continueButton');
74 continueButton.autofocus = true;
74 continueButton.addEventListener('click', function(e) { 75 continueButton.addEventListener('click', function(e) {
75 chrome.send('networkOnExit'); 76 chrome.send('networkOnExit');
76 e.stopPropagation(); 77 e.stopPropagation();
77 }); 78 });
78 buttons.push(continueButton); 79 buttons.push(continueButton);
79 80
80 return buttons; 81 return buttons;
81 } 82 }
82 }; 83 };
83 84
(...skipping 10 matching lines...) Expand all
94 95
95 $('bubble').showContentForElement($('networks-list'), 96 $('bubble').showContentForElement($('networks-list'),
96 cr.ui.Bubble.Attachment.BOTTOM, 97 cr.ui.Bubble.Attachment.BOTTOM,
97 error); 98 error);
98 }; 99 };
99 100
100 return { 101 return {
101 NetworkScreen: NetworkScreen 102 NetworkScreen: NetworkScreen
102 }; 103 };
103 }); 104 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698