summaryrefslogtreecommitdiffstats
path: root/ash
diff options
context:
space:
mode:
authorsadrul <sadrul@chromium.org>2015-10-14 09:47:57 -0700
committerCommit bot <commit-bot@chromium.org>2015-10-14 16:48:36 +0000
commit3070c4bc0c2d6b65660c7b1bba9e71f429fd4841 (patch)
tree4dfcab466cb4f5c17360f675691712b9eb283fb3 /ash
parenta66540c5231cfec8098fe6642ba437da95a5919f (diff)
downloadchromium_src-3070c4bc0c2d6b65660c7b1bba9e71f429fd4841.zip
chromium_src-3070c4bc0c2d6b65660c7b1bba9e71f429fd4841.tar.gz
chromium_src-3070c4bc0c2d6b65660c7b1bba9e71f429fd4841.tar.bz2
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}
Diffstat (limited to 'ash')
-rw-r--r--ash/display/display_info.cc3
1 files changed, 2 insertions, 1 deletions
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;