OLD | NEW |
| (Empty) |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef WEBKIT_RENDERER_MEDIA_WEBINBANDTEXTTRACK_IMPL_H_ | |
6 #define WEBKIT_RENDERER_MEDIA_WEBINBANDTEXTTRACK_IMPL_H_ | |
7 | |
8 #include "third_party/WebKit/public/platform/WebString.h" | |
9 #include "third_party/WebKit/public/web/WebInbandTextTrack.h" | |
10 | |
11 namespace webkit_media { | |
12 | |
13 class WebInbandTextTrackImpl : public WebKit::WebInbandTextTrack { | |
14 public: | |
15 WebInbandTextTrackImpl(Kind kind, | |
16 const WebKit::WebString& label, | |
17 const WebKit::WebString& language, | |
18 int index); | |
19 virtual ~WebInbandTextTrackImpl(); | |
20 | |
21 virtual void setClient(WebKit::WebInbandTextTrackClient* client); | |
22 virtual WebKit::WebInbandTextTrackClient* client(); | |
23 | |
24 virtual void setMode(Mode mode); | |
25 virtual Mode mode() const; | |
26 | |
27 virtual Kind kind() const; | |
28 virtual bool isClosedCaptions() const; | |
29 | |
30 virtual WebKit::WebString label() const; | |
31 virtual WebKit::WebString language() const; | |
32 virtual bool isDefault() const; | |
33 | |
34 virtual int textTrackIndex() const; | |
35 | |
36 private: | |
37 WebKit::WebInbandTextTrackClient* client_; | |
38 Mode mode_; | |
39 Kind kind_; | |
40 WebKit::WebString label_; | |
41 WebKit::WebString language_; | |
42 int index_; | |
43 DISALLOW_COPY_AND_ASSIGN(WebInbandTextTrackImpl); | |
44 }; | |
45 | |
46 } // namespace webkit_media | |
47 | |
48 #endif // WEBKIT_RENDERER_MEDIA_WEBINBANDTEXTTRACK_IMPL_H_ | |
OLD | NEW |