Home
last modified time | relevance | path

Searched refs:center_point (Results 1 – 12 of 12) sorted by relevance

/external/chromium_org/ui/views/
Dview_targeter_unittest.cc268 gfx::Point center_point(bounding_box.CenterPoint()); in TEST_F() local
271 GestureEventForTest tap(details, center_point.x(), center_point.y()); in TEST_F()
274 GestureEventForTest scroll_begin(details, center_point.x(), center_point.y()); in TEST_F()
277 GestureEventForTest end(details, center_point.x(), center_point.y()); in TEST_F()
329 tap = GestureEventForTest(details, center_point.x(), center_point.y()); in TEST_F()
333 GestureEventForTest(details, center_point.x(), center_point.y()); in TEST_F()
336 end = GestureEventForTest(details, center_point.x(), center_point.y()); in TEST_F()
383 gfx::Point center_point(bounding_box.CenterPoint()); in TEST_F() local
386 GestureEventForTest tap(details, center_point.x(), center_point.y()); in TEST_F()
390 gfx::Point location_in_root(center_point); in TEST_F()
Drect_based_targeting_utils.cc27 gfx::Point center_point = rect.CenterPoint(); in DistanceSquaredFromCenterToPoint() local
28 int dx = center_point.x() - point.x(); in DistanceSquaredFromCenterToPoint()
29 int dy = center_point.y() - point.y(); in DistanceSquaredFromCenterToPoint()
/external/chromium_org/ui/views/controls/
Dglow_hover_controller.cc92 SkPoint center_point; in Draw() local
93 center_point.iset(location_.x(), location_.y()); in Draw()
101 center_point, SkIntToScalar(radius), colors, NULL, 2, in Draw()
/external/chromium_org/chrome/browser/ui/autofill/
Dpassword_generation_popup_view_browsertest.cc67 gfx::Point center_point = in IN_PROC_BROWSER_TEST_F() local
70 GetViewTester()->SimulateMouseMovementAt(center_point); in IN_PROC_BROWSER_TEST_F()
/external/chromium_org/ash/system/web_notification/
Dash_popup_alignment_delegate_unittest.cc52 const gfx::Point center_point = work_area.CenterPoint(); in GetPositionInDisplay() local
58 if (center_point.x() < point.x()) in GetPositionInDisplay()
59 return (center_point.y() < point.y()) ? BOTTOM_RIGHT : TOP_RIGHT; in GetPositionInDisplay()
61 return (center_point.y() < point.y()) ? BOTTOM_LEFT : TOP_LEFT; in GetPositionInDisplay()
Dweb_notification_tray_unittest.cc496 gfx::Point center_point = tray->GetBoundsInScreen().CenterPoint(); in TEST_F() local
498 ui::TouchEvent press(ui::ET_TOUCH_PRESSED, center_point, touch_id, in TEST_F()
504 ui::TouchEvent release(ui::ET_TOUCH_RELEASED, center_point, touch_id, in TEST_F()
511 generator.GestureTapAt(center_point); in TEST_F()
530 gfx::Point center_point = bounds.CenterPoint(); in TEST_F() local
532 ui::TouchEvent press(ui::ET_TOUCH_PRESSED, center_point, touch_id, in TEST_F()
538 gfx::Point out_of_bounds(bounds.x() - 1, center_point.y()); in TEST_F()
/external/chromium_org/ash/frame/caption_buttons/
Dframe_caption_button_container_view.cc390 gfx::Point center_point = button->GetLocalBounds().CenterPoint(); in GetButtonClosestTo() local
391 views::View::ConvertPointToTarget(button, this, &center_point); in GetButtonClosestTo()
393 pow(static_cast<double>(position.x() - center_point.x()), 2) + in GetButtonClosestTo()
394 pow(static_cast<double>(position.y() - center_point.y()), 2)); in GetButtonClosestTo()
/external/chromium_org/chrome/browser/ui/views/message_center/
Dweb_notification_tray.cc96 gfx::Point center_point = rect.CenterPoint(); in GetClosestCorner() local
99 if (query.x() > center_point.x()) in GetClosestCorner()
104 if (query.y() > center_point.y()) in GetClosestCorner()
/external/pdfium/fpdfsdk/src/pdfwindow/
DPWL_Utils.cpp2148 CPWL_Point center_point(crBBox.left + fWidth/2, crBBox.bottom + fHeight/2); in GetGraphics_Cross() local
2152 CPWL_PathData(CPWL_Point(center_point.x, center_point.y + fHeight/10.0f), PWLPT_MOVETO), in GetGraphics_Cross()
2153 …CPWL_PathData(CPWL_Point(center_point.x + fWidth*0.3f, center_point.y + fHeight/10.0f + fWidth*0.3… in GetGraphics_Cross()
2154 …CPWL_PathData(CPWL_Point(center_point.x + fWidth/10.0f + fWidth*0.3f, center_point.y + fHeight*0.3… in GetGraphics_Cross()
2155 CPWL_PathData(CPWL_Point(center_point.x + fWidth/10.0f, center_point.y), PWLPT_LINETO), in GetGraphics_Cross()
2156 …CPWL_PathData(CPWL_Point(center_point.x + fWidth/10.0f + fWidth*0.3f, center_point.y - fHeight*0.3… in GetGraphics_Cross()
2157 …CPWL_PathData(CPWL_Point(center_point.x + fWidth*0.3f, center_point.y - fHeight/10.0f - fHeight*0.… in GetGraphics_Cross()
2158 CPWL_PathData(CPWL_Point(center_point.x, center_point.y - fHeight/10.0f), PWLPT_LINETO), in GetGraphics_Cross()
2159 …CPWL_PathData(CPWL_Point(center_point.x - fWidth*0.3f, center_point.y - fHeight/10 - fHeight*0.3f)… in GetGraphics_Cross()
2160 …CPWL_PathData(CPWL_Point(center_point.x - fWidth/10.0f - fWidth*0.3f, center_point.y - fHeight*0.3… in GetGraphics_Cross()
[all …]
/external/chromium_org/ui/gfx/
Dcanvas.cc290 void Canvas::DrawCircle(const Point& center_point, in DrawCircle() argument
293 canvas_->drawCircle(SkIntToScalar(center_point.x()), in DrawCircle()
294 SkIntToScalar(center_point.y()), SkIntToScalar(radius), paint); in DrawCircle()
Dcanvas.h255 void DrawCircle(const Point& center_point,
/external/chromium_org/chrome/browser/ui/views/tabs/
Dtab.cc1133 SkPoint center_point; in PaintInactiveTabBackgroundWithTitleChange() local
1134 center_point.iset(x, 0); in PaintInactiveTabBackgroundWithTitleChange()
1139 center_point, SkIntToScalar(radius), colors, NULL, 2, in PaintInactiveTabBackgroundWithTitleChange()