| 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 56%
|
| copy from Source/WebKit/chromium/src/SourceBufferPrivateImpl.h
|
| copy to Source/WebKit/chromium/src/InbandTextTrackPrivateImpl.h
|
| index da04d718813abbc93bfab0bab81b2cbb913c6583..89de8072266c55d47684b14d6288755f7fb60e19 100644
|
| --- a/Source/WebKit/chromium/src/SourceBufferPrivateImpl.h
|
| +++ b/Source/WebKit/chromium/src/InbandTextTrackPrivateImpl.h
|
| @@ -28,34 +28,53 @@
|
| * 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 "core/platform/graphics/SourceBufferPrivate.h"
|
| +#include "core/platform/graphics/InbandTextTrackPrivate.h"
|
| +#include "WebInbandTextTrackClient.h"
|
| #include <wtf/OwnPtr.h>
|
| -#include <wtf/PassOwnPtr.h>
|
| +
|
| +namespace WebCore {
|
| +class InbandTextTrackPrivateClient;
|
| +}
|
|
|
| namespace WebKit {
|
|
|
| -class WebSourceBuffer;
|
| +class WebInbandTextTrack;
|
|
|
| -class SourceBufferPrivateImpl : public WebCore::SourceBufferPrivate {
|
| +class InbandTextTrackPrivateImpl : public WebCore::InbandTextTrackPrivate,
|
| + public WebInbandTextTrackClient {
|
| public:
|
| - explicit SourceBufferPrivateImpl(PassOwnPtr<WebSourceBuffer>);
|
| - virtual ~SourceBufferPrivateImpl() { }
|
| + explicit InbandTextTrackPrivateImpl(WebInbandTextTrack*);
|
| + virtual ~InbandTextTrackPrivateImpl();
|
| +
|
| + // InbandTextTrackPrivate methods.
|
| + void setClient(WebCore::InbandTextTrackPrivateClient*);
|
| +
|
| + virtual void setMode(Mode);
|
| + 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;
|
| +
|
| + // WebInbandTextTrackClient methods.
|
| + virtual void addWebVTTCue(double start,
|
| + double end,
|
| + const WebString& id,
|
| + const WebString& content,
|
| + const WebString& settings);
|
|
|
| private:
|
| - OwnPtr<WebSourceBuffer> m_sourceBuffer;
|
| + OwnPtr<WebInbandTextTrack> m_track;
|
| };
|
|
|
| -
|
| }
|
|
|
| #endif
|
|
|