Commit 1f45cdbb authored by Darren Shen's avatar Darren Shen Committed by Commit Bot

ime: Remove unused IsInputFieldFocused method.

Change-Id: I77f7d6cc963838d89a9a0cf83b038a4217ac987c
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2538856
Auto-Submit: Darren Shen <shend@chromium.org>
Reviewed-by: default avatarDarren Shen <shend@chromium.org>
Reviewed-by: default avatarMy Nguyen <myy@chromium.org>
Commit-Queue: Darren Shen <shend@chromium.org>
Cr-Commit-Position: refs/heads/master@{#827691}
parent dad2da69
...@@ -844,10 +844,6 @@ bool InputMethodChromeOS::IsPasswordOrNoneInputFieldFocused() { ...@@ -844,10 +844,6 @@ bool InputMethodChromeOS::IsPasswordOrNoneInputFieldFocused() {
return type == TEXT_INPUT_TYPE_NONE || type == TEXT_INPUT_TYPE_PASSWORD; return type == TEXT_INPUT_TYPE_NONE || type == TEXT_INPUT_TYPE_PASSWORD;
} }
bool InputMethodChromeOS::IsInputFieldFocused() {
return GetTextInputType() != TEXT_INPUT_TYPE_NONE;
}
TextInputClient::FocusReason InputMethodChromeOS::GetClientFocusReason() const { TextInputClient::FocusReason InputMethodChromeOS::GetClientFocusReason() const {
TextInputClient* client = GetTextInputClient(); TextInputClient* client = GetTextInputClient();
return client ? client->GetFocusReason() : TextInputClient::FOCUS_REASON_NONE; return client ? client->GetFocusReason() : TextInputClient::FOCUS_REASON_NONE;
......
...@@ -147,9 +147,6 @@ class COMPONENT_EXPORT(UI_BASE_IME_CHROMEOS) InputMethodChromeOS ...@@ -147,9 +147,6 @@ class COMPONENT_EXPORT(UI_BASE_IME_CHROMEOS) InputMethodChromeOS
bool IsPasswordOrNoneInputFieldFocused(); bool IsPasswordOrNoneInputFieldFocused();
// Returns true if an text input field is focused.
bool IsInputFieldFocused();
// Gets the reason how the focused text input client was focused. // Gets the reason how the focused text input client was focused.
TextInputClient::FocusReason GetClientFocusReason() const; TextInputClient::FocusReason GetClientFocusReason() const;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment