OLD | NEW |
---|---|
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 "ash/system/tray/system_tray_notifier.h" | 10 #include "ash/system/tray/system_tray_notifier.h" |
(...skipping 19 matching lines...) Expand all Loading... | |
30 virtual void OnKeyboardDeviceConfigurationChanged() override; | 30 virtual void OnKeyboardDeviceConfigurationChanged() override; |
31 | 31 |
32 // Toggles whether the presense of an external keyboard should be ignored | 32 // Toggles whether the presense of an external keyboard should be ignored |
33 // when determining whether or not to show the on-screen keyboard. | 33 // when determining whether or not to show the on-screen keyboard. |
34 void ToggleIgnoreExternalKeyboard(); | 34 void ToggleIgnoreExternalKeyboard(); |
35 | 35 |
36 private: | 36 private: |
37 // Updates the list of active input devices. | 37 // Updates the list of active input devices. |
38 void UpdateDevices(); | 38 void UpdateDevices(); |
39 | 39 |
40 // Checks whether smart deployment is enabled. | |
41 bool IsSmartVirtualKeyboardEnabled(); | |
sky
2014/12/15 15:50:53
This function doesn't need any state from VirtualK
rsadam
2014/12/15 16:29:40
Done.
| |
42 | |
40 // Updates the keyboard state. | 43 // Updates the keyboard state. |
41 void UpdateKeyboardEnabled(); | 44 void UpdateKeyboardEnabled(); |
42 | 45 |
43 // Creates the keyboard if |enabled|, else destroys it. | 46 // Creates the keyboard if |enabled|, else destroys it. |
44 void SetKeyboardEnabled(bool enabled); | 47 void SetKeyboardEnabled(bool enabled); |
45 | 48 |
46 // True if an external keyboard is connected. | 49 // True if an external keyboard is connected. |
47 bool has_external_keyboard_; | 50 bool has_external_keyboard_; |
48 // True if an internal keyboard is connected. | 51 // True if an internal keyboard is connected. |
49 bool has_internal_keyboard_; | 52 bool has_internal_keyboard_; |
50 // True if a touchscreen is connected. | 53 // True if a touchscreen is connected. |
51 bool has_touchscreen_; | 54 bool has_touchscreen_; |
52 // True if the presense of an external keyboard should be ignored. | 55 // True if the presense of an external keyboard should be ignored. |
53 bool ignore_external_keyboard_; | 56 bool ignore_external_keyboard_; |
54 | 57 |
55 DISALLOW_COPY_AND_ASSIGN(VirtualKeyboardController); | 58 DISALLOW_COPY_AND_ASSIGN(VirtualKeyboardController); |
56 }; | 59 }; |
57 | 60 |
58 } // namespace ash | 61 } // namespace ash |
59 | 62 |
60 #endif // ASH_VIRTUAL_KEYBOARD_CONTROLLER_H_ | 63 #endif // ASH_VIRTUAL_KEYBOARD_CONTROLLER_H_ |
OLD | NEW |