Kartikaya Gupta
04a457fab1
Bug 748384 - Back out 330e9c52f9ac, 9ba1078559fe, 2ed39c12d792, f53f05ecacd5 for build bustage. r=bustage
2012-05-23 11:08:19 -04:00
Kartikaya Gupta
d7e205e633
Bug 748384 - Update all Java code to keep a page rect and CSS page rect instead of just the page size. r=Cwiiis
2012-05-23 10:49:52 -04:00
Gervase Markham
87620f5676
Bug 716478 - update licence to MPL 2.
2012-05-21 12:12:37 +01:00
Matt Brubeck
dd1a410b01
Bug 707571 (part 4) - Use mininum-scale and maximum-scale from <meta name="viewport"> [r=kats]
2012-05-18 08:24:27 -07:00
Matt Brubeck
a3928422a4
Bug 707571 (part 3) - Disable double-tap listener on pages with user-scalable=no [r=kats]
2012-05-18 08:24:27 -07:00
Matt Brubeck
901910c609
Bug 707571 (part 2) - Disable zooming for pages with user-scalable=no [r=kats]
2012-05-18 08:24:27 -07:00
Matt Brubeck
babf33c424
Back out bug 707571 because of reftest failures
2012-05-18 09:31:27 -07:00
Matt Brubeck
206bfef1de
Bug 707571 (part 4) - Use mininum-scale and maximum-scale from <meta name="viewport"> [r=kats]
2012-05-18 08:24:27 -07:00
Matt Brubeck
a5e1d94154
Bug 707571 (part 3) - Disable double-tap listener on pages with user-scalable=no [r=kats]
2012-05-18 08:24:27 -07:00
Matt Brubeck
828992dc11
Bug 707571 (part 2) - Disable zooming for pages with user-scalable=no [r=kats]
2012-05-18 08:24:27 -07:00
Kartikaya Gupta
2bee45a402
Bug 749384 - Notify PZC of some events before the touchevent listeners deal with it so that we remain responsive. r=wesj
2012-05-15 13:22:26 -04:00
Margaret Leibovic
8819187046
Bug 752759 - Get rid of excessive mFormAssistPopup.hide() calls in PanZoomController. r=kats
2012-05-10 12:09:00 -07:00
Kartikaya Gupta
7233777c7e
Bug 751479 - Guard against the scale gesture detector receiving move events without corresponding down events. r=Cwiiis
2012-05-03 22:24:05 -04:00
Wes Johnston
e52044d460
Bug 744518 - Use touch events to trigger tap highlight. r=kats. a=mobile-only
2012-05-02 11:55:37 -07:00
Kartikaya Gupta
b1bf80fdf0
Bug 732364 - Apply axis locking to subdocument scrolling as well. r=Cwiiis a=android-only
2012-05-02 13:18:36 -04:00
Kartikaya Gupta
841d8b1592
Bug 722657 - Fix glaring bug in subdocument scrolling where scroll amounts got discarded. r=Cwiiis
2012-05-02 13:12:46 -04:00
James Willcox
22ddeff430
Bug 727116 - Draw Flash plugins with OpenGL during pan/zoom on legacy Android r=blassey
2012-04-27 16:04:47 -04:00
Joe Drew
41506abc0b
Bug 744939 - Make animatedZoomTo operate in CSS pixels instead of device pixels. r=kats a=blocking-fennec
2012-04-14 13:18:10 -04:00
Kartikaya Gupta
9c4a096bf0
Bug 741693 - Cleanup; change instance variable to private. r=cpeterson
2012-04-17 11:34:13 -04:00
Kartikaya Gupta
a9f2029abe
Bug 741693 - Move the Axis prefs from GeckoLayerClient into PanZoomController. r=Cwiiis
2012-04-17 11:33:42 -04:00
Kartikaya Gupta
3392d13abf
Bug 741693 - Make the zoom animation frames preffable. r=Cwiiis
2012-04-17 11:33:19 -04:00
Kartikaya Gupta
aeabc8adc5
Bug 742115 - Make the java panning constants preffable; original patch stolen from :joe. r=Cwiiis
2012-04-13 10:29:14 -04:00
Kartikaya Gupta
0c3d6554d6
Bug 718463 - Force redraw when an animation is interrupted by user touch. r=Cwiiis
2012-04-11 15:46:02 -05:00
Kartikaya Gupta
5ed6f42383
Bug 742019 - Rewrite how we handle touch events so we don't break panning, and don't introduce unnecessary latency. r=wesj
2012-04-07 03:09:26 -04:00
Kartikaya Gupta
b698486bcd
Bug 737577 - Set the display port before bouncing rather than after. r=Cwiiis
2012-04-02 17:14:33 -04:00
Kartikaya Gupta
db8c7af5aa
Bug 730899 - Drop sending of scroll events where we don't actually scroll. r=Cwiiis
2012-04-01 02:42:35 -04:00
Kartikaya Gupta
9ec788a1a2
Bug 729528 - Add an alternate code path (selected at compile-time) to render low-res content while panning. r=Cwiiis
2012-03-26 13:15:50 -04:00
Kartikaya Gupta
67cc872ecd
Bug 735612 - Add missing synchronization around viewport manipulation. r=Cwiiis
2012-03-15 10:40:55 -04:00
Kartikaya Gupta
6184d9e2af
Back out 89833e1b3016 (bug 707571) as it is broken with the new maple rewrite. r=backout
2012-03-13 17:11:28 -04:00
Kartikaya Gupta
77b962c05b
Bug 735248 - Add a BOUNCE state to track bounce animations, and disable redraws while we are in a bounce. r=Cwiiis
2012-03-13 12:14:28 -04:00
Kartikaya Gupta
c86ed3f64b
Bug 732564 - Back out part of e48d0ef50574 (bug 728614) as we need to clamp the viewport when animations are aborted. r=Cwiiis
2012-03-12 12:03:38 -04:00
Benoit Girard
fb79343e79
Merge mc->Maple
2012-03-09 11:13:30 -05:00
Benoit Girard
6f2d963b78
Merge heads
2012-03-07 11:11:20 -05:00
Benoit Girard
0f0612ce47
Merge mc->Maple
2012-03-07 11:10:45 -05:00
Benoit Girard
8461970bfc
Bug 733184 - Remove more logging from widget. r=pcwalton
2012-03-05 19:58:18 -05:00
Jeff Muizelaar
69adeff0bf
Bug 732576. make getViewTransform fast. r=kats
...
This removes the logging, locking and allocations from getViewTransform.
This reduces the time spent from an median of 6.3ms to 0.061ms
We use a new scheme where the view transform is immutable and the member
variable containing it is atomically overwritten. So we may get a slightly old
view transform but this won't be a problem.
2012-03-02 14:31:27 -05:00
Kartikaya Gupta
134e9fec76
Merge m-c
2012-02-27 15:06:35 -05:00
Brad Lassey
a2ce1ffae0
bug 707571 - user-scalable property of viewport meta tag is ignored r=mbrubeck
...
--HG--
extra : rebase_source : a4a4d9fb6c61ff91ffb917c1e25b78a6266d7347
2012-03-08 11:55:19 -05:00
Brad Lassey
e5dfd48da7
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
6cfc3f9a14
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
8b73b3586d
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
b66a0f8126
Merge with mozilla-central
2012-02-16 18:06:54 -08:00
Kartikaya Gupta
5bf0a60702
Bug 727565 - Fix new compiler warnings for javac 1.7. r=bnicholson
2012-02-15 22:55:47 -05:00
Patrick Walton
0a26b4f1af
Don't render while pinching. Reduces jank and makes zooming easier to debug.
2012-02-13 22:48:00 -08:00
Chris Peterson
2b16473d8c
Bug 715251 - Reduce overscroll distance from 75% to 30% of viewport. r=kats
2012-02-24 10:29:44 -08:00
Kartikaya Gupta
f30d0a8fdf
Bug 720538 - Remove unused functions and variables. r=wesj
2012-02-02 09:16:25 -05:00
Kartikaya Gupta
0d71217f68
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
b77f272a4f
Bug 720538 - Clarify and fix incorrect rect bottom calculation. r=wesj
2012-02-02 09:11:50 -05:00
Brad Lassey
b40529d9ac
bug 723243 - SimpleScaleGestureDetector uses getActionIndex(), which is not available in eclair r=wesj
2012-02-01 15:03:46 -05:00
James Willcox
2c9bdd0776
Bug 721741 - Add support for Flash on Android 4.0+ r=blassey
2012-01-31 09:40:58 -05:00
Boris Zbarsky
ba7cdb3f07
Backed out changeset e57ddd9fdd5e (bug 721741) because it breaks Android builds.
2012-01-31 23:38:35 -05:00
James Willcox
fefd8c5bca
Bug 721741 - Add support for Flash on Android 4.0+ r=blassey
2012-01-31 09:40:58 -05:00
Ed Morley
e835f7000f
Backout b87113ff33ff (bug 721741) for Android build failures
2012-01-31 16:19:00 +00:00
James Willcox
dce57d4892
Bug 721741 - Add support for Flash on Android 4.0+ r=blassey
2012-01-31 09:40:58 -05:00
Kartikaya Gupta
3c728e0df5
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
86f8eaf7f6
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
cc5c466908
Bug 711071 - Check for scrollable in velocity calculations. r=pcwalton
2012-01-28 18:23:45 +01:00
Wes Johnston
a8f3aaa251
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
93c69a88ea
Bug 603008 - Android widget multitouch implementation. r=blassey,kats
2012-01-25 01:31:33 +01:00
James Willcox
58885a7434
Bug 706684 - Add a small fix for Froyo devices r=kats
2012-01-24 11:02:40 -05:00
Patrick Walton
531d034ae2
Bug 706684 - Implement a simpler scale gesture listener on Android. r=Cwiiis
2012-01-23 19:18:24 -08:00
Kartikaya Gupta
5a06a2ef87
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
bba3f13c7d
Bug 716863 - Check for overscroll and bounce after iframes are flung. r=Cwiiis
2012-01-21 12:44:29 -05:00
James Willcox
8f71c6ffa1
Bug 707439 - Fix Flash plugin positioning
...
--HG--
extra : rebase_source : aaa41297d293ffde1aabe5632ade6c416b4d541f
2012-01-18 10:41:35 -05:00
Chris Peterson
b944efc1d0
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
1f86815dbc
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
f1e536ebfc
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
ce96329935
Bug 722439 - Fix compiler warnings using javac 1.7. r=Cwiiis
2012-02-14 15:28:27 -05:00
Brad Lassey
f3003384c6
bug 725538 - make creating GeckoEvents sane r=kats
2012-02-08 23:18:27 -08:00
Kartikaya Gupta
fbe4beb181
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
bb00f53b94
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
d22dffb0d4
Bug 716673 - Fix up copyright and authors. r=pcwalton
2012-01-10 10:06:11 -05:00
Kartikaya Gupta
81aff56834
Bug 716673 - Pull out duplicated hard-coded strings as static variables. r=pcwalton
2012-01-10 10:06:10 -05:00
Kartikaya Gupta
62222ffa24
Bug 716673 - Split out the Axis class from the PanZoomController. r=pcwalton
2012-01-10 10:06:08 -05:00
Kartikaya Gupta
e8461b8c51
Bug 716673 - Split out a SubdocumentScrollHelper from the PanZoomController. r=pcwalton
2012-01-10 10:06:05 -05:00
Kartikaya Gupta
47ca55bbb5
Bug 716673 - Encapsulate the fling state in Axis. r=pcwalton
2012-01-10 10:06:03 -05:00
Kartikaya Gupta
2d917018bf
Bug 716673 - Encapsulate the velocity, locked, and disableSnap variables in Axis. r=pcwalton
2012-01-10 10:06:01 -05:00
Kartikaya Gupta
8a93b6f933
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
b927405877
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
78ab72ec22
Bug 716673 - Collapse unused WAITING_TO_SNAP and SNAPPING flingstates into STOPPED. r=pcwalton
2012-01-10 10:05:55 -05:00
Kartikaya Gupta
ce93ccd236
Bug 716673 - Completely encapsulate Axis variables lastTouchPos and touchPos. r=pcwalton
2012-01-10 10:05:53 -05:00
Kartikaya Gupta
37b010df8a
Bug 716673 - Completely encapsulate Axis variable firstTouchPos. r=pcwalton
2012-01-10 10:05:51 -05:00
Kartikaya Gupta
cbc7a48aaa
Bug 716673 - Refactor some more duplicated code from the track() functions. r=pcwalton
2012-01-10 10:05:49 -05:00
Kartikaya Gupta
373c8a080c
Bug 716673 - Refactor some repeated code into a startTouch method. r=pcwalton
2012-01-10 10:05:48 -05:00
Kartikaya Gupta
8f611820ca
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
6c1ed49ef0
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
149e223a11
Bug 716673 - Refactor some code that sends messages to Gecko. r=pcwalton
2012-01-10 10:05:42 -05:00
Kartikaya Gupta
67cf21cbba
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
200596fe4c
Bug 714874 - Fix Java warnings about redundant casts. r=pcwalton r=dougt a=dougt
2012-01-06 12:21:49 -08:00
Chris Peterson
c4b1d936b9
Bug 714874 - Fix some Java warnings. r=dougt a=dougt
2012-01-05 10:49:33 -08:00
Kartikaya Gupta
bbadda79a3
Bug 715164 - Guard against another race condition in PZC. r=pcwalton
2012-01-05 18:13:25 -08:00
Kartikaya Gupta
5a5c192707
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
463cb8081a
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
7cc92e7c95
Bug 714711 - A few unused local variables in PanZoomController.onScaleEnd [r=kats]
2012-01-03 12:19:49 -05:00
Kartikaya Gupta
a36adcca90
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
dfec4981df
Backed out bug 709492 due to breakage with external urls. r=backout
2011-12-30 18:47:06 -05:00
Kartikaya Gupta
05156a1fb5
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
84ee2f57dd
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
20d96ebe14
Bug 712386 - Limit how much zoom can be applied. r=Cwiiis
2011-12-27 00:56:57 -05:00
Geoff Lankow
c46fa0acaf
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