| 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 #include "media/blink/webinbandtexttrack_impl.h" | 5 #include "media/blink/webinbandtexttrack_impl.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 | 8 |
| 9 namespace media { | 9 namespace media { |
| 10 | 10 |
| 11 WebInbandTextTrackImpl::WebInbandTextTrackImpl( | 11 WebInbandTextTrackImpl::WebInbandTextTrackImpl( |
| 12 Kind kind, | 12 Kind kind, |
| 13 const blink::WebString& label, | 13 const blink::WebString& label, |
| 14 const blink::WebString& language, | 14 const blink::WebString& language, |
| 15 const blink::WebString& id, | 15 const blink::WebString& id) |
| 16 int index) | |
| 17 : client_(NULL), | 16 : client_(NULL), |
| 18 kind_(kind), | 17 kind_(kind), |
| 19 label_(label), | 18 label_(label), |
| 20 language_(language), | 19 language_(language), |
| 21 id_(id), | 20 id_(id) { |
| 22 index_(index) { | |
| 23 } | 21 } |
| 24 | 22 |
| 25 WebInbandTextTrackImpl::~WebInbandTextTrackImpl() { | 23 WebInbandTextTrackImpl::~WebInbandTextTrackImpl() { |
| 26 DCHECK(!client_); | 24 DCHECK(!client_); |
| 27 } | 25 } |
| 28 | 26 |
| 29 void WebInbandTextTrackImpl::setClient( | 27 void WebInbandTextTrackImpl::setClient( |
| 30 blink::WebInbandTextTrackClient* client) { | 28 blink::WebInbandTextTrackClient* client) { |
| 31 client_ = client; | 29 client_ = client; |
| 32 } | 30 } |
| (...skipping 11 matching lines...) Expand all Loading... |
| 44 } | 42 } |
| 45 | 43 |
| 46 blink::WebString WebInbandTextTrackImpl::language() const { | 44 blink::WebString WebInbandTextTrackImpl::language() const { |
| 47 return language_; | 45 return language_; |
| 48 } | 46 } |
| 49 | 47 |
| 50 blink::WebString WebInbandTextTrackImpl::id() const { | 48 blink::WebString WebInbandTextTrackImpl::id() const { |
| 51 return id_; | 49 return id_; |
| 52 } | 50 } |
| 53 | 51 |
| 54 int WebInbandTextTrackImpl::textTrackIndex() const { | |
| 55 return index_; | |
| 56 } | |
| 57 | |
| 58 } // namespace media | 52 } // namespace media |
| OLD | NEW |