Bug 1416918 - 4. Remove unused code; r=esawin

Remove InputConnectionListener, which was replaced by
TextInputController.Delegate, and remove IME_STATE_PLUGIN, which is not
used anymore.

MozReview-Commit-ID: GCbJXWNCmTk
This commit is contained in:
Jim Chen
2017-12-13 22:57:21 -05:00
parent c13580ef17
commit fa128c327f
5 changed files with 3 additions and 43 deletions

View File

@@ -1339,10 +1339,6 @@ GeckoEditableSupport::WillDispatchKeyboardEvent(
NS_IMETHODIMP_(IMENotificationRequests)
GeckoEditableSupport::GetIMENotificationRequests()
{
// While a plugin has focus, Listener doesn't need any notifications.
if (GetInputContext().mIMEState.mEnabled == IMEState::PLUGIN) {
return IMENotificationRequests();
}
return IMENotificationRequests(IMENotificationRequests::NOTIFY_TEXT_CHANGE);
}
@@ -1358,7 +1354,7 @@ GeckoEditableSupport::SetInputContext(const InputContext& aContext,
mInputContext = aContext;
if (mInputContext.mIMEState.mEnabled == IMEState::ENABLED &&
if (mInputContext.mIMEState.mEnabled != IMEState::DISABLED &&
aAction.UserMightRequestOpenVKB()) {
// Don't reset keyboard when we should simply open the vkb
mEditable->NotifyIME(GeckoEditableListener::NOTIFY_IME_OPEN_VKB);