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

Side by Side Diff: ash/common/wm/maximize_mode/maximize_mode_event_handler.h

Issue 2106823004: Refactors maximize mode event handling into its own class (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: cleanup Created 4 years, 5 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
(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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698