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

Unified Diff: chrome/browser/ui/views/tabs/window_finder_x11.cc

Issue 1417023002: Remove some implicit Point to PointF conversions, add helpers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: pointfconvert-views: extrachange Created 5 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: chrome/browser/ui/views/tabs/window_finder_x11.cc
diff --git a/chrome/browser/ui/views/tabs/window_finder_x11.cc b/chrome/browser/ui/views/tabs/window_finder_x11.cc
index db7a4cc2527594ac7c3a0dbe90b236fde942d06d..18c9c025b5f94dd9a5ff2daf1fb9e9210a987839 100644
--- a/chrome/browser/ui/views/tabs/window_finder_x11.cc
+++ b/chrome/browser/ui/views/tabs/window_finder_x11.cc
@@ -16,7 +16,7 @@ float GetDeviceScaleFactor() {
}
gfx::Point DIPToPixelPoint(const gfx::Point& dip_point) {
- return ToFlooredPoint(gfx::ScalePoint(dip_point, GetDeviceScaleFactor()));
+ return gfx::ScaleToFlooredPoint(dip_point, GetDeviceScaleFactor());
}
} // anonymous namespace
« no previous file with comments | « ash/touch/touch_uma.cc ('k') | ui/base/cursor/cursor_util.cc » ('j') | ui/gfx/geometry/point.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698