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

Unified Diff: ui/views/widget/desktop_aura/desktop_window_tree_host_x11.h

Issue 659883002: Enable hidpi on Linux, refactor a bit on Windows to share Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: delete some printfs Created 6 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/views/widget/desktop_aura/desktop_window_tree_host_x11.h
diff --git a/ui/views/widget/desktop_aura/desktop_window_tree_host_x11.h b/ui/views/widget/desktop_aura/desktop_window_tree_host_x11.h
index 808bed76e30bf7fb6447d67294a37845ca3e3240..12f56b1175933b03e192376f80022d378ae42515 100644
--- a/ui/views/widget/desktop_aura/desktop_window_tree_host_x11.h
+++ b/ui/views/widget/desktop_aura/desktop_window_tree_host_x11.h
@@ -343,6 +343,13 @@ class VIEWS_EXPORT DesktopWindowTreeHostX11
DISALLOW_COPY_AND_ASSIGN(DesktopWindowTreeHostX11);
};
+gfx::Point ScreenToDIPPoint(const gfx::Point& pixel_point);
+gfx::Point DIPToScreenPoint(const gfx::Point& dip_point);
+gfx::Size ScreenToDIPSize(const gfx::Size& size_in_pixels);
+gfx::Size DIPToScreenSize(const gfx::Size& dip_size);
+gfx::Rect DIPToScreenRect(const gfx::Rect& dip_bounds);
+gfx::Rect ScreenToDIPRect(const gfx::Rect& pixel_bounds);
+
} // namespace views
#endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_WINDOW_TREE_HOST_X11_H_

Powered by Google App Engine
This is Rietveld 408576698