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

Unified Diff: third_party/WebKit/Source/web/WebViewImpl.h

Issue 1995333002: Handle newCursorPosition correctly for Android's commitText() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: For compile error. Created 4 years, 4 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/web/WebViewImpl.h
diff --git a/third_party/WebKit/Source/web/WebViewImpl.h b/third_party/WebKit/Source/web/WebViewImpl.h
index 26e93e70cab528ef4957290ae5bffb546eab2d11..aaa3c3eaf6ee4599e6368f36d1c7dbfde398c915 100644
--- a/third_party/WebKit/Source/web/WebViewImpl.h
+++ b/third_party/WebKit/Source/web/WebViewImpl.h
@@ -143,7 +143,7 @@ public:
int selectionEnd) override;
bool confirmComposition() override;
bool confirmComposition(ConfirmCompositionBehavior selectionBehavior) override;
- bool confirmComposition(const WebString& text) override;
+ bool confirmComposition(const WebString& text, int relativeCursorPosition) override;
bool compositionRange(size_t* location, size_t* length) override;
WebTextInputInfo textInputInfo() override;
WebTextInputType textInputType() override;
@@ -564,7 +564,7 @@ private:
// Returns true if the event was actually processed.
bool keyEventDefault(const WebKeyboardEvent&);
- bool confirmComposition(const WebString& text, ConfirmCompositionBehavior);
+ bool confirmComposition(const WebString& text, ConfirmCompositionBehavior, int relativeCursorPosition);
// Returns true if the view was scrolled.
bool scrollViewWithKeyboard(int keyCode, int modifiers);

Powered by Google App Engine
This is Rietveld 408576698