void RenderWidgetHostViewEfl::TextInputStateChanged(
const ViewHostMsg_TextInputState_Params& params) {
- if (GetSelectionController()) {
- GetSelectionController()->SetSelectionEditable(
- params.type != ui::TEXT_INPUT_TYPE_NONE);
- }
if (!params.show_ime_if_needed) {
WebContentsImpl* wci = static_cast<WebContentsImpl*>(&web_contents_);
last_scroll_offset_ = frame->metadata.root_scroll_offset;
if (GetSelectionController()) {
+ GetSelectionController()->SetSelectionEditable(frame->metadata.selection.is_editable);
ui::SelectionBound start = ConvertSelectionBound(frame->metadata.selection.start);
ui::SelectionBound end = ConvertSelectionBound(frame->metadata.selection.end);
GetSelectionController()->OnSelectionChanged(start, end);
long_mouse_press_ = false;
if (scrolling_)
show_after_scroll_ = true;
- if (GetCaretSelectionStatus()) {
+ if (GetCaretSelectionStatus())
SetSelectionStatus(true);
- SetSelectionEditable(true);
- }
ShowHandleAndContextMenuIfRequired();
}