Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(398)

Side by Side Diff: webkit/media/webinbandtexttrack_impl.cc

Issue 13419002: Media Source dispatches inband text tracks (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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 #include "webkit/media/webinbandtexttrack_impl.h"
6
7 namespace webkit_media {
8
9 WebInbandTextTrackImpl::WebInbandTextTrackImpl(
10 Kind kind,
11 const WebKit::WebString& label,
12 const WebKit::WebString& language)
13 : client_(NULL),
14 mode_(Disabled),
15 kind_(kind),
16 label_(label),
17 language_(language) {
18 }
19
20 WebInbandTextTrackImpl::~WebInbandTextTrackImpl() {
21 }
22
23 void WebInbandTextTrackImpl::setClient(
24 WebKit::WebInbandTextTrackPrivateClient* client) {
25 client_ = client;
26 }
27
28 WebKit::WebInbandTextTrackPrivateClient* WebInbandTextTrackImpl::client() {
29 return client_;
30 }
31
32 void WebInbandTextTrackImpl::setMode(Mode mode) {
33 mode_ = mode;
34 }
35
36 WebInbandTextTrackImpl::Mode WebInbandTextTrackImpl::mode() const {
37 return mode_;
38 }
39
40 WebInbandTextTrackImpl::Kind WebInbandTextTrackImpl::kind() const {
41 return kind_;
42 }
43
44 bool WebInbandTextTrackImpl::isClosedCaptions() const {
45 // TODO(matthewjheaney): What is correct value here?
fgalligan1 2013/04/02 19:38:32 This will be based on the kind. If kind == caption
Matthew Heaney (Chromium) 2013/04/04 04:01:52 Done.
Matthew Heaney (Chromium) 2013/04/04 04:01:52 Done.
46 return true;
47 }
48
49 WebKit::WebString WebInbandTextTrackImpl::label() const {
50 return label_;
51 }
52
53 WebKit::WebString WebInbandTextTrackImpl::language() const {
54 return language_;
55 }
56
57 bool WebInbandTextTrackImpl::isDefault() const {
58 // TODO(matthewjheaney): What is correct value here?
fgalligan1 2013/04/02 19:38:32 We didn't define "default" track for WebM here htt
Matthew Heaney (Chromium) 2013/04/04 04:01:52 ack
59 return false;
60 }
61
62 int WebInbandTextTrackImpl::textTrackIndex() const {
63 // TODO(matthewjheaney): What is correct value here?
64 return 0;
65 }
66
67 } // namespace webkit_media
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698