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

Unified Diff: ash/virtual_keyboard_controller.h

Issue 613343005: Automatic deployment of the virtual keyboard. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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
Index: ash/virtual_keyboard_controller.h
diff --git a/ash/virtual_keyboard_controller.h b/ash/virtual_keyboard_controller.h
index ebbc0fde1858a41f2e32c56d971f967ee831eed1..b2493c3dc8289c78d3780edb74df038c9ada3dc4 100644
--- a/ash/virtual_keyboard_controller.h
+++ b/ash/virtual_keyboard_controller.h
@@ -7,11 +7,14 @@
#include "ash/ash_export.h"
#include "ash/shell_observer.h"
+#include "ui/events/input_device_event_observer.h"
namespace ash {
-// This class observes enter/leaving maximized mode for virtual keyboard.
-class ASH_EXPORT VirtualKeyboardController : public ShellObserver {
+// This class observes input device changes for the virtual keyboard.
+class ASH_EXPORT VirtualKeyboardController
+ : public ShellObserver,
+ public ui::InputDeviceEventObserver {
public:
VirtualKeyboardController();
virtual ~VirtualKeyboardController();
@@ -20,7 +23,19 @@ class ASH_EXPORT VirtualKeyboardController : public ShellObserver {
virtual void OnMaximizeModeStarted() override;
virtual void OnMaximizeModeEnded() override;
+ // InputDeviceObserver:
flackr 2014/10/27 15:33:13 nit: ui::InputDeviceObserver
rsadam 2014/10/27 15:51:19 Done.
+ virtual void OnTouchscreenDeviceConfigurationChanged() override;
+ virtual void OnKeyboardDeviceConfigurationChanged() override;
+
private:
+ virtual void UpdateDevices();
+ virtual void Update();
+ virtual void SetKeyboardEnabled(bool enabled);
flackr 2014/10/27 15:33:12 Comment above methods.
rsadam 2014/10/27 15:51:18 Done.
+
+ bool has_external_keyboard_;
+ bool has_internal_keyboard_;
+ bool has_touchscreen_;
flackr 2014/10/27 15:33:13 Short description comments. i.e. True if ...
rsadam 2014/10/27 15:51:18 Done.
+
DISALLOW_COPY_AND_ASSIGN(VirtualKeyboardController);
};

Powered by Google App Engine
This is Rietveld 408576698