Lines Matching defs:native_bounds
52 gfx::Rect native_bounds = root_window->GetHost()->GetBounds();
53 native_bounds.Inset(
60 int x = std::abs(native_bounds.x() - start.x()) <
61 std::abs(native_bounds.right() - start.x())
62 ? native_bounds.x()
63 : native_bounds.right() - 1;
68 int y = std::abs(native_bounds.y() - start.y()) <
69 std::abs(native_bounds.bottom() - start.y())
70 ? native_bounds.y()
71 : native_bounds.bottom() - 1;
96 void MovePointInside(const gfx::Rect& native_bounds,
98 if (native_bounds.x() > point_in_native->x())
99 point_in_native->set_x(native_bounds.x());
100 if (native_bounds.right() < point_in_native->x())
101 point_in_native->set_x(native_bounds.right());
103 if (native_bounds.y() > point_in_native->y())
104 point_in_native->set_y(native_bounds.y());
105 if (native_bounds.bottom() < point_in_native->y())
106 point_in_native->set_y(native_bounds.bottom());
209 gfx::Rect native_bounds = root->GetHost()->GetBounds();
210 gfx::Point native_origin = native_bounds.origin();
211 native_bounds.Inset(
216 native_bounds.Inset(1, 1, 2, 2);
218 MovePointInside(native_bounds, &point_in_native);