Commit Graph

174 Commits

Author SHA1 Message Date
Kartikaya Gupta
dbc0077c31 Bug 879011 - Convert nsIntPoint instances in InputData.h to types with units. r=kentuckyfriedtakahe 2013-06-11 18:13:11 -04:00
Kartikaya Gupta
c78c6af9f4 Bug 785929 - Kill FrameMetrics.mContentRect. r=kentuckyfriedtakahe 2013-06-11 09:46:51 -04:00
Kartikaya Gupta
8125a1cac7 Bug 879004 - Convert mDisplayport and mCriticalDisplayport in FrameMetrics to CSSRects. r=BenWa 2013-06-10 09:05:42 -04:00
Kartikaya Gupta
a470c3e0a4 Bug 877728 - Make the screen render offset a ScreenPoint. r=BenWa 2013-06-03 10:00:02 -04:00
Kartikaya Gupta
94f09001ff Bug 877728 - Convert the page rect passed to SetFirstPaintViewport to LayerIntRect. r=BenWa 2013-06-03 09:58:34 -04:00
Kartikaya Gupta
3bec007d2f Bug 877728 - Convert a couple of nsInt* variables to LayerInt*. r=BenWa 2013-06-03 09:58:07 -04:00
Kartikaya Gupta
d45ced53de Bug 877728 - Convert the scroll offset out-param to SyncViewportInfo from nsIntPoint to ScreenPoint. r=BenWa
Also deletes a bunch of dead code, and makes some variables local
variables instead of member variables since they are only used in
a single function and don't need to be persisted.
2013-06-03 09:53:32 -04:00
Kartikaya Gupta
83f51d55ac Bug 877728 - Convert some CSS rects passed to Java from gfx::Rect to CSSRect. r=BenWa 2013-06-03 09:52:44 -04:00
Chris Peterson
b0637c312a Bug 877503 - Add MOZ_FINAL to some Android classes to fix gcc 4.7 warnings-as-errors. blanket-r=ehsan rs=tbsaunde 2013-05-30 11:26:02 -07:00
Kartikaya Gupta
e10ad61242 Bug 797615 - Guard against isBrowserContentDocumentDisplayed returning true prematurely. r=Cwiiis
Prior to this change, isBrowserContentDocumentDisplayed returned false
from the time that the isFirstPaint flag was set in layout to the time
that layout handed off the rendered document to the compositor. However
the way the function is used meant that it needs to return false until
the compositor actually composites the "first-paint" rendering,
otherwise other events can sneak in and run before the compositor. This
patch moves the tracking for the flag into GeckoLayerClient so that it
can be queried and modified synchronously from both the Gecko thread in
browser.js and the compositor thread in setFirstPaintViewport.
2013-05-30 09:55:23 -04:00
David Zbarsky
66e862daca Bug 864206 - Use dom::Touch instead of nsIDOMTouch where possible r=Ms2ger 2013-05-17 13:17:53 -07:00
Kartikaya Gupta
a9d47b89e9 Bug 866184 - Update SyncViewportInfo and SyncFrameMetrics to take a gfx::Point instead of floats. r=BenWa 2013-05-01 14:12:08 -04:00
Kartikaya Gupta
082f9b2c93 Bug 839641 - Add a syncFrameMetrics code path to push viewport changes from APZC to Java. r=Cwiiis, BenWa 2013-04-26 13:26:39 -04:00
Kartikaya Gupta
7efe0d8d53 Bug 839641 - Send touch events and prevent-default notifications to APZC. r=Cwiiis 2013-04-26 13:24:28 -04:00
Chris Lord
b365c94dfd 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
9cccb1d7a4 Backed out changeset 684a5ca2efb7 (bug 858969) for Android M3 failures.
CLOSED TREE
2013-04-25 10:56:54 -04:00
Chris Lord
e0579b7ab8 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
Kartikaya Gupta
cc503ad686 Bug 860940 - Add static factory-style methods to create AndroidGeckoEvent instances in widget code. r=cpeterson 2013-04-17 17:39:12 -04:00
Kartikaya Gupta
1cc2789fc5 Bug 859951 - Split MotionEvent's action into mask and index in Java rather than in JNI code. r=wesj 2013-04-17 17:39:11 -04:00
Kartikaya Gupta
e29772e27b Bug 859951 - Refactor the code to convert MOTION_EVENT GeckoEvents to nsTouchEvent instances. r=wesj 2013-04-17 17:39:10 -04:00
Chris Peterson
0a2d8d2c6c Bug 852704 - Part 2: Fix JNI crash caused by DomKeyLocation's change from int to enum. r=blassey 2013-04-09 15:56:03 -07:00
ext:(%20brianecker%40gmail.com)
2e5b8bf902 Bug 852704: Created Java enums to encapsulate data formerly stored in int constants. r=cpeterson 2013-04-08 13:21:52 -07:00
Jim Chen
641aee515e Bug 842013 - Buffer IME key events and dispatch them at once; r=cpeterson 2013-03-29 10:54:01 -04:00
Jim Chen
f3ae465a41 Bug 842013 - Don't add extra modifiers to key press events; r=cpeterson 2013-03-29 10:54:01 -04:00
Kartikaya Gupta
8f7129220c Bug 853366 - Clean up activity/app lifecycle events. r=mfinkle,cpeterson 2013-03-26 14:05:10 -04:00
Chris Lord
e74007c62d Bug 852526 - Make sure the compositor starts unpaused and with a size. r=kats
This changes compositor creation so that we can specify an initial size and
makes sure the local variable in nsWindow reflects that the compositor starts
unpaused.
2013-03-20 22:45:07 +00:00
Kartikaya Gupta
be83be40c1 Bug 851180 - Ensure AndroidGeckoEvent::mAckNeeded is always initialized. r=gbrown 2013-03-14 21:19:24 +01:00
Kartikaya Gupta
56c949e416 Bug 846774 - Replace the sync event with an ack flag on events. r=cpeterson 2013-03-10 22:43:30 +00:00
Chris Lord
a20f8323fe Bug 716403 - Offset fixed layers so the toolbar doesn't obscure them. r=nrc,kats
Offset fixed layers in the compositor so that the toolbar in Firefox for Android
doesn't obscure them. This does not affect layout, so input on the elements in
said layers will appear broken.
2013-03-07 10:17:33 +00:00
Ryan VanderMeulen
8cf664a621 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
695bae5cc3 Bug 716403 - Offset fixed layers so the toolbar doesn't obscure them. r=nrc,kats
Offset fixed layers in the compositor so that the toolbar in Firefox for Android
doesn't obscure them. This does not affect layout, so input on the elements in
said layers will appear broken.
2013-03-06 16:55:59 +00:00
Ed Morley
caab8e796b Backed out changeset cacb9f3ee44d (bug 840693) 2013-03-04 14:37:43 +00:00
Anthony Jones
bce8f8e813 Bug 840693 - Change to using gfx:: types in AsyncPanZoomController; r=cjones 2013-03-04 13:25:26 +13:00
Ryan VanderMeulen
75acd49b0e 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
077631a00a Bug 716403 - Offset fixed layers so the toolbar doesn't obscure them. r=nrc,kats
Offset fixed layers in the compositor so that the toolbar in Firefox for Android
doesn't obscure them. This does not affect layout, so input on the elements in
said layers will appear broken.
2013-03-01 15:46:33 +00:00
Kartikaya Gupta
ba94268f7d Bug 841503 - Delete a bunch of non-OMTC android codepaths. r=BenWa,snorp 2013-02-19 12:35:38 -05:00
Kartikaya Gupta
3da21dae58 Bug 817134 - Remove the low-res screenshotting code. r=blassey 2012-12-15 10:43:52 -05:00
Jim Chen
574c528cbf Bug 818501 - Get composition styles from styles returned by the system; r=cpeterson 2012-12-06 14:35:59 -05:00
Jim Chen
d94f4cd8a0 Bug 811755 - Buffer and coalesce IME selection and text changes; r=cpeterson 2012-12-05 11:09:56 -05:00
Chris Lord
b85091b04e Bug 783368 - Send the correct display port when rendering low precision. r=kats,bgirard
When doing a low precision update, send the display-port instead of the
critical display port so that more appropriate cancelling decisions can be
made.
2012-11-21 22:34:19 +00:00
Ehsan Akhgari
a1ca146c7c Backed out 11 changesets (bug 783368) because of build bustage on a CLOSED TREE
Backed out changeset 2bc4310263c4 (bug 783368)
Backed out changeset a35c83a8d99d (bug 783368)
Backed out changeset afb9b2a661ba (bug 783368)
Backed out changeset 3926f510f9be (bug 783368)
Backed out changeset 9d1fe200ff87 (bug 783368)
Backed out changeset b6e4f88f5730 (bug 783368)
Backed out changeset bc53f7dba7c6 (bug 783368)
Backed out changeset 1948fa2fccc1 (bug 783368)
Backed out changeset 9af163388fd1 (bug 783368)
Backed out changeset 7a2256e1aa7c (bug 783368)
Backed out changeset 4da1958a9885 (bug 783368)
2012-11-21 14:57:02 -05:00
Chris Lord
9dafa73eb6 Bug 783368 - Send the correct display port when rendering low precision. r=kats,bgirard
When doing a low precision update, send the display-port instead of the
critical display port so that more appropriate cancelling decisions can be
made.
2012-11-21 19:16:52 +00:00
Brad Lassey
af0e436dd0 bug 812594 - PushLocalFrame in AutoLocalJNIFrame::Push taking more than 100ms when called from AndroidGeckoLayerClient::ProgressiveUpdateCallback on a Samsung Galaxy Q r=kats
--HG--
extra : rebase_source : 4aba48c1c6c784f098ffa9bcc05006a054f9ab14
2012-11-16 12:13:57 -08:00
Kartikaya Gupta
e2acdfca77 Bug 810933 - Fix regression in bug 809199 caused by incorrect order of parameters. r=Cwiiis 2012-11-12 18:44:59 -08:00
Kartikaya Gupta
489650a19f Bug 809199 - Update the getDisplayPort JNI-called function to take an ImmutableViewportMetrics. r=Cwiiis 2012-11-07 11:47:08 -05:00
Jim Chen
5eb185a057 Bug 805162 - b. Redefine Java to Gecko IME events to align with Android IME design; r=blassey 2012-11-01 16:11:02 -04:00
Ed Morley
403e0dfe0c Backout 533faa3c50ed, 718abc1bd4ad, af2d5272c06b, ad5554e1345d, c9ef1b41b829, d3a825311d11, 0a51bcb3eb9e, a01a327e8ec4, 973b0ed30b8b, 39851bbcfaa1 & a92d2d2a3b0e (bug 805162), d4884aab5ce6, 06fcbaf40cb4, daccc3fe7c70, 881eb2a2906e, 76232441ae06, 01ae34fa1b3f & 5f405fc4e323 (bug 783092), a03d8d4db1c2, 49beb3801192, 174634554a97, 0bd27e755a83, 19e8f151ca67, a6604e038bc0, ed3b8237e76e & 082cf8d72554 (bug 785945) for bustage or conflicting with backout of said bustage on a CLOSED TREE 2012-11-01 00:16:35 +00:00
Jim Chen
92ad86f0fb Bug 805162 - b. Redefine Java to Gecko IME events to align with Android IME design; r=blassey 2012-10-31 17:35:31 -04:00
Chris Lord
5bf1712318 Bug 749063 - Replace shouldAbort with generic callback for progressive updates. r=bgirard
Replace ShouldAbortProgressiveUpdate with ProgressiveUpdateCallback, that
provides more contextual information about how the update will get used.
2012-10-15 09:33:34 +01:00
Chris Lord
1169964027 Bug 794130 - Fix intermittent crash in AndroidBridge::ShouldAbortProgressiveUpdate. r=blassey
I messed up the JNI code in AndroidJavaWrappers for this function. It was
always returning false and sometimes crashing.
2012-10-05 15:41:03 +01:00