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

Unified Diff: ui/base/layout.cc

Issue 11953054: Fix high-DPI on Windows to make use of DIP scaling in WebKit. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Remove redundant comments. Created 7 years, 11 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 | « content/port/browser/render_widget_host_view_port.h ('k') | ui/base/win/dpi.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/layout.cc
diff --git a/ui/base/layout.cc b/ui/base/layout.cc
index 56779766ebf6c894522f0ee3ccc31c79eb4cb9e9..66d44f1f46a08cd4bbc703714e85ad9e9b922cc7 100644
--- a/ui/base/layout.cc
+++ b/ui/base/layout.cc
@@ -119,7 +119,7 @@ std::vector<ScaleFactor>& GetSupportedScaleFactorsInternal() {
if (base::mac::IsOSLionOrLater())
supported_scale_factors->push_back(SCALE_FACTOR_200P);
#elif defined(OS_WIN) && defined(ENABLE_HIDPI)
- if (base::win::IsMetroProcess() && base::win::IsTouchEnabled()) {
+ if (base::win::IsMetroProcess() && ui::IsTouchDevicePresent()) {
supported_scale_factors->push_back(SCALE_FACTOR_140P);
supported_scale_factors->push_back(SCALE_FACTOR_180P);
}
« no previous file with comments | « content/port/browser/render_widget_host_view_port.h ('k') | ui/base/win/dpi.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698