Commit 3d97a67e authored by keybuk@chromium.org's avatar keybuk@chromium.org

bluetooth: add function to hide Bluetooth settings

We support USB Bluetooth adapters being inserted and removed from our
older Chromebooks, so as well as showing the Bluetooth settings on
insertion we need a function to hide the settings pane again when the
adapter is pulled out.

BUG=chromium-os:27103
TEST=(with plumbing from later CL) removed adapter, verified the settings section vanished

Change-Id: I1e820e4f660787e4f74c28761114459fc29352c5


Review URL: http://codereview.chromium.org/9568054

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@124802 0039d316-1c4b-4281-b951-d872f2087c98
parent 9e318640
...@@ -1124,6 +1124,14 @@ cr.define('options', function() { ...@@ -1124,6 +1124,14 @@ cr.define('options', function() {
$('bluetooth-devices').hidden = false; $('bluetooth-devices').hidden = false;
}, },
/**
* Dectivates the bluetooth settings section from the System settings page.
* @private
*/
hideBluetoothSettings_: function() {
$('bluetooth-devices').hidden = true;
},
/** /**
* Sets the state of the checkbox indicating if bluetooth is turned on. The * Sets the state of the checkbox indicating if bluetooth is turned on. The
* state of the "Find devices" button and the list of discovered devices may * state of the "Find devices" button and the list of discovered devices may
...@@ -1180,6 +1188,7 @@ cr.define('options', function() { ...@@ -1180,6 +1188,7 @@ cr.define('options', function() {
'addBluetoothDevice', 'addBluetoothDevice',
'getStartStopSyncButton', 'getStartStopSyncButton',
'guestModeActive', 'guestModeActive',
'hideBluetoothSettings',
'removeCloudPrintConnectorSection', 'removeCloudPrintConnectorSection',
'setAutoOpenFileTypesDisabledAttribute', 'setAutoOpenFileTypesDisabledAttribute',
'setBackgroundModeCheckboxState', 'setBackgroundModeCheckboxState',
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment