Searched refs:zoom_rect (Results 1 – 4 of 4) sorted by relevance
39 gfx::Rect zoom_rect; in TEST_F() local42 &zoom_rect); in TEST_F()44 EXPECT_TRUE(gfx::Rect(kVisibleContentSize_).Contains(zoom_rect)); in TEST_F()47 gfx::Size scaled_size = ToCeiledSize(ScaleSize(zoom_rect.size(), scale)); in TEST_F()56 gfx::Rect zoom_rect; in TEST_F() local59 &zoom_rect); in TEST_F()61 EXPECT_TRUE(gfx::Rect(kVisibleContentSize_).Contains(zoom_rect)); in TEST_F()63 EXPECT_TRUE(zoom_rect.Contains(target_rects[0])); in TEST_F()65 gfx::Size scaled_size = ToCeiledSize(ScaleSize(zoom_rect.size(), scale)); in TEST_F()75 gfx::Rect zoom_rect; in TEST_F() local[all …]
64 gfx::Rect CropZoomArea(const gfx::Rect& zoom_rect, in CropZoomArea() argument73 int left = touch_point.x() - zoom_rect.x(); in CropZoomArea()74 int right = zoom_rect.right() - touch_point.x(); in CropZoomArea()75 int top = touch_point.y() - zoom_rect.y(); in CropZoomArea()76 int bottom = zoom_rect.bottom() - touch_point.y(); in CropZoomArea()96 gfx::Rect* zoom_rect) { in ComputeZoomAreaAndScaleFactor() argument97 *zoom_rect = tap_rect; in ComputeZoomAreaAndScaleFactor()99 zoom_rect->Union(gfx::Rect(target_rects[i])); in ComputeZoomAreaAndScaleFactor()100 zoom_rect->Inset(-kDisambiguationPopupPadding, -kDisambiguationPopupPadding); in ComputeZoomAreaAndScaleFactor()102 zoom_rect->Intersect(gfx::Rect(visible_content_size)); in ComputeZoomAreaAndScaleFactor()[all …]
31 gfx::Rect* zoom_rect);
6321 gfx::Rect zoom_rect; in didTapMultipleTargets() local6326 device_scale_factor_ * webview()->pageScaleFactor(), &zoom_rect); in didTapMultipleTargets()6333 handled = webview()->zoomToMultipleTargetsRect(zoom_rect); in didTapMultipleTargets()6337 gfx::ToCeiledSize(gfx::ScaleSize(zoom_rect.size(), new_total_scale)); in didTapMultipleTargets()6354 canvas->translate(-zoom_rect.x() * device_scale_factor_, in didTapMultipleTargets()6355 -zoom_rect.y() * device_scale_factor_); in didTapMultipleTargets()6359 zoom_rect, in didTapMultipleTargets()6364 ClientRectToPhysicalWindowRect(gfx::RectF(zoom_rect))); in didTapMultipleTargets()