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

Unified Diff: chrome/browser/ui/views/frame/browser_desktop_window_tree_host_win.cc

Issue 1209723004: win10: Fix various ui glitches (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 5 years, 6 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
Index: chrome/browser/ui/views/frame/browser_desktop_window_tree_host_win.cc
diff --git a/chrome/browser/ui/views/frame/browser_desktop_window_tree_host_win.cc b/chrome/browser/ui/views/frame/browser_desktop_window_tree_host_win.cc
index ea2d19d6fe7ab8f06155bcb00fd77c658dc9834d..d190f80f60955d137ec3c230bd49476b667d5045 100644
--- a/chrome/browser/ui/views/frame/browser_desktop_window_tree_host_win.cc
+++ b/chrome/browser/ui/views/frame/browser_desktop_window_tree_host_win.cc
@@ -7,6 +7,7 @@
#include <dwmapi.h>
#include "base/process/process_handle.h"
+#include "base/win/windows_version.h"
#include "chrome/browser/lifetime/application_lifetime.h"
#include "chrome/browser/themes/theme_service.h"
#include "chrome/browser/themes/theme_service_factory.h"
@@ -343,6 +344,12 @@ MARGINS BrowserDesktopWindowTreeHostWin::GetDWMFrameMargins() const {
tabstrip_bounds = gfx::win::DIPToScreenRect(tabstrip_bounds);
margins.cyTopHeight = tabstrip_bounds.bottom() + kDWMFrameTopOffset;
}
+ if (base::win::GetVersion() >= base::win::VERSION_WIN10) {
Peter Kasting 2015/06/25 23:34:12 Nit: I think this might be clearer if instead of d
scottmg 2015/06/26 18:29:32 Done.
+ // No inset on Win10.
+ margins.cxLeftWidth = 0;
+ margins.cxRightWidth = 0;
+ margins.cyBottomHeight = 0;
+ }
}
return margins;
}

Powered by Google App Engine
This is Rietveld 408576698