OLD | NEW |
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 Loading... |
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 }); |
OLD | NEW |