Bug 1683226 - part 1: Make IMEState::Enabled an enum class r=m_kato,geckoview-reviewers

Before deleting `IMEState::Enabled::PLUGIN`, let's make it an enum class
for making the change safer.  Almost all of this change is done by
"replace" of VSCode.

Differential Revision: https://phabricator.services.mozilla.com/D100100
This commit is contained in:
Masayuki Nakano
2020-12-21 05:52:03 +00:00
parent c3ffb52432
commit 9c26cefd0e
28 changed files with 152 additions and 169 deletions

View File

@@ -339,7 +339,7 @@ bool HTMLObjectElement::IsHTMLFocusable(bool aWithMouse, bool* aIsFocusable,
nsIContent::IMEState HTMLObjectElement::GetDesiredIMEState() {
if (Type() == eType_Plugin) {
return IMEState(IMEState::PLUGIN);
return IMEState(IMEEnabled::Plugin);
}
return nsGenericHTMLFormElement::GetDesiredIMEState();