Chromium Code Reviews| Index: content/browser/renderer_host/input/touch_selection_controller_client_aura.cc |
| diff --git a/content/browser/renderer_host/input/touch_selection_controller_client_aura.cc b/content/browser/renderer_host/input/touch_selection_controller_client_aura.cc |
| index 1bf91a5447060e31afbc5159cc7474d592c4993d..16978aeec963f3d2639bb5d9511adc3d3f240cca 100644 |
| --- a/content/browser/renderer_host/input/touch_selection_controller_client_aura.cc |
| +++ b/content/browser/renderer_host/input/touch_selection_controller_client_aura.cc |
| @@ -157,7 +157,8 @@ void TouchSelectionControllerClientAura::OnScrollCompleted() { |
| bool TouchSelectionControllerClientAura::HandleContextMenu( |
| const ContextMenuParams& params) { |
| if (params.source_type == ui::MENU_SOURCE_LONG_PRESS && |
| - rwhva_->selection_controller()->insertion_active_or_requested() && |
| + (rwhva_->selection_controller()->active_status() == |
| + ui::TouchSelectionController::INSERTION_ACTIVE) && |
|
mohsen
2016/10/15 03:49:36
I think this will break long-press on empty textfi
amaralp
2016/10/19 04:26:38
Yeah I think you are right.
I'm not sure I underst
mohsen
2016/10/19 16:08:34
When user long-presses on a page, blink either sel
|
| IsQuickMenuAvailable()) { |
| DCHECK(params.is_editable); |
| DCHECK(params.selection_text.empty()); |
| @@ -300,9 +301,6 @@ void TouchSelectionControllerClientAura::OnSelectionEvent( |
| quick_menu_requested_ = !quick_menu_requested_; |
| UpdateQuickMenu(); |
| break; |
| - case ui::SELECTION_ESTABLISHED: |
| - case ui::SELECTION_DISSOLVED: |
| - break; |
| }; |
| } |