Bug 1675326 - part1 : move webvtt related files into dom/media/webvtt. r=bryce

Differential Revision: https://phabricator.services.mozilla.com/D96103
This commit is contained in:
alwu 2020-11-09 15:47:07 +00:00
parent e8112d4ccd
commit 9d84da2096
15 changed files with 23 additions and 12 deletions

View File

@ -7,7 +7,7 @@
#include "mozilla/dom/HTMLTrackElement.h"
#include "mozilla/dom/Element.h"
#include "mozilla/dom/HTMLMediaElement.h"
#include "WebVTTListener.h"
#include "mozilla/dom/WebVTTListener.h"
#include "mozilla/LoadInfo.h"
#include "mozilla/StaticPrefs_media.h"
#include "mozilla/dom/HTMLTrackElementBinding.h"

View File

@ -215,11 +215,6 @@ EXPORTS.mozilla.dom += [
"MediaDevices.h",
"MediaStreamError.h",
"MediaStreamTrack.h",
"TextTrack.h",
"TextTrackCue.h",
"TextTrackCueList.h",
"TextTrackList.h",
"TextTrackRegion.h",
"VideoPlaybackQuality.h",
"VideoStreamTrack.h",
"VideoTrack.h",
@ -289,11 +284,6 @@ UNIFIED_SOURCES += [
"QueueObject.cpp",
"ReaderProxy.cpp",
"SeekJob.cpp",
"TextTrack.cpp",
"TextTrackCue.cpp",
"TextTrackCueList.cpp",
"TextTrackList.cpp",
"TextTrackRegion.cpp",
"Tracing.cpp",
"VideoFrameContainer.cpp",
"VideoPlaybackQuality.cpp",
@ -302,7 +292,6 @@ UNIFIED_SOURCES += [
"VideoTrack.cpp",
"VideoTrackList.cpp",
"VideoUtils.cpp",
"WebVTTListener.cpp",
"XiphExtradata.cpp",
]

View File

@ -253,4 +253,6 @@ void TextTrackCue::SetActive(bool aActive) {
}
}
#undef LOG
} // namespace mozilla::dom

View File

@ -4,6 +4,24 @@
# 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 += [
"TextTrack.h",
"TextTrackCue.h",
"TextTrackCueList.h",
"TextTrackList.h",
"TextTrackRegion.h",
"WebVTTListener.h",
]
UNIFIED_SOURCES += [
"TextTrack.cpp",
"TextTrackCue.cpp",
"TextTrackCueList.cpp",
"TextTrackList.cpp",
"TextTrackRegion.cpp",
"WebVTTListener.cpp",
]
XPIDL_SOURCES += [
"nsIWebVTTListener.idl",
"nsIWebVTTParserWrapper.idl",
@ -24,3 +42,5 @@ EXTRA_JS_MODULES += [
]
XPCSHELL_TESTS_MANIFESTS += ["tests/xpcshell.ini"]
FINAL_LIBRARY = "xul"