Chromium Code Reviews| Index: Source/WebKit/chromium/src/InbandTextTrackPrivateImpl.h |
| diff --git a/Source/WebKit/chromium/src/SourceBufferPrivateImpl.h b/Source/WebKit/chromium/src/InbandTextTrackPrivateImpl.h |
| similarity index 64% |
| copy from Source/WebKit/chromium/src/SourceBufferPrivateImpl.h |
| copy to Source/WebKit/chromium/src/InbandTextTrackPrivateImpl.h |
| index 5546ac30701ace4299f7149ac55876ed5e754c47..baa79df2eae0047698f709c9d5f5858ca1955a17 100644 |
| --- a/Source/WebKit/chromium/src/SourceBufferPrivateImpl.h |
| +++ b/Source/WebKit/chromium/src/InbandTextTrackPrivateImpl.h |
| @@ -28,34 +28,44 @@ |
| * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| */ |
| -#ifndef SourceBufferPrivateImpl_h |
| -#define SourceBufferPrivateImpl_h |
| +#ifndef InbandTextTrackPrivateImpl_h |
| +#define InbandTextTrackPrivateImpl_h |
| -#include "SourceBufferPrivate.h" |
| -#include <wtf/OwnPtr.h> |
| -#include <wtf/PassOwnPtr.h> |
| +#include "InbandTextTrackPrivate.h" |
| + |
| +namespace WebCore { |
| +class InbandTextTrackPrivateClient; |
| +} |
| namespace WebKit { |
| -class WebSourceBuffer; |
| +class WebInbandTextTrack; |
| -class SourceBufferPrivateImpl : public WebCore::SourceBufferPrivate { |
| +class InbandTextTrackPrivateImpl : public WebCore::InbandTextTrackPrivate { |
| public: |
| - explicit SourceBufferPrivateImpl(PassOwnPtr<WebSourceBuffer>); |
| - virtual ~SourceBufferPrivateImpl() { } |
| + explicit InbandTextTrackPrivateImpl(WebInbandTextTrack* track); |
|
acolwell GONE FROM CHROMIUM
2013/04/17 00:13:56
nit: remove param name.
Matthew Heaney (Chromium)
2013/04/18 23:15:42
Done.
|
| + virtual ~InbandTextTrackPrivateImpl(); |
| + |
| + // InbandTextTrackPrivate methods. |
| + void setClient(WebCore::InbandTextTrackPrivateClient* client); |
|
acolwell GONE FROM CHROMIUM
2013/04/17 00:13:56
nit: ditto
Matthew Heaney (Chromium)
2013/04/18 23:15:42
Done.
|
| + WebCore::InbandTextTrackPrivateClient* client(); |
| + |
| + virtual void setMode(Mode mode); |
|
acolwell GONE FROM CHROMIUM
2013/04/17 00:13:56
nit: ditto
Matthew Heaney (Chromium)
2013/04/18 23:15:42
Done.
|
| + virtual InbandTextTrackPrivate::Mode mode() const; |
| - // SourceBufferPrivate methods. |
| - virtual PassRefPtr<WebCore::TimeRanges> buffered(); |
| - virtual void append(const unsigned char* data, unsigned length); |
| - virtual void abort(); |
| - virtual bool setTimestampOffset(double); |
| - virtual void removedFromMediaSource(); |
| + virtual Kind kind() const; |
| + virtual bool isClosedCaptions(); |
| + |
| + virtual AtomicString label() const; |
| + virtual AtomicString language() const; |
| + virtual bool isDefault() const; |
| + |
| + virtual int textTrackIndex() const; |
| private: |
| - OwnPtr<WebSourceBuffer> m_sourceBuffer; |
| + WebInbandTextTrack* m_track; |
|
acolwell GONE FROM CHROMIUM
2013/04/17 00:13:56
Shouldn't this be OwnPtr<WebInbandTextTrack> so th
Matthew Heaney (Chromium)
2013/04/18 23:15:42
Done.
|
| }; |
| - |
| } |
| #endif |