Chromium Code Reviews| 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 1e80313596406b892fb638a4e9fe3bc6713c5138..c4c5d26e93a425cd00f407e1a3189bb653d6716f 100644 |
| --- a/ui/views/touchui/touch_selection_controller_impl.cc |
| +++ b/ui/views/touchui/touch_selection_controller_impl.cc |
| @@ -237,7 +237,6 @@ class TouchSelectionControllerImpl::EditingHandleView |
| draw_invisible_(false), |
| weak_ptr_factory_(this) { |
| widget_.reset(CreateTouchSelectionPopupWidget(context, this)); |
| - widget_->SetContentsView(this); |
| aura::Window* window = widget_->GetNativeWindow(); |
| window->SetEventTargeter(std::unique_ptr<ui::EventTargeter>( |
| @@ -321,6 +320,8 @@ class TouchSelectionControllerImpl::EditingHandleView |
| } |
| gfx::Size GetPreferredSize() const override { |
| + if (selection_bound_.type() == gfx::SelectionBound::EMPTY) |
|
sky
2016/10/06 16:49:20
It would be nice if you had a comment as to why th
Evan Stade
2016/10/06 16:51:44
Done.
|
| + return gfx::Size(); |
| return GetSelectionWidgetBounds(selection_bound_).size(); |
| } |