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

Unified Diff: third_party/WebKit/Source/core/editing/InputMethodController.h

Issue 2650113004: [WIP] Add support for Android SuggestionSpans when editing text (Closed)
Patch Set: Remove logging statements, fix copyright years in new files 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: third_party/WebKit/Source/core/editing/InputMethodController.h
diff --git a/third_party/WebKit/Source/core/editing/InputMethodController.h b/third_party/WebKit/Source/core/editing/InputMethodController.h
index 36d48be30b1c8968d56fe0eda8b2e7c8cac795ed..3b671f17a5c5c96de8eb6a10ca9adc42154c0035 100644
--- a/third_party/WebKit/Source/core/editing/InputMethodController.h
+++ b/third_party/WebKit/Source/core/editing/InputMethodController.h
@@ -36,6 +36,7 @@
#include "platform/heap/Handle.h"
#include "public/platform/WebTextInputInfo.h"
#include "public/platform/WebTextInputType.h"
+#include "public/web/WebTextSuggestionInfo.h"
#include "wtf/Vector.h"
namespace blink {
@@ -82,6 +83,10 @@ class CORE_EXPORT InputMethodController final
// KeepSelection.
bool finishComposingText(ConfirmCompositionBehavior);
+ void applySuggestionReplacement(int documentMarkerID, int suggestionIndex);
+ void deleteSuggestionHighlight();
+ void suggestionMenuClosed();
+
// Deletes the existing composition text.
void cancelComposition();
@@ -103,6 +108,9 @@ class CORE_EXPORT InputMethodController final
void deleteSurroundingText(int before, int after);
WebTextInputInfo textInputInfo() const;
WebTextInputType textInputType() const;
+ WebVector<blink::WebTextSuggestionInfo> getTextSuggestionInfosUnderCaret()
+ const;
+ void prepareForTextSuggestionMenuToBeShown();
// Call this when we will change focus.
void willChangeFocus();
@@ -132,6 +140,7 @@ class CORE_EXPORT InputMethodController final
void addCompositionUnderlines(const Vector<CompositionUnderline>& underlines,
ContainerNode* rootEditableElement,
unsigned offset);
+ void clearSuggestionMarkersTouchingSelection();
bool insertText(const String&);
bool insertTextAndMoveCaret(const String&,

Powered by Google App Engine
This is Rietveld 408576698