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

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

Issue 2372493002: Workaround for setComposition styling clobber (Closed)
Patch Set: Created 4 years, 2 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 13b92e97b4faa366b14c05f4f72d62025dd117ee..7e2a76fb00638650e646a7a0b9ddc6c639c9d20d 100644
--- a/third_party/WebKit/Source/core/editing/InputMethodController.h
+++ b/third_party/WebKit/Source/core/editing/InputMethodController.h
@@ -127,6 +127,16 @@ class CORE_EXPORT InputMethodController final
// Returns true if moved caret successfully.
bool moveCaret(int newCaretPosition);
+
+ // size_t computeCommonGraphemeClusterPrefixLengthForSetComposition(
+ // const String& newText) const;
+ PlainTextRange createSelectionRangeForSetComposition(int selectionStart,
+ int selectionEnd,
+ size_t textLength) const;
+ void setCompositionWithIncrementalText(const String&,
+ const Vector<CompositionUnderline>&,
+ int selectionStart,
+ int selectionEnd);
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698