OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_WM_MAXIMIZE_MODE_MAXIMIZE_MODE_EVENT_HANDLER_H_ | 5 #ifndef ASH_WM_TABLET_MODE_TABLET_MODE_EVENT_HANDLER_H_ |
6 #define ASH_WM_MAXIMIZE_MODE_MAXIMIZE_MODE_EVENT_HANDLER_H_ | 6 #define ASH_WM_TABLET_MODE_TABLET_MODE_EVENT_HANDLER_H_ |
7 | 7 |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
9 | 9 |
10 namespace ui { | 10 namespace ui { |
11 class TouchEvent; | 11 class TouchEvent; |
12 } | 12 } |
13 | 13 |
14 namespace ash { | 14 namespace ash { |
15 namespace wm { | 15 namespace wm { |
16 | 16 |
17 // MaximizeModeEventHandler handles toggling fullscreen when appropriate. | 17 // TabletModeEventHandler handles toggling fullscreen when appropriate. |
18 // MaximizeModeEventHandler installs event handlers in an environment specific | 18 // TabletModeEventHandler installs event handlers in an environment specific |
19 // way, e.g. EventHandler for aura. | 19 // way, e.g. EventHandler for aura. |
20 class MaximizeModeEventHandler { | 20 class TabletModeEventHandler { |
21 public: | 21 public: |
22 MaximizeModeEventHandler(); | 22 TabletModeEventHandler(); |
23 virtual ~MaximizeModeEventHandler(); | 23 virtual ~TabletModeEventHandler(); |
24 | 24 |
25 protected: | 25 protected: |
26 // Subclasses call this to toggle fullscreen. If a toggle happened returns | 26 // Subclasses call this to toggle fullscreen. If a toggle happened returns |
27 // true. | 27 // true. |
28 bool ToggleFullscreen(const ui::TouchEvent& event); | 28 bool ToggleFullscreen(const ui::TouchEvent& event); |
29 | 29 |
30 private: | 30 private: |
31 DISALLOW_COPY_AND_ASSIGN(MaximizeModeEventHandler); | 31 DISALLOW_COPY_AND_ASSIGN(TabletModeEventHandler); |
32 }; | 32 }; |
33 | 33 |
34 } // namespace wm | 34 } // namespace wm |
35 } // namespace ash | 35 } // namespace ash |
36 | 36 |
37 #endif // ASH_WM_MAXIMIZE_MODE_MAXIMIZE_MODE_EVENT_HANDLER_H_ | 37 #endif // ASH_WM_TABLET_MODE_TABLET_MODE_EVENT_HANDLER_H_ |
OLD | NEW |