gecko-dev/widget/windows
Masayuki Nakano 93977460e2 Bug 1406446 - part 1: InputContextAction should treat focus change during handling a user input as caused by user input even if it's caused by JS r=smaug
Currently, widget doesn't show VKB when input context change is caused by JS.
However, if it's caused by an event handler of a user input, user may expect
to open VKB.  For example, if a touch event in fake editor causes moving
focus to actual editable node, user expect to show VKB.

Therefore, InputContextAction should declare two causes.  One is unknown but
occurred during handling non-keyboard event.  The other is unknown but occurred
during handling keyboard event.

However, EventStateManager doesn't have an API to check if it's being handling
a keyboard event.  Therefore, this patch adds it first.
AutoHandlingUserInputStatePusher sends event type to StartHandlingUserInput()
and StopHandlingUserInput() of EventStateManager and sUserKeyboardEventDepth
manages the number of nested keyboard event handling.  Therefore,
EventStateManager::IsHandlingKeyboardInput() can return if it's handling a
keyboard event.

IMEStateManager uses this new API to adjust the cause of changes of input
context.

Finally, InputContextAction::IsUserInput() is renamed to IsHandlingUserInput()
for consistency with EventStateManager and starts to return true when the
input context change is caused by script while it's handling a user input.

MozReview-Commit-ID: 5JsLqdqeGah

--HG--
extra : rebase_source : 9fcf7687d1bf90eeebbf6eac62d4488ff64b083c
2017-10-24 02:46:15 +09:00
..
gtest Bug 1411743 Resolve warnings in tests for MinGW: Cast -1 to DWORD, and ignore a result explicitly r=jimm 2017-10-25 15:40:35 -05:00
res
tests
AudioSession.cpp Bug 1339259 - Hold Windows AudioSession object while recycling registration. r=jimm 2017-09-28 14:28:39 -07:00
AudioSession.h
CompositorWidgetChild.cpp Bug 1373739 - Make headless compositing Windows-compatible, in addition to Linux. r=dvander 2017-07-06 17:45:34 -07:00
CompositorWidgetChild.h Bug 1373739 - Make headless compositing Windows-compatible, in addition to Linux. r=dvander 2017-07-06 17:45:34 -07:00
CompositorWidgetParent.cpp Bug 1373739 - Make headless compositing Windows-compatible, in addition to Linux. r=dvander 2017-07-06 17:45:34 -07:00
CompositorWidgetParent.h
GfxInfo.cpp Block D3D11 when using Intel drivers on Windows 7 systems with partial AVX support. (bug 1403353, r=jrmuizel) 2017-09-28 10:51:59 -07:00
GfxInfo.h
IEnumFE.cpp
IEnumFE.h
IMMHandler.cpp Bug 1409155 - IMEHandler should not associate IMC with any window if active IME is ATOK 2010 or earlier with x64 build on Win8 or later r=m_kato 2017-10-25 23:51:27 +09:00
IMMHandler.h Bug 1409155 - IMEHandler should not associate IMC with any window if active IME is ATOK 2010 or earlier with x64 build on Win8 or later r=m_kato 2017-10-25 23:51:27 +09:00
InProcessWinCompositorWidget.cpp Bug 1373739 - Make headless compositing Windows-compatible, in addition to Linux. r=dvander 2017-07-06 17:45:34 -07:00
InProcessWinCompositorWidget.h Bug 1373739 - Make headless compositing Windows-compatible, in addition to Linux. r=dvander 2017-07-06 17:45:34 -07:00
InkCollector.cpp
InkCollector.h Bug 1411001 - Remove the +x permissions on cpp & h files r=froydnj 2017-10-23 20:59:55 +02:00
JumpListBuilder.cpp Bug 1411001 - Remove the +x permissions on cpp & h files r=froydnj 2017-10-23 20:59:55 +02:00
JumpListBuilder.h Bug 1376760 - Fix race condition for ICustomDestinationList usage. r=jimm 2017-07-06 14:06:09 +08:00
JumpListItem.cpp Bug 1357114 - Move the taskbar refresh timer to idle dispatch. r=florian 2017-09-07 12:15:13 +08:00
JumpListItem.h
KeyboardLayout.cpp Bug 1411001 - Remove the +x permissions on cpp & h files r=froydnj 2017-10-23 20:59:55 +02:00
KeyboardLayout.h Bug 1411001 - Remove the +x permissions on cpp & h files r=froydnj 2017-10-23 20:59:55 +02:00
LSPAnnotator.cpp Bug 1372405 - Provide names for all runnables in the tree (r=froydnj) 2017-06-26 14:19:58 -07:00
PCompositorWidget.ipdl
PDFViaEMFPrintHelper.cpp Bug 1401888 - Part 3. Make EMFViaExtDLLHelper inherit from PDFViaEMFPrintHelper. r=fatseng 2017-09-21 15:43:34 +08:00
PDFViaEMFPrintHelper.h Bug 1411001 - Remove the +x permissions on cpp & h files r=froydnj 2017-10-23 20:59:55 +02:00
PDFiumEngineShim.cpp Bug 1411001 - Remove the +x permissions on cpp & h files r=froydnj 2017-10-23 20:59:55 +02:00
PDFiumEngineShim.h Bug 1401888 - Part 2. Implement PDFiumEngineShim::GetInstanceOrNull(const nsCString&) r=fatseng 2017-09-21 15:22:18 +08:00
PlatformWidgetTypes.ipdlh Bug 1373739 - Make headless compositing Windows-compatible, in addition to Linux. r=dvander 2017-07-06 17:45:34 -07:00
ScreenHelperWin.cpp Bug 1350643 - Part 6.2: Get per-monitor dpi in ScreenHelperWin & use the same value in nsWindow::GetDPI. r=jimm 2017-06-16 11:16:47 +08:00
ScreenHelperWin.h Bug 1356023 - Remove nsIScreenManager.systemDefaultScale. r=jfkthame 2017-04-13 07:20:35 +09:00
TSFTextStore.cpp Bug 1411001 - Remove the +x permissions on cpp & h files r=froydnj 2017-10-23 20:59:55 +02:00
TSFTextStore.h Bug 1411001 - Remove the +x permissions on cpp & h files r=froydnj 2017-10-23 20:59:55 +02:00
TaskbarPreview.cpp Bug 1403819 - Remove nsIDOMHTMLCanvasElement; r=bz 2017-10-06 10:49:26 -07:00
TaskbarPreview.h
TaskbarPreviewButton.cpp
TaskbarPreviewButton.h
TaskbarTabPreview.cpp
TaskbarTabPreview.h
TaskbarWindowPreview.cpp
TaskbarWindowPreview.h
WidgetTraceEvent.cpp Bug 1372405 - Provide names for all runnables in the tree (r=froydnj) 2017-06-26 14:19:58 -07:00
WinCompositorWidget.cpp Bug 1373739 - Make headless compositing Windows-compatible, in addition to Linux. r=dvander 2017-07-06 17:45:34 -07:00
WinCompositorWidget.h Bug 1373739 - Make headless compositing Windows-compatible, in addition to Linux. r=dvander 2017-07-06 17:45:34 -07:00
WinIMEHandler.cpp Bug 1406446 - part 1: InputContextAction should treat focus change during handling a user input as caused by user input even if it's caused by JS r=smaug 2017-10-24 02:46:15 +09:00
WinIMEHandler.h Bug 1409155 - IMEHandler should not associate IMC with any window if active IME is ATOK 2010 or earlier with x64 build on Win8 or later r=m_kato 2017-10-25 23:51:27 +09:00
WinMessages.h Bug 1352368 - Remove some old Windows defines from WinMessages.h r=jwatt 2017-04-01 00:44:26 +08:00
WinModifierKeyState.h Bug 1391803 - Use nsStringFwd.h for forward declaring string classes. r=froydnj 2017-08-16 16:48:52 -07:00
WinMouseScrollHandler.cpp Bug 1410988 - Add a debug mode pref to emulate odd touchpad utils which give focus to window under mouse cursor when user tries to scroll the content r=jimm 2017-10-19 02:28:37 +09:00
WinMouseScrollHandler.h Bug 1410988 - Add a debug mode pref to emulate odd touchpad utils which give focus to window under mouse cursor when user tries to scroll the content r=jimm 2017-10-19 02:28:37 +09:00
WinNativeEventData.h
WinPointerEvents.cpp Bug 1345398 - Fire WidgetMouseEvent by handling pen generated mouse messages to get Windows native dnd supports. r=jimm 2017-03-13 15:40:52 +08:00
WinPointerEvents.h Bug 1372963 Remove WinPointerEvents:: qualifier which breaks MinGW build r=jimm 2017-04-25 13:28:04 -05:00
WinTaskbar.cpp Bug 1387802 - Remove [deprecated] methods from nsITaskbarPreviewController. r=jimm 2017-08-06 13:35:02 +09:00
WinTaskbar.h
WinTextEventDispatcherListener.cpp Bug 1343075 - Use GeckoEditableSupport from PuppetWidget; r=masayuki r=rbarker r=snorp r=esawin 2017-03-07 22:34:39 -05:00
WinTextEventDispatcherListener.h Bug 1343075 - Use GeckoEditableSupport from PuppetWidget; r=masayuki r=rbarker r=snorp r=esawin 2017-03-07 22:34:39 -05:00
WinUtils.cpp Bug 1390097 - Revert a part of bug 1354020 changes. r=masayuki 2017-08-23 12:59:40 +09:00
WinUtils.h Bug 1390097 - Revert a part of bug 1354020 changes. r=masayuki 2017-08-23 12:59:40 +09:00
WindowHook.cpp
WindowHook.h
WindowsEMF.cpp Bug 1411001 - Remove the +x permissions on cpp & h files r=froydnj 2017-10-23 20:59:55 +02:00
WindowsEMF.h Bug 1401069 - Part 4. Change argument type from 'const RECT *' to reference type in WindowsEMF::Playback. r=fatseng 2017-09-18 23:25:34 +08:00
WindowsUIUtils.cpp Bug 1344629 - Part 6: Rewrite unnecessary uses of nsLiteralString. r=dbaron 2017-03-14 15:26:27 +13:00
WindowsUIUtils.h
moz.build Bug 1405210 - Part 2: Move native printing dialog code to windows widget. r=jimm 2017-10-19 11:04:30 +09:00
nsAppShell.cpp Bug 1403868 (part 4) - Reduce tools/profiler/public/*.h to almost nothing in non-MOZ_GECKO_PROFILER builds. r=mstange. 2017-10-04 09:11:18 +11:00
nsAppShell.h Bug 1152353: Repost printer properties completion messages after nsAppShell::ProcessNextNativeEvent. r=jimm 2017-03-15 15:55:50 +00:00
nsBidiKeyboard.cpp Bug 1376638 - Minimize uses of prmem.h. r=glandium. 2017-06-30 19:05:41 -07:00
nsBidiKeyboard.h
nsClipboard.cpp Bug 1393528 Add parentheses to a confusing if statement r=jimm 2017-08-24 12:34:09 -05:00
nsClipboard.h Bug 1387168 - Use custom clipboard constructor instead of singleton. r=jrmuizel 2017-08-09 09:46:51 -07:00
nsColorPicker.cpp Bug 1372405 - Provide names for all runnables in the tree (r=froydnj) 2017-06-26 14:19:58 -07:00
nsColorPicker.h
nsDataObj.cpp Bug 1411001 - Remove the +x permissions on cpp & h files r=froydnj 2017-10-23 20:59:55 +02:00
nsDataObj.h Bug 1372063 - Use fallible array to avoid OOM. r=jimm 2017-06-12 12:12:30 +09:00
nsDataObjCollection.cpp
nsDataObjCollection.h
nsDeviceContextSpecWin.cpp Bug 1407103 - Convert wstring attributes to AString in widget/nsIPrint*.idl. r=bobowen. 2017-10-09 10:08:09 +11:00
nsDeviceContextSpecWin.h Bug 1407103 - Convert wstring attributes to AString in widget/nsIPrint*.idl. r=bobowen. 2017-10-09 10:08:09 +11:00
nsDragService.cpp Bug 1088760 - Remove nsRenderingContext, replacing all of its uses with gfxContext. r=jwatt,jrmuizel 2017-06-13 11:00:10 -04:00
nsDragService.h Bug 606885 - Fire drag events with keyboard modifiers. r=enn 2017-02-17 11:29:42 +08:00
nsFilePicker.cpp Bug 1404198: Part 2d - Switch to NS_NewTimer* in widget. r=njn 2017-10-15 23:12:54 -07:00
nsFilePicker.h Bug 1387800 - Remove [deprecated] nsIFilePicker.show(). r=qdot 2017-08-06 13:15:31 +09:00
nsIdleServiceWin.cpp
nsIdleServiceWin.h
nsImageClipboard.cpp Bug 1376638 - Minimize uses of prmem.h. r=glandium. 2017-06-30 19:05:41 -07:00
nsImageClipboard.h
nsLookAndFeel.cpp Bug 1412611 Reorder member initialization to fix -Wreorder warning in widget/windows/nsLookAndFeel.cpp r=njn 2017-10-28 23:36:04 -05:00
nsLookAndFeel.h Bug 1403690 Part 2: Windows change nsLookAndFeel::NativeGetColor to use cached colors. r=jimm 2017-10-02 16:17:05 -07:00
nsNativeDragSource.cpp
nsNativeDragSource.h
nsNativeDragTarget.cpp Bug 606885 - Fire drag events with keyboard modifiers. r=enn 2017-02-17 11:29:42 +08:00
nsNativeDragTarget.h
nsNativeThemeWin.cpp Bug 1400460 - Rename nsIAtom as nsAtom. r=hiro. 2017-10-03 09:05:19 +11:00
nsNativeThemeWin.h Bug 1400460 - Rename nsIAtom as nsAtom. r=hiro. 2017-10-03 09:05:19 +11:00
nsPrintDialogUtil.cpp Bug 1405210 - Part 3: Apply clang-format to added print dialog widget code. r=jimm 2017-10-19 11:04:50 +09:00
nsPrintDialogUtil.h Bug 1405210 - Part 3: Apply clang-format to added print dialog widget code. r=jimm 2017-10-19 11:04:50 +09:00
nsPrintDialogWin.cpp Bug 1313150 - Remove |weak| parameter from nsIMutableArray methods. r=froydnj 2017-10-21 23:53:02 +09:00
nsPrintDialogWin.h Bug 1405210 - Part 3: Apply clang-format to added print dialog widget code. r=jimm 2017-10-19 11:04:50 +09:00
nsPrintOptionsWin.cpp Bug 1407103 - Convert wstring attributes to AString in widget/nsIPrint*.idl. r=bobowen. 2017-10-09 10:08:09 +11:00
nsPrintOptionsWin.h
nsPrintSettingsWin.cpp Bug 1407103 - Convert wstring attributes to AString in widget/nsIPrint*.idl. r=bobowen. 2017-10-09 10:08:09 +11:00
nsPrintSettingsWin.h Bug 1407103 - Convert wstring attributes to AString in widget/nsIPrint*.idl. r=bobowen. 2017-10-09 10:08:09 +11:00
nsSound.cpp Bug 1373739 - Hook HeadlessSound and HeadlessScreenHelper into Windows widgets. r=bdahl 2017-07-11 14:01:00 -07:00
nsSound.h Bug 1363163 - Playing sound in a seperated thread to avoid jank r=masayuki 2017-06-08 11:08:49 +08:00
nsToolkit.cpp
nsToolkit.h
nsUXThemeConstants.h Bug 1373079 - (3) Special-case min-size cache for buttons r=jimm 2017-07-07 10:15:32 -07:00
nsUXThemeData.cpp Bug 1391164 - Unnecessary to use GetProcAddress for gesture APIs since we already drop XP and Vista. r=jimm 2017-08-18 09:47:36 +09:00
nsUXThemeData.h Bug 1391164 - Unnecessary to use GetProcAddress for gesture APIs since we already drop XP and Vista. r=jimm 2017-08-18 09:47:36 +09:00
nsWidgetFactory.cpp Bug 1405210 - Part 1: Add PrintDialogService to windows widget. r=jimm,mshal 2017-10-19 11:04:13 +09:00
nsWinGesture.cpp Bug 1391164 - Unnecessary to use GetProcAddress for gesture APIs since we already drop XP and Vista. r=jimm 2017-08-18 09:47:36 +09:00
nsWinGesture.h Bug 1391164 - Unnecessary to use GetProcAddress for gesture APIs since we already drop XP and Vista. r=jimm 2017-08-18 09:47:36 +09:00
nsWindow.cpp Bug 1400148 - Don't use -1 to represent an unset nsCursor. r=karlt. 2017-09-15 14:34:37 +10:00
nsWindow.h Bug 1373739 - Make headless compositing Windows-compatible, in addition to Linux. r=dvander 2017-07-06 17:45:34 -07:00
nsWindowBase.cpp Bug 1405210 - Part 1: Add PrintDialogService to windows widget. r=jimm,mshal 2017-10-19 11:04:13 +09:00
nsWindowBase.h Bug 1409155 - IMEHandler should not associate IMC with any window if active IME is ATOK 2010 or earlier with x64 build on Win8 or later r=m_kato 2017-10-25 23:51:27 +09:00
nsWindowDbg.cpp Bug 1352339 - Add missing 'using namespace mozilla' to nsWindowDbg.cpp r=jwatt 2017-04-01 00:42:35 +08:00
nsWindowDbg.h
nsWindowDefs.h
nsWindowGfx.cpp Bug 1376638 - Minimize uses of prmem.h. r=glandium. 2017-06-30 19:05:41 -07:00
nsWindowGfx.h
nsdefs.h
resource.h
touchinjection_sdk80.h
widget.rc