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

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

Issue 2194353002: mash: Migrate ScopedTargetRootWindow to //ash/common (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: similarity 40 Created 4 years, 4 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 20 matching lines...) Expand all
31 class AccessibilityDelegate; 31 class AccessibilityDelegate;
32 class BrightnessControlDelegate; 32 class BrightnessControlDelegate;
33 class DisplayInfo; 33 class DisplayInfo;
34 class FocusCycler; 34 class FocusCycler;
35 class KeyboardBrightnessControlDelegate; 35 class KeyboardBrightnessControlDelegate;
36 class KeyboardUI; 36 class KeyboardUI;
37 class MaximizeModeController; 37 class MaximizeModeController;
38 class MruWindowTracker; 38 class MruWindowTracker;
39 class NewWindowDelegate; 39 class NewWindowDelegate;
40 class ScopedDisableInternalMouseAndKeyboard; 40 class ScopedDisableInternalMouseAndKeyboard;
41 class ScopedRootWindowForNewWindows;
41 class SessionStateDelegate; 42 class SessionStateDelegate;
42 class ShelfDelegate; 43 class ShelfDelegate;
43 class ShelfModel; 44 class ShelfModel;
44 class ShellDelegate; 45 class ShellDelegate;
45 class ShellObserver; 46 class ShellObserver;
46 class SystemTrayDelegate; 47 class SystemTrayDelegate;
47 class SystemTrayNotifier; 48 class SystemTrayNotifier;
48 class ToastManager; 49 class ToastManager;
49 class WindowCycleController; 50 class WindowCycleController;
50 class WindowCycleEventFilter; 51 class WindowCycleEventFilter;
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 virtual WmWindow* GetPrimaryRootWindow() = 0; 144 virtual WmWindow* GetPrimaryRootWindow() = 0;
144 145
145 // Returns the root window for the specified display. 146 // Returns the root window for the specified display.
146 virtual WmWindow* GetRootWindowForDisplayId(int64_t display_id) = 0; 147 virtual WmWindow* GetRootWindowForDisplayId(int64_t display_id) = 0;
147 148
148 // Returns the root window that newly created windows should be added to. 149 // Returns the root window that newly created windows should be added to.
149 // NOTE: this returns the root, newly created window should be added to the 150 // NOTE: this returns the root, newly created window should be added to the
150 // appropriate container in the returned window. 151 // appropriate container in the returned window.
151 virtual WmWindow* GetRootWindowForNewWindows() = 0; 152 virtual WmWindow* GetRootWindowForNewWindows() = 0;
152 153
154 // Allows a temporary override of the result of GetRootWindowForNewWindows().
155 virtual std::unique_ptr<ScopedRootWindowForNewWindows>
156 CreateScopedRootWindowForNewWindows(WmWindow* root) = 0;
157
153 // Retuns the display info associated with |display_id|. 158 // Retuns the display info associated with |display_id|.
154 // TODO(msw): Remove this when DisplayManager has been moved. crbug.com/622480 159 // TODO(msw): Remove this when DisplayManager has been moved. crbug.com/622480
155 virtual const DisplayInfo& GetDisplayInfo(int64_t display_id) const = 0; 160 virtual const DisplayInfo& GetDisplayInfo(int64_t display_id) const = 0;
156 161
157 // Matches that of DisplayManager::IsActiveDisplayId(). 162 // Matches that of DisplayManager::IsActiveDisplayId().
158 // TODO: Remove this when DisplayManager has been moved. crbug.com/622480 163 // TODO: Remove this when DisplayManager has been moved. crbug.com/622480
159 virtual bool IsActiveDisplayId(int64_t display_id) const = 0; 164 virtual bool IsActiveDisplayId(int64_t display_id) const = 0;
160 165
161 // Returns true if the first window shown on first run should be 166 // Returns true if the first window shown on first run should be
162 // unconditionally maximized, overriding the heuristic that normally chooses 167 // unconditionally maximized, overriding the heuristic that normally chooses
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
352 bool simulate_modal_window_open_for_testing_ = false; 357 bool simulate_modal_window_open_for_testing_ = false;
353 358
354 #if defined(OS_CHROMEOS) 359 #if defined(OS_CHROMEOS)
355 std::unique_ptr<LogoutConfirmationController> logout_confirmation_controller_; 360 std::unique_ptr<LogoutConfirmationController> logout_confirmation_controller_;
356 #endif 361 #endif
357 }; 362 };
358 363
359 } // namespace ash 364 } // namespace ash
360 365
361 #endif // ASH_COMMON_WM_SHELL_H_ 366 #endif // ASH_COMMON_WM_SHELL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698