mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-10 11:55:49 +00:00
9977c552ff
Implement class `ContentMediaController` that is used to dispatch media controls key events to those media which would like to be controlled. `ContentMediaController` is inherited from two classes, `MediaControlAgent` and `MediaControlKeysEventHandler`. The former one is used for controlled media, the controlled media can register itself to `MediaControlAgent` to receive events and do corresponding operations depending on the event type. The latter one is used to handle events sent from chrome process and dispatch them to the corresponding controlled media. Differential Revision: https://phabricator.services.mozilla.com/D57570 --HG-- extra : moz-landing-system : lando
38 lines
934 B
Python
38 lines
934 B
Python
# vim: set filetype=python:
|
|
# This Source Code Form is subject to the terms of the Mozilla Public
|
|
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
EXPORTS.mozilla.dom += [
|
|
'AudioFocusManager.h',
|
|
'ContentMediaController.h',
|
|
'MediaControlKeysEvent.h',
|
|
'MediaControlKeysManager.h',
|
|
'MediaController.h',
|
|
'MediaControlService.h',
|
|
'MediaControlUtils.h',
|
|
'PlaybackController.h',
|
|
]
|
|
|
|
EXPORTS.ipc += [
|
|
'MediaControlIPC.h',
|
|
]
|
|
|
|
UNIFIED_SOURCES += [
|
|
'AudioFocusManager.cpp',
|
|
'ContentMediaController.cpp',
|
|
'MediaControlKeysEvent.cpp',
|
|
'MediaControlKeysManager.cpp',
|
|
'MediaController.cpp',
|
|
'MediaControlService.cpp',
|
|
'MediaControlUtils.cpp',
|
|
'PlaybackController.cpp',
|
|
]
|
|
|
|
include('/ipc/chromium/chromium-config.mozbuild')
|
|
|
|
if CONFIG['ENABLE_TESTS']:
|
|
DIRS += ['tests/gtest']
|
|
|
|
FINAL_LIBRARY = 'xul'
|