Bug 1191862 - part 1: Make nsIWidget::NativeKeyBindingsType independent from nsIWidget and defined in an independent header file r=smaug
I'd like to use it in `IMEData.h`. However, adding new include into it may cause bustage with MinGW, and it's included by `nsIWidget.h` because `nsIWidget` requires some classes defined in `IMEData.h`. Therefore, I'd like to make a new header file for avoiding the include hell. Differential Revision: https://phabricator.services.mozilla.com/D138007
This commit is contained in:
@@ -34,6 +34,7 @@
|
||||
#include "nsIScrollableFrame.h"
|
||||
#include "mozilla/AutoRestore.h"
|
||||
#include "mozilla/InputEventOptions.h"
|
||||
#include "mozilla/NativeKeyBindingsType.h"
|
||||
#include "mozilla/PresShell.h"
|
||||
#include "mozilla/TextEvents.h"
|
||||
#include "mozilla/dom/Event.h"
|
||||
@@ -1004,10 +1005,10 @@ TextInputListener::HandleEvent(Event* aEvent) {
|
||||
return false;
|
||||
}
|
||||
|
||||
nsIWidget::NativeKeyBindingsType nativeKeyBindingsType =
|
||||
NativeKeyBindingsType nativeKeyBindingsType =
|
||||
aTextControlElement.IsTextArea()
|
||||
? nsIWidget::NativeKeyBindingsForMultiLineEditor
|
||||
: nsIWidget::NativeKeyBindingsForSingleLineEditor;
|
||||
? NativeKeyBindingsType::MultiLineEditor
|
||||
: NativeKeyBindingsType::SingleLineEditor;
|
||||
|
||||
nsIWidget* widget = widgetKeyEvent->mWidget;
|
||||
// If the event is created by chrome script, the widget is nullptr.
|
||||
|
||||
Reference in New Issue
Block a user