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

Unified Diff: ui/views/drag_utils.cc

Issue 12257016: (Not ready for review!) Toolbar and views high dpi support. Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Cleaned up more useless diffs. Created 7 years, 10 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/views/controls/native/native_view_host.cc ('k') | ui/views/view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/drag_utils.cc
diff --git a/ui/views/drag_utils.cc b/ui/views/drag_utils.cc
index c011339662fc70281aae434d6ec7770b6d97138b..54769fe1db8d796b5de72e0710a1b5f0e0bd2800 100644
--- a/ui/views/drag_utils.cc
+++ b/ui/views/drag_utils.cc
@@ -35,6 +35,8 @@ ui::ScaleFactor GetDeviceScaleFactorForNativeView(views::Widget* widget) {
device_scale_factor = ui::GetScaleFactorFromScale(
display.device_scale_factor());
}
+#elif defined(ENABLE_HIDPI)
+ device_scale_factor = ui::GetMaxScaleFactor();
#endif
return device_scale_factor;
}
« no previous file with comments | « ui/views/controls/native/native_view_host.cc ('k') | ui/views/view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698