blob: 99504757e26faf22c4f2c440385f8204fe34124b [file] [log] [blame]
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "third_party/blink/renderer/core/html/track/audio_track_list.h"
namespace blink {
AudioTrackList::~AudioTrackList() = default;
AudioTrackList::AudioTrackList(HTMLMediaElement& media_element)
: TrackListBase<AudioTrack>(&media_element) {}
bool AudioTrackList::HasEnabledTrack() const {
for (unsigned i = 0; i < length(); ++i) {
if (AnonymousIndexedGetter(i)->enabled())
return true;
}
return false;
}
const AtomicString& AudioTrackList::InterfaceName() const {
return event_target_names::kAudioTrackList;
}
} // namespace blink