summaryrefslogtreecommitdiffstats
path: root/webkit/media/webinbandtexttrack_impl.h
blob: b6b191b4e7e0ae1e534408451b4b0c975d2de6f1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
// Copyright (c) 2013 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.

#ifndef WEBKIT_MEDIA_WEBINANDTEXTTRACK_IMPL_H_
#define WEBKIT_MEDIA_WEBINANDTEXTTRACK_IMPL_H_

#include "third_party/WebKit/public/platform/WebString.h"
#include "third_party/WebKit/Source/WebKit/chromium/public/WebInbandTextTrack.h"

namespace webkit_media {

class WebInbandTextTrackImpl : public WebKit::WebInbandTextTrack {
 public:
  WebInbandTextTrackImpl(Kind kind,
                         const WebKit::WebString& label,
                         const WebKit::WebString& language,
                         int index);
  virtual ~WebInbandTextTrackImpl();

  virtual void setClient(WebKit::WebInbandTextTrackClient* client);
  virtual WebKit::WebInbandTextTrackClient* client();

  virtual void setMode(Mode mode);
  virtual Mode mode() const;

  virtual Kind kind() const;
  virtual bool isClosedCaptions() const;

  virtual WebKit::WebString label() const;
  virtual WebKit::WebString language() const;
  virtual bool isDefault() const;

  virtual int textTrackIndex() const;

 private:
  WebKit::WebInbandTextTrackClient* client_;
  Mode mode_;
  Kind kind_;
  WebKit::WebString label_;
  WebKit::WebString language_;
  int index_;
  DISALLOW_COPY_AND_ASSIGN(WebInbandTextTrackImpl);
};

}  // namespace webkit_media

#endif  // WEBKIT_MEDIA_WEBINANDTEXTTRACK_IMPL_H_