| OLD | NEW |
| (Empty) | |
| 1 // Copyright (c) 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_MEDIA_WEBINANDTEXTTRACK_IMPL_H_ |
| 6 #define WEBKIT_MEDIA_WEBINANDTEXTTRACK_IMPL_H_ |
| 7 |
| 8 #include "base/memory/ref_counted.h" |
| 9 #include "third_party/WebKit/Source/Platform/chromium/public/WebString.h" |
| 10 #include "third_party/WebKit/Source/WebKit/chromium/public/WebInbandTextTrack.h" |
| 11 |
| 12 namespace webkit_media { |
| 13 |
| 14 class WebInbandTextTrackImpl |
| 15 : public WebKit::WebInbandTextTrack, |
| 16 public base::RefCountedThreadSafe<WebInbandTextTrackImpl> { |
| 17 public: |
| 18 WebInbandTextTrackImpl(Kind kind, |
| 19 const WebKit::WebString& label, |
| 20 const WebKit::WebString& language); |
| 21 virtual ~WebInbandTextTrackImpl(); |
| 22 |
| 23 virtual void setClient(WebKit::WebInbandTextTrackClient* client); |
| 24 virtual WebKit::WebInbandTextTrackClient* client(); |
| 25 |
| 26 virtual void setMode(Mode mode); |
| 27 virtual Mode mode() const; |
| 28 |
| 29 virtual Kind kind() const; |
| 30 virtual bool isClosedCaptions() const; |
| 31 |
| 32 virtual WebKit::WebString label() const; |
| 33 virtual WebKit::WebString language() const; |
| 34 virtual bool isDefault() const; |
| 35 |
| 36 virtual int textTrackIndex() const; |
| 37 |
| 38 private: |
| 39 // TODO(matthewjheaney): resolve ownership and lifetime issues |
| 40 WebKit::WebInbandTextTrackClient* client_; |
| 41 Mode mode_; |
| 42 Kind kind_; |
| 43 WebKit::WebString label_; |
| 44 WebKit::WebString language_; |
| 45 DISALLOW_COPY_AND_ASSIGN(WebInbandTextTrackImpl); |
| 46 }; |
| 47 |
| 48 } // namespace webkit_media |
| 49 |
| 50 #endif // WEBKIT_MEDIA_WEBINANDTEXTTRACK_IMPL_H_ |
| OLD | NEW |