DescriptionRemove WebWidget::applyReplacementRange
The method WebWidget::applyReplacementRange was added to accomodate the
support for IME in OOPIFs. Before, the IME logic in content/renderer used to
live in RenderViewImpl which has access to the frame tree on the renderer side.
To accomodate this transition, some methods were added to the blink
public API.
Specifically, applyReplacement range selects a range to be later replaceed by
the next call to set or commit composition. This simple task could be
part of the implementation of those methods to the newly added
WebInputMethodController instead. Moreover, the method does not do
anything special to be used outside the scope of handling the IME
events so it should not be part of the public API.
Specifically, this CL will:
1- Remove WebWidget::applyReplacementRange which will also remove it
from WebFrameWidgetImpl, WebViewFrameWidget, WebViewImpl.
2- Adds a new argument, replacementRange to
WebInputMethodController::setComposition and
WebInputMethodController::commitText.
The benefits of this change are:
1- Removing a layering violation inside applyReplacementRange.
2- Further deduplicate the IME code inside WebFrameWidgetImpl and
WebViewImpl.
2- Help with the separation of WebWidget and WebViewImpl.
3- Reducing some lines of code.
BUG=639320, 629721
Review-Url: https://codereview.chromium.org/2674253004
Cr-Commit-Position: refs/heads/master@{#449339}
Committed: https://chromium.googlesource.com/chromium/src/+/ce32ef9fc7230bbba732162c60cdc90f18fbbbc0
Patch Set 1 : more refactoring #
Total comments: 4
Patch Set 2 : Fixing the error #Patch Set 3 : Rebased #Messages
Total messages: 37 (26 generated)
|