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

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

Issue 2270553002: Move ash::DisplayInfo to ui (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebased Created 4 years, 3 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>
11 #include <vector> 11 #include <vector>
12 12
13 #include "ash/ash_export.h" 13 #include "ash/ash_export.h"
14 #include "ash/common/media_delegate.h" 14 #include "ash/common/media_delegate.h"
15 #include "ash/common/metrics/gesture_action_type.h" 15 #include "ash/common/metrics/gesture_action_type.h"
16 #include "ash/common/metrics/user_metrics_action.h" 16 #include "ash/common/metrics/user_metrics_action.h"
17 #include "ash/common/wm/lock_state_observer.h" 17 #include "ash/common/wm/lock_state_observer.h"
18 #include "base/observer_list.h" 18 #include "base/observer_list.h"
19 #include "ui/base/ui_base_types.h" 19 #include "ui/base/ui_base_types.h"
20 20
21 namespace display { 21 namespace display {
22 class Display; 22 class Display;
23 class ManagedDisplayInfo;
23 } 24 }
24 25
25 namespace gfx { 26 namespace gfx {
26 class Insets; 27 class Insets;
27 class Point; 28 class Point;
28 } 29 }
29 30
30 namespace views { 31 namespace views {
31 class PointerWatcher; 32 class PointerWatcher;
32 } 33 }
33 34
34 namespace ash { 35 namespace ash {
35 36
36 class AcceleratorController; 37 class AcceleratorController;
37 class AccessibilityDelegate; 38 class AccessibilityDelegate;
38 class BrightnessControlDelegate; 39 class BrightnessControlDelegate;
39 class DisplayInfo;
40 class FocusCycler; 40 class FocusCycler;
41 class ImmersiveContextAsh; 41 class ImmersiveContextAsh;
42 class ImmersiveFullscreenController; 42 class ImmersiveFullscreenController;
43 class KeyboardBrightnessControlDelegate; 43 class KeyboardBrightnessControlDelegate;
44 class KeyboardUI; 44 class KeyboardUI;
45 class MaximizeModeController; 45 class MaximizeModeController;
46 class MruWindowTracker; 46 class MruWindowTracker;
47 class NewWindowDelegate; 47 class NewWindowDelegate;
48 class PaletteDelegate; 48 class PaletteDelegate;
49 class ScopedDisableInternalMouseAndKeyboard; 49 class ScopedDisableInternalMouseAndKeyboard;
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 virtual WmWindow* GetRootWindowForDisplayId(int64_t display_id) = 0; 169 virtual WmWindow* GetRootWindowForDisplayId(int64_t display_id) = 0;
170 170
171 // Returns the root window that newly created windows should be added to. 171 // Returns the root window that newly created windows should be added to.
172 // Value can be temporarily overridden using ScopedRootWindowForNewWindows. 172 // Value can be temporarily overridden using ScopedRootWindowForNewWindows.
173 // NOTE: this returns the root, newly created window should be added to the 173 // NOTE: this returns the root, newly created window should be added to the
174 // appropriate container in the returned window. 174 // appropriate container in the returned window.
175 WmWindow* GetRootWindowForNewWindows(); 175 WmWindow* GetRootWindowForNewWindows();
176 176
177 // Retuns the display info associated with |display_id|. 177 // Retuns the display info associated with |display_id|.
178 // TODO(mash): Remove when DisplayManager has been moved. crbug.com/622480 178 // TODO(mash): Remove when DisplayManager has been moved. crbug.com/622480
179 virtual const DisplayInfo& GetDisplayInfo(int64_t display_id) const = 0; 179 virtual const display::ManagedDisplayInfo& GetDisplayInfo(
180 int64_t display_id) const = 0;
180 181
181 // Matches that of DisplayManager::IsActiveDisplayId(). 182 // Matches that of DisplayManager::IsActiveDisplayId().
182 // TODO(mash): Remove when DisplayManager has been moved. crbug.com/622480 183 // TODO(mash): Remove when DisplayManager has been moved. crbug.com/622480
183 virtual bool IsActiveDisplayId(int64_t display_id) const = 0; 184 virtual bool IsActiveDisplayId(int64_t display_id) const = 0;
184 185
185 // Returns true if the desktop is in unified mode. 186 // Returns true if the desktop is in unified mode.
186 // TODO(mash): Remove when DisplayManager has been moved. crbug.com/622480 187 // TODO(mash): Remove when DisplayManager has been moved. crbug.com/622480
187 virtual bool IsInUnifiedMode() const = 0; 188 virtual bool IsInUnifiedMode() const = 0;
188 189
189 // Returns the first display; this is the first display listed by hardware, 190 // Returns the first display; this is the first display listed by hardware,
(...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after
428 bool simulate_modal_window_open_for_testing_ = false; 429 bool simulate_modal_window_open_for_testing_ = false;
429 430
430 #if defined(OS_CHROMEOS) 431 #if defined(OS_CHROMEOS)
431 std::unique_ptr<LogoutConfirmationController> logout_confirmation_controller_; 432 std::unique_ptr<LogoutConfirmationController> logout_confirmation_controller_;
432 #endif 433 #endif
433 }; 434 };
434 435
435 } // namespace ash 436 } // namespace ash
436 437
437 #endif // ASH_COMMON_WM_SHELL_H_ 438 #endif // ASH_COMMON_WM_SHELL_H_
OLDNEW
« no previous file with comments | « ash/common/system/audio/tray_audio.cc ('k') | ash/content/display/screen_orientation_controller_chromeos_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698