From 281a9eadff15b167e2ee3032e21b83190ad49125 Mon Sep 17 00:00:00 2001 From: Tom Sepez Date: Fri, 26 Feb 2016 14:24:28 -0800 Subject: Re-land "Replace CPDF_Rect and CPDF_Point with CFX types." TBR=thestig@chromium.org Review URL: https://codereview.chromium.org/1737593006 . --- core/include/fxcrt/fx_coordinates.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'core/include/fxcrt') diff --git a/core/include/fxcrt/fx_coordinates.h b/core/include/fxcrt/fx_coordinates.h index 053d637689..30770309a0 100644 --- a/core/include/fxcrt/fx_coordinates.h +++ b/core/include/fxcrt/fx_coordinates.h @@ -415,6 +415,15 @@ struct FX_SMALL_RECT { int16_t Bottom; }; + +class CFX_FloatPoint { + public: + CFX_FloatPoint(FX_FLOAT xx, FX_FLOAT yy) : x(xx), y(yy) {} + + FX_FLOAT x; + FX_FLOAT y; +}; + class CFX_FloatRect { public: CFX_FloatRect() { left = right = bottom = top = 0; } -- cgit v1.2.3