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

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

Issue 11421111: Fixed button focusing in OOBE screens. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Removed old 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
« no previous file with comments | « chrome/browser/resources/chromeos/login/oobe_screen_network.js ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 reset screen implementation. 6 * @fileoverview Oobe reset screen implementation.
7 */ 7 */
8 8
9 cr.define('oobe', function() { 9 cr.define('oobe', function() {
10 /** 10 /**
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 cancelButton.addEventListener('click', function(e) { 60 cancelButton.addEventListener('click', function(e) {
61 chrome.send('resetOnCancel'); 61 chrome.send('resetOnCancel');
62 e.stopPropagation(); 62 e.stopPropagation();
63 }); 63 });
64 buttons.push(cancelButton); 64 buttons.push(cancelButton);
65 65
66 return buttons; 66 return buttons;
67 }, 67 },
68 68
69 /** 69 /**
70 * Returns a control which should receive an initial focus.
71 */
72 get defaultControl() {
73 return $('reset-cancel-button');
74 },
75
76 /**
70 * Cancels the reset and drops the user back to the login screen. 77 * Cancels the reset and drops the user back to the login screen.
71 */ 78 */
72 cancel: function() { 79 cancel: function() {
73 chrome.send('resetOnCancel'); 80 chrome.send('resetOnCancel');
74 }, 81 },
75 }; 82 };
76 83
77 return { 84 return {
78 ResetScreen: ResetScreen 85 ResetScreen: ResetScreen
79 }; 86 };
80 }); 87 });
OLDNEW
« no previous file with comments | « chrome/browser/resources/chromeos/login/oobe_screen_network.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698