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

Side by Side Diff: content/browser/renderer_host/dip_util.h

Issue 750173002: Move dip utils to gfx/geometry (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add missed android change Created 6 years 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_BROWSER_RENDERER_HOST_DIP_UTIL_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_DIP_UTIL_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_DIP_UTIL_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_DIP_UTIL_H_
7 7
8 #include "content/common/content_export.h" 8 #include "content/common/content_export.h"
9 9
10 namespace gfx { 10 namespace gfx {
(...skipping 11 matching lines...) Expand all
22 22
23 // Utility functions that convert point/size/rect between DIP and pixel 23 // Utility functions that convert point/size/rect between DIP and pixel
24 // coordinate system. 24 // coordinate system.
25 CONTENT_EXPORT gfx::Point ConvertViewPointToDIP( 25 CONTENT_EXPORT gfx::Point ConvertViewPointToDIP(
26 const RenderWidgetHostView* view, const gfx::Point& point_in_pixel); 26 const RenderWidgetHostView* view, const gfx::Point& point_in_pixel);
27 CONTENT_EXPORT gfx::Size ConvertViewSizeToPixel( 27 CONTENT_EXPORT gfx::Size ConvertViewSizeToPixel(
28 const RenderWidgetHostView* view, const gfx::Size& size_in_dip); 28 const RenderWidgetHostView* view, const gfx::Size& size_in_dip);
29 CONTENT_EXPORT gfx::Rect ConvertViewRectToPixel( 29 CONTENT_EXPORT gfx::Rect ConvertViewRectToPixel(
30 const RenderWidgetHostView* view, const gfx::Rect& rect_in_dip); 30 const RenderWidgetHostView* view, const gfx::Rect& rect_in_dip);
31 31
32 CONTENT_EXPORT gfx::Size ConvertSizeToDIP(
33 float scale_factor, const gfx::Size& size_in_pixel);
34 CONTENT_EXPORT gfx::Rect ConvertRectToDIP(
35 float scale_factor, const gfx::Rect& rect_in_pixel);
36 CONTENT_EXPORT gfx::Size ConvertSizeToPixel(
37 float scale_factor, const gfx::Size& size_in_pixel);
38 CONTENT_EXPORT gfx::Rect ConvertRectToPixel(
39 float scale_factor, const gfx::Rect& rect_in_dip);
40
41 } // namespace content 32 } // namespace content
42 33
43 #endif // CONTENT_BROWSER_RENDERER_HOST_DIP_UTIL_H_ 34 #endif // CONTENT_BROWSER_RENDERER_HOST_DIP_UTIL_H_
OLDNEW
« no previous file with comments | « content/browser/compositor/delegated_frame_host.cc ('k') | content/browser/renderer_host/dip_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698