Граф коммитов

44 Коммитов

Автор SHA1 Сообщение Дата
Masayuki Nakano ad20ed277d 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
Some odd touchpad utils give focus to window under mouse cursor when user tries
to scroll the content with swiping or something.

This is really odd behavior because some windows like popup windows doesn't
want focus. However, such ones do actually. For making easier to check such
device's behavior, we should have a pref to emulate such behavior.

MozReview-Commit-ID: 6euwpHn7blf

--HG--
extra : rebase_source : cc23f08f422f25f2851404696e06e069c7936186
2017-10-19 02:28:37 +09:00
Masayuki Nakano a369ad3acf Bug 1280513 part.1 Rename LogKeyStateImpl() to MouseScrollHandler::MaybeLogKeyState() r=m_kato
MozReview-Commit-ID: DGDrRO3Y9jD

--HG--
extra : rebase_source : d1b8253ab276a115b8b3a17c9646b05427bcc4dc
2016-06-17 03:03:44 +09:00
Masayuki Nakano 2e9c9ae27c Bug 1153156 part.3 Don't allow to override system scroll speed if the wheel event causes too fast scroll r=smaug+jimm 2016-01-27 15:09:13 +09:00
Masayuki Nakano 3d49c4fe37 Bug 1153156 part.2 Make WidgetWheelEvent store if overriding system scroll speed is allowed and it shouldn't be allowed if scroll speed isn't system default settings on Windows r=smaug+jimm 2016-01-27 15:09:13 +09:00
Masayuki Nakano d35df077c0 Bug 1235686 part.4 Don't trust system settings cache if Apoint of Alps is installed r=jimm 2016-01-13 10:49:38 +09:00
Masayuki Nakano 03f6af9d97 Bug 1235686 part.3 Don't trust system settings cache if SynTP of Synaptics is installed r=jimm 2016-01-13 10:49:38 +09:00
Masayuki Nakano 96f8c9b9a6 Bug 1235686 part.2 Don't refresh the cache of system settings at handling wheel messages if the scroll amout values are initialized with prefs r=jimm 2016-01-13 10:49:38 +09:00
Masayuki Nakano c218da049b Bug 1235686 part.1 MouseScrollHandler should refresh the cache of system settings at handling wheel messages if the pref doesn't allow to cache system settings r=jimm 2016-01-13 10:49:38 +09:00
Karl Tomlinson e8feab9b63 bug 726265 don't activate ELAN swipe hack unless ScanCode is zero r=heycam
On some hardware, GetKeyState(0xFF) returns negative even when Elantech
messages are not involved.  This change permits Page Up and Page Down keys
to function as expected on this hardware.

--HG--
extra : rebase_source : 175d6288bef78eea054fcf577a61cb18ea1f0061
extra : amend_source : 69c66a12e8f27331515f8a60f256a5ba663583bd
2016-01-07 17:31:35 +13:00
Nicholas Nethercote 9895f2b525 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.

--HG--
extra : rebase_source : cff1ec8f1ed3ab1924a07d2227044f646019f0cf
2015-11-09 21:37:32 -08:00
Eric Rahm 15f7146909 Bug 1162293 - Part 1: Remove instances of #ifdef PR_LOGGING. r=froydnj
PR_LOGGING is now always defined, we can remove #ifdefs checking for it.
2015-05-07 09:43:38 -07:00
Nicolas Silva cfff5e52c5 Bug 1155621 - Make nsIntRect and nsIntPoint typedefs of mozilla::gfx::IntRect and mozilla::gfx::IntPoint. r=Bas 2015-04-21 17:04:57 +02:00
David Anderson dd3a123b7b Use stricter types in nsWindowBase event dispatch functions. (bug 1143567 part 3, r=jmathies)
--HG--
extra : rebase_source : 33071b2417589de95ad086008f49562af86c89e6
2015-03-16 16:29:57 -07:00
Jacek Caban 1b92a84988 Bug 1136177 - Amount by mouse wheel scrolling is wrong. r=jimm 2015-02-24 09:07:00 -05:00
Jacek Caban 804fea549c Bug 1133818 - Fixed GCC warnings in widget/windows. r=jmathies 2015-02-23 12:15:53 +01:00
David Zbarsky e63a6defd2 Bug 1125040: Use LayoutDeviceIntPoint for synthesizing native events on widgets r=botond 2015-02-15 13:52:28 -05:00
Ehsan Akhgari e004ec8ac0 Bug 947736 - Build modules/libpref/ in unified mode; r=bsmedberg 2013-12-10 18:10:01 -05:00
Masayuki Nakano 52e19b318b Bug 920377 part.33 Get rid of mozilla::WheelEvent r=roc 2013-10-16 18:37:36 +09:00
Birunthan Mohanathas ba9bbe5bb3 Bug 784739 - Switch from NULL to nullptr in widget/windows/ (2/3); r=ehsan
--HG--
extra : rebase_source : 5276b6474b9d6135ca2db408d17f0b5ed98b24a6
2013-10-08 14:48:20 -04:00
Masayuki Nakano a4221a463f Bug 920377 part.30 Get rid of nsGUIEvent r=roc 2013-10-02 12:46:03 +09:00
Masayuki Nakano 0fbfe07d7e Bug 912956 part.2 Rename nsEvent.h to mozilla/EventForwards.h and sort out it r=roc
--HG--
rename : widget/nsEvent.h => widget/EventForwards.h
2013-09-24 19:04:14 +09:00
Masayuki Nakano 776acd167e Bug 912956 part.1 Rename all event stuff in mozilla::widget to mozilla::* r=roc 2013-09-14 11:39:41 +09:00
Jim Mathies de21a814d1 Bug 907410 - Winrt async input - mouse wheel input. r=masayuki 2013-09-06 08:11:15 -05:00
Jim Mathies 58a0e5123e Bug 879562 - WinMouseScrollHandler should use nsWindowBase so winrt widgets can use it. r=masayuki 2013-08-09 05:12:38 -05:00
Masayuki Nakano 4338868012 Bug 891316 part.3 Use widget::MSGResult in widget::MouseScrollHandler r=jimm 2013-07-18 17:12:31 +09:00
Ehsan Akhgari e368dc9c85 Bug 579517 - Part 1: Automated conversion of NSPR numeric types to stdint types in Gecko; r=bsmedberg
This patch was generated by a script.  Here's the source of the script for
future reference:

function convert() {
echo "Converting $1 to $2..."
find . ! -wholename "*nsprpub*" \
       ! -wholename "*security/nss*" \
       ! -wholename "*/.hg*" \
       ! -wholename "obj-ff-dbg*" \
       ! -name nsXPCOMCID.h \
       ! -name prtypes.h \
         -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 PRInt8 int8_t
convert PRUint8 uint8_t
convert PRInt16 int16_t
convert PRUint16 uint16_t
convert PRInt32 int32_t
convert PRUint32 uint32_t
convert PRInt64 int64_t
convert PRUint64 uint64_t

convert PRIntn int
convert PRUintn unsigned

convert PRSize size_t

convert PROffset32 int32_t
convert PROffset64 int64_t

convert PRPtrdiff ptrdiff_t

convert PRFloat64 double
2012-08-22 11:56:38 -04:00
Masayuki Nakano f5096646cb Bug 719320 part.12 Replace legacy mouse scroll event dispatchers with D3E wheel event dispatcher on Windows r=smaug+jimm 2012-08-12 10:42:37 +09:00
Aryeh Gregor d0ad5a7d0c Bug 777292 part 2 - Change all nsnull to nullptr 2012-07-30 17:20:58 +03:00
Masayuki Nakano 8c3fc7894e Bug 757688 part.2 Move nsModifierKeyState to KeyboardLayout and redesign it r=jimm 2012-06-15 18:52:50 +09:00
Masayuki Nakano 81bcd3acd3 Bug 672175 part.17 System settings of mouse wheel on Windows should be able to be overridden by prefs for testing r=jimm 2012-03-22 09:59:12 +09:00
Masayuki Nakano a60c46de7f Bug 672175 part.16 Implement nsIWidget::SynthesizeNativeMouseScrollEvent() on Windows r=jimm 2012-03-22 09:59:12 +09:00
Masayuki Nakano d58c77b157 Bug 672175 part.14 Move WM_MOUSE*WHEEL and WM_*SCROLL handlers into MouseScrollHandler r=jimm 2012-03-06 12:20:29 +09:00
Masayuki Nakano abc50845c2 Bug 672175 part.13 Compute cursor position at WM_MOUSEWHEEL and WM_MOUSEHWHEEL in MouseScrollHandler r=jimm 2012-03-06 12:20:29 +09:00
Masayuki Nakano 7c0c3c99dc Bug 672175 part.12 Move MOZ_WM_*SCROLL handler into MouseScrollHandler r=jimm 2012-03-06 12:20:29 +09:00
Masayuki Nakano 7bfc7cc5d9 Bug 672175 part.11 Move MOZ_WM_MOUSE*WHEEL handler into MouseScrollHandler r=jimm 2012-03-06 12:20:29 +09:00
Masayuki Nakano a79e6d853c Bug 672175 part.10 Initialize mouse scroll events in MouseScrollHandler::LastEventInfo r=jimm 2012-03-06 12:20:29 +09:00
Masayuki Nakano 407835228d Bug 672175 part.9 Implement NS_QUERY_SCROLL_TARGET_INFO event dispatcher on MouseScrollHandler::EventInfo r=jimm 2012-03-06 12:20:29 +09:00
Masayuki Nakano aa58d1c729 Bug 672175 part.8 Compute modifier key state in MouseScrollHandler r=jimm 2012-03-06 12:20:28 +09:00
Masayuki Nakano eac1fdb5dc Bug 672175 part.7 Manage last wheel scroll message information by MouseScrollHandler::LastEventInfo r=jimm 2012-03-06 12:20:28 +09:00
Masayuki Nakano 560a08c995 Bug 672175 part.6 Summarize native mouse wheel events by MouseScrollHandler::EventInfo r=jimm 2012-03-06 12:20:28 +09:00
Masayuki Nakano ee28f178e8 Bug 672175 part.5 Move device specific code to MouseScrollHandler r=jimm 2012-03-06 12:20:28 +09:00
Masayuki Nakano 748e4225ad Bug 672175 part.3 MouseScrollHandler should manage user prefs r=jimm 2012-03-06 12:20:28 +09:00
Masayuki Nakano 4752ebe8cd Bug 672175 part.2 MouseScrollHandler should manage system settings r=jimm 2012-03-06 12:20:28 +09:00
Masayuki Nakano 6b2ac6869b Bug 672175 part.1 Implement MouseScrollHandler for Windows r=jimm 2012-03-06 12:20:28 +09:00