Home
last modified time | relevance | path

Searched refs:target_rects (Results 1 – 5 of 5) sorted by relevance

/external/chromium_org/content/renderer/
Ddisambiguation_popup_helper_unittest.cc36 blink::WebVector<blink::WebRect> target_rects(static_cast<size_t>(1)); in TEST_F() local
37 target_rects[0] = gfx::Rect(-20, -20, 10, 10); in TEST_F()
41 tap_rect, target_rects, kScreenSize_, kVisibleContentSize_, kImplScale_, in TEST_F()
53 blink::WebVector<blink::WebRect> target_rects(static_cast<size_t>(1)); in TEST_F() local
54 target_rects[0] = gfx::Rect(10, 10, 1, 1); in TEST_F()
58 tap_rect, target_rects, kScreenSize_, kVisibleContentSize_, kImplScale_, in TEST_F()
63 EXPECT_TRUE(zoom_rect.Contains(target_rects[0])); in TEST_F()
71 blink::WebVector<blink::WebRect> target_rects(static_cast<size_t>(2)); in TEST_F() local
72 target_rects[0] = gfx::Rect(15, 15, 1000, 5); in TEST_F()
73 target_rects[1] = gfx::Rect(15, 25, 1000, 5); in TEST_F()
[all …]
Ddisambiguation_popup_helper.cc32 float FindOptimalScaleFactor(const WebVector<WebRect>& target_rects, in FindOptimalScaleFactor() argument
36 if (!target_rects.size()) // shall never reach in FindOptimalScaleFactor()
38 float smallest_target = min(target_rects[0].width * total_scale, in FindOptimalScaleFactor()
39 target_rects[0].height * total_scale); in FindOptimalScaleFactor()
40 for (size_t i = 1; i < target_rects.size(); i++) { in FindOptimalScaleFactor()
41 smallest_target = min(smallest_target, target_rects[i].width * total_scale); in FindOptimalScaleFactor()
43 target_rects[i].height * total_scale); in FindOptimalScaleFactor()
92 const WebVector<WebRect>& target_rects, in ComputeZoomAreaAndScaleFactor() argument
98 for (size_t i = 0; i < target_rects.size(); i++) in ComputeZoomAreaAndScaleFactor()
99 zoom_rect->Union(gfx::Rect(target_rects[i])); in ComputeZoomAreaAndScaleFactor()
[all …]
Ddisambiguation_popup_helper.h27 const blink::WebVector<blink::WebRect>& target_rects,
Drender_view_impl.h439 const blink::WebVector<blink::WebRect>& target_rects);
Drender_view_impl.cc3817 const WebVector<WebRect>& target_rects) { in didTapMultipleTargets() argument
3832 finger_rect, target_rects, GetSize(), in didTapMultipleTargets()