Closed
Bug 1432487
Opened 8 years ago
Closed 8 years ago
Change all listeners/delegates to be FooDelegate
Categories
(GeckoView :: General, enhancement)
GeckoView
General
Tracking
(firefox60 fixed)
RESOLVED
FIXED
mozilla60
| Tracking | Status | |
|---|---|---|
| firefox60 | --- | fixed |
People
(Reporter: snorp, Assigned: droeh)
References
(Blocks 1 open bug)
Details
Attachments
(1 file)
|
56.24 KB,
patch
|
snorp
:
review+
jchen
:
review+
|
Details | Diff | Splinter Review |
We used to use Listener for things that just observed events and Delegate for things that had predicates or other two-way methods. We should just use Delegate for all of these types since it seems inevitable that they will have that type of use some day.
Comment 1•8 years ago
|
||
Is there an example of us needing to change a listener to a delegate? I think the Listener/Delegate naming follows general Android conventions.
| Reporter | ||
Comment 2•8 years ago
|
||
(In reply to Jim Chen [:jchen] [:darchons] from comment #1)
> Is there an example of us needing to change a listener to a delegate? I
> think the Listener/Delegate naming follows general Android conventions.
NavigationListener has onLoadUri() which is not just a listener.
| Assignee | ||
Comment 3•8 years ago
|
||
Renames *Listener to *Delegate.
Assignee: nobody → droeh
Attachment #8954499 -
Flags: review?(snorp)
Attachment #8954499 -
Flags: review?(nchen)
Comment 4•8 years ago
|
||
Comment on attachment 8954499 [details] [diff] [review]
Rename GeckoView Listeners to Delegates
Review of attachment 8954499 [details] [diff] [review]:
-----------------------------------------------------------------
Might as well rename the methods here as well. Also please fix tests as well.
Attachment #8954499 -
Flags: review?(nchen) → review+
| Reporter | ||
Updated•8 years ago
|
Attachment #8954499 -
Flags: review?(snorp) → review+
| Assignee | ||
Comment 5•8 years ago
|
||
(In reply to Jim Chen [:jchen] [:darchons] from comment #4)
> Comment on attachment 8954499 [details] [diff] [review]
> Rename GeckoView Listeners to Delegates
>
> Review of attachment 8954499 [details] [diff] [review]:
> -----------------------------------------------------------------
>
> Might as well rename the methods here as well. Also please fix tests as well.
Which method names? I renamed all of the *Listener* methods (and variables) I could find; the only stuff intentionally left using "Listener" in the name is BundleEventListener related.
Comment 6•8 years ago
|
||
I meant what we talked about, renaming delegate methods to "onFoo" and "onFooRequest".
Pushed by droeh@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/2b86e947b043
Rename all *Listeners to *Delegates and corresponding minor changes. r=snorp,jchen
Comment 8•8 years ago
|
||
Backed out changeset for Android build bustages on several files that were renamed.
Push with failures: https://treeherder.mozilla.org/#/jobs?repo=mozilla-inbound&revision=2b86e947b043483e84d79c59772b7856609f5818&filter-resultStatus=testfailed&filter-resultStatus=busted&filter-resultStatus=exception&selectedJob=164998448
Failure log: https://treeherder.mozilla.org/logviewer.html#?job_id=164998448&repo=mozilla-inbound&lineNumber=30955
Backout link: https://hg.mozilla.org/integration/mozilla-inbound/rev/23ed1a55d8768db3509ff7c291c0dd38a71e935a
Flags: needinfo?(droeh)
Pushed by droeh@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/c9ed97a0de02
Rename all *Listeners to *Delegates and corresponding minor changes. r=snorp,jchen
Comment 10•8 years ago
|
||
| bugherder | ||
Status: NEW → RESOLVED
Closed: 8 years ago
status-firefox60:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → Firefox 60
| Assignee | ||
Updated•8 years ago
|
Flags: needinfo?(droeh)
Updated•7 years ago
|
Product: Firefox for Android → GeckoView
Updated•7 years ago
|
Target Milestone: Firefox 60 → mozilla60
You need to log in
before you can comment on or make changes to this bug.
Description
•