Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1042)

Unified Diff: content/renderer/input/render_widget_input_handler.cc

Issue 2650113004: [WIP] Add support for Android SuggestionSpans when editing text (Closed)
Patch Set: Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/renderer/input/render_widget_input_handler.cc
diff --git a/content/renderer/input/render_widget_input_handler.cc b/content/renderer/input/render_widget_input_handler.cc
index f6f161d0cfb6b39ccb48f69dd23eefab2c029cad..919636ff06a338ad97081b5021cc8902c5532d55 100644
--- a/content/renderer/input/render_widget_input_handler.cc
+++ b/content/renderer/input/render_widget_input_handler.cc
@@ -420,6 +420,10 @@ void RenderWidgetInputHandler::HandleInputEvent(
processed != WebInputEventResult::NotHandled) {
delegate_->ShowVirtualKeyboard();
}
+
+ if (input_event.type() == WebInputEvent::GestureTap) {
aelias_OOO_until_Jul13 2017/01/25 03:34:26 This handler is too generica place to put this, pl
rlanday 2017/01/26 01:29:07 That would be SelectionController::handleMousePres
aelias_OOO_until_Jul13 2017/01/26 02:00:30 You can just add a new abstract method in third_pa
+ delegate_->HandlePotentialTextSuggestionTap();
+ }
#elif defined(USE_AURA)
// Show the virtual keyboard if enabled and a user gesture triggers a focus
// change.

Powered by Google App Engine
This is Rietveld 408576698