Commit Graph
14 Commits
Author SHA1 Message Date
Jim Chen ac6788618c Bug 1367079 - 1. Update TextSelection implementations for GeckoView; r=snorp
Make TextSelection implementations not depend on GeckoApp. Instead, make
them use GeckoView's EventDispatcher directly for communicating with
Gecko.

MozReview-Commit-ID: EygAt3D9HMI
2017-09-14 17:50:58 -04:00
Dylan Roeh b750f538e4 Bug 1325021 - Reduce reliance on GeckoAppShell.getGeckoInterface to solve some custom tabs crashes. r=jchen 2017-05-08 08:48:16 -05:00
Randall Barker c955f482b1 Bug 1335895 - Android GeckoView Dynamic Toolbar Version 3 r=botond,dvander,jchen,kats
This version of the Dynamic Toolbar moves the animation of the toolbar
from the Android UI thread to the compositor thread. All animation for
showing and hiding the toolbar are done with the compositor and a static
snapshot of the real toolbar.

MozReview-Commit-ID: BCe8zpbkWQt
2017-04-20 15:15:14 -07:00
Jim Chen 5153adf650 Bug 1330411 - 1. Convert ActionBarHandler observers to events; r=sebastian
Convert observers in ActionBarHandler.js to events that go through
WindowEventDispatcher. "TextSelection:Get" now replies through the
callback interface rather than a "TextSelection:Data" event. The patch
also adds new lazy-loading events in browser.js to replace the
lazy-loading observers that ActionBarHandler relied on.
2017-01-25 18:53:58 -05:00
Jim Chen d166100d35 Bug 1325155 - 2. Convert text selection events to bundle events; r=sebastian
Convert the "TextSelection:*" events to use BundleEventListener /
GeckoBundle, in both ActionBarTextSelection.java and
FloatingToolbarTextSelection.java. UI events are used because the
listeners require the UI thread. The "TextSelection:Update" listeners
are removed because the event is no longer sent by ActionBarHandler.
2016-12-28 17:49:29 -05:00
Ting-Yu Lin 84aa62a324 Bug 1307100 - Add handlesOffset only if height > 0. r=sebastian
Per bug 1307100 comment 3, we use "height equals to 0" to hide the floating
toolbar so we only need to adjust the handlesOffset when height > 0.

MozReview-Commit-ID: AdIOxIFUrI
2016-10-05 13:47:11 +08:00
Kartikaya Gupta de4a2eeb8e Bug 1307098 - Fix the positioning of the floating toolbar so that it doesn't overlap the selection and carets. r=rbarker
MozReview-Commit-ID: SY9c4X4QUf
2016-10-04 13:24:22 -04:00
Dylan Roeh 45a079c5d5 Bug 1294821 - De-singletonize EventDispatcher and make it application-specific. r=jchen 2016-09-27 11:07:24 -05:00
Sebastian Kaspari 0cbf1cb67e Bug 1266369 - FloatingToolbarTextSelection: Add an offset to the content rect to avoid overlap. r=ahunt
MozReview-Commit-ID: HNkTOAS7toJ
2016-06-27 13:47:32 +02:00
Sebastian Kaspari f7c0045b25 Bug 1266369 - (Pre) FloatingToolbarTextSelection: Add final keyword where feasible. r=ahunt
MozReview-Commit-ID: DF7qmGXMfEy
2016-06-27 11:51:32 +02:00
billel 7e0933ff1e Bug 1271577 - FloatingToolbarTextSelection: Remove Log.w() call. r=sebastian
MozReview-Commit-ID: CQPeFsjJmfk
2016-05-23 09:56:04 +02:00
Mark Capella 7b8ffadad2 Bug 1262916 - Option to add custom search engine should disappear when site is added, r=margaret, florian 2016-05-14 16:43:51 -04:00
Mark Capella c53eb37cad Bug 1257843 - Probe to measure when user enters text selection UI, r=sebastian 2016-04-22 16:44:47 -04:00
Sebastian Kaspari fa6ca75c16 Bug 1171110 - Add support for floating text selection toolbar for Android 6.0+. r=capella
MozReview-Commit-ID: 7FLGgrT5gDg
2016-03-14 11:57:05 +01:00