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

Side by Side Diff: ash/common/wm_shell.h

Issue 2118643002: Move MaximizeModeController into ash/common (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: doh 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
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_COMMON_WM_SHELL_H_ 5 #ifndef ASH_COMMON_WM_SHELL_H_
6 #define ASH_COMMON_WM_SHELL_H_ 6 #define ASH_COMMON_WM_SHELL_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 12 matching lines...) Expand all
23 class PointerWatcher; 23 class PointerWatcher;
24 } 24 }
25 25
26 namespace ash { 26 namespace ash {
27 27
28 class AccessibilityDelegate; 28 class AccessibilityDelegate;
29 class DisplayInfo; 29 class DisplayInfo;
30 class FocusCycler; 30 class FocusCycler;
31 class KeyboardUI; 31 class KeyboardUI;
32 class MruWindowTracker; 32 class MruWindowTracker;
33 class ScopedDisableInternalMouseAndKeyboard;
33 class SessionStateDelegate; 34 class SessionStateDelegate;
34 class ShellObserver; 35 class ShellObserver;
35 class SystemTrayDelegate; 36 class SystemTrayDelegate;
36 class SystemTrayNotifier; 37 class SystemTrayNotifier;
37 class WindowResizer; 38 class WindowResizer;
38 class WindowSelectorController; 39 class WindowSelectorController;
39 class WmActivationObserver; 40 class WmActivationObserver;
40 class WmDisplayObserver; 41 class WmDisplayObserver;
41 class WmRootWindowController; 42 class WmRootWindowController;
42 class WmWindow; 43 class WmWindow;
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 94
94 // Returns the root window that newly created windows should be added to. 95 // Returns the root window that newly created windows should be added to.
95 // NOTE: this returns the root, newly created window should be added to the 96 // NOTE: this returns the root, newly created window should be added to the
96 // appropriate container in the returned window. 97 // appropriate container in the returned window.
97 virtual WmWindow* GetRootWindowForNewWindows() = 0; 98 virtual WmWindow* GetRootWindowForNewWindows() = 0;
98 99
99 // Retuns the display info associated with |display_id|. 100 // Retuns the display info associated with |display_id|.
100 // TODO(msw): Remove this when DisplayManager has been moved. crbug.com/622480 101 // TODO(msw): Remove this when DisplayManager has been moved. crbug.com/622480
101 virtual const DisplayInfo& GetDisplayInfo(int64_t display_id) const = 0; 102 virtual const DisplayInfo& GetDisplayInfo(int64_t display_id) const = 0;
102 103
104 // Matches that of DisplayManager::IsActiveDisplayId().
105 // TODO: Remove this when DisplayManager has been moved. crbug.com/622480
106 virtual bool IsActiveDisplayId(int64_t display_id) const = 0;
107
103 // Returns true if the first window shown on first run should be 108 // Returns true if the first window shown on first run should be
104 // unconditionally maximized, overriding the heuristic that normally chooses 109 // unconditionally maximized, overriding the heuristic that normally chooses
105 // the window size. 110 // the window size.
106 virtual bool IsForceMaximizeOnFirstRun() = 0; 111 virtual bool IsForceMaximizeOnFirstRun() = 0;
107 112
108 // Returns true if a system-modal dialog window is currently open. 113 // Returns true if a system-modal dialog window is currently open.
109 bool IsSystemModalWindowOpen(); 114 bool IsSystemModalWindowOpen();
110 115
111 // For testing only: set simulation that a modal window is open 116 // For testing only: set simulation that a modal window is open
112 void SimulateModalWindowOpenForTesting(bool modal_window_open) { 117 void SimulateModalWindowOpenForTesting(bool modal_window_open) {
(...skipping 29 matching lines...) Expand all
142 // Returns a WindowResizer to handle dragging. |next_window_resizer| is 147 // Returns a WindowResizer to handle dragging. |next_window_resizer| is
143 // the next WindowResizer in the WindowResizer chain. This may return 148 // the next WindowResizer in the WindowResizer chain. This may return
144 // |next_window_resizer|. 149 // |next_window_resizer|.
145 virtual std::unique_ptr<WindowResizer> CreateDragWindowResizer( 150 virtual std::unique_ptr<WindowResizer> CreateDragWindowResizer(
146 std::unique_ptr<WindowResizer> next_window_resizer, 151 std::unique_ptr<WindowResizer> next_window_resizer,
147 wm::WindowState* window_state) = 0; 152 wm::WindowState* window_state) = 0;
148 153
149 virtual std::unique_ptr<wm::MaximizeModeEventHandler> 154 virtual std::unique_ptr<wm::MaximizeModeEventHandler>
150 CreateMaximizeModeEventHandler() = 0; 155 CreateMaximizeModeEventHandler() = 0;
151 156
157 virtual std::unique_ptr<ScopedDisableInternalMouseAndKeyboard>
158 CreateScopedDisableInternalMouseAndKeyboard() = 0;
159
160 // Called after maximize mode has started, windows might still animate though.
161 void OnMaximizeModeStarted();
162
163 // Called after maximize mode has ended, windows might still be returning to
164 // their original position.
165 void OnMaximizeModeEnded();
166
152 // Called when the overview mode is about to be started (before the windows 167 // Called when the overview mode is about to be started (before the windows
153 // get re-arranged). 168 // get re-arranged).
154 virtual void OnOverviewModeStarting() = 0; 169 virtual void OnOverviewModeStarting() = 0;
155 170
156 // Called after overview mode has ended. 171 // Called after overview mode has ended.
157 virtual void OnOverviewModeEnded() = 0; 172 virtual void OnOverviewModeEnded() = 0;
158 173
159 // Notifies |observers_| when entering or exiting pinned mode for 174 // Notifies |observers_| when entering or exiting pinned mode for
160 // |pinned_window|. Entering or exiting can be checked by looking at 175 // |pinned_window|. Entering or exiting can be checked by looking at
161 // |pinned_window|'s window state. 176 // |pinned_window|'s window state.
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
225 bool simulate_modal_window_open_for_testing_ = false; 240 bool simulate_modal_window_open_for_testing_ = false;
226 241
227 #if defined(OS_CHROMEOS) 242 #if defined(OS_CHROMEOS)
228 std::unique_ptr<LogoutConfirmationController> logout_confirmation_controller_; 243 std::unique_ptr<LogoutConfirmationController> logout_confirmation_controller_;
229 #endif 244 #endif
230 }; 245 };
231 246
232 } // namespace ash 247 } // namespace ash
233 248
234 #endif // ASH_COMMON_WM_SHELL_H_ 249 #endif // ASH_COMMON_WM_SHELL_H_
OLDNEW
« no previous file with comments | « ash/common/wm/maximize_mode/scoped_disable_internal_mouse_and_keyboard.h ('k') | ash/common/wm_shell.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698