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 cr.define('options', function() { | 5 cr.define('options', function() { |
6 var OptionsPage = options.OptionsPage; | 6 var OptionsPage = options.OptionsPage; |
7 var ArrayDataModel = cr.ui.ArrayDataModel; | 7 var ArrayDataModel = cr.ui.ArrayDataModel; |
8 var RepeatingButton = cr.ui.RepeatingButton; | 8 var RepeatingButton = cr.ui.RepeatingButton; |
9 | 9 |
10 // | 10 // |
(...skipping 1101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1112 | 1112 |
1113 /** | 1113 /** |
1114 * Activate the bluetooth settings section on the System settings page. | 1114 * Activate the bluetooth settings section on the System settings page. |
1115 * @private | 1115 * @private |
1116 */ | 1116 */ |
1117 showBluetoothSettings_: function() { | 1117 showBluetoothSettings_: function() { |
1118 $('bluetooth-devices').hidden = false; | 1118 $('bluetooth-devices').hidden = false; |
1119 }, | 1119 }, |
1120 | 1120 |
1121 /** | 1121 /** |
1122 * Dectivate the bluetooth settings section from the System settings page. | |
kevers
2012/03/02 14:59:42
/s/Dectivate/Deactivate
keybuk
2012/03/02 15:54:11
Done.
| |
1123 * @private | |
1124 */ | |
1125 hideBluetoothSettings_: function() { | |
1126 $('bluetooth-devices').hidden = true; | |
1127 }, | |
1128 | |
1129 /** | |
1122 * Sets the state of the checkbox indicating if bluetooth is turned on. The | 1130 * Sets the state of the checkbox indicating if bluetooth is turned on. The |
1123 * state of the "Find devices" button and the list of discovered devices may | 1131 * state of the "Find devices" button and the list of discovered devices may |
1124 * also be affected by a change to the state. | 1132 * also be affected by a change to the state. |
1125 * @param {boolean} checked Flag Indicating if Bluetooth is turned on. | 1133 * @param {boolean} checked Flag Indicating if Bluetooth is turned on. |
1126 * @private | 1134 * @private |
1127 */ | 1135 */ |
1128 setBluetoothState_: function(checked) { | 1136 setBluetoothState_: function(checked) { |
1129 $('enable-bluetooth').checked = checked; | 1137 $('enable-bluetooth').checked = checked; |
1130 $('bluetooth-paired-devices-list').parentNode.hidden = !checked; | 1138 $('bluetooth-paired-devices-list').parentNode.hidden = !checked; |
1131 $('bluetooth-add-device').hidden = !checked; | 1139 $('bluetooth-add-device').hidden = !checked; |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1167 if (device.pairing) | 1175 if (device.pairing) |
1168 BluetoothPairing.showDialog(device); | 1176 BluetoothPairing.showDialog(device); |
1169 }, | 1177 }, |
1170 }; | 1178 }; |
1171 | 1179 |
1172 //Forward public APIs to private implementations. | 1180 //Forward public APIs to private implementations. |
1173 [ | 1181 [ |
1174 'addBluetoothDevice', | 1182 'addBluetoothDevice', |
1175 'getStartStopSyncButton', | 1183 'getStartStopSyncButton', |
1176 'guestModeActive', | 1184 'guestModeActive', |
1185 'hideBluetoothSettings', | |
1177 'removeCloudPrintConnectorSection', | 1186 'removeCloudPrintConnectorSection', |
1178 'setAutoOpenFileTypesDisabledAttribute', | 1187 'setAutoOpenFileTypesDisabledAttribute', |
1179 'setBackgroundModeCheckboxState', | 1188 'setBackgroundModeCheckboxState', |
1180 'setBluetoothState', | 1189 'setBluetoothState', |
1181 'setCheckRevocationCheckboxState', | 1190 'setCheckRevocationCheckboxState', |
1182 'setFontSize', | 1191 'setFontSize', |
1183 'setGtkThemeButtonEnabled', | 1192 'setGtkThemeButtonEnabled', |
1184 'setHighContrastCheckboxState', | 1193 'setHighContrastCheckboxState', |
1185 'setInstantFieldTrialStatus', | 1194 'setInstantFieldTrialStatus', |
1186 'setMetricsReportingCheckboxState', | 1195 'setMetricsReportingCheckboxState', |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1219 BrowserOptions.getLoggedInUsername = function() { | 1228 BrowserOptions.getLoggedInUsername = function() { |
1220 return BrowserOptions.getInstance().username_; | 1229 return BrowserOptions.getInstance().username_; |
1221 }; | 1230 }; |
1222 } | 1231 } |
1223 | 1232 |
1224 // Export | 1233 // Export |
1225 return { | 1234 return { |
1226 BrowserOptions: BrowserOptions | 1235 BrowserOptions: BrowserOptions |
1227 }; | 1236 }; |
1228 }); | 1237 }); |
OLD | NEW |