Commit Graph

165 Commits

Author SHA1 Message Date
Brad Lassey
5c4e387bfa bug 702907 - Zooming should be disabled while a video is in fullscreen mode r=mbrubeck
--HG--
extra : rebase_source : 0ca9a36735abf2fcc7ad0b276e56c1f50b209488
2012-03-08 10:53:01 -05:00
Ehsan Akhgari
43866aa4a5 Bug 728614 - Fix the zoom level when the device rotates on pages with <meta viewport> information; r=kats 2012-02-22 13:13:16 -05:00
Margaret Leibovic
75e2707dce Bug 704879 - (1/6) Refactor AutoCompletePopup to FormAssistPopup. r=lucasr
--HG--
rename : mobile/android/base/AutoCompletePopup.java => mobile/android/base/FormAssistPopup.java
2012-03-06 11:56:41 -08:00
Doug Turner
3f133bfdd1 Merge with mozilla-central 2012-02-16 18:06:54 -08:00
Kartikaya Gupta
017fdd22f9 Bug 727565 - Fix new compiler warnings for javac 1.7. r=bnicholson 2012-02-15 22:55:47 -05:00
Patrick Walton
33a9ad9c0a Don't render while pinching. Reduces jank and makes zooming easier to debug. 2012-02-13 22:48:00 -08:00
Chris Peterson
b7202f8f04 Bug 715251 - Reduce overscroll distance from 75% to 30% of viewport. r=kats 2012-02-24 10:29:44 -08:00
Kartikaya Gupta
e63d5f692f Bug 720538 - Remove unused functions and variables. r=wesj 2012-02-02 09:16:25 -05:00
Kartikaya Gupta
2a1bb09135 Bug 720538 - Re-use getValidViewportMetrics to ensure the zoom-to rect is valid. r=wesj 2012-02-02 09:15:37 -05:00
Kartikaya Gupta
90e7c569b9 Bug 720538 - Clarify and fix incorrect rect bottom calculation. r=wesj 2012-02-02 09:11:50 -05:00
Brad Lassey
cb4401d7dd bug 723243 - SimpleScaleGestureDetector uses getActionIndex(), which is not available in eclair r=wesj 2012-02-01 15:03:46 -05:00
James Willcox
de86b5b89d Bug 721741 - Add support for Flash on Android 4.0+ r=blassey 2012-01-31 09:40:58 -05:00
Boris Zbarsky
641cc99143 Backed out changeset e57ddd9fdd5e (bug 721741) because it breaks Android builds. 2012-01-31 23:38:35 -05:00
James Willcox
8d27955326 Bug 721741 - Add support for Flash on Android 4.0+ r=blassey 2012-01-31 09:40:58 -05:00
Ed Morley
17bc951b28 Backout b87113ff33ff (bug 721741) for Android build failures 2012-01-31 16:19:00 +00:00
James Willcox
ee323c2710 Bug 721741 - Add support for Flash on Android 4.0+ r=blassey 2012-01-31 09:40:58 -05:00
Kartikaya Gupta
4f628e8540 Bug 721125 - Prevent the edge resistance from being negative, which can wreak havoc on the viewport. r=pcwalton 2012-01-31 00:42:40 -05:00
Kartikaya Gupta
fec8e3fdf4 Bug 708687 - Snap the page when the page size changes and pushes it into overscroll. r=pcwalton 2012-01-30 23:43:36 -05:00
Wes Johnston
5c1eb4cd4a Bug 711071 - Check for scrollable in velocity calculations. r=pcwalton 2012-01-28 18:23:45 +01:00
Wes Johnston
d1d8be66f3 Bug 719240 - Delay sending touchmove events until touches have moved a minimum distance. r=mfinkle 2012-01-25 01:31:33 +01:00
Wes Johnston
92a702e9c6 Bug 603008 - Android widget multitouch implementation. r=blassey,kats 2012-01-25 01:31:33 +01:00
James Willcox
15663b2456 Bug 706684 - Add a small fix for Froyo devices r=kats 2012-01-24 11:02:40 -05:00
Patrick Walton
8dc1c017f0 Bug 706684 - Implement a simpler scale gesture listener on Android. r=Cwiiis 2012-01-23 19:18:24 -08:00
Kartikaya Gupta
2b4d6ba175 Bug 716863 - Abort uselessly continuing to fling subdocuments once they can't go any farther. r=Cwiiis 2012-01-21 12:44:44 -05:00
Kartikaya Gupta
203e7a6341 Bug 716863 - Check for overscroll and bounce after iframes are flung. r=Cwiiis 2012-01-21 12:44:29 -05:00
James Willcox
1055c05f63 Bug 707439 - Fix Flash plugin positioning
--HG--
extra : rebase_source : aaa41297d293ffde1aabe5632ade6c416b4d541f
2012-01-18 10:41:35 -05:00
Chris Peterson
be7d5aa998 Bug 706891 part 3 - When drag breaks through pan threshold, reposition touch origin and check for axis locking. r=kats 2012-02-14 10:55:46 -08:00
Chris Peterson
12610de8f8 Bug 706891 part 2 - Reduce PAN_THRESHOLD from 1/10" to 1/16" and change units to dps. r=kats 2012-02-14 11:43:45 -08:00
Chris Peterson
307a888c50 Bug 706891 part 1 - Rename Axis setLocked/mLocked to setScrolledDisabled/mScrollingDisabled to clarify meaning. r=kats 2012-02-14 10:55:22 -08:00
Kartikaya Gupta
b58cc079f3 Bug 722439 - Fix compiler warnings using javac 1.7. r=Cwiiis 2012-02-14 15:28:27 -05:00
Brad Lassey
f4f4cbbdd3 bug 725538 - make creating GeckoEvents sane r=kats 2012-02-08 23:18:27 -08:00
Kartikaya Gupta
38a9f42d19 Bug 715326 - Fix viewport position when zooming up a page that is smaller than the viewport on both axes. r=pcwalton
Take a page that has width PW and height PH, where PW is less
than the viewport width VW and PH is less than the viewport height
VH, and VW/PW > VH/PH. If we scale this up to fit the viewport,
then the vertical viewport position ends up scrolled to the bottom
(or partway to the bottom depending on how long the page is). This
fixes that by shifting the focal point in this case.
2012-01-12 22:47:56 -05:00
Kartikaya Gupta
269fcac4a9 Bug 713011 - Add a check to ensure we are running on the correct thread. r=blassey 2012-01-11 17:08:14 -05:00
Kartikaya Gupta
cebe94748c Bug 716673 - Fix up copyright and authors. r=pcwalton 2012-01-10 10:06:11 -05:00
Kartikaya Gupta
70f0f1bf83 Bug 716673 - Pull out duplicated hard-coded strings as static variables. r=pcwalton 2012-01-10 10:06:10 -05:00
Kartikaya Gupta
db517f8f24 Bug 716673 - Split out the Axis class from the PanZoomController. r=pcwalton 2012-01-10 10:06:08 -05:00
Kartikaya Gupta
4db2ca3cad Bug 716673 - Split out a SubdocumentScrollHelper from the PanZoomController. r=pcwalton 2012-01-10 10:06:05 -05:00
Kartikaya Gupta
c7f1933c6f Bug 716673 - Encapsulate the fling state in Axis. r=pcwalton 2012-01-10 10:06:03 -05:00
Kartikaya Gupta
a807c16fe2 Bug 716673 - Encapsulate the velocity, locked, and disableSnap variables in Axis. r=pcwalton 2012-01-10 10:06:01 -05:00
Kartikaya Gupta
779c978c29 Bug 716673 - Use the locked velocity instead of unlocked velocity in a couple of places. r=pcwalton 2012-01-10 10:05:59 -05:00
Kartikaya Gupta
7f58eba51b Bug 716673 - Fix up the advanceFling() step. r=pcwalton
- Refactor the code a little to ensure we don't do any flinging
  if the panning is being overridden.
- Collapse duplicated/inconsistent code in the fling-termination
  conditions so that it makes sense now.
2012-01-10 10:05:57 -05:00
Kartikaya Gupta
cb0894c39b Bug 716673 - Collapse unused WAITING_TO_SNAP and SNAPPING flingstates into STOPPED. r=pcwalton 2012-01-10 10:05:55 -05:00
Kartikaya Gupta
45e0c4fb28 Bug 716673 - Completely encapsulate Axis variables lastTouchPos and touchPos. r=pcwalton 2012-01-10 10:05:53 -05:00
Kartikaya Gupta
0c3774c55e Bug 716673 - Completely encapsulate Axis variable firstTouchPos. r=pcwalton 2012-01-10 10:05:51 -05:00
Kartikaya Gupta
889037cae5 Bug 716673 - Refactor some more duplicated code from the track() functions. r=pcwalton 2012-01-10 10:05:49 -05:00
Kartikaya Gupta
4a33731d51 Bug 716673 - Refactor some repeated code into a startTouch method. r=pcwalton 2012-01-10 10:05:48 -05:00
Kartikaya Gupta
bfaab2e6a1 Bug 716673 - Misc cleanups in PanZoomController. r=pcwalton
- Remove unused imports.
- Move all class variables together, and make some final.
- Fix up some comments.
- Remove unused methods.
- Remove some dead code
- Move some functions around so they are grouped based on behaviour.
2012-01-10 10:05:46 -05:00
Kartikaya Gupta
6d25567591 Bug 716673 - Remove some dead code. r=pcwalton
Events that come in for the non-primary pointer are ACTION_POINTER_DOWN
rather than ACTION_DOWN, so this code will never get exercised.
2012-01-10 10:05:43 -05:00
Kartikaya Gupta
33da0d74c0 Bug 716673 - Refactor some code that sends messages to Gecko. r=pcwalton 2012-01-10 10:05:42 -05:00
Kartikaya Gupta
27e3a608b8 Bug 716673 - Remove unnecessary finalize() function. r=pcwalton
The finalize will never be called because GeckoAppShell holds
on to the PZC (as a GeckoEventListener) thereby preventing it
from ever getting GC'd.
2012-01-10 10:05:40 -05:00
Chris Peterson
a4d87cd62d Bug 714874 - Fix Java warnings about redundant casts. r=pcwalton r=dougt a=dougt 2012-01-06 12:21:49 -08:00
Chris Peterson
043eb9f603 Bug 714874 - Fix some Java warnings. r=dougt a=dougt 2012-01-05 10:49:33 -08:00
Kartikaya Gupta
5355c82048 Bug 715164 - Guard against another race condition in PZC. r=pcwalton 2012-01-05 18:13:25 -08:00
Kartikaya Gupta
f37b760178 Bug 715011 - Ensure that panning of subwindows can still happen while the top window is locked on one or both axes. r=Cwiiis 2012-01-04 13:25:11 -05:00
Patrick Walton
2c44c1df90 Bug 709492 - Part 3: Tie viewport updates to drawing to avoid page transition flicker. r=kats 2012-01-03 22:55:04 -08:00
Mark Finkle
cce1d95b44 Bug 714711 - A few unused local variables in PanZoomController.onScaleEnd [r=kats] 2012-01-03 12:19:49 -05:00
Kartikaya Gupta
caaac783fd Bug 713586 - Robustify against undetected race conditions. r=pcwalton
The exception in bug 713586 can only occur if there are race conditions
in the PanZoomController that we haven't fixed yet. Until the race conditions
are fixed, we can robustify the code from dying horribly by making
the bounce-related variables local to the BounceRunnable, so that
different BounceRunnables running concurrently don't interfere with each
other.
2012-01-02 19:06:49 -05:00
Patrick Walton
c57479bcc5 Backed out bug 709492 due to breakage with external urls. r=backout 2011-12-30 18:47:06 -05:00
Kartikaya Gupta
03f0854162 Bug 713729 - Ensure that a fling is in progress when doing velocity-based fling adjustments. r=pcwalton 2011-12-29 22:29:16 -05:00
Patrick Walton
d02d8fac81 Bug 709492 - Part 4: Hide the page when navigating, and expose it when the new page appears. r=kats 2011-12-29 15:10:30 -08:00
Kartikaya Gupta
45b0983cd1 Bug 712386 - Limit how much zoom can be applied. r=Cwiiis 2011-12-27 00:56:57 -05:00
Geoff Lankow
84b1787268 Backed out 3 changesets (bug 710297, bug 712386, bug 712761) for perma-orange on Android native m1 and m2
Backed out changeset 3b1e6033d3ff (bug 712761)
Backed out changeset bb41941cdf9d (bug 710297)
Backed out changeset d4f9960e286a (bug 712386)
2011-12-28 01:00:02 +13:00
Margaret Leibovic
5bfe949de1 Bug 711216 - Form autocomplete popup doesn't disappear when input gets out of view after pinch zoom [r=mfinkle] 2011-12-21 17:03:21 -08:00
Kartikaya Gupta
954005ec2a Bug 712386 - Limit how much zoom can be applied. r=Cwiiis 2011-12-27 00:56:57 -05:00
Kartikaya Gupta
41bc5109b2 Bug 711453 - Fix infinite zoom scale. r=pcwalton 2011-12-20 17:15:09 -05:00
Kartikaya Gupta
6d82dbf388 Bug 709817 - Don't clobber mState if animations are aborted. r=pcwalton
Ensure that if the animation is aborted by changing the value of
mState (such as if we get an onTouchStart and set the mState to
TOUCHING), then we don't clobber it and set it back to NOTHING.
Only set it back to NOTHING when the animation finishes normally.
2011-12-20 16:53:39 -05:00
Kartikaya Gupta
cc417ad0e7 Bug 709817 - Ensure PZC is always accessed on the UI thread. r=pcwalton
Ensure that all public functions in PZC are always called from
the UI thread, so that internal variables are not mutated on
different threads. I also made animatedZoomTo private so that
it can't be inadvertently called from a non-UI thread outside
the class.
2011-12-20 16:53:39 -05:00
Kartikaya Gupta
3114ee3c37 Bug 709817 - (Cleanup) Replace geometryChanged() with abortAnimation() and remove dead calls. r=pcwalton
Since the geometryChanged function does nothing if the parameter passed
in is false, better to rename the function to be more indicative of
what it actually does, and remove all the resulting dead code.
2011-12-20 16:53:39 -05:00
Kartikaya Gupta
f54e1685bd Bug 712037 - Add lots of logging to help diagnose viewport issues. r=Cwiiis 2011-12-19 22:32:41 -05:00
Kartikaya Gupta
688ba96c8d Bug 711232 - Avoid unnecessary bounce animations. r=pcwalton 2011-12-16 17:01:02 -05:00
Kartikaya Gupta
9ab8826a15 Bug 711453 - Avoid potentially corrupting the fling velocity. r=pcwalton 2011-12-19 09:26:41 -05:00
Doug Turner
944da30fea Backout of 9d027bf631d3 2011-12-17 21:52:54 -08:00
Kartikaya Gupta
4a884dba9a Bug 711232 - Avoid unnecessary bounce animations. r=pcwalton 2011-12-16 17:01:02 -05:00
Patrick Walton
f6866f0ce1 Bug 710119 - Use a low friction for long flings and a high friction for short ones. r=Cwiiis 2011-12-15 12:04:49 -08:00
Kartikaya Gupta
5a96405374 Bug 708893 - Allow panning after releasing pinch zoom finger. r=pcwalton 2011-12-15 14:50:04 -05:00
Kartikaya Gupta
0fd6d2a2bc Bug 710393 - Stop using Math.copySign which doesn't exist on Froyo. r=Cwiiis a=ehsan 2011-12-14 16:57:29 -05:00
Sriram Ramasubramanian
172c1f9c60 Bug 695444 - Form history autocomplete. r=mfinkle a=android-only 2011-12-06 16:44:08 -08:00
Patrick Walton
a6ee503da0 Bug 710096 - Hold the monitor on the layer controller when adjusting and rendering the viewport metrics. r=Cwiiis a=java-only 2011-12-13 14:43:08 -08:00
Doug Turner
c03f186609 Bug 709595 - Add a name for each java thread and timer to aide with debugging. r=blassey
--HG--
extra : rebase_source : 1f5472ef5301739425b162d5ce4b28a577daf0fb
2011-12-12 16:27:35 +08:00
Chris Lord
51e3c16d50 Bug 705092 - Kinetic scrolling is too slow. r=pcwalton a=java-only
This introduces a friction factor, so that the deceleration is relative to
the current velocity. Now, the faster you scroll, the slower the view
decelerates, allowing you to page through longer pages easier.
2011-12-12 18:56:15 +00:00
Kartikaya Gupta
6f7f212151 Bug 704738 - Resize page content on device rotation. r=Cwiiis a=java-only
Some cleanup: ensure we abort and re-bounce the viewport
if the device is rotated during a double-tap zoom. Also
rename variables to be more appropriate
2011-12-12 11:22:34 -05:00
Kartikaya Gupta
b1ca40ea1a Bug 708683 - Fix NaN viewport values. r=pcwalton
The zero page width and height values were
causing the zoom scale to go to Infinity, introducing
all sorts of badness in the viewport values.
2011-12-09 22:57:57 -05:00
Mark Finkle
1889190bef Backout 03ed6af51318, c65be44ac489, 0ce8da61c6cc, bcc015450e7a because of mochitest failures r=mfinkle a=mfinkle 2011-12-12 09:02:01 -05:00
Doug Turner
73940d0817 Bug 709595 - Add a name for each java thread and timer to aide with debugging. r=blassey
--HG--
extra : rebase_source : 552494a1086e706109296ca4c503c1d75796d852
2011-12-12 16:27:35 +08:00
Patrick Walton
891ca8a49d Bug 708947 - Repair overscroll resistance, and add overscroll resistance when zooming. r=kats 2011-12-09 12:06:15 -08:00
Patrick Walton
bbf5b6e455 Bug 708928 - Don't render when a finger is down. r=Cwiiis 2011-12-09 12:06:10 -08:00
Patrick Walton
1364a4dcca Bug 708921 - Bounce back during overscroll when the magnitude of the velocity vector exceeds the stopped threshold. r=kats 2011-12-09 12:06:06 -08:00
Wes Johnston
994afc9cb8 Bug 706146 - Limit how far we can zoom into a page r=chrislord 2011-12-09 12:03:19 -05:00
Patrick Walton
36a666a157 Bug 705358 - Don't allow fully-zoomed-out axes to be overscrolled. r=kats 2011-12-08 21:31:04 -08:00
Patrick Walton
eca59cea07 Bug 701594 - Part 8: Make double-tap-to-zoom use the bounce infrastructure. r=kats 2011-12-07 13:34:52 -08:00
Patrick Walton
eb55e8ee3d Bug 701594 - Part 7: Remove the per-axis bounce functionality. r=kats 2011-12-07 13:34:15 -08:00
Patrick Walton
f12990e26b Bug 701594 - Part 6: Separate out fling and bounce animations and make them use the "valid viewport metrics" infrastructure. r=kats 2011-12-07 13:33:55 -08:00
Patrick Walton
1cacd2ead0 Bug 701594 - Part 5: Factor out the fling timer setting functions into separate functions. r=kats 2011-12-07 13:07:24 -08:00
Patrick Walton
799a4d2086 Bug 701594 - Part 3: Add viewport interpolation functions. r=kats 2011-12-07 10:44:36 -08:00
Patrick Walton
350a1f0eb7 Bug 701594 - Part 2: Don't duplicate state in the layer controller and pan zoom controller axes. r=kats 2011-12-07 10:44:02 -08:00
Patrick Walton
017d92c57f Bug 701594 - Part 1: Precompute the ease-out animation. r=kats 2011-12-07 10:41:58 -08:00
Kartikaya Gupta
2b2ab1b75a Backout 884b705c99fb (bug 704738) for twinopen failure 2011-12-06 13:45:32 -05:00
Kartikaya Gupta
46d166e4a5 Bug 704738 - Resize page content on device rotation [r=wesj]
If the device rotates, ensure we don't end up with grey
areas because the page didn't zoom in enough.
2011-12-06 10:39:09 -05:00
Chris Lord
ed2769240b Bug 703573 - Make document sub-frames scrollable. r=kats
The new Java compositor only handles scrolling the top-level scroll-frame. Use
browser.js to detect when a sub-frame is being scrolled and send an 'override'
event to Java to tell it to pass us scroll events instead of calling the
scroll function on the LayerController.
2011-12-06 15:13:14 +00:00
Wes Johnston
4cca3b2143 Bug 697701 - Double tap zoom support. r=cwiiis 2011-11-15 13:41:19 -08:00