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

Unified Diff: ash/display/mirror_window_controller.cc

Issue 1608053002: Remove now-unnecessary wrappers around gfx::Screen::GetScreen() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@metro-mode-5
Patch Set: cros Created 4 years, 11 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/extended_mouse_warp_controller.cc ('k') | ash/display/resolution_notification_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/display/mirror_window_controller.cc
diff --git a/ash/display/mirror_window_controller.cc b/ash/display/mirror_window_controller.cc
index df5717438c47d26829f300773bb591d903e44920..c93bba075b209969d1005d448170ec919b3dca52 100644
--- a/ash/display/mirror_window_controller.cc
+++ b/ash/display/mirror_window_controller.cc
@@ -35,6 +35,7 @@
#include "ui/compositor/reflector.h"
#include "ui/gfx/canvas.h"
#include "ui/gfx/native_widget_types.h"
+#include "ui/gfx/screen.h"
#if defined(USE_X11)
#include "ui/gfx/x/x11_types.h"
@@ -159,7 +160,7 @@ void MirrorWindowController::UpdateWindow(
const std::vector<DisplayInfo>& display_info_list) {
static int mirror_host_count = 0;
DisplayManager* display_manager = Shell::GetInstance()->display_manager();
- const gfx::Display& primary = Shell::GetScreen()->GetPrimaryDisplay();
+ const gfx::Display& primary = gfx::Screen::GetScreen()->GetPrimaryDisplay();
const DisplayInfo& source_display_info =
display_manager->GetDisplayInfo(primary.id());
@@ -214,7 +215,7 @@ void MirrorWindowController::UpdateWindow(
Shell::GetInstance()
->window_tree_host_manager()
->GetAshWindowTreeHostForDisplayId(
- Shell::GetScreen()->GetPrimaryDisplay().id());
+ gfx::Screen::GetScreen()->GetPrimaryDisplay().id());
unified_ash_host->RegisterMirroringHost(host_info->ash_host.get());
aura::client::SetScreenPositionClient(host->window(),
screen_position_client_.get());
« no previous file with comments | « ash/display/extended_mouse_warp_controller.cc ('k') | ash/display/resolution_notification_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698