Closed Bug 1291373 Opened 8 years ago Closed 8 years ago

[geckoview] Remove JavaPanZoomController (JPZ) from mobile/android

Categories

(GeckoView :: General, defect)

defect
Not set
normal

Tracking

(firefox51 fixed)

RESOLVED FIXED
Tracking Status
firefox51 --- fixed

People

(Reporter: nalexander, Assigned: rbarker)

References

Details

Attachments

(6 files, 9 obsolete files)

145.34 KB, patch
snorp
: review+
Details | Diff | Splinter Review
13.76 KB, patch
snorp
: review+
mcomella
: feedback+
Details | Diff | Splinter Review
43.73 KB, patch
botond
: review+
snorp
: review+
Details | Diff | Splinter Review
121.18 KB, patch
jchen
: review+
Details | Diff | Splinter Review
56.62 KB, patch
snorp
: review+
Details | Diff | Splinter Review
24.49 KB, patch
snorp
: review+
Details | Diff | Splinter Review
This is step 0 for the Java changes. It is absolutely crucial that this land as soon as possible. This allows to separate Tab/Tabs from Fennec (tracked by Bug 1258470) and unblocks almost all of the other Frontend work.
Work in progress. Not sure of everything that will need to be cut but this is a start.
Assignee: nobody → rbarker
Attachment #8780258 - Flags: review?(snorp) → review+
Comment on attachment 8780259 [details] [diff] [review] 0002-Bug-1291373-geckoview-part-2-Clean-up-ActionBarTextSelection-to-remove-unsupported-code-r-snorp-16081113-00ca943.patch Review of attachment 8780259 [details] [diff] [review]: ----------------------------------------------------------------- Looks good to me, but I really don't know that code. Mike can you look?
Attachment #8780259 - Flags: review?(snorp)
Attachment #8780259 - Flags: review?(michael.l.comella)
Attachment #8780259 - Flags: review+
Comment on attachment 8780260 [details] [diff] [review] 0003-Bug-1291373-geckoview-part-3-Remove-MOZ_ANDROID_APZ-r-botond-snorp-16081113-ae74550.patch Review of attachment 8780260 [details] [diff] [review]: ----------------------------------------------------------------- Woo!
Attachment #8780260 - Flags: review?(snorp) → review+
Comment on attachment 8780260 [details] [diff] [review] 0003-Bug-1291373-geckoview-part-3-Remove-MOZ_ANDROID_APZ-r-botond-snorp-16081113-ae74550.patch Review of attachment 8780260 [details] [diff] [review]: ----------------------------------------------------------------- I assume the timing of the JPZ removal (riding the trains in 51) has been discussed with :kats. Codewise, r=me. ::: mobile/android/chrome/content/browser.js @@ +3788,5 @@ > setScrollPositionClampingScrollPortSize(scrollPortWidth, scrollPortHeight); > }, > > setViewport: function(aViewport) { > + return; Consider removing these functions altogether as a follow-up? @@ -4696,5 @@ > Services.obs.addObserver(this, "Gesture:SingleTap", false); > Services.obs.addObserver(this, "Gesture:ClickInZoomedView", false); > > - if (!AppConstants.MOZ_ANDROID_APZ) { > - Services.obs.addObserver(this, "Gesture:CancelTouch", false); Remove the corresponding cases in handleUserEvent() (and functions they call if those functions have no other callers) as a follow-up? ::: widget/android/nsWindow.cpp @@ -3715,5 @@ > - " \"maxZoom\": %f }", > - aConstraints->mAllowZoom ? "true" : "false", > - aConstraints->mAllowDoubleTapZoom ? "true" : "false", > - aConstraints->mMinZoom.scale, aConstraints->mMaxZoom.scale); > - obsServ->NotifyObservers(doc, "zoom-constraints-updated", Whatever handles this can probably be removed too. (Feel free to leave all these suggestions to a follow-up bug.)
Attachment #8780260 - Flags: review?(botond) → review+
(In reply to Botond Ballo [:botond] from comment #15) > Comment on attachment 8780260 [details] [diff] [review] > 0003-Bug-1291373-geckoview-part-3-Remove-MOZ_ANDROID_APZ-r-botond-snorp- > 16081113-ae74550.patch > > Review of attachment 8780260 [details] [diff] [review]: > ----------------------------------------------------------------- ... > Whatever handles this can probably be removed too. (Feel free to leave all > these suggestions to a follow-up bug.) I'll just add a patch to this bug that cleans all this up since I'm going to wait for :kats to get back to give him the option to look over these patches.
Removed more code.
Attachment #8780731 - Attachment is obsolete: true
Attachment #8780731 - Flags: review?(snorp)
Attachment #8780732 - Flags: review?(snorp)
Blocks: 1294857
(In reply to Botond Ballo [:botond] from comment #15) > I assume the timing of the JPZ removal (riding the trains in 51) has been > discussed with :kats. I don't think I've said this explicitly yet but I'm happy to remove it in 51.
Comment on attachment 8780729 [details] [diff] [review] 0005-Bug-1291373-geckoview-part-5-Remove-Layer-and-all-derived-classes-r-snorp-16081215-ea37ade.patch Review of attachment 8780729 [details] [diff] [review]: ----------------------------------------------------------------- ::: gfx/layers/opengl/CompositorOGL.cpp @@ +684,5 @@ > > mPixelsPerFrame = width * height; > mPixelsFilled = 0; > > +#ifdef MOZ_WIDGET_ANDROID Whoops.
Attachment #8780729 - Flags: review?(snorp) → review+
Comment on attachment 8780732 [details] [diff] [review] 0006-Bug-1291373-geckoview-part-6-Remove-unused-functions-from-browser.js-r-snorp-16081215-34515ac.patch Review of attachment 8780732 [details] [diff] [review]: ----------------------------------------------------------------- Big improvement
Attachment #8780732 - Flags: review?(snorp) → review+
Comment on attachment 8780261 [details] [diff] [review] 0004-Bug-1291373-geckoview-part-4-Remove-GeckoEvent-and-AndroidGeckoEvent-r-jchen-16081113-ef81d33.patch Review of attachment 8780261 [details] [diff] [review]: ----------------------------------------------------------------- ::: widget/android/AndroidBridge.h @@ +527,5 @@ > } > > #define NS_ANDROIDBRIDGE_CID \ > +{ 0x1989da17, 0x50be, 0x425a, \ > + { 0x9e, 0x66, 0xd6, 0xbb, 0xc8, 0xf5, 0x29, 0x8c } } Don't need to change CID. ::: widget/android/nsAppShell.cpp @@ -628,5 @@ > } > return nullptr; > } > > -class nsAppShell::LegacyGeckoEvent : public Event Remove LegacyGeckoEvent in nsAppShell.h as well ::: widget/android/nsIAndroidBridge.idl @@ +31,5 @@ > nsIBrowserTab getBrowserTab(in int32_t tabId); > nsIUITelemetryObserver getUITelemetryObserver(); > }; > > +[scriptable, uuid(d01b89bc-15d5-4988-86ba-1ca18abd9ffd)] We don't bump IIDs anymore.
Attachment #8780261 - Flags: review?(nchen) → review+
(In reply to James Willcox (:snorp) (jwillcox@mozilla.com) from comment #13) > Looks good to me, but I really don't know that code. Mike can you look? fwiw, I don't think anyone currently developing fennec knows this code (I've only made checkstyle changes in this file) but I'll do my best to check for any issues.
Comment on attachment 8780259 [details] [diff] [review] 0002-Bug-1291373-geckoview-part-2-Clean-up-ActionBarTextSelection-to-remove-unsupported-code-r-snorp-16081113-00ca943.patch Review of attachment 8780259 [details] [diff] [review]: ----------------------------------------------------------------- I don't know enough of the underlying code or what the effects of removing the JavaPanZoomController should be to properly review this code. That being said, the changes seem consistent and I see no red flags. Sorry for blocking. ::: mobile/android/base/java/org/mozilla/gecko/ActionBarTextSelection.java @@ +9,4 @@ > import org.mozilla.gecko.menu.GeckoMenu; > import org.mozilla.gecko.menu.GeckoMenuItem; > import org.mozilla.gecko.text.TextSelection; > +//import org.mozilla.gecko.util.FloatUtils; nit: Just rm it
Attachment #8780259 - Flags: review?(michael.l.comella) → feedback+
(In reply to Michael Comella (:mcomella) [not actively working on fennec: expect slow responses] from comment #25) > Comment on attachment 8780259 [details] [diff] [review] > 0002-Bug-1291373-geckoview-part-2-Clean-up-ActionBarTextSelection-to-remove- > unsupported-code-r-snorp-16081113-00ca943.patch > > Review of attachment 8780259 [details] [diff] [review]: > ----------------------------------------------------------------- > ::: mobile/android/base/java/org/mozilla/gecko/ActionBarTextSelection.java > @@ +9,4 @@ > > import org.mozilla.gecko.menu.GeckoMenu; > > import org.mozilla.gecko.menu.GeckoMenuItem; > > import org.mozilla.gecko.text.TextSelection; > > +//import org.mozilla.gecko.util.FloatUtils; > > nit: Just rm it Sorry, I caught that after I uploaded the patch but didn't upload the fix patch.
Pushed by rbarker@mozilla.com: https://hg.mozilla.org/integration/mozilla-inbound/rev/268f3aea336d [geckoview] part 1, Remove JavaPanZoomController (JPZ) from mobile/android r=snorp https://hg.mozilla.org/integration/mozilla-inbound/rev/19222e86fb30 [geckoview] part 2, Clean up ActionBarTextSelection to remove unsupported code r=snorp,mcomella https://hg.mozilla.org/integration/mozilla-inbound/rev/2986bfd73d46 [geckoview] part 3, Remove MOZ_ANDROID_APZ r=botond,snorp https://hg.mozilla.org/integration/mozilla-inbound/rev/2fc2a6e9b9fc [geckoview] part 4, Remove GeckoEvent and AndroidGeckoEvent r=jchen https://hg.mozilla.org/integration/mozilla-inbound/rev/e25807db3f89 [geckoview] part 5, Remove Layer and all derived classes r=snorp https://hg.mozilla.org/integration/mozilla-inbound/rev/98a1df2388af [geckoview] part 6, Remove unused functions from browser.js r=snorp
Blocks: 1297850
Blocks: 1297853
No longer blocks: 1297853
Depends on: 1297853
Blocks: 1337325
Blocks: 1415307
Product: Firefox for Android → GeckoView
Target Milestone: Firefox 51 → ---
Blocks: 1825695
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: