Lines Matching defs:point
256 gfx::Point location_;
413 gfx::Point p1(110, 120);
426 gfx::Point p2(50, 40);
439 ui::MouseEvent released(ui::ET_MOUSE_RELEASED, gfx::Point(), gfx::Point(), 0);
472 gfx::Point point(110, 120);
473 ui::MouseEvent pressed(ui::ET_MOUSE_PRESSED, point, point,
541 gfx::Point(400, 400),
556 Point(110, 120),
574 gfx::Point(50, 40),
590 ui::TouchEvent released(ui::ET_TOUCH_RELEASED, gfx::Point(),
645 EXPECT_EQ(gfx::Point(10, 10), v2->location_);
660 EXPECT_EQ(gfx::Point(80, 80), v1->location_);
711 EXPECT_EQ(gfx::Point(10, 10), v2->location_);
727 // point, and is the scroll event handler).
752 EXPECT_EQ(gfx::Point(80, 80), v1->location_);
969 gfx::Point ConvertPointToView(View* view, const gfx::Point& p) {
970 gfx::Point tmp(p);
1012 gfx::Point v1_centerpoint = v1_bounds.CenterPoint();
1013 gfx::Point v2_centerpoint = v2_bounds.CenterPoint();
1014 gfx::Point v1_origin = v1_bounds.origin();
1015 gfx::Point v2_origin = v2_bounds.origin();
1158 // Covers both |v1| and |v2| by at least 60%, but the center point
1159 // of |touch_rect| is closer to the center point of |v2|.
1165 // Covers both |v1| and |v2| by at least 60%, but the center point
1166 // of |touch_rect| is closer to the center point of |v1|.
1178 // Intersects |v3| and |v31| by at least 60% and the center point
1179 // of |touch_rect| is closer to the center point of |v31|.
1186 // center point of |touch_rect| lies within |v31|.
1193 // center point of |touch_rect| is closest to the center point
1201 // |v31| and |v32| by at least 60%. The center point of
1202 // |touch_rect| is closest to the center point of |v32|.
1221 // The center point of |touch_rect| is equally close to
1236 // The center point of |touch_rect| is equally close to the center
1244 // them by at least 60%. The center point of |touch_rect| lies
1252 // them by at least 60%. The center point of |touch_rect| lies
1260 // them by at least 60%. The center point of |touch_rect| lies
1287 // least 60%. The center point of |touch_rect| is closest
1288 // to the center point of |v32|.
1296 // The center point of |touch_rect| is closest to the center
1297 // point of |root_view|.
1304 // center point of |touch_rect| is equally close to the center
1314 // Covers |v5| and |v51| by at least 60%, and the center point of
1316 // the same center point, the child view should be selected.
1322 // Covers |v5| and |v51| by at least 60%, but the center point of
1324 // share the same center point, the child view should be selected.
1338 // The center point is located outside of both views.
1345 // center point of the touch region is located within |v5|.
1427 gfx::Point p1(6, 6);
1438 gfx::Point p2(65, 21);
1449 gfx::Point p3(1, 1);
1460 gfx::Point p4(121, 15);
1473 gfx::Point p5(21, 0);
1483 gfx::Point p6(15, 15);
1495 gfx::Point p7(21, 0);
2031 gfx::Point p1(110, 210);
2040 ui::MouseEvent released(ui::ET_MOUSE_RELEASED, gfx::Point(), gfx::Point(), 0);
2055 gfx::Point point2(110, 320);
2091 gfx::Point point(112, 110);
2092 ui::MouseEvent p3(ui::ET_MOUSE_PRESSED, point, point,
2130 gfx::Point point3(124, 125);
2375 gfx::Point point(5, 5);
2376 View::ConvertPointToTarget(child, &top_view, &point);
2377 EXPECT_EQ(22, point.x());
2378 EXPECT_EQ(39, point.y());
2387 point.SetPoint(22, 39);
2388 View::ConvertPointToTarget(&top_view, child, &point);
2389 EXPECT_EQ(5, point.x());
2390 EXPECT_EQ(5, point.y());
2402 gfx::Point point(5, 5);
2403 View::ConvertPointToTarget(child_child, &top_view, &point);
2404 EXPECT_EQ(133, point.x());
2405 EXPECT_EQ(211, point.y());
2414 point.SetPoint(133, 211);
2415 View::ConvertPointToTarget(&top_view, child_child, &point);
2416 EXPECT_EQ(5, point.x());
2417 EXPECT_EQ(5, point.y());
2429 gfx::Point point(5, 5);
2430 View::ConvertPointToTarget(child_child, child, &point);
2431 EXPECT_EQ(42, point.x());
2432 EXPECT_EQ(48, point.y());
2441 point.SetPoint(42, 48);
2442 View::ConvertPointToTarget(child, child_child, &point);
2443 EXPECT_EQ(5, point.x());
2444 EXPECT_EQ(5, point.y());
2457 gfx::Point point(6, 18);
2458 View::ConvertPointToTarget(&top_view, child, &point);
2459 EXPECT_EQ(-1, point.x());
2460 EXPECT_EQ(-1, point.y());
2504 gfx::Point point_in_screen(100, 90);
2505 gfx::Point point_in_child(80,60);
2507 gfx::Point point = point_in_screen;
2508 View::ConvertPointFromScreen(child, &point);
2509 EXPECT_EQ(point_in_child.ToString(), point.ToString());
2511 View::ConvertPointToScreen(child, &point);
2512 EXPECT_EQ(point_in_screen.ToString(), point.ToString());
3139 // At this point we have v1-v2-v3. v3 has a layer, v1 and v2 don't.
3181 v1->SetPosition(gfx::Point(25, 36));
3184 v2->SetPosition(gfx::Point(11, 12));
3189 v1->SetPosition(gfx::Point(20, 30));