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

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

Issue 1995333002: Handle newCursorPosition correctly for Android's commitText() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: adjust selection in confirmCompositionOrInsertText() 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/WebFrameWidgetImpl.h
diff --git a/third_party/WebKit/Source/web/WebFrameWidgetImpl.h b/third_party/WebKit/Source/web/WebFrameWidgetImpl.h
index f3070d8b31b6dd22445b095a6bd062370223b8b8..f40392297838dc69bca1b7c6d2f7385751087a16 100644
--- a/third_party/WebKit/Source/web/WebFrameWidgetImpl.h
+++ b/third_party/WebKit/Source/web/WebFrameWidgetImpl.h
@@ -98,9 +98,9 @@ public:
const WebString& text,
const WebVector<WebCompositionUnderline>& underlines,
int selectionStart, int selectionEnd) override;
- bool confirmComposition() override;
- bool confirmComposition(ConfirmCompositionBehavior selectionBehavior) override;
- bool confirmComposition(const WebString& text) override;
+ bool confirmComposition(int newCursorPosition) override;
Changwan Ryu 2016/08/03 07:37:30 you shouldn't change this one.
yabinh 2016/08/08 07:33:44 Done.
+ bool confirmComposition(ConfirmCompositionBehavior selectionBehavior, int newCursorPosition) override;
Changwan Ryu 2016/08/03 07:37:30 you shouldn't change this one.
yabinh 2016/08/08 07:33:44 Done.
+ bool confirmComposition(const WebString& text, int newCursorPosition) override;
bool compositionRange(size_t* location, size_t* length) override;
WebTextInputInfo textInputInfo() override;
WebTextInputType textInputType() override;
@@ -205,7 +205,7 @@ private:
// focused frame has a different local root.
LocalFrame* focusedLocalFrameInWidget() const;
- bool confirmComposition(const WebString& text, ConfirmCompositionBehavior selectionBehavior) const;
+ bool confirmComposition(const WebString& text, ConfirmCompositionBehavior selectionBehavior, int newCursorPosition) const;
WebPlugin* focusedPluginIfInputMethodSupported(LocalFrame*) const;

Powered by Google App Engine
This is Rietveld 408576698