Searched refs:rect_1 (Results 1 – 6 of 6) sorted by relevance
/external/chromium_org/ui/views/ |
D | rect_based_targeting_utils_unittest.cc | 13 gfx::Rect rect_1(gfx::Point(-22, 30), gfx::Size(1, 1)); in TEST() local 18 EXPECT_TRUE(UsePointBasedTargeting(rect_1)); in TEST() 25 gfx::Rect rect_1(gfx::Point(0, 0), gfx::Size(300, 120)); in TEST() local 32 EXPECT_FLOAT_EQ(1.0f, PercentCoveredBy(rect_1, rect_1)); in TEST() 35 EXPECT_FLOAT_EQ(0.075f, PercentCoveredBy(rect_1, rect_2)); in TEST() 36 EXPECT_FLOAT_EQ(1.0f, PercentCoveredBy(rect_2, rect_1)); in TEST() 43 EXPECT_NEAR(0.272f, PercentCoveredBy(rect_1, rect_3), error); in TEST() 44 EXPECT_NEAR(0.768f, PercentCoveredBy(rect_3, rect_1), error); in TEST() 52 gfx::Rect rect_1(gfx::Point(0, 0), gfx::Size(10, 10)); in TEST() local 61 EXPECT_EQ(0, DistanceSquaredFromCenterToPoint(point_1, rect_1)); in TEST() [all …]
|
D | rect_based_targeting_utils.cc | 16 float PercentCoveredBy(const gfx::Rect& rect_1, const gfx::Rect& rect_2) { in PercentCoveredBy() argument 17 gfx::Rect intersection(rect_1); in PercentCoveredBy() 20 int rect_1_area = rect_1.size().GetArea(); in PercentCoveredBy()
|
D | rect_based_targeting_utils.h | 21 VIEWS_EXPORT float PercentCoveredBy(const gfx::Rect& rect_1,
|
/external/chromium_org/printing/ |
D | pdf_metafile_cg_mac_unittest.cc | 24 gfx::Rect rect_1(10, 10, 520, 700); in TEST() local 26 pdf.StartPage(size_1, rect_1, 1.25); in TEST()
|
/external/chromium_org/ui/gfx/geometry/ |
D | rect_unittest.cc | 704 const RECT rect_1 = { 0, 0, 10, 10 }; in TEST() local 706 Rect test1(rect_1); in TEST()
|
/external/chromium_org/ui/app_list/views/ |
D | apps_grid_view.cc | 190 int GetDistanceBetweenRects(gfx::Rect rect_1, in GetDistanceBetweenRects() argument 192 return (rect_1.CenterPoint() - rect_2.CenterPoint()).Length(); in GetDistanceBetweenRects()
|