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

Side by Side Diff: ash/virtual_keyboard_controller.h

Issue 2906803002: Rename MaximizeMode to TabletMode (Closed)
Patch Set: updated filter Created 3 years, 7 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
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 <stdint.h> 8 #include <stdint.h>
9 9
10 #include "ash/ash_export.h" 10 #include "ash/ash_export.h"
11 #include "ash/shell_observer.h" 11 #include "ash/shell_observer.h"
12 #include "base/macros.h" 12 #include "base/macros.h"
13 #include "ui/events/devices/input_device_event_observer.h" 13 #include "ui/events/devices/input_device_event_observer.h"
14 #include "ui/keyboard/keyboard_layout_delegate.h" 14 #include "ui/keyboard/keyboard_layout_delegate.h"
15 15
16 namespace ash { 16 namespace ash {
17 17
18 // This class observes input device changes for the virtual keyboard. 18 // This class observes input device changes for the virtual keyboard.
19 class ASH_EXPORT VirtualKeyboardController 19 class ASH_EXPORT VirtualKeyboardController
20 : public ShellObserver, 20 : public ShellObserver,
21 public ui::InputDeviceEventObserver, 21 public ui::InputDeviceEventObserver,
22 public keyboard::KeyboardLayoutDelegate { 22 public keyboard::KeyboardLayoutDelegate {
23 public: 23 public:
24 VirtualKeyboardController(); 24 VirtualKeyboardController();
25 ~VirtualKeyboardController() override; 25 ~VirtualKeyboardController() override;
26 26
27 // ShellObserver: 27 // ShellObserver:
28 // TODO(rsadam@): Remove when autovirtual keyboard flag is on by default. 28 // TODO(rsadam@): Remove when autovirtual keyboard flag is on by default.
29 void OnMaximizeModeStarted() override; 29 void OnTabletModeStarted() override;
30 void OnMaximizeModeEnded() override; 30 void OnTabletModeEnded() override;
31 31
32 // ui::InputDeviceObserver: 32 // ui::InputDeviceObserver:
33 void OnTouchscreenDeviceConfigurationChanged() override; 33 void OnTouchscreenDeviceConfigurationChanged() override;
34 void OnKeyboardDeviceConfigurationChanged() override; 34 void OnKeyboardDeviceConfigurationChanged() override;
35 35
36 // Toggles whether the presense of an external keyboard should be ignored 36 // Toggles whether the presense of an external keyboard should be ignored
37 // when determining whether or not to show the on-screen keyboard. 37 // when determining whether or not to show the on-screen keyboard.
38 void ToggleIgnoreExternalKeyboard(); 38 void ToggleIgnoreExternalKeyboard();
39 39
40 // keyboard::KeyboardLayoutDelegate 40 // keyboard::KeyboardLayoutDelegate
(...skipping 18 matching lines...) Expand all
59 bool has_touchscreen_; 59 bool has_touchscreen_;
60 // True if the presense of an external keyboard should be ignored. 60 // True if the presense of an external keyboard should be ignored.
61 bool ignore_external_keyboard_; 61 bool ignore_external_keyboard_;
62 62
63 DISALLOW_COPY_AND_ASSIGN(VirtualKeyboardController); 63 DISALLOW_COPY_AND_ASSIGN(VirtualKeyboardController);
64 }; 64 };
65 65
66 } // namespace ash 66 } // namespace ash
67 67
68 #endif // ASH_VIRTUAL_KEYBOARD_CONTROLLER_H_ 68 #endif // ASH_VIRTUAL_KEYBOARD_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698