summaryrefslogtreecommitdiff
path: root/Source/WebCore/html/track/AudioTrackList.h
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebCore/html/track/AudioTrackList.h')
-rw-r--r--Source/WebCore/html/track/AudioTrackList.h20
1 files changed, 9 insertions, 11 deletions
diff --git a/Source/WebCore/html/track/AudioTrackList.h b/Source/WebCore/html/track/AudioTrackList.h
index 9104b6bfd..0c637ddc3 100644
--- a/Source/WebCore/html/track/AudioTrackList.h
+++ b/Source/WebCore/html/track/AudioTrackList.h
@@ -10,10 +10,10 @@
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
- * THIS SOFTWARE IS PROVIDED BY APPLE COMPUTER, INC. ``AS IS'' AND ANY
+ * THIS SOFTWARE IS PROVIDED BY APPLE INC. ``AS IS'' AND ANY
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
- * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE COMPUTER, INC. OR
+ * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
@@ -23,8 +23,7 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef AudioTrackList_h
-#define AudioTrackList_h
+#pragma once
#if ENABLE(VIDEO_TRACK)
@@ -34,11 +33,11 @@ namespace WebCore {
class AudioTrack;
-class AudioTrackList : public TrackListBase {
+class AudioTrackList final : public TrackListBase {
public:
- static PassRefPtr<AudioTrackList> create(HTMLMediaElement* owner, ScriptExecutionContext* context)
+ static Ref<AudioTrackList> create(HTMLMediaElement* owner, ScriptExecutionContext* context)
{
- return adoptRef(new AudioTrackList(owner, context));
+ return adoptRef(*new AudioTrackList(owner, context));
}
virtual ~AudioTrackList();
@@ -46,10 +45,10 @@ public:
AudioTrack* item(unsigned index) const;
AudioTrack* lastItem() const { return item(length() - 1); }
- void append(PassRefPtr<AudioTrack>);
+ void append(Ref<AudioTrack>&&);
// EventTarget
- virtual EventTargetInterface eventTargetInterface() const override;
+ EventTargetInterface eventTargetInterface() const override;
private:
AudioTrackList(HTMLMediaElement*, ScriptExecutionContext*);
@@ -57,5 +56,4 @@ private:
} // namespace WebCore
-#endif
-#endif
+#endif // ENABLE(VIDEO_TRACK)