From 3070c4bc0c2d6b65660c7b1bba9e71f429fd4841 Mon Sep 17 00:00:00 2001 From: sadrul Date: Wed, 14 Oct 2015 09:47:57 -0700 Subject: aura: Remove WindowTreeHost::GetNativeScreenSize. WindowTreeHost::GetNativeScreenSize() is only used in a few locations, and only relevant on Windows. So remove the various implementations, and instead directly lookup from the system on Windows when necessary. BUG=none Review URL: https://codereview.chromium.org/1407553003 Cr-Commit-Position: refs/heads/master@{#354041} --- ash/display/display_info.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'ash') diff --git a/ash/display/display_info.cc b/ash/display/display_info.cc index 2d18271..54380aa 100644 --- a/ash/display/display_info.cc +++ b/ash/display/display_info.cc @@ -114,7 +114,8 @@ DisplayInfo DisplayInfo::CreateFromSpec(const std::string& spec) { DisplayInfo DisplayInfo::CreateFromSpecWithID(const std::string& spec, int64 id) { #if defined(OS_WIN) - gfx::Rect bounds_in_native(aura::WindowTreeHost::GetNativeScreenSize()); + gfx::Rect bounds_in_native( + gfx::Size(GetSystemMetrics(SM_CXSCREEN), GetSystemMetrics(SM_CYSCREEN))); #else // Default bounds for a display. const int kDefaultHostWindowX = 200; -- cgit v1.1