Adds "tts" permission for Input Tools & XKB extension.
[chromium-blink-merge.git] / media / blink / webinbandtexttrack_impl.cc
blob720cd43f6e9dc09f5ed907be4f406d6c76b85bc6
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.
5 #include "media/blink/webinbandtexttrack_impl.h"
7 #include "base/logging.h"
9 namespace media {
11 WebInbandTextTrackImpl::WebInbandTextTrackImpl(
12 Kind kind,
13 const blink::WebString& label,
14 const blink::WebString& language,
15 const blink::WebString& id)
16 : client_(NULL),
17 kind_(kind),
18 label_(label),
19 language_(language),
20 id_(id) {
23 WebInbandTextTrackImpl::~WebInbandTextTrackImpl() {
24 DCHECK(!client_);
27 void WebInbandTextTrackImpl::setClient(
28 blink::WebInbandTextTrackClient* client) {
29 client_ = client;
32 blink::WebInbandTextTrackClient* WebInbandTextTrackImpl::client() {
33 return client_;
36 WebInbandTextTrackImpl::Kind WebInbandTextTrackImpl::kind() const {
37 return kind_;
40 blink::WebString WebInbandTextTrackImpl::label() const {
41 return label_;
44 blink::WebString WebInbandTextTrackImpl::language() const {
45 return language_;
48 blink::WebString WebInbandTextTrackImpl::id() const {
49 return id_;
52 } // namespace media