Closed
Bug 981261
Opened 11 years ago
Closed 11 years ago
Rename nsEventListener* to mozilla::EventListener*
Categories
(Core :: DOM: Events, defect)
Core
DOM: Events
Tracking
()
RESOLVED
FIXED
mozilla30
People
(Reporter: masayuki, Assigned: masayuki)
References
Details
Attachments
(6 files)
19.15 KB,
patch
|
smaug
:
review+
|
Details | Diff | Splinter Review |
39.36 KB,
patch
|
smaug
:
review+
|
Details | Diff | Splinter Review |
5.12 KB,
patch
|
smaug
:
review+
|
Details | Diff | Splinter Review |
32.58 KB,
patch
|
smaug
:
review+
|
Details | Diff | Splinter Review |
191.11 KB,
patch
|
smaug
:
review+
|
Details | Diff | Splinter Review |
13.24 KB,
patch
|
smaug
:
review+
|
Details | Diff | Splinter Review |
No description provided.
Assignee | ||
Comment 1•11 years ago
|
||
Attachment #8390293 -
Flags: review?(bugs)
Assignee | ||
Comment 2•11 years ago
|
||
nsListenerStruct is used only in nsEventListenerManager and inline method only for it.
So, for making clearer the fact, let's move it into nsEventListenerManager since the header file is exported and referred by a lot of developers who are not familiar with nsEventLinsterManager.
Then, the name can be simple. I think it's actual instance of event listener. Therefore, I name it just "Listener". See also part.6. Part.6 patch renames the variables of Listener, nsIJSListener, nsIDOMEventListener and EventListenerHolder for easy to read.
Attachment #8390295 -
Flags: review?(bugs)
Assignee | ||
Comment 3•11 years ago
|
||
nsListenerType defines the type of nsEventListenerManager::Listener (nsListenerStruct). I.e., it's clearer if it's defined in nsEventListenerManager::Listener. I don't change the each value name because I have no better idea. "Listener" is redundant to me, though.
Attachment #8390296 -
Flags: review?(bugs)
Assignee | ||
Comment 4•11 years ago
|
||
One of our rules of this series of bugs is, class representing DOM class should be mozilla::dom::<name in standard spec> and the others should be mozilla::foo.
So, mozilla::dom::EventListenerFlags should be moved to mozilla:: for the consistency with other classes.
Attachment #8390298 -
Flags: review?(bugs)
Assignee | ||
Comment 5•11 years ago
|
||
This also fixes some include hell :-(
Attachment #8390299 -
Flags: review?(bugs)
Assignee | ||
Comment 6•11 years ago
|
||
Let's use specific variable names for the similar types. By this, other developers can distinguish without checking the definition.
Attachment #8390300 -
Flags: review?(bugs)
Updated•11 years ago
|
Attachment #8390293 -
Flags: review?(bugs) → review+
Comment 7•11 years ago
|
||
Comment on attachment 8390295 [details] [diff] [review]
part.2 Rename nsListenerStruct to nsEventListenerManager::Listener
>+ nsIJSEventListener* GetJSListener() const {
{ to the next line
Attachment #8390295 -
Flags: review?(bugs) → review+
Updated•11 years ago
|
Attachment #8390296 -
Flags: review?(bugs) → review+
Updated•11 years ago
|
Attachment #8390298 -
Flags: review?(bugs) → review+
Updated•11 years ago
|
Attachment #8390300 -
Flags: review?(bugs) → review+
Comment 8•11 years ago
|
||
Comment on attachment 8390299 [details] [diff] [review]
part.5 Rename nsEventListenerManager to mozilla::EventListenerManager
Don't know why HTMLSelectElement.cpp needs BasicEvents.h, but I assume it is ok.
Same with #include "js/Tracer.h" in nsXULElement.h.
Attachment #8390299 -
Flags: review?(bugs) → review+
Assignee | ||
Comment 9•11 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/b604111dc9d6
https://hg.mozilla.org/integration/mozilla-inbound/rev/95a8536c310a
https://hg.mozilla.org/integration/mozilla-inbound/rev/4166d9d87a05
https://hg.mozilla.org/integration/mozilla-inbound/rev/e0b529437af0
https://hg.mozilla.org/integration/mozilla-inbound/rev/84f11c295ae3
https://hg.mozilla.org/integration/mozilla-inbound/rev/f3f677c84bf2
Comment 10•11 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/b604111dc9d6
https://hg.mozilla.org/mozilla-central/rev/95a8536c310a
https://hg.mozilla.org/mozilla-central/rev/4166d9d87a05
https://hg.mozilla.org/mozilla-central/rev/e0b529437af0
https://hg.mozilla.org/mozilla-central/rev/84f11c295ae3
https://hg.mozilla.org/mozilla-central/rev/f3f677c84bf2
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla30
You need to log in
before you can comment on or make changes to this bug.
Description
•