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

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: Add unittests. 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
« no previous file with comments | « no previous file | ash/virtual_keyboard_controller.cc » ('j') | ash/virtual_keyboard_controller.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/virtual_keyboard_controller.h
diff --git a/ash/virtual_keyboard_controller.h b/ash/virtual_keyboard_controller.h
index 47ef475c9b6ef0015d713592cdfb48cbb8e7b1bf..89cef39739d75592f8b9e51b808ca025b83b2e40 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 {
+class ASH_EXPORT VirtualKeyboardController
+ : public ShellObserver,
+ public ui::InputDeviceEventObserver {
public:
VirtualKeyboardController();
virtual ~VirtualKeyboardController();
@@ -20,7 +23,18 @@ class ASH_EXPORT VirtualKeyboardController : public ShellObserver {
virtual void OnMaximizeModeStarted() OVERRIDE;
virtual void OnMaximizeModeEnded() OVERRIDE;
+ // InputDeviceObserver:
+ virtual void OnTouchscreenDeviceConfigurationChanged() OVERRIDE;
+ virtual void OnKeyboardDeviceConfigurationChanged() OVERRIDE;
flackr 2014/10/04 01:02:54 nit: empty line before private:
rsadam 2014/10/23 20:10:52 Done.
private:
+ virtual void Update();
+ virtual void UpdateDevices();
+
+ bool has_external_keyboard_;
+ bool has_internal_keyboard_;
+ bool has_touchscreen_;
+ bool maximized_;
+
DISALLOW_COPY_AND_ASSIGN(VirtualKeyboardController);
};
« no previous file with comments | « no previous file | ash/virtual_keyboard_controller.cc » ('j') | ash/virtual_keyboard_controller.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698