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

Side by Side 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 unified diff | Download patch
« no previous file with comments | « no previous file | ash/virtual_keyboard_controller.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef ASH_VIRTUAL_KEYBOARD_CONTROLLER_H_ 5 #ifndef ASH_VIRTUAL_KEYBOARD_CONTROLLER_H_
6 #define ASH_VIRTUAL_KEYBOARD_CONTROLLER_H_ 6 #define ASH_VIRTUAL_KEYBOARD_CONTROLLER_H_
7 7
8 #include "ash/ash_export.h" 8 #include "ash/ash_export.h"
9 #include "ash/shell_observer.h" 9 #include "ash/shell_observer.h"
10 #include "ui/events/input_device_event_observer.h"
10 11
11 namespace ash { 12 namespace ash {
12 13
13 // This class observes enter/leaving maximized mode for virtual keyboard. 14 // This class observes enter/leaving maximized mode for virtual keyboard.
flackr 2014/10/24 14:54:23 Update comment.
rsadam 2014/10/24 15:32:32 Done.
14 class ASH_EXPORT VirtualKeyboardController : public ShellObserver { 15 class ASH_EXPORT VirtualKeyboardController
16 : public ui::InputDeviceEventObserver {
15 public: 17 public:
16 VirtualKeyboardController(); 18 VirtualKeyboardController();
17 virtual ~VirtualKeyboardController(); 19 virtual ~VirtualKeyboardController();
18 20
19 // ShellObserver: 21 // InputDeviceObserver:
20 virtual void OnMaximizeModeStarted() override; 22 virtual void OnTouchscreenDeviceConfigurationChanged() override;
21 virtual void OnMaximizeModeEnded() override; 23 virtual void OnKeyboardDeviceConfigurationChanged() override;
22 24
23 private: 25 private:
26 virtual void UpdateDevices();
27 virtual bool ShouldShowKeyboard();
28 virtual void SetKeyboardEnabled(bool enabled);
29
30 bool has_external_keyboard_;
31 bool has_internal_keyboard_;
32 bool has_touchscreen_;
33
24 DISALLOW_COPY_AND_ASSIGN(VirtualKeyboardController); 34 DISALLOW_COPY_AND_ASSIGN(VirtualKeyboardController);
25 }; 35 };
26 36
27 } // namespace ash 37 } // namespace ash
28 38
29 #endif // ASH_VIRTUAL_KEYBOARD_CONTROLLER_H_ 39 #endif // ASH_VIRTUAL_KEYBOARD_CONTROLLER_H_
OLDNEW
« no previous file with comments | « no previous file | ash/virtual_keyboard_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698