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

Unified Diff: ash/display/window_tree_host_manager.cc

Issue 2270553002: Move ash::DisplayInfo to ui (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebased 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ash/display/window_tree_host_manager.h ('k') | ash/display/window_tree_host_manager_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/display/window_tree_host_manager.cc
diff --git a/ash/display/window_tree_host_manager.cc b/ash/display/window_tree_host_manager.cc
index cdbe6538a83a2f04d3f1d3e21521efb8c9e4f6ab..507e2c9f22ffd8c5d722d19906f5c6a79ac193ea 100644
--- a/ash/display/window_tree_host_manager.cc
+++ b/ash/display/window_tree_host_manager.cc
@@ -84,7 +84,8 @@ DisplayManager* GetDisplayManager() {
void SetDisplayPropertiesOnHost(AshWindowTreeHost* ash_host,
const display::Display& display) {
- DisplayInfo info = GetDisplayManager()->GetDisplayInfo(display.id());
+ display::ManagedDisplayInfo info =
+ GetDisplayManager()->GetDisplayInfo(display.id());
aura::WindowTreeHost* host = ash_host->AsWindowTreeHost();
#if defined(OS_CHROMEOS)
#if defined(USE_X11)
@@ -136,7 +137,7 @@ void SetDisplayPropertiesOnHost(AshWindowTreeHost* ash_host,
CreateRootWindowTransformerForDisplay(host->window(), display));
ash_host->SetRootWindowTransformer(std::move(transformer));
- scoped_refptr<ManagedDisplayMode> mode =
+ scoped_refptr<display::ManagedDisplayMode> mode =
GetDisplayManager()->GetActiveModeForDisplayId(display.id());
if (mode && mode->refresh_rate() > 0.0f) {
host->compositor()->SetAuthoritativeVSyncInterval(
@@ -480,7 +481,7 @@ void WindowTreeHostManager::UpdateMouseLocationAfterDisplayChange() {
aura::Window* dst_root_window = nullptr;
for (size_t i = 0; i < display_manager->GetNumDisplays(); ++i) {
const display::Display& display = display_manager->GetDisplayAt(i);
- const DisplayInfo display_info =
+ const display::ManagedDisplayInfo display_info =
display_manager->GetDisplayInfo(display.id());
aura::Window* root_window = GetRootWindowForDisplayId(display.id());
if (display_info.bounds_in_native().Contains(
@@ -624,7 +625,7 @@ void WindowTreeHostManager::OnDisplayAdded(const display::Display& display) {
GetRootWindowSettings(GetWindow(primary_tree_host_for_replace_))
->display_id = display.id();
primary_tree_host_for_replace_ = nullptr;
- const DisplayInfo& display_info =
+ const display::ManagedDisplayInfo& display_info =
GetDisplayManager()->GetDisplayInfo(display.id());
AshWindowTreeHost* ash_host = window_tree_hosts_[display.id()];
ash_host->AsWindowTreeHost()->SetBounds(display_info.bounds_in_native());
@@ -705,7 +706,7 @@ void WindowTreeHostManager::OnDisplayMetricsChanged(
if (!(metrics & (DISPLAY_METRIC_BOUNDS | DISPLAY_METRIC_ROTATION |
DISPLAY_METRIC_DEVICE_SCALE_FACTOR)))
return;
- const DisplayInfo& display_info =
+ const display::ManagedDisplayInfo& display_info =
GetDisplayManager()->GetDisplayInfo(display.id());
DCHECK(!display_info.bounds_in_native().IsEmpty());
AshWindowTreeHost* ash_host = window_tree_hosts_[display.id()];
@@ -811,7 +812,7 @@ AshWindowTreeHost* WindowTreeHostManager::AddWindowTreeHostForDisplay(
const display::Display& display,
const AshWindowTreeHostInitParams& init_params) {
static int host_count = 0;
- const DisplayInfo& display_info =
+ const display::ManagedDisplayInfo& display_info =
GetDisplayManager()->GetDisplayInfo(display.id());
AshWindowTreeHostInitParams params_with_bounds(init_params);
params_with_bounds.initial_bounds = display_info.bounds_in_native();
« no previous file with comments | « ash/display/window_tree_host_manager.h ('k') | ash/display/window_tree_host_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698