Closed Bug 1325155 Opened 8 years ago Closed 8 years ago

Convert text selection events to bundle events

Categories

(GeckoView :: General, defect)

All
Android
defect
Not set
normal

Tracking

(firefox53 fixed)

RESOLVED FIXED
mozilla53
Tracking Status
firefox53 --- fixed

People

(Reporter: jchen, Assigned: jchen)

References

Details

Attachments

(2 files)

No description provided.
Add overrides for Object methods in GeckoBundle, and redirected them to the corresponding methods in SimpleArrayMap. For equals, a custom implementation is used because the equals implementation in SimpleArrayMap had bugs across different support library versions.
Attachment #8820828 - Flags: review?(s.kaspari)
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.
Attachment #8820829 - Flags: review?(s.kaspari)
Comment on attachment 8820828 [details] [diff] [review] 1. Add Object overrides for GeckoBundle (v1) Review of attachment 8820828 [details] [diff] [review]: ----------------------------------------------------------------- I wonder if it makes sense to add a junit4 test for GeckoBundle? Should be pretty straight forward. ::: mobile/android/geckoview/src/main/java/org/mozilla/gecko/util/GeckoBundle.java @@ +663,5 @@ > + } > + > + @Override // Object > + public String toString() { > + return mMap.toString(); Ah, that's a good thing to have. I recently wrote this locally too, for debugging. > public String toString() { > return "GeckoBundle[" + mMap.toString() + "]"; > }
Attachment #8820828 - Flags: review?(s.kaspari) → review+
Attachment #8820829 - Flags: review?(s.kaspari) → review+
(In reply to Sebastian Kaspari (:sebastian) from comment #3) > Comment on attachment 8820828 [details] [diff] [review] > 1. Add Object overrides for GeckoBundle (v1) > > Review of attachment 8820828 [details] [diff] [review]: > ----------------------------------------------------------------- > > I wonder if it makes sense to add a junit4 test for GeckoBundle? Should be > pretty straight forward. Filed bug 1326101; would be a nice intern project.
Pushed by nchen@mozilla.com: https://hg.mozilla.org/integration/mozilla-inbound/rev/58e189739172 1. Add Object overrides for GeckoBundle; r=sebastian https://hg.mozilla.org/integration/mozilla-inbound/rev/2a43ca16d1c1 2. Convert text selection events to bundle events; r=sebastian
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 53
Product: Firefox for Android → GeckoView
Target Milestone: Firefox 53 → mozilla53
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: