Kartikaya Gupta
2e13ed4d02
Bug 1235994 - For wheel events which may have momentum following them, handle scroll snapping in APZ. r=mstange
2016-01-07 10:39:46 -05:00
Makoto Kato
c94b180f3c
Bug 1208944 - Part 5. Send PluginEvent to content process. r=jmathies
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
765408d35d
Bug 1208944 - Part 5. Send PluginEvent to content process. r=jmathies
2015-12-29 22:57:38 +09:00
Masayuki Nakano
8cb4da4f8f
Bug 1179632 part.6 KeyboardEvent.isComposing shouldn't expose IME state on different document r=smaug
2015-12-04 18:50:43 +09:00
Nicholas Nethercote
a0edd1fb5f
Bug 1230863 - Remove unused nsPresContext args from many functions. r=roc.
2015-12-06 17:15:53 -08:00
David Rajchenbach-Teller
6b7f7881c0
Bug 1219150 - EventStateManager::{LatestUserInputStart, UserInputCount};r=smaug
...
To detect slow behaviors, it is useful to find out whether a user
input was handled between two instants.
This patch introduces EventStateManager::UserInputCount, which lets
client code determine whether user input was handled between two
points of execution, and EventStateManager::LatestUserInputStart,
which lets client code find out when the altest user input was
handled.
2015-12-03 17:40:45 -08:00
David Anderson
755d043f90
Add APZ support for mousewheel delta multiplier prefs. (bug 1214170 part 2, r=kats)
2015-12-01 13:46:07 -08:00
Chris H-C
0b337de428
Bug 1107782 - Only accept certain mouse, gamepad events as user-active. r=smaug
...
Based on a patch by gfritsche, this filters out mouse events not indicative of
user activity (like hit tests), and brings in gamepad events that might be
indicative of user activity.
2015-11-24 05:52:00 +01:00
Jim Mathies
4422116bdc
Bug 1222662 - In the content process, detect when the mouse exists a plugin frame and update the content cursor accordingly. r=enn
2015-11-20 11:00:12 -06:00
Gijs Kruitbosch
715fa89606
Bug 1221947 - part 1: add BYTOUCH flag to nsIFocusManager, r=jaws,smaug
...
IGNORE IDL
2015-11-12 16:35:20 +00:00
Nicholas Nethercote
c3c2a5bf71
Bug 1223310 (part 2) - Use LayoutDeviceIntRect for bounds-related functions in nsIWidget. r=kats.
...
The patch renames the existing functions (GetBounds(), GetClientBounds(), etc)
by adding an |Untyped| suffix. It then adds typed equivalents, and uses those
typed equivalents in all the call sites where it's easy to do so. The trickier
remaining call sites are converted to use the Untyped-suffix version.
2015-11-09 21:37:32 -08:00
Randall Barker
8a7604804e
Bug 1220925 - Event::GetScreenCoords should return CSSIntPoint instead of LayoutDevicePoint. r=botond
...
This patch converts Event::GetScreenCoords to return the same type as Event::GetClientCoords
and Event::GetPageCoords which is a CSSIntPoint. When the function was originally updated it
was switched to returning LayoutDevicePoint. Additionally the redundant functions
UIEvent::CalculateClientPoint and UIEvent::CalculateScreenPoint were removed.
2015-11-10 11:32:40 -05:00
Masayuki Nakano
0d951d5d4d
Bug 1218032 part.4 Notify IMEContentObserver of enough safe timing to notify IME of something r=smaug
2015-11-10 11:49:05 +09:00
Kartikaya Gupta
84ff8009e8
Bug 1141884 - Trigger compositor smooth scrolling to snap points when APZ is enabled. r=mstange,kip
2015-11-03 14:21:40 -05:00
Kartikaya Gupta
5e2044fab9
Bug 1141884 - Handle wheel events on the main thread if the frame has snapping. r=dvander,mstange
2015-11-03 14:21:40 -05:00
Chris Peterson
2a6e749d04
Bug 1219139 - Fix -Wimplicit-fallthrough warnings in dom/events and widget/IMEData.h. r=masayuki
...
widget/IMEData.h:428:7 [-Wimplicit-fallthrough] unannotated fall-through between switch labels
dom/events/EventStateManager.cpp:601:7 [-Wimplicit-fallthrough] unannotated fall-through between switch labels
dom/events/EventStateManager.cpp:654:3 [-Wimplicit-fallthrough] unannotated fall-through between switch labels
dom/events/EventStateManager.cpp:714:3 [-Wimplicit-fallthrough] unannotated fall-through between switch labels
dom/events/EventStateManager.cpp:1239:3 [-Wimplicit-fallthrough] unannotated fall-through between switch labels
dom/events/EventStateManager.cpp:3045:3 [-Wimplicit-fallthrough] unannotated fall-through between switch labels
dom/events/EventStateManager.cpp:4173:3 [-Wimplicit-fallthrough] unannotated fall-through between switch labels
2015-10-26 20:46:27 -07:00
Kyle Huey
8f8794e1c7
Bug 1216401: Eviscerate nsIDOMWindow, move still needed methods to nsPIDOMWindow. r=bz
2015-10-26 14:37:32 -07:00
Nathan Froyd
4e6d8f6705
Bug 1207245 - part 6 - rename nsRefPtr<T> to RefPtr<T>; r=ehsan; a=Tomcat
...
The bulk of this commit was generated with a script, executed at the top
level of a typical source code checkout. The only non-machine-generated
part was modifying MFBT's moz.build to reflect the new naming.
CLOSED TREE makes big refactorings like this a piece of cake.
# The main substitution.
find . -name '*.cpp' -o -name '*.cc' -o -name '*.h' -o -name '*.mm' -o -name '*.idl'| \
xargs perl -p -i -e '
s/nsRefPtr\.h/RefPtr\.h/g; # handle includes
s/nsRefPtr ?</RefPtr</g; # handle declarations and variables
'
# Handle a special friend declaration in gfx/layers/AtomicRefCountedWithFinalize.h.
perl -p -i -e 's/::nsRefPtr;/::RefPtr;/' gfx/layers/AtomicRefCountedWithFinalize.h
# Handle nsRefPtr.h itself, a couple places that define constructors
# from nsRefPtr, and code generators specially. We do this here, rather
# than indiscriminantly s/nsRefPtr/RefPtr/, because that would rename
# things like nsRefPtrHashtable.
perl -p -i -e 's/nsRefPtr/RefPtr/g' \
mfbt/nsRefPtr.h \
xpcom/glue/nsCOMPtr.h \
xpcom/base/OwningNonNull.h \
ipc/ipdl/ipdl/lower.py \
ipc/ipdl/ipdl/builtin.py \
dom/bindings/Codegen.py \
python/lldbutils/lldbutils/utils.py
# In our indiscriminate substitution above, we renamed
# nsRefPtrGetterAddRefs, the class behind getter_AddRefs. Fix that up.
find . -name '*.cpp' -o -name '*.h' -o -name '*.idl' | \
xargs perl -p -i -e 's/nsRefPtrGetterAddRefs/RefPtrGetterAddRefs/g'
if [ -d .git ]; then
git mv mfbt/nsRefPtr.h mfbt/RefPtr.h
else
hg mv mfbt/nsRefPtr.h mfbt/RefPtr.h
fi
2015-10-18 01:24:48 -04:00
Masayuki Nakano
15a8329034
Bug 1215434 part.1 If scroll target is a plugin frame, EventStateManager::PostHandleEvent() should send the wheel event to the plugin frame even if APZC already handled it r=smaug
2015-10-17 15:50:09 +09:00
Masayuki Nakano
5d9bd92b7e
Bug 376679 part.4 Manage wheel transaction at sending a wheel event to target plugin r=smaug
2015-10-16 13:19:27 +09:00
Masayuki Nakano
f09dc213d5
Bug 376679 part.3 Compute default action target frame for wheel event before deciding the action because plugin should decide what is the default action when the target is a plugin frame r=smaug
2015-10-16 13:19:27 +09:00
Masayuki Nakano
1609671621
Bug 376679 part.2 EventStateManager should treat plugin frame as scrollable frame if the plugin wants to handle wheel events as default action r=smaug
2015-10-16 13:19:27 +09:00
Masayuki Nakano
34e28300fd
Bug 376679 part.1 Change the result of EventStateManager::ComputeScrollTarget() from nsIScrollableFrame* to nsIFrame* r=smaug
2015-10-16 13:19:27 +09:00
Bobby Holley
eba1d18391
Bug 1208622 - Separate API entry points. r=bz
2015-09-30 16:31:46 -07:00
Nigel Babu
5a85c0b650
Backed out changeset 5f02a9d37e56 (bug 1208622) for windows build bustage
...
CLOSED TREE
2015-09-29 12:10:45 +05:30
Bobby Holley
06c07ce78e
Bug 1208622 - Separate API entry points. r=bz
2015-09-28 22:51:30 -07:00
Gijs Kruitbosch
ef17d8e720
Bug 636905 - part 1: add a flag that tracks whether the user has interacted with a given document, r=smaug
2015-09-26 14:54:29 +01:00
Neil Deakin
7eba275a39
Bug 1168042, support accesskey redirecting to content process, r=masayuki
2015-09-18 08:19:13 -04:00
Neil Deakin
e357f38706
Bug 1168042, restructure HandleAccessKey so that accesskey candidates are only determined once, and clean up return value to use a bool, r=masayuki
2015-09-18 08:18:07 -04:00
Masayuki Nakano
0eb5af44b6
Bug 895274 part.244 Rename NS_TOUCH_CANCEL to eTouchCancel r=smaug
2015-09-15 00:14:35 +09:00
Masayuki Nakano
c52e0f004e
Bug 895274 part.243 Rename NS_TOUCH_END to eTouchEnd r=smaug
2015-09-15 00:14:35 +09:00
Masayuki Nakano
c9e937321c
Bug 895274 part.242 Rename NS_TOUCH_MOVE to eTouchMove r=smaug
2015-09-15 00:14:35 +09:00
Masayuki Nakano
27a41ba675
Bug 895274 part.241 Rename NS_TOUCH_START to eTouchStart r=smaug
2015-09-15 00:14:34 +09:00
Masayuki Nakano
94ccd0d27f
Bug 895274 part.219 Rename NS_GESTURENOTIFY_EVENT_START to eGestureNotify r=smaug
2015-09-12 01:19:28 +09:00
Masayuki Nakano
d23dd68a10
Bug 895274 part.190 Rename NS_COMPOSITION_START to eCompositionStart r=smaug
2015-09-11 21:21:27 +09:00
Masayuki Nakano
140ee81e3d
Bug 895274 part.187 Rename NS_QUERY_TEXT_RECT to eQueryTextRect r=smaug
2015-09-11 21:21:26 +09:00
Masayuki Nakano
22630518dc
Bug 895274 part.186 Rename NS_WHEEL_END to eWheelOperationEnd r=smaug
2015-09-11 01:59:55 +09:00
Masayuki Nakano
d3b8156939
Bug 895274 part.185 Rename NS_WHEEL_START to eWheelOperationStart r=smaug
2015-09-11 01:59:55 +09:00
Masayuki Nakano
417d87fd39
Bug 895274 part.184 Rename NS_WHEEL_WHEEL to eWheel r=smaug
2015-09-11 01:59:54 +09:00
Masayuki Nakano
120b9ee34c
Bug 895274 part.169 Rename NS_CONTENT_COMMAND_SCROLL to eContentCommandScroll r=smaug
2015-09-11 01:59:53 +09:00
Masayuki Nakano
c973758d78
Bug 895274 part.168 Rename NS_CONTENT_COMMAND_REDO to eContentCommandRedo r=smaug
2015-09-11 01:59:53 +09:00
Masayuki Nakano
fbeb86172b
Bug 895274 part.167 Rename NS_CONTENT_COMMAND_UNDO to eContentCommandUndo r=smaug
2015-09-11 01:59:53 +09:00
Masayuki Nakano
6f49d6c1b4
Bug 895274 part.166 Rename NS_CONTENT_COMMAND_DELETE to eContentCommandDelete r=smaug
2015-09-11 01:59:52 +09:00
Masayuki Nakano
b3c6348bea
Bug 895274 part.165 Rename NS_CONTENT_COMMAND_PASTE to eContentCommandPaste r=smaug
2015-09-11 01:59:52 +09:00
Masayuki Nakano
02c412b92e
Bug 895274 part.164 Rename NS_CONTENT_COMMAND_COPY to eContentCommandCopy r=smaug
2015-09-11 01:59:52 +09:00
Masayuki Nakano
04e9ca99ea
Bug 895274 part.163 Rename NS_CONTENT_COMMAND_CUT to eContentCommandCut r=smaug
2015-09-11 01:59:52 +09:00
Masayuki Nakano
b8fc0ce709
Bug 895274 part.162 Rename NS_CONTENT_COMMAND_PASTE_TRANSFERABLE to eContentCommandPasteTransferable r=smaug
2015-09-11 01:59:52 +09:00
Masayuki Nakano
9dd899a5d5
Bug 895274 part.158 Rename NS_QUERY_DOM_WIDGET_HITTEST to eQueryDOMWidgetHittest r=smaug
2015-09-10 10:40:06 +09:00
Masayuki Nakano
9facc49d08
Bug 895274 part.157 Rename NS_QUERY_CHARACTER_AT_POINT to eQueryCharacterAtPoint r=smaug
2015-09-10 10:40:06 +09:00