Remove |editable| in |FocusedNodeChanged| 55/312355/2
authorHyomin Kim <hyoputer.kim@samsung.com>
Thu, 29 Jun 2023 23:31:17 +0000 (16:31 -0700)
committerBot Blink <blinkbot@samsung.com>
Wed, 12 Jun 2024 07:24:12 +0000 (07:24 +0000)
commitb122ff52ecf7f41d6862d62fa25c5c91ef7a5449
tree9818266c7b55c3ad12e6d44f35c0c5432907ad30
parent78ff62e7451a1053ffe046a441d3db7d6fda937d
Remove |editable| in |FocusedNodeChanged|

The logic regarding the parameter |editable| is duplicated.
It is used to remember that the current focus is on the input element
and to reset the context after the focus is lost or changed.

There are 2 functions in it.

1. |IMContextEfl::CancelComposition|
The function consists of |ResetIMFContext| and |ConfirmComposition|.
The former one is called through |RenderWidgetHostViewAura
::FocusedNodeChanged|->|InputMethodAuraLinux::ResetContext|
->|EflInputMethodContext::Reset|->|IMContextEfl::ResetIMFContext|.
When the mouse event or touch event which makes the focus change  occurred,
|RenderWidgetHostViewEventHandler::FinishImeCompositionSession|
is called and eventually |RenderWidgetHostImpl::ImeFinishComposingText|
which is the purpose of |IMContextEfl::ConfirmComposition| is invoked.
If the focused node is changed by TAB key, the commit signal is sended
by the platform so manual cancellation isn't needed.

2. |IMContextEfl::OnFocusOut|
When the focus is updated, through |InputMethodAuraLinux
::UpdateContextFocusState|->|EflInputMethodContext::UpdateFocus|,
|EflInputMethodContext::Blur| calls the function above.

So remove the codes related to the |editable| parameter.

Change-Id: I7f8f6bdb7039fcac47c595ba38508d670641f298
Signed-off-by: Hyomin Kim <hyoputer.kim@samsung.com>
content/browser/renderer_host/render_widget_host_view_aura.cc
tizen_src/chromium_impl/content/browser/renderer_host/rwhv_aura_common_helper_efl.cc
tizen_src/chromium_impl/content/browser/renderer_host/rwhv_aura_common_helper_efl.h