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

Unified Diff: ui/aura/desktop_host_win.cc

Issue 8374005: aura: Try to make Linux host resize code more reliable. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: update a few other gfx::Rect calls Created 9 years, 2 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 | « ui/aura/desktop_host_linux.cc ('k') | ui/aura/window_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/desktop_host_win.cc
diff --git a/ui/aura/desktop_host_win.cc b/ui/aura/desktop_host_win.cc
index 0dabcdda83c137ba33b19e3bfe1583b6607a6aec..c123890e24a9744972cf1583f31df39d6c2e5ccb 100644
--- a/ui/aura/desktop_host_win.cc
+++ b/ui/aura/desktop_host_win.cc
@@ -106,6 +106,12 @@ DesktopHost* DesktopHost::Create(const gfx::Rect& bounds) {
return new DesktopHostWin(bounds);
}
+// static
+gfx::Size DesktopHost::GetNativeDisplaySize() {
+ return gfx::Size(GetSystemMetrics(SM_CXSCREEN),
+ GetSystemMetrics(SM_CYSCREEN));
+}
+
DesktopHostWin::DesktopHostWin(const gfx::Rect& bounds) : desktop_(NULL) {
Init(NULL, bounds);
SetWindowText(hwnd(), L"aura::Desktop!");
« no previous file with comments | « ui/aura/desktop_host_linux.cc ('k') | ui/aura/window_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698