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