| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 28 matching lines...) Expand all Loading... |
| 39 | 39 |
| 40 Oobe.setupSelect($('keyboard-select'), | 40 Oobe.setupSelect($('keyboard-select'), |
| 41 templateData.inputMethodsList, | 41 templateData.inputMethodsList, |
| 42 'networkOnInputMethodChanged'); | 42 'networkOnInputMethodChanged'); |
| 43 | 43 |
| 44 this.dropdown_ = $('networks-list'); | 44 this.dropdown_ = $('networks-list'); |
| 45 cr.ui.DropDown.decorate(this.dropdown_); | 45 cr.ui.DropDown.decorate(this.dropdown_); |
| 46 }, | 46 }, |
| 47 | 47 |
| 48 onBeforeShow: function(data) { | 48 onBeforeShow: function(data) { |
| 49 cr.ui.DropDown.setActive('networks-list', true); | 49 cr.ui.DropDown.setActive('networks-list', true, true); |
| 50 }, | 50 }, |
| 51 | 51 |
| 52 onBeforeHide: function() { | 52 onBeforeHide: function() { |
| 53 cr.ui.DropDown.setActive('networks-list', false); | 53 cr.ui.DropDown.setActive('networks-list', false, true); |
| 54 }, | 54 }, |
| 55 | 55 |
| 56 /** | 56 /** |
| 57 * Header text of the screen. | 57 * Header text of the screen. |
| 58 * @type {string} | 58 * @type {string} |
| 59 */ | 59 */ |
| 60 get header() { | 60 get header() { |
| 61 return localStrings.getString('networkScreenTitle'); | 61 return localStrings.getString('networkScreenTitle'); |
| 62 }, | 62 }, |
| 63 | 63 |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 98 * Hides the error notification bubble (if any). | 98 * Hides the error notification bubble (if any). |
| 99 */ | 99 */ |
| 100 NetworkScreen.clearErrors = function() { | 100 NetworkScreen.clearErrors = function() { |
| 101 $('bubble').hide(); | 101 $('bubble').hide(); |
| 102 }; | 102 }; |
| 103 | 103 |
| 104 return { | 104 return { |
| 105 NetworkScreen: NetworkScreen | 105 NetworkScreen: NetworkScreen |
| 106 }; | 106 }; |
| 107 }); | 107 }); |
| OLD | NEW |