Replace the naming for media control keys event related classes with more generic name
Categories
(Core :: Audio/Video: Playback, task, P2)
Tracking
()
Tracking | Status | |
---|---|---|
firefox72 | --- | fixed |
People
(Reporter: alwu, Assigned: alwu)
References
Details
Attachments
(3 files)
Now there are some classes using the naming of MediaHardwareKeysXXX
. However, the media control key events can come from either physical devices, such as a keyboard or a headset, or from virtual interface, such as SMTC-based visual controller on Windows or MPRIS-based visual controller on Linux.
Therefore, we would be better to rename all those MediaHardwareKeysXXX
to MediaControlKeysXXX
in order to represent a generic concept.
Assignee | ||
Comment 1•5 years ago
|
||
The media control key events can come from either physical devices, such as a keyboard or a headset, or from virtual interface, such as SMTC-based visual controller on Windows or MPRIS-based visual controller on Linux.
Therefore, we would be better to rename all those MediaHardwareKeysXXX to MediaControlKeysXXX in order to represent a generic concept.
Assignee | ||
Comment 2•5 years ago
|
||
File's name should reflect what the class is inside the file.
Assignee | ||
Comment 3•5 years ago
|
||
Per [1], we should follow our coding style.
[1] https://developer.mozilla.org/en-US/docs/Mozilla/Developer_guide/Coding_Style#CC_practices
Comment 5•5 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/653caae61e4f
https://hg.mozilla.org/mozilla-central/rev/22402bfc5b48
https://hg.mozilla.org/mozilla-central/rev/9be89065895f
Comment 6•5 years ago
|
||
bugherder landing |
Description
•