dom/media/MediaTrack.cpp
author Mozilla Releng Treescript <release+treescript@mozilla.org>
Mon, 15 Aug 2022 19:07:19 +0000
changeset 627160 8daac2c12a85331b56cdd2cb529c3640a5891ac0
parent 555890 8a260892acc935e4f0911b38029e69e8178c06c3
permissions -rw-r--r--
no bug - Bumping Firefox l10n changesets r=release a=l10n-bump DONTBUILD cy -> 11dc6cece08022461ebd616da398a2dc03430335 da -> 0c1d47bb58d0435930beb6a793cf75fc89860817 eo -> e5fec79ec6ed567797d798fda81038b1bc9a3f74 es-AR -> 9591596e4714f52f230f0485c116d9ed531a300a es-CL -> 9c12968bd2288bc02ae063c76708195fa8084050 fr -> 08a4eeacee0e4f033d577bac023fa2381e679163 is -> bf00f6f8e848f86c343a679980295eb0d18b4225 it -> 4203ff2a522c196c0cf9d98e0afb0d75067723ba kab -> ca47a37b6f865245ec83c1810713f858bfe6971c nn-NO -> dcc3d4dc9cecf62e0a3dee31220e87becf3a3b80 pl -> a41d1f6045a4bd834c6adb764038cbaf6d134c80 pt-PT -> 5573d7bbba94743f50e5c6e68d99560d9e7d489a si -> 5ccceb0deeaeb6998514f6922cca831667aa5fe4 sl -> 6f4658dd982fcb0ad1aa9077e07fb95d465d1196

/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* vim:set ts=2 sw=2 et tw=78: */
/* 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/. */

#include "MediaTrack.h"
#include "AudioTrack.h"
#include "MediaTrackList.h"
#include "VideoTrack.h"

namespace mozilla::dom {

MediaTrack::MediaTrack(nsIGlobalObject* aOwnerGlobal, const nsAString& aId,
                       const nsAString& aKind, const nsAString& aLabel,
                       const nsAString& aLanguage)
    : DOMEventTargetHelper(aOwnerGlobal),
      mId(aId),
      mKind(aKind),
      mLabel(aLabel),
      mLanguage(aLanguage) {}

MediaTrack::~MediaTrack() = default;

NS_IMPL_CYCLE_COLLECTION_INHERITED(dom::MediaTrack, DOMEventTargetHelper, mList)

NS_IMPL_ADDREF_INHERITED(dom::MediaTrack, DOMEventTargetHelper)
NS_IMPL_RELEASE_INHERITED(dom::MediaTrack, DOMEventTargetHelper)
NS_INTERFACE_MAP_BEGIN_CYCLE_COLLECTION(dom::MediaTrack)
NS_INTERFACE_MAP_END_INHERITING(DOMEventTargetHelper)

void MediaTrack::SetTrackList(MediaTrackList* aList) { mList = aList; }

}  // namespace mozilla::dom