| Index: ui/views/touchui/touch_selection_controller_impl.cc
|
| diff --git a/ui/views/touchui/touch_selection_controller_impl.cc b/ui/views/touchui/touch_selection_controller_impl.cc
|
| index 3e96d9efb3974339570cf0616b839a97fea4972c..fa68a14b0c125244a948b0aecad8e91333655b6d 100644
|
| --- a/ui/views/touchui/touch_selection_controller_impl.cc
|
| +++ b/ui/views/touchui/touch_selection_controller_impl.cc
|
| @@ -182,7 +182,7 @@ ui::SelectionBound ConvertFromScreen(ui::TouchEditable* client,
|
| gfx::Point edge_top = bound.edge_top_rounded();
|
| client->ConvertPointFromScreen(&edge_bottom);
|
| client->ConvertPointFromScreen(&edge_top);
|
| - result.SetEdge(edge_top, edge_bottom);
|
| + result.SetEdge(gfx::PointF(edge_top), gfx::PointF(edge_bottom));
|
| return result;
|
| }
|
|
|
| @@ -193,7 +193,7 @@ ui::SelectionBound ConvertToScreen(ui::TouchEditable* client,
|
| gfx::Point edge_top = bound.edge_top_rounded();
|
| client->ConvertPointToScreen(&edge_bottom);
|
| client->ConvertPointToScreen(&edge_top);
|
| - result.SetEdge(edge_top, edge_bottom);
|
| + result.SetEdge(gfx::PointF(edge_top), gfx::PointF(edge_bottom));
|
| return result;
|
| }
|
|
|
| @@ -355,7 +355,7 @@ class TouchSelectionControllerImpl::EditingHandleView
|
| gfx::Point edge_bottom = selection_bound_.edge_bottom_rounded();
|
| wm::ConvertPointFromScreen(window, &edge_top);
|
| wm::ConvertPointFromScreen(window, &edge_bottom);
|
| - selection_bound_.SetEdge(edge_top, edge_bottom);
|
| + selection_bound_.SetEdge(gfx::PointF(edge_top), gfx::PointF(edge_bottom));
|
| }
|
|
|
| void SetDrawInvisible(bool draw_invisible) {
|
| @@ -446,12 +446,12 @@ void TouchSelectionControllerImpl::SelectionChanged() {
|
| ui::SelectionBound screen_bound_focus = ConvertToScreen(client_view_, focus);
|
| gfx::Rect client_bounds = client_view_->GetBounds();
|
| if (anchor.edge_top().y() < client_bounds.y()) {
|
| - gfx::Point anchor_edge_top = anchor.edge_top_rounded();
|
| + auto anchor_edge_top = gfx::PointF(anchor.edge_top_rounded());
|
| anchor_edge_top.set_y(client_bounds.y());
|
| anchor.SetEdgeTop(anchor_edge_top);
|
| }
|
| if (focus.edge_top().y() < client_bounds.y()) {
|
| - gfx::Point focus_edge_top = focus.edge_top_rounded();
|
| + auto focus_edge_top = gfx::PointF(focus.edge_top_rounded());
|
| focus_edge_top.set_y(client_bounds.y());
|
| focus.SetEdgeTop(focus_edge_top);
|
| }
|
|
|