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

Side by Side Diff: ash/wm/maximize_mode/maximize_mode_controller.h

Issue 2103913003: Converts MaximizeModeWindowManager to use ash/common types (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@maximize_mode_event_handler
Patch Set: fix chrome 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
« no previous file with comments | « ash/wm/maximize_mode/DEPS ('k') | ash/wm/maximize_mode/maximize_mode_controller.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_WM_MAXIMIZE_MODE_MAXIMIZE_MODE_CONTROLLER_H_ 5 #ifndef ASH_WM_MAXIMIZE_MODE_MAXIMIZE_MODE_CONTROLLER_H_
6 #define ASH_WM_MAXIMIZE_MODE_MAXIMIZE_MODE_CONTROLLER_H_ 6 #define ASH_WM_MAXIMIZE_MODE_MAXIMIZE_MODE_CONTROLLER_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "ash/ash_export.h" 10 #include "ash/ash_export.h"
(...skipping 20 matching lines...) Expand all
31 namespace ui { 31 namespace ui {
32 class EventHandler; 32 class EventHandler;
33 } 33 }
34 34
35 namespace ash { 35 namespace ash {
36 36
37 class MaximizeModeControllerTest; 37 class MaximizeModeControllerTest;
38 class ScopedDisableInternalMouseAndKeyboard; 38 class ScopedDisableInternalMouseAndKeyboard;
39 class MaximizeModeWindowManager; 39 class MaximizeModeWindowManager;
40 class MaximizeModeWindowManagerTest; 40 class MaximizeModeWindowManagerTest;
41 class WmWindow;
41 namespace test { 42 namespace test {
42 class MultiUserWindowManagerChromeOSTest; 43 class MultiUserWindowManagerChromeOSTest;
43 class VirtualKeyboardControllerTest; 44 class VirtualKeyboardControllerTest;
44 } 45 }
45 46
46 // MaximizeModeController listens to accelerometer events and automatically 47 // MaximizeModeController listens to accelerometer events and automatically
47 // enters and exits maximize mode when the lid is opened beyond the triggering 48 // enters and exits maximize mode when the lid is opened beyond the triggering
48 // angle and rotates the display to match the device when in maximize mode. 49 // angle and rotates the display to match the device when in maximize mode.
49 class ASH_EXPORT MaximizeModeController : 50 class ASH_EXPORT MaximizeModeController :
50 #if defined(OS_CHROMEOS) 51 #if defined(OS_CHROMEOS)
(...skipping 18 matching lines...) Expand all
69 // Turn the always maximize mode window manager on or off. 70 // Turn the always maximize mode window manager on or off.
70 void EnableMaximizeModeWindowManager(bool should_enable); 71 void EnableMaximizeModeWindowManager(bool should_enable);
71 72
72 // Test if the MaximizeModeWindowManager is enabled or not. 73 // Test if the MaximizeModeWindowManager is enabled or not.
73 bool IsMaximizeModeWindowManagerEnabled() const; 74 bool IsMaximizeModeWindowManagerEnabled() const;
74 75
75 // Add a special window to the MaximizeModeWindowManager for tracking. This is 76 // Add a special window to the MaximizeModeWindowManager for tracking. This is
76 // only required for special windows which are handled by other window 77 // only required for special windows which are handled by other window
77 // managers like the |MultiUserWindowManager|. 78 // managers like the |MultiUserWindowManager|.
78 // If the maximize mode is not enabled no action will be performed. 79 // If the maximize mode is not enabled no action will be performed.
79 void AddWindow(aura::Window* window); 80 void AddWindow(WmWindow* window);
80 81
81 // ShellObserver: 82 // ShellObserver:
82 void OnAppTerminating() override; 83 void OnAppTerminating() override;
83 void OnMaximizeModeStarted() override; 84 void OnMaximizeModeStarted() override;
84 void OnMaximizeModeEnded() override; 85 void OnMaximizeModeEnded() override;
85 86
86 // WindowTreeHostManager::Observer: 87 // WindowTreeHostManager::Observer:
87 void OnDisplayConfigurationChanged() override; 88 void OnDisplayConfigurationChanged() override;
88 89
89 #if defined(OS_CHROMEOS) 90 #if defined(OS_CHROMEOS)
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 // incorrect calculations of hinge angles. 181 // incorrect calculations of hinge angles.
181 gfx::Vector3dF base_smoothed_; 182 gfx::Vector3dF base_smoothed_;
182 gfx::Vector3dF lid_smoothed_; 183 gfx::Vector3dF lid_smoothed_;
183 184
184 DISALLOW_COPY_AND_ASSIGN(MaximizeModeController); 185 DISALLOW_COPY_AND_ASSIGN(MaximizeModeController);
185 }; 186 };
186 187
187 } // namespace ash 188 } // namespace ash
188 189
189 #endif // ASH_WM_MAXIMIZE_MODE_MAXIMIZE_MODE_CONTROLLER_H_ 190 #endif // ASH_WM_MAXIMIZE_MODE_MAXIMIZE_MODE_CONTROLLER_H_
OLDNEW
« no previous file with comments | « ash/wm/maximize_mode/DEPS ('k') | ash/wm/maximize_mode/maximize_mode_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698