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

Unified Diff: third_party/WebKit/Source/core/editing/SelectionController.cpp

Issue 2931443003: Add support for Android spellcheck menu in Chrome/WebViews (Closed)
Patch Set: Respond to aelias@'s comments Created 3 years, 6 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: third_party/WebKit/Source/core/editing/SelectionController.cpp
diff --git a/third_party/WebKit/Source/core/editing/SelectionController.cpp b/third_party/WebKit/Source/core/editing/SelectionController.cpp
index 64774b9ae378fde81561d31b2c985535acf4cecb..09d68f7f91c7a965b3e1721194ee504da9df6cfb 100644
--- a/third_party/WebKit/Source/core/editing/SelectionController.cpp
+++ b/third_party/WebKit/Source/core/editing/SelectionController.cpp
@@ -37,6 +37,7 @@
#include "core/editing/RenderedPosition.h"
#include "core/editing/iterators/TextIterator.h"
#include "core/editing/markers/DocumentMarkerController.h"
+#include "core/editing/suggestion/TextSuggestionController.h"
#include "core/events/Event.h"
#include "core/frame/LocalFrame.h"
#include "core/frame/LocalFrameView.h"
@@ -279,6 +280,7 @@ bool SelectionController::HandleSingleClick(
kCharacterGranularity,
is_handle_visible ? HandleVisibility::kVisible
: HandleVisibility::kNotVisible);
+ frame_->GetTextSuggestionController().HandlePotentialMisspelledWordTap();
yosin_UTC9 2017/06/20 01:46:36 Do we really want to ask spell checker for every s
rlanday 2017/06/20 05:34:21 To clarify, we're not calling the spell checker he
Xiaocheng 2017/06/20 05:55:04 If we move the triggering of spellcheck menu to so
yosin_UTC9 2017/06/20 06:47:21 Can we tell spelling marker information to selecti
return false;
}

Powered by Google App Engine
This is Rietveld 408576698