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

Unified Diff: ui/base/resource/resource_bundle.cc

Issue 27156003: linux_aura: Enable HIDPI support (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Took comments from Oshima into consideration Created 7 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
Index: ui/base/resource/resource_bundle.cc
diff --git a/ui/base/resource/resource_bundle.cc b/ui/base/resource/resource_bundle.cc
index f9c5d6970969f3ae4926c1011d02a4eb816c1346..d9a42e28740deba5f69290639042b6ee94f8494e 100644
--- a/ui/base/resource/resource_bundle.cc
+++ b/ui/base/resource/resource_bundle.cc
@@ -573,6 +573,10 @@ void ResourceBundle::InitSharedInstance(Delegate* delegate) {
#elif defined(OS_CHROMEOS)
// TODO(oshima): Include 200P only if the device support 200P
supported_scale_factors.push_back(SCALE_FACTOR_200P);
+#elif defined(OS_LINUX) && defined(USE_AURA)
+ // Provide same UX as on Win desktops.
+ supported_scale_factors.push_back(SCALE_FACTOR_140P);
+ supported_scale_factors.push_back(SCALE_FACTOR_180P);
#endif
ui::SetSupportedScaleFactors(supported_scale_factors);
#if defined(OS_WIN)
« no previous file with comments | « no previous file | ui/views/widget/desktop_aura/desktop_screen_x11.cc » ('j') | ui/views/widget/desktop_aura/desktop_screen_x11.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698