gecko-dev/dom/media/mediacontrol/moz.build
alwu 9977c552ff Bug 1571493 - part1 : implement 'ContentMediaController' which is used to notify 'MediaControlKeysEvent' for controlled media. r=chunmin
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
2020-01-03 01:29:38 +00:00

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'