Commit Graph
18 Commits
Author SHA1 Message Date
Jim Chen 3e3643da35 Bug 1337053 - Fix optString conversions; r=sebastian
JSONObject.optString defaults to empty string ("") if the key doesn't
exist, whereas GeckoBundle.getString defaults to null if the key doesn't
exist. So the correct conversion for `json.optString("foo")` should be
`bundle.getString("foo", "")`. This patch fixes the wrong conversions
from before. In case we did default to null, this patch gets rid of the
redundant null second argument to GeckoBundle.getString.
2017-02-08 19:50:33 -05: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
Andrzej Hunt e3c23ed365 Bug 1312114 - Post: cleanup imports r=ahunt
MozReview-Commit-ID: 7KaG5fUN4XQ
2016-10-21 14:49:27 -07:00
Andrzej Hunt b87a46c199 Bug 1312114 - Pre: Move getDrawable() from (geckoview) BitmapUtils into (fennec) MenuBitmapUtils to allow support library access r=nalexander
In order to use VectorDrawable's in this code we need to use AppCompatDrawableManager, which
is in the v7 appcompat support library. GeckoView cannot access that library, hence
we should move getDrawable() into the main Fennec jar in order to let us use
VectorDrawable's.

Similarly we need to move DrawableUtil for the same reasons.

(This commit only takes care of moving the code, the following code adds VectorDrawable support.)

MozReview-Commit-ID: CE2yTMLgBlJ
2016-10-21 15:51:38 -07:00
Kartikaya Gupta 6741b7f6c3 Bug 1235513 - Remove the old Fennec SelectionHandler now that it has been replaced by the AccessibleCaret code in platform. r=snorp
MozReview-Commit-ID: FkOmXznyESM
2016-10-06 08:07:02 -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
Julian_Chu 78bcc8e4bd Bug 1296748 - Do not unregister if target does not exist; r=jchen
in create(), only register listener if anchorHandle exits.
in opposite side, only unregister listener in same condition.

MozReview-Commit-ID: HHN23YcmwS
2016-08-29 23:56:41 +09:00
Randall Barker f7633d6863 Bug 1291373 - [geckoview] part 2, Clean up ActionBarTextSelection to remove unsupported code r=snorp,mcomella 2016-08-16 14:33:43 -07:00
Randall Barker 91a74382de Bug 1291373 - [geckoview] part 1, Remove JavaPanZoomController (JPZ) from mobile/android r=snorp 2016-08-16 14:33:43 -07: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 75c82cf492 Bug 1267383 - Followup Telemetry from Bug 1257843, Text Selection Probe, r=sebastian 2016-04-26 04:09:21 -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
Mark Capella 85dfaecc30 Bug 1245831 - The action bar animation is overlapping with the three dot menu. r=sebastian
MozReview-Commit-ID: J0QXMhfZWt7
2016-04-21 13:11:46 +02:00
Michael Comella cad83a23ef Bug 1258789 - Add literal catch & a few others that don't break for WhitespaceAround. r=grisha
MozReview-Commit-ID: 1En0xuxT4md
2016-04-12 18:16:16 -07:00
Michael Comella f74f532420 Bug 1258789 - Add WhitespaceAround for ASSIGN token. r=grisha
MozReview-Commit-ID: 6IOIatuHuYW
2016-04-12 18:07:33 -07:00
Michael Comella fb562480f3 Bug 1258794 - Add trailing whitespace checkstyle check & fix issues. r=nalexander
MozReview-Commit-ID: IUslNabcTHO
2016-04-06 10:08:46 -07: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