Masayuki Nakano
f8345f3ea7
Bug 1300003 part.6 NativeKey shouldn't try to dispatch plugin events for removed char messages when mWidget won't dispatch plugin events r=m_kato
...
Currently, NativeKey::DispatchPluginEventsAndDiscardsCharMessages() calls nsWindowBase::DispatchPluginEvent() and nsWindowBase::DispatchPluginEvent() does nothing when windowless plugin doesn't have focus. However, this is unclear when other developers read the code of DispatchPluginEventsAndDiscardsCharMessages() and it causes unnecessary virtual calls. So, it should try to dispatch plugin events only when a windowless plugin has focus.
For making the check safer, nsWindowBase should expose the method to check it as ShouldDispatchPluginEvent(). Unfortunately, we cannot mark this method as const due to PluginHasFocus() needs to be not const method, though. Then, for loops in DispatchPluginEventsAndDiscardsCharMessages() should check it at each try.
This change helps to log the behavior (working on bug 1297013) without noise.
Additionally, this patch renames the method to MaybeDispatchPluginEventsForRemovedCharMessages() because it doesn't remove any char messages anymore.
MozReview-Commit-ID: F14Lcx47M6U
2016-09-15 00:16:18 +09:00
Kartikaya Gupta
c91b256674
Bug 1289435 - Support native event synthesization even for non-touch windows devices. r=jimm
...
MozReview-Commit-ID: IeHmDOiWOW2
2016-08-03 12:06:59 -04:00
Kartikaya Gupta
ebc6b999e7
Bug 1250505 - Convert SynthesizeNativeTouchPoint and SynthesizeNativeTouchTap to take a LayoutDeviceIntPoint instead of a ScreenPoint. r=njn
...
MozReview-Commit-ID: EybGq9b1B8Z
2016-04-15 06:39:36 -04:00
Masayuki Nakano
4df0bcd3d2
Bug 1137561 part.2 Make TSFTextStore use TextEventDispatcher r=m_kato
2016-03-16 13:47:48 +09:00
Jonathan Kew
b6e25dda33
Bug 890156 - patch 4 - Update widget/windows code for per-monitor DPI support. r=emk
2015-12-04 16:59:14 +00:00
Jonathan Kew
492e14ee2f
Bug 890156 - patch 3 - Remove gfxWindowsPlatform::GetDPIScale and replace it with methods in WinUtils, ready for per-monitor DPI support. r=emk
2015-12-02 15:09:29 +00:00
Makoto Kato
f7bf51b1fa
Bug 1208944 - Part 8. Don't get selection on start compostion when plugin has foucs. r=masayuki
2015-12-29 22:57:38 +09:00
Sebastian Hengst
e8bb1c660e
Backed out 15 changesets (bug 1208944) for failing tests M(2,5) on OSX. r=backout
...
Backed out changeset c29de223de2f (bug 1208944)
Backed out changeset 3d99da255be1 (bug 1209844)
Backed out changeset 3c915942af38 (bug 1209844)
Backed out changeset 759b425b5503 (bug 1208944)
Backed out changeset bf73cf8f0fda (bug 1208944)
Backed out changeset 0e337d912b7d (bug 1208944)
Backed out changeset 31c47f2980b5 (bug 1208944)
Backed out changeset 3e0d70a6e809 (bug 1208944)
Backed out changeset 7685dcb63e5f (bug 1208944)
Backed out changeset 3c2b9372dd36 (bug 1208944)
Backed out changeset 18160d306493 (bug 1208944)
Backed out changeset 4974e397b655 (bug 1208944)
Backed out changeset fde7e439844d (bug 1208944)
Backed out changeset 4213a355fbdc (bug 1208944)
Backed out changeset 33cfddbbf5f2 (bug 1208944)
2015-12-29 17:42:02 +01:00
Makoto Kato
1319eb33ea
Bug 1208944 - Part 8. Don't get selection on start compostion when plugin has foucs. r=masayuki
2015-12-29 22:57:38 +09:00
Nicholas Nethercote
b0bb46d766
Bug 1230047 (part 1) - Make SynthesizeNativeTouch{Point,Tap}() take ScreenIntPoints. r=kats.
2015-12-02 21:45:38 -08:00
Nicholas Nethercote
dff5beac21
Bug 1227020 - Replace nsBaseHashtable::Enumerate() calls in widget/ with iterators. r=roc.
2015-11-22 18:52:40 -08:00
Nicholas Nethercote
00492f0df0
Bug 1224482 (part 5) - Avoid excessive mozilla:: prefixes in nsIWidget and its subclasses. r=kats.
...
A couple of typedefs make things a lot nicer.
2015-11-13 01:37:02 -08:00
Nicholas Nethercote
2459b09f92
Bug 1223310 (part 1) - Pass a LayoutDeviceIntPoint instead of an nsIntPoint to InitEvent(). r=kats.
...
Also use direct assignment for some LayoutDeviceIntPoint assignments, rather
than doing it field-by-field.
2015-11-09 21:37:32 -08:00
Kartikaya Gupta
f8465229d0
Bug 1146349 - Make the native event synthesization functions in DOMWindowUtils async. r=smaug
2015-04-14 11:36:36 -04:00
Ehsan Akhgari
ea41d8de48
Bug 1145631 - Part 1: Replace MOZ_OVERRIDE and MOZ_FINAL with override and final in the tree; r=froydnj
...
This patch was automatically generated using the following script:
function convert() {
echo "Converting $1 to $2..."
find . \
! -wholename "*/.git*" \
! -wholename "obj-ff-dbg*" \
-type f \
\( -iname "*.cpp" \
-o -iname "*.h" \
-o -iname "*.c" \
-o -iname "*.cc" \
-o -iname "*.idl" \
-o -iname "*.ipdl" \
-o -iname "*.ipdlh" \
-o -iname "*.mm" \) | \
xargs -n 1 sed -i -e "s/\b$1\b/$2/g"
}
convert MOZ_OVERRIDE override
convert MOZ_FINAL final
2015-03-21 12:28:04 -04:00
David Anderson
2bdd299203
Use stricter types in nsWindowBase event dispatch functions. (bug 1143567 part 3, r=jmathies)
2015-03-16 16:29:57 -07:00
Masayuki Nakano
770fb09fdd
Bug 865561 Dispatch key events when WM_APPCOMMAND is fired for a keypress r=jimm+smaug
2014-12-30 10:47:56 +09:00
Jim Mathies
bb0feafab2
Bug 819613 - Move app command code to nsWindowBase so it can be shared between win32 and metro widgets (plus missing include fix). r=tabraldes
2014-02-05 09:36:59 -06:00
Jim Mathies
77a0dda3bf
backout 82937be94f94 due to bustage.
2014-02-05 06:18:43 -06:00
Jim Mathies
0877b1d1ef
Bug 819613 - Move app command code to nsWindowBase so it can be shared between win32 and metro widgets. r=tabraldes
2014-02-05 05:49:49 -06:00
Jim Mathies
2e070ded6e
Bug 941774 - Win32/winrt shared implementation. r=bbondy
2013-12-14 14:40:56 -06:00
Jim Mathies
7e6bb5f5e8
Bug 930177 - Consolidate async scroll event handling with keyboard handling. r=tabraldes
2013-10-24 16:35:07 -05:00
Masayuki Nakano
545f36a759
Bug 602787 part.8 Don't implement nsWindowBase::DispatchPluginEvent() in windows/nsWindowBase.h r=jimm
2013-10-22 22:27:35 +09:00
Wes Kocher
3708337984
Backed out 9 changesets (bug 602787) on suspicion of breaking mochitest-metro on a CLOSED TREE
...
Backed out changeset 1730bcae2c45 (bug 602787)
Backed out changeset 70606b9b1e42 (bug 602787)
Backed out changeset 57ca2861ea30 (bug 602787)
Backed out changeset 3b9f1062d915 (bug 602787)
Backed out changeset 3ee56eacc84b (bug 602787)
Backed out changeset 1c35693be3d3 (bug 602787)
Backed out changeset ef095c3aef98 (bug 602787)
Backed out changeset 4827bdae97fd (bug 602787)
Backed out changeset fa0f355e7871 (bug 602787)
2013-10-22 13:11:53 -04:00
Masayuki Nakano
261f217f82
Bug 602787 part.8 Don't implement nsWindowBase::DispatchPluginEvent() in windows/nsWindowBase.h r=jimm
2013-10-22 22:27:35 +09:00
Masayuki Nakano
8c4ece5434
Bug 920377 part.30 Get rid of nsGUIEvent r=roc
2013-10-02 12:46:03 +09:00
Masayuki Nakano
acfcbdba3b
Bug 920377 part.2 Get rid of nsPluginEvent r=roc
2013-09-27 15:20:54 +09:00
Masayuki Nakano
25e65ddf10
Bug 912956 part.16 mozilla/MiscEvents.h should be included directly r=roc
2013-09-25 20:21:20 +09:00
Jim Mathies
0de49a1cde
Bug 907410 - Winrt async input - keyboard input. r=masayuki
2013-09-06 08:11:15 -05:00
Jim Mathies
2720327987
Bug 903368 - Don't convert coordinates in widget/winrt InitEvent from logical to physical. r=masayuki
2013-08-12 05:05:04 -05:00
Jim Mathies
88a6bd4811
Bug 879562 - Convert WinUtils::GetNSWindowPtr to WinUtils::GetNSWindowBasePtr. r=masayuki
2013-08-09 05:12:38 -05:00
Masayuki Nakano
ef92757e61
Bug 843236 Use widget::KeyboardLayout and widget::NativeKey for handling key messages on Metrofox r=tabraldes
2013-07-02 13:55:58 +09:00
Masayuki Nakano
19fff406ac
Bug 855975 part.10 Move nsWindow::DispatchPluginEvent() to nsWindowBase r=jimm
2013-05-29 15:34:48 +09:00
Masayuki Nakano
88188380ad
Bug 855975 part.4 Move nsWindow::InitKeyEvent() to widget::NativeKey::InitKeyEvent() r=jimm
2013-05-29 15:34:47 +09:00
Jim Mathies
90ac7d9bd7
Bug 785534 - Prep work for adding MetroWidget support to the TSF nsTextStore widget module, r=emk
2013-01-07 09:18:11 -06:00