Commit Graph

45 Commits

Author SHA1 Message Date
Wes Johnston
c89afdba0a Bug 946344 - Remove GeckoEventResponder. r=mfinkle,blassey,kats 2014-02-11 09:16:00 -08:00
Brad Lassey
b6c73069fb bug 868341 - pinch to zoom jumps all over page randomly r=mfinkle,kats 2013-12-12 01:43:44 -05:00
Carsten "Tomcat" Book
9fd8972b64 Backed out changeset b84baa03b9d1 (bug 868341) for mochitest -4 and bc testfailures 2013-12-20 12:42:16 +01:00
Brad Lassey
b33421e62d bug 868341 - pinch to zoom jumps all over page randomly r=mfinkle,kats 2013-12-12 01:43:44 -05:00
Kartikaya Gupta
cadff49718 Bug 949132 - Use the FrameMetrics flag on the layers update to update APZC scroll offset instead of tracking it in widget code. r=Cwiiis 2013-12-16 12:04:46 -05:00
Kartikaya Gupta
e8d55fb2bf Bug 948953 - Allow panning subdocuments in full-screen mode. r=Cwiiis 2013-12-12 17:13:55 -05:00
Wes Johnston
9564dea11f Bug 918079 - Show highlight when overscrolling. r=kats 2013-09-26 22:57:57 -07:00
Wes Johnston
4b30dcd514 Bug 918086 - Disable overscroll when pinch zooming. r=kats 2013-09-23 11:47:05 -07:00
Wes Johnston
efc7ef7ecb Bug 705246 - Disable overscroll when panning. r=kats 2013-09-23 11:46:50 -07:00
Kartikaya Gupta
3e52e9ecce Bug 911510 - Add a pref to override the dead zone threshold. r=bnicholson 2013-09-04 21:58:40 -04:00
Augustin Trancart
63225faa38 Bug 711959 - Make FlingRenderTask time-based. r=kats 2013-09-04 14:07:12 -04:00
Augustin Trancart
cec0057ccf Bug 711959 - Making BounceRenderTask time-based. r=kats 2013-09-04 14:07:12 -04:00
Augustin Trancart
e1f9ff99c0 Bug 711959 - Adapt JavaPanZoomController to use the RenderTask mechanism. r=Cwiiis, kats 2013-09-04 14:07:11 -04:00
Dennis
df143365a5 Bug 845747 - Add the pref "ui.scrolling.negate_wheel_scrollY" to mobile.js so that "scrollY" can be negated in JavaPanZoomController.java to allow a mouse scroll wheel to scroll the screen in the direction of choice depending on the true/false state of "mNegateWheelScrollY". r=kats 2013-08-27 21:01:40 -04:00
Kartikaya Gupta
6db7f3623b Bug 898877 - Prevent pages from getting stuck without the dynamic toolbar. r=Cwiiis
The problematic scenario is when the page is exactly the height of the screen
(with dynamic toolbar not visible). In this case, the scrollable() function in
Axis.java returns false on the vertical axis, and so the JavaPanZoomController
never does any scrolling. This in turns means that the scrollBy code in
LayerMarginsAnimator never gets to run, so you can never drag the toolbar back
into being visible. The patch ensures that scrollable() returns true when some
or all of the margins are not visible, ensuring that in these scenarios the
user can still scroll the toolbar back onto the screen. This patch also adds
some comments/asserts to verify the new code is threadsafe.
2013-08-16 08:42:23 -04:00
Botond Ballo
f86aff9b42 Bug 859929 - Make AsyncPanZoomController work with progressive tile painting on Fennec. r=kats 2013-07-22 22:33:05 -04:00
Chris Lord
fc99017549 Bug 892246 - Allow subdocument scrolling to reveal margins. r=kats
This adds a notification callback to PanZoomTarget that the PanZoomController
can call to notify GeckoLayerClient that a subdocument is being scrolled. This
allows GeckoLayerClient to call LayerMarginsAnimator and alter the margins
accordingly, stopping a page from trapping the toolbar on/off the screen with
a screen-covering subframe.
2013-07-15 17:03:24 +01:00
Kartikaya Gupta
fecc0e72bc Bug 876060 - Handle medium-length taps as clicks. r=Cwiiis 2013-06-03 10:05:59 -04:00
Kartikaya Gupta
67005d3ebd Bug 839641 - Implement the RequestContentRepaint callback for APZC in AndroidBridge. r=Cwiiis 2013-04-26 13:26:46 -04:00
Chris Lord
ed41276fbb Bug 858969 - Refactor dynamic toolbar so page is offset and not overlapped. r=kats,nrc
Refactor the dynamic toolbar code so that the ownership of various properties
is clearer, and the page is offset by the toolbar instead of being overlapped.
This fixes problems with the scroll origin of the page not corresponding to
the visible origin on the screen.
2013-04-25 18:47:08 +01:00
Ryan VanderMeulen
e376b2bb54 Backed out changeset 684a5ca2efb7 (bug 858969) for Android M3 failures.
CLOSED TREE
2013-04-25 10:56:54 -04:00
Chris Lord
ac2dc65ab2 Bug 858969 - Refactor dynamic toolbar so page is offset and not overlapped. r=kats,nrc
Refactor the dynamic toolbar code so that the ownership of various properties
is clearer, and the page is offset by the toolbar instead of being overlapped.
This fixes problems with the scroll origin of the page not corresponding to
the visible origin on the screen.
2013-04-24 17:06:23 +01:00
Justin Busby
84554ff57d Bug 755240 - Allow Fennec axis locking behaviour to be controlled by a pref. r=kats 2013-04-14 14:27:02 +01:00
Chris Peterson
e4b56d7c7f Bug 859229 - Part 3: Fix order of Java imports. r=kats 2013-04-08 00:51:56 -07:00
Kartikaya Gupta
516828689a Bug 857217 - Don't move focus to the layerview if joystick input events are in the dead zones. r=Cwiiis 2013-04-03 11:58:59 -04:00
Kartikaya Gupta
07138ded4a Bug 856039 - (Cleanup) Extract magic number. r=Cwiiis 2013-04-01 10:16:00 -04:00
Kartikaya Gupta
3fee154413 Bug 855783 - Map the gamepad second joystick's y-axis to zooming. r=Cwiiis 2013-03-28 17:31:09 -04:00
Kartikaya Gupta
28977477c9 Bug 855783 - Rename autoscroll to autonav so that we can lump autozooming in there too. r=Cwiiis 2013-03-28 17:31:05 -04:00
Kartikaya Gupta
e3ba395974 Bug 802130 - Add a ThreadUtils.isOnUiThread helper function. r=mfinkle 2013-03-15 11:52:53 +01:00
Brian Nicholson
278a2f521d Bug 850487 - More code cleanup (@Overrides and unused imports). r=kats 2013-03-13 13:20:57 -07:00
Chris Lord
8bce053427 Bug 716403 - Resize viewport dynamically on Android. r=kats,mfinkle
This causes the viewport size to differ, depending on the length of the page.
This has the effect of pages that size themselves to the size of the window
always having the toolbar visible, making sites like Google Maps more usable.
2013-03-07 10:17:33 +00:00
Chris Lord
2f91bdcb3e Bug 716403 - Make the top of the page accessible with the toolbar visible. r=kats
This makes it possible to scroll to the top of the page with the toolbar visible
in Firefox for Android. It also causes JavaScript scrolling to position 0 to
expose the toolbar.
2013-03-07 10:17:33 +00:00
Ryan VanderMeulen
076a4bfaee Backed out 9 changesets (bug 716403) for Android 4.0 robocop bustage on a CLOSED TREE. 2013-03-06 16:11:05 -05:00
Chris Lord
f818ffed3b Bug 716403 - Resize viewport dynamically on Android. r=kats,mfinkle
This causes the viewport size to differ, depending on the length of the page.
This has the effect of pages that size themselves to the size of the window
always having the toolbar visible, making sites like Google Maps more usable.
2013-03-06 16:56:00 +00:00
Chris Lord
41380608cf Bug 716403 - Make the top of the page accessible with the toolbar visible. r=kats
This makes it possible to scroll to the top of the page with the toolbar visible
in Firefox for Android. It also causes JavaScript scrolling to position 0 to
expose the toolbar.
2013-03-06 16:55:59 +00:00
Kartikaya Gupta
bffe03292d Bug 831781 - Add support for zooming in/out with gamepad zoom buttons. r=Cwiiis 2013-03-01 22:50:48 -05:00
Kartikaya Gupta
ca06281561 Bug 831781 - Extract a getAdjustedZoomFactor method to encapsulate the zoom edge resistance. No functional change. r=Cwiiis 2013-03-01 22:50:48 -05:00
Kartikaya Gupta
b9f7fe7d92 Bug 831781 - Add support for ouya gamepad joystick-based scrolling. r=Cwiiis 2013-03-01 22:50:48 -05:00
Ryan VanderMeulen
a9311d990d Backed out 8 changesets (bug 716403) for frequent Android mochitest-8 failures on a CLOSED TREE. 2013-03-01 16:09:59 -05:00
Chris Lord
78d2dd27a3 Bug 716403 - Resize viewport dynamically on Android. r=kats,mfinkle
This causes the viewport size to differ, depending on the length of the page.
This has the effect of pages that size themselves to the size of the window
always having the toolbar visible, making sites like Google Maps more usable.
2013-03-01 15:46:34 +00:00
Chris Lord
444cf7a338 Bug 716403 - Make the top of the page accessible with the toolbar visible. r=kats
This makes it possible to scroll to the top of the page with the toolbar visible
in Firefox for Android. It also causes JavaScript scrolling to position 0 to
expose the toolbar.
2013-03-01 15:46:34 +00:00
Brian Nicholson
1c31a98bcf Bug 845612 - Add @Override annotations for implemented interfaces. r=kats 2013-02-26 21:48:00 -08:00
Brian Nicholson
a01c2f3bd9 Bug 845612 - Add missing @Override annotations. r=kats 2013-02-26 21:48:00 -08:00
Kartikaya Gupta
5010bd9809 Bug 777468 - Move ownership of TouchEventHandler from LayerView to JavaPanZoomController. r=Cwiiis
This patch has a bunch of semi-independent changes that unfortunately
couldn't be split apart without introducing hacks to make stuff build
on the intermediate patches. The main changes are:
- Moving TouchEventHandler from LayerView to JavaPanZoomController
- Registering the touch interceptor on the LayerView rather than the
  TouchEventHandler
- Moving the Tab:HasTouchListener handler from GeckoApp to JPZC

The net effect of all of this is that the TouchEventHandler is hidden
behind the PanZoomController interface and not accessible to GeckoApp
or GeckoAppShell.

Additionally, some of the JPZC methods were renamed from onXXX to
handleXXX to maintain the convention that onXXX methods are "interface"
methods (i.e. exposed to arbitrary other code) whereas handleXXX
methods are private/package and should only be called in very specific
ways.
2013-02-08 09:13:09 -05:00
Kartikaya Gupta
c0bf330235 Bug 777468 - Rename PanZoomController to JavaPanZoomController and extract a new PanZoomController interface. r=Cwiiis 2013-02-08 09:12:59 -05:00