Closed
Bug 1489933
Opened 7 years ago
Closed 7 years ago
Make GeckoDisplay and PanZoomController constructors protected
Categories
(GeckoView :: General, enhancement, P5)
GeckoView
General
Tracking
(geckoview62 wontfix, firefox-esr60 wontfix, firefox62 wontfix, firefox63 wontfix, firefox64 fixed)
RESOLVED
FIXED
mozilla64
People
(Reporter: paul, Assigned: paul, Mentored)
Details
Attachments
(2 files, 1 obsolete file)
|
3.00 KB,
patch
|
snorp
:
review+
|
Details | Diff | Splinter Review |
|
2.98 KB,
patch
|
snorp
:
review+
|
Details | Diff | Splinter Review |
I'm working on a Servo implementation of the GeckoView and I'd like to extend the GeckoDisplay class, but can't as its constructor is private.
Comment 1•7 years ago
|
||
Probably enough to make the constructor protected?
Mentor: nchen
Keywords: good-first-bug
| Assignee | ||
Comment 2•7 years ago
|
||
Yes.
I can fix this. Changing the constructor declaration to protected should fix it.
Updated•7 years ago
|
Assignee: nobody → jai2mad
Status: NEW → ASSIGNED
Comment 5•7 years ago
|
||
Thanks for your work Jai! Could you create a patch file and upload it to Bugzilla? (You can follow some examples here, https://developer.mozilla.org/en-US/docs/Mozilla/Mercurial/Queues#How_to_use_MQ_for_Mozilla_development). You should also flag the patch for review (by changing the review flag to "?" in the attachment details page, and you can use my email as the reviewer).
Thanks!
Flags: needinfo?(jai2mad)
Updated•7 years ago
|
Priority: -- → P5
Updated•7 years ago
|
status-firefox62:
--- → wontfix
status-firefox63:
--- → wontfix
status-firefox64:
--- → affected
status-firefox-esr60:
--- → wontfix
status-geckoview62:
--- → wontfix
Summary: Make GeckoDisplay constructor public → Make GeckoDisplay constructor protected
| Assignee | ||
Comment 6•7 years ago
|
||
Jai, do you have time to make a patch?
(In reply to Paul Rouget [:paul] from comment #6)
> Jai, do you have time to make a patch?
Hey sorry Paul, I tried hard, but couldn't understand how to make the patch for the fix.
Flags: needinfo?(jai2mad)
| Assignee | ||
Updated•7 years ago
|
Summary: Make GeckoDisplay constructor protected → Make GeckoDisplay and PanZoomController constructors protected
| Assignee | ||
Comment 8•7 years ago
|
||
Assignee: jai2mad → paul
Attachment #9007978 -
Attachment is obsolete: true
Attachment #9012813 -
Flags: review?(snorp)
| Assignee | ||
Comment 9•7 years ago
|
||
This patch is similar to bug 1492771. So far, these are the only changes we need to start supporting Servo on top of GeckoView.
Comment on attachment 9012813 [details] [diff] [review]
v1
Review of attachment 9012813 [details] [diff] [review]:
-----------------------------------------------------------------
I really don't think this is useful at all for GeckoView consumers, since neither object can be constructed by the app right now, but I guess it doesn't hurt much either. Looks good with nits.
::: mobile/android/geckoview/src/main/java/org/mozilla/gecko/gfx/PanZoomController.java
@@ +148,5 @@
> return handleMouseEvent(event.getActionMasked(), event.getEventTime(),
> event.getMetaState(), x, y, event.getButtonState());
> }
>
> + /* package */ protected PanZoomController(final LayerSession session) {
Remove /* package */, same as the other case.
::: mobile/android/geckoview/src/main/java/org/mozilla/geckoview/GeckoDisplay.java
@@ +16,5 @@
> */
> public class GeckoDisplay {
> private final GeckoSession session;
>
> + /* package */ protected GeckoDisplay(final GeckoSession session) {
Remove /* package */ since you're making it protected. We put /* package */ as a convention because the only way to get package visibility is to not have any modifier at all.
Attachment #9012813 -
Flags: review?(snorp) → review+
| Assignee | ||
Comment 11•7 years ago
|
||
| Assignee | ||
Comment 12•7 years ago
|
||
Thank you.
I addressed your comments.
Ready to land.
| Assignee | ||
Updated•7 years ago
|
Attachment #9013239 -
Flags: review?(snorp)
Attachment #9013239 -
Flags: review?(snorp) → review+
Comment 13•7 years ago
|
||
Pushed by jwillcox@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/66fcf985374f
Make GeckoDisplay and PanZoomController constructors protected r=snorp
Comment 14•7 years ago
|
||
| bugherder | ||
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 64
Updated•7 years ago
|
Product: Firefox for Android → GeckoView
Updated•7 years ago
|
Keywords: good-first-bug
Target Milestone: Firefox 64 → mozilla64
You need to log in
before you can comment on or make changes to this bug.
Description
•