Index: chrome/browser/ui/webui/options2/chromeos/system_options_handler.h |
=================================================================== |
--- chrome/browser/ui/webui/options2/chromeos/system_options_handler.h (revision 115229) |
+++ chrome/browser/ui/webui/options2/chromeos/system_options_handler.h (working copy) |
@@ -8,6 +8,7 @@ |
#include "base/memory/weak_ptr.h" |
#include "base/compiler_specific.h" |
+#include "chrome/browser/chromeos/xinput_hierarchy_changed_event_listener.h" |
#include "chrome/browser/ui/webui/options2/options_ui2.h" |
namespace base { |
@@ -17,6 +18,7 @@ |
// ChromeOS system options page UI handler. |
class SystemOptionsHandler |
: public OptionsPage2UIHandler, |
+ public chromeos::XInputHierarchyChangedEventListener::Observer, |
public base::SupportsWeakPtr<SystemOptionsHandler> { |
public: |
SystemOptionsHandler(); |
@@ -29,6 +31,9 @@ |
virtual void RegisterMessages() OVERRIDE; |
+ // XInputHierarchyChangedEventListener implementation. |
+ virtual void DeviceChanged() OVERRIDE; |
+ |
// Called when the accessibility checkbox value is changed. |
// |args| will contain the checkbox checked state as a string |
// ("true" or "false"). |
@@ -41,8 +46,13 @@ |
void IncreaseScreenBrightnessCallback(const base::ListValue* args); |
private: |
- // Callback for TouchpadHelper. |
+ // Check for input devices. |
+ void CheckTouchpadExists(); |
+ void CheckMouseExists(); |
+ |
+ // Callback for input device checks. |
void TouchpadExists(bool* exists); |
+ void MouseExists(bool* exists); |
DISALLOW_COPY_AND_ASSIGN(SystemOptionsHandler); |
}; |