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