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