| 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_WM_TABLET_MODE_TABLET_MODE_EVENT_HANDLER_H_ | |
| 6 #define ASH_WM_TABLET_MODE_TABLET_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 // TabletModeEventHandler handles toggling fullscreen when appropriate. | |
| 18 // TabletModeEventHandler installs event handlers in an environment specific | |
| 19 // way, e.g. EventHandler for aura. | |
| 20 class TabletModeEventHandler { | |
| 21 public: | |
| 22 TabletModeEventHandler(); | |
| 23 virtual ~TabletModeEventHandler(); | |
| 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(TabletModeEventHandler); | |
| 32 }; | |
| 33 | |
| 34 } // namespace wm | |
| 35 } // namespace ash | |
| 36 | |
| 37 #endif // ASH_WM_TABLET_MODE_TABLET_MODE_EVENT_HANDLER_H_ | |
| OLD | NEW |