OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2011, 2012 Apple Inc. All rights reserved. | 2 * Copyright (C) 2011, 2012 Apple Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...skipping 16 matching lines...) Expand all Loading... |
27 #define TextTrackList_h | 27 #define TextTrackList_h |
28 | 28 |
29 #include "bindings/v8/ScriptWrappable.h" | 29 #include "bindings/v8/ScriptWrappable.h" |
30 #include "core/dom/EventListener.h" | 30 #include "core/dom/EventListener.h" |
31 #include "core/dom/EventTarget.h" | 31 #include "core/dom/EventTarget.h" |
32 #include "core/platform/Timer.h" | 32 #include "core/platform/Timer.h" |
33 #include "wtf/PassRefPtr.h" | 33 #include "wtf/PassRefPtr.h" |
34 #include "wtf/RefCounted.h" | 34 #include "wtf/RefCounted.h" |
35 #include "wtf/Vector.h" | 35 #include "wtf/Vector.h" |
36 | 36 |
37 #include <algorithm> | |
38 | |
39 namespace WebCore { | 37 namespace WebCore { |
40 | 38 |
41 class HTMLMediaElement; | 39 class HTMLMediaElement; |
42 class TextTrack; | 40 class TextTrack; |
43 class TextTrackList; | 41 class TextTrackList; |
44 | 42 |
45 class TextTrackList : public RefCounted<TextTrackList>, public ScriptWrappable,
public EventTarget { | 43 class TextTrackList : public RefCounted<TextTrackList>, public ScriptWrappable,
public EventTarget { |
46 public: | 44 public: |
47 static PassRefPtr<TextTrackList> create(HTMLMediaElement* owner, ScriptExecu
tionContext* context) | 45 static PassRefPtr<TextTrackList> create(HTMLMediaElement* owner, ScriptExecu
tionContext* context) |
48 { | 46 { |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
96 Vector<RefPtr<TextTrack> > m_addTrackTracks; | 94 Vector<RefPtr<TextTrack> > m_addTrackTracks; |
97 Vector<RefPtr<TextTrack> > m_elementTracks; | 95 Vector<RefPtr<TextTrack> > m_elementTracks; |
98 Vector<RefPtr<TextTrack> > m_inbandTracks; | 96 Vector<RefPtr<TextTrack> > m_inbandTracks; |
99 | 97 |
100 int m_dispatchingEvents; | 98 int m_dispatchingEvents; |
101 }; | 99 }; |
102 | 100 |
103 } // namespace WebCore | 101 } // namespace WebCore |
104 | 102 |
105 #endif | 103 #endif |
OLD | NEW |