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

1294 Коммитов

Автор SHA1 Сообщение Дата
Masayuki Nakano 3394edcb4a Bug 895274 part.83 Rename NS_DRAGDROP_EXIT to eDragExit r=smaug 2015-09-02 15:08:02 +09:00
Masayuki Nakano a07c726a8f Bug 895274 part.82 Rename NS_DRAGDROP_ENTER to eDragEnter r=smaug 2015-09-02 15:08:02 +09:00
Masayuki Nakano 811d0fac7e Bug 895274 part.81 Rename NS_DRAGDROP_OVER to eDragOver r=smaug 2015-09-02 15:08:02 +09:00
Masayuki Nakano 90a5ee8540 Bug 895274 part.80 Rename NS_DRAGDROP_DRAG to eDrag r=smaug 2015-09-02 15:08:02 +09:00
Masayuki Nakano 7b7a44a5ac Bug 895274 part.77 Rename NS_DRAGDROP_DROP to eDrop r=smaug 2015-09-02 15:08:01 +09:00
Steven Michaud 4431c47e10 Bug 1148196 - Crashes at -[ChildView keyDown:] related to secure input. r=masayuki 2015-09-01 13:56:23 -05:00
Jonathan Watt 482c9260b1 Bug 1199336 - Fix jank/hangs dragging files into the browser due to O(n^2) behavior in the Cocoa widget drag-and-drop code. r=mstange
--HG--
extra : rebase_source : 6d2eab089040dd5dcbafd313f3292e3cc2f4d467
2015-08-12 15:07:32 +01:00
Masayuki Nakano cafe2dfc67 Bug 895274 part.51 Rename NS_CONTEXTMENU to eContextMenu r=smaug 2015-09-01 00:20:06 +09:00
Nicholas Nethercote f44287005f Bug 1198334 (part 1) - Replace the opt-in FAIL_ON_WARNINGS with the opt-out ALLOW_COMPILER_WARNINGS. r=glandium.
The patch removes 455 occurrences of FAIL_ON_WARNINGS from moz.build files, and
adds 78 instances of ALLOW_COMPILER_WARNINGS. About half of those 78 are in
code we control and which should be removable with a little effort.

--HG--
extra : rebase_source : 82e3387abfbd5f1471e953961d301d3d97ed2973
2015-08-27 20:44:53 -07:00
Markus Stange d1afc73357 Bug 1016035 - Swallow the rest of the scroll gesture after swiping without APZ. r=kats
With APZ this is handled because starting a swipe interrupts the PanGesture input block, and momentum events don't start a new input block so APZ ignores them.

--HG--
extra : commitid : 83ArxgT5QUT
extra : rebase_source : afccf434dc0e309f972ff9851efc018374f0f5f6
2015-08-27 00:23:09 -04:00
Markus Stange 2705f93fbd Bug 1016035 - Don't wait for content to say that we need to swipe if APZ has enough information. r=kats
--HG--
extra : commitid : CUZqiDbltTx
extra : rebase_source : 90fb8cf0023177b7bb98ff93c5667c8dbc153f29
2015-08-28 16:50:00 -04:00
Markus Stange aa7c0f00b2 Bug 1016035 - Replay the queue to the swipe tracker once the swipe start confirmation arrives. r=kats
--HG--
extra : commitid : FEp3mcc2uy4
extra : rebase_source : bbdb018989c8c6933530e3d80b893622959e61d5
2015-08-08 20:05:18 -04:00
Markus Stange 56ebd83e96 Bug 1016035 - Put PanGestureInput events into a queue if they can end up as a swipe. r=kats
--HG--
extra : commitid : 9kUjH20aBKE
extra : rebase_source : a26b7d73455c8aa7c7cbc09a5851f96115ccce54
2015-08-12 00:15:32 -04:00
Markus Stange 49c4d7a190 Bug 1016035 - Delay the processing of a PanGestureInput block until we know whether it's a swipe. r=kats
--HG--
extra : commitid : 5utp02GzYAW
extra : rebase_source : 4415c7ac8fd3a8dbb718593bee63e89e8ba1625c
2015-08-12 00:11:54 -04:00
Markus Stange cb47c7a8c0 Bug 1016035 - Also mark widgetWheelEvents that are handled by APZ with mCanStartSwipe. r=kats
--HG--
extra : commitid : FJh4FS3u6ZW
extra : rebase_source : b807f93b640a9196df7bdc9e85e9f2755d63cf58
2015-08-28 00:04:53 -04:00
Markus Stange ec85d9a195 Bug 1016035 - Add mCanTriggerSwipe and TriggersSwipe(). r=masayuki
--HG--
extra : commitid : KgRjAfDWA22
extra : rebase_source : ed49b589a78b704df55259e87f646ce6002c995f
2015-08-27 23:50:31 -04:00
Markus Stange cf1dda7e99 Bug 1016035 - Send MayStartSwipe event before sending the wheel event. r=kats
--HG--
extra : commitid : 7pVl7ofWdlj
extra : rebase_source : bab80612fcb30fea78e7de7c76d67953bbac0822
2015-08-08 18:31:58 -04:00
Markus Stange e375d1773a Bug 1016035 - Split up MaybeTrackScrollEventAsSwipe into SendMayStartSwipe and TrackScrollEventAsSwipe. r=kats
--HG--
extra : commitid : LBN6rl9h8ew
extra : rebase_source : 5cdece260979a605a0ba960fe86a06b671b799ab
2015-08-11 23:12:57 -04:00
Markus Stange b71fa67c2b Bug 1016035 - Move swipe tracking code into DispatchAPZWheelInputEvent. r=kats
--HG--
extra : commitid : IDeP95GZzE9
extra : rebase_source : 66e0d989246455b9df6a2e48426b67fe72be6be0
2015-08-28 17:30:16 -04:00
Markus Stange 0441fca5af Bug 1016035 - Add a MozSwipeGestureMayStart event. r=kats
Having this event means that we don't have to wait for content to find out whether it's scrollable in the case that no swipe should be happening anyway.

IGNORE IDL because I'm only changing comments in the IDL files.

--HG--
extra : commitid : 22814fSLcIz
extra : rebase_source : e51b4db26333275c9bcb3fd7fece78b7d3653275
2015-08-27 15:06:21 -04:00
Markus Stange 0297e0ac04 Bug 1016035 - Implement the swipe animation ourselves instead of calling the NSEvent trackSwipe API. r=kats
--HG--
extra : commitid : 6RIOdEHnpgW
extra : rebase_source : e081714c029e41b1deb32e35ae065091a2086125
2015-08-27 16:07:59 -04:00
Markus Stange 643a50d406 Bug 1016035 - More swipe refactoring. r=kats
--HG--
extra : commitid : 8pS1g6YKTdm
extra : rebase_source : 79582bf4edd8824fcdcff09e4a9b704903dd228f
2015-07-23 15:17:28 -04:00
Markus Stange d3135653b2 Bug 1016035 - Refactor the code that decides whether we want to start a swipe. r=kats
--HG--
extra : commitid : GQpV4B2tl5F
extra : rebase_source : 3ed119a441be0b099c5f7aaad1d054e2aa467a08
2015-08-27 14:20:56 -04:00
Markus Stange c7f4a3e9d9 Bug 1016035 - Move some code around. r=kats
--HG--
extra : commitid : KEdRAC1nkQO
extra : rebase_source : 5fafa346f57d28d1efea2e159ac243e2f337542c
2015-08-27 14:19:15 -04:00
Markus Stange da38b57964 Bug 1016035 - Remove the ability to swipe vertically. r=kats
This was intended for a snapshot-based overscroll animation which we're not going to use because APZ solves the same problem in a much better way.

--HG--
extra : commitid : BlfYHzREaWB
extra : rebase_source : c2b503dc9ed3b9a49ebb9626447dfedc627d1b4f
2015-07-23 13:09:13 -04:00
Xidorn Quan f46a93871a Bug 1196163 part 1 - Use nsSizeMode instead of int32_t for nsIWidget::{SizeMode,SetSizeMode}. r=roc
--HG--
extra : source : cf438b9cb26ae512f792f075e4e22537ad6a38a7
2015-08-29 11:12:41 +10:00
Masayuki Nakano d9d97897f4 Bug 895274 part.32 Rename NS_MOUSE_ACTIVATE to eMouseActivate r=smaug 2015-08-29 08:58:32 +09:00
Masayuki Nakano bd4bf17fbd Bug 895274 part.29 Rename NS_MOUSE_EXIT_WIDGET to eMouseExitFromWidget r=smaug 2015-08-29 08:58:31 +09:00
Masayuki Nakano 9895f90eca Bug 895274 part.28 Rename NS_MOUSE_ENTER_WIDGET to eMouseEnterIntoWidget r=smaug 2015-08-29 08:58:31 +09:00
Masayuki Nakano db00b74a82 Bug 895274 part.27 Rename NS_MOUSE_BUTTON_DOWN to eMouseDown r=smaug 2015-08-29 08:58:30 +09:00
Masayuki Nakano 30fdd39afb Bug 895274 part.26 Rename NS_MOUSE_BUTTON_UP to eMouseUp r=smaug 2015-08-29 08:58:30 +09:00
Masayuki Nakano 717c415187 Bug 895274 part.25 Rename NS_MOUSE_MOVE to eMouseMove r=smaug 2015-08-29 08:58:29 +09:00
Masayuki Nakano ba5b3f3fe6 Bug 895274 part.11 Rename NS_KEY_DOWN to eKeyDown r=smaug 2015-08-29 08:58:27 +09:00
Masayuki Nakano 28c9f34179 Bug 895274 part.10 Rename NS_KEY_UP to eKeyUp r=smaug 2015-08-29 08:58:27 +09:00
Masayuki Nakano d311a11cc1 Bug 895274 part.9 Rename NS_KEY_PRESS to eKeyPress r=smaug 2015-08-29 08:58:27 +09:00
Steven Michaud 1bd07d55cd Bug 1189565 - Send resize events when backing scale factor changes. r=mstange 2015-08-28 15:48:04 -05:00
Steven Michaud e6368a182e Bug 1131473 - crash in -[NativeMenuItemTarget menuItemHit:]. r=spohl 2015-08-27 15:54:15 -05:00
Ryan VanderMeulen b26f120d60 Backed out changeset 55bea2798c68 (bug 1131473) for OSX crashes.
CLOSED TREE

--HG--
extra : amend_source : c5e1c3b3d535171fb6b69df6b1bfc76214f63966
2015-08-27 15:04:30 -04:00
Steven Michaud af158ce71a Bug 1131473 - crash in -[NativeMenuItemTarget menuItemHit:]. r=spohl 2015-08-27 12:01:56 -05:00
Benoit Girard 3993946636 Bug 1186662 - Part 2: Suppress the Displayport during active resize on mac. r=mstange
--HG--
extra : commitid : 1zwlHIxhhH3
extra : rebase_source : ed1104473af2a24b077eb940d03d6b90997d4e63
2015-08-26 12:59:17 -04:00
Markus Stange 77bd23e207 Bug 1193062 - Make nsChildView send PanGestureInput events into APZ. r=kats, r=smichaud
--HG--
extra : commitid : 5mHVPwAeh44
extra : rebase_source : 27e9d500176eef2f737ffadd77a8e7478df00c0f
extra : histedit_source : 1ceeefd9e1be3fddd7d504b44e140f50c43750e2
2015-08-23 19:50:29 -04:00
Markus Stange 19714849c8 Bug 1193062 - Give synthesized NSEvents a timestamp that is in the right space. r=smichaud
NSEvent timestamps are relative to the system start time, not to the reference date.

--HG--
extra : commitid : shDNTICmQP
extra : rebase_source : 2f45dc0e8acc83d5c7379554dfdd6090af694c89
extra : histedit_source : 75add13c0cbcafdafb14e052edea67bd4a0317e2
2015-08-10 13:59:16 -04:00
Markus Stange b00a4d2055 Bug 1193062 - Add nsCocoaUtils::ModifiersForEvent. r=smichaud
--HG--
extra : commitid : 8Aar2flB2na
extra : rebase_source : ba35da1d8d1fca49d98b8bc89b507d0105fe43db
extra : histedit_source : bb55f824f1a227a24b82eaf47c79175849649416
2015-07-21 18:41:08 -04:00
Masayuki Nakano 0d22745cda Bug 895274 part.3 Make the enum of event messages a named enum IGNORE IDL r=smaug 2015-08-26 21:56:59 +09:00
Steven Michaud d59e2ac8dc Bug 1181977 - Firefox app menu contains only "Quit" in certain edgecases. r=spohl 2015-08-24 10:57:02 -05:00
Masayuki Nakano 66f2c27305 Bug 895274 part.1 Rename WidgetEvent::message to WidgetEvent::mMessage r=smaug 2015-08-22 10:34:51 +09:00
Chris Manchester f2dcab6039 Bug 1131325 - Move system country code from nsIGfxInfo2 to a more appropriate location. r=aklotz,smichaud
--HG--
extra : commitid : Jglg9X6ykB1
2015-07-28 15:45:34 -07:00
Matt Woodrow 25534f83f5 Bug 1193977 - Bind the texture unit we want to use when compositing the OSX titlebar. r=jrmuizel 2015-08-13 15:59:57 -04:00
Nick Robson 49e872dc7e Bug 1075089 - Move popup menu frame offset to LookAndFeel and fix default offset for OS X. r=Enn
--HG--
extra : rebase_source : 7817fea6ea95e9dfc486f797114e1cfb778d5230
2015-08-04 16:41:00 -04:00
Kyle Huey 76e3009ab8 Bug 1179909: Refactor stable state handling. r=smaug
This is motivated by three separate but related problems:

1. Our concept of recursion depth is broken for things that run from AfterProcessNextEvent observers (e.g. Promises). We decrement the recursionDepth counter before firing observers, so a Promise callback running at the lowest event loop depth has a recursion depth of 0 (whereas a regular nsIRunnable would be 1). This is a problem because it's impossible to distinguish a Promise running after a sync XHR's onreadystatechange handler from a top-level event (since the former runs with depth 2 - 1 = 1, and the latter runs with just 1).

2. The nsIThreadObserver mechanism that is used by a lot of code to run "after" the current event is a poor fit for anything that runs script. First, the order the observers fire in is the order they were added, not anything fixed by spec. Additionally, running script can cause the event loop to spin, which is a big source of pain here (bholley has some nasty bug caused by this).

3. We run Promises from different points in the code for workers and main thread. The latter runs from XPConnect's nsIThreadObserver callbacks, while the former runs from a hardcoded call to run Promises in the worker event loop. What workers do is particularly problematic because it means we can't get the right recursion depth no matter what we do to nsThread.

The solve this, this patch does the following:

1. Consolidate some handling of microtasks and all handling of stable state from appshell and WorkerPrivate into CycleCollectedJSRuntime.
2. Make the recursionDepth counter only available to CycleCollectedJSRuntime (and its consumers) and remove it from the nsIThreadInternal and nsIThreadObserver APIs.
3. Adjust the recursionDepth counter so that microtasks run with the recursionDepth of the task they are associated with.
4. Introduce the concept of metastable state to replace appshell's RunBeforeNextEvent. Metastable state is reached after every microtask or task is completed. This provides the semantics that bent and I want for IndexedDB, where transactions autocommit at the end of a microtask and do not "spill" from one microtask into a subsequent microtask. This differs from appshell's RunBeforeNextEvent in two ways:
a) It fires between microtasks, which was the motivation for starting this.
b) It no longer ensures that we're at the same event loop depth in the native event queue. bent decided we don't care about this.
5. Reorder stable state to happen after microtasks such as Promises, per HTML. Right now we call the regular thread observers, including appshell, before the main thread observer (XPConnect), so stable state tasks happen before microtasks.
2015-08-11 06:10:46 -07:00