Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(9952)

Unified Diff: chrome/browser/ui/webui/chromeos/login/hid_detection_screen_handler.h

Issue 448153002: BT adapter is switched to initial state after HID screen if no BT devices connected. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Nit Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/ui/webui/chromeos/login/hid_detection_screen_handler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/chromeos/login/hid_detection_screen_handler.h
diff --git a/chrome/browser/ui/webui/chromeos/login/hid_detection_screen_handler.h b/chrome/browser/ui/webui/chromeos/login/hid_detection_screen_handler.h
index 7c3e28973e5dce7023f9d8a1c5f9e535d07b2032..c072a431f28428c1b64f9951298a5ad2c321ab0e 100644
--- a/chrome/browser/ui/webui/chromeos/login/hid_detection_screen_handler.h
+++ b/chrome/browser/ui/webui/chromeos/login/hid_detection_screen_handler.h
@@ -168,6 +168,10 @@ class HIDDetectionScreenHandler
// power BT adapter.
void SetPoweredError();
+ // Called by device::BluetoothAdapter in response to a failure to
+ // power off BT adapter.
+ void SetPoweredOffError();
+
// Called for revision of active devices. If current-placement is available
// for mouse or keyboard device, sets one of active devices as current or
// tries to connect some BT device if no appropriate devices are connected.
@@ -210,6 +214,9 @@ class HIDDetectionScreenHandler
bool switch_on_adapter_when_ready_;
+ // State of BT adapter before screen-initiated changes.
+ scoped_ptr<bool> adapter_initially_powered_;
+
base::WeakPtrFactory<HIDDetectionScreenHandler> weak_ptr_factory_;
DISALLOW_COPY_AND_ASSIGN(HIDDetectionScreenHandler);
« no previous file with comments | « no previous file | chrome/browser/ui/webui/chromeos/login/hid_detection_screen_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698