summaryrefslogtreecommitdiffstats
path: root/ui/aura/window_tree_host_win.cc
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 /ui/aura/window_tree_host_win.cc
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 'ui/aura/window_tree_host_win.cc')
-rw-r--r--ui/aura/window_tree_host_win.cc6
1 files changed, 0 insertions, 6 deletions
diff --git a/ui/aura/window_tree_host_win.cc b/ui/aura/window_tree_host_win.cc
index 0727401..ea7bf24 100644
--- a/ui/aura/window_tree_host_win.cc
+++ b/ui/aura/window_tree_host_win.cc
@@ -31,12 +31,6 @@ WindowTreeHost* WindowTreeHost::Create(const gfx::Rect& bounds) {
return new WindowTreeHostWin(bounds);
}
-// static
-gfx::Size WindowTreeHost::GetNativeScreenSize() {
- return gfx::Size(GetSystemMetrics(SM_CXSCREEN),
- GetSystemMetrics(SM_CYSCREEN));
-}
-
WindowTreeHostWin::WindowTreeHostWin(const gfx::Rect& bounds)
: has_capture_(false),
widget_(gfx::kNullAcceleratedWidget),