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

Unified 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, 9 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 side-by-side diff with in-line comments
Download patch
Index: webkit/media/webinbandtexttrack_impl.cc
diff --git a/webkit/media/webinbandtexttrack_impl.cc b/webkit/media/webinbandtexttrack_impl.cc
new file mode 100644
index 0000000000000000000000000000000000000000..9e775cff040dc57fe642daaed6ff93eff9e15fb9
--- /dev/null
+++ b/webkit/media/webinbandtexttrack_impl.cc
@@ -0,0 +1,67 @@
+// Copyright (c) 2013 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "webkit/media/webinbandtexttrack_impl.h"
+
+namespace webkit_media {
+
+WebInbandTextTrackImpl::WebInbandTextTrackImpl(
+ Kind kind,
+ const WebKit::WebString& label,
+ const WebKit::WebString& language)
+ : client_(NULL),
+ mode_(Disabled),
+ kind_(kind),
+ label_(label),
+ language_(language) {
+}
+
+WebInbandTextTrackImpl::~WebInbandTextTrackImpl() {
+}
+
+void WebInbandTextTrackImpl::setClient(
+ WebKit::WebInbandTextTrackPrivateClient* client) {
+ client_ = client;
+}
+
+WebKit::WebInbandTextTrackPrivateClient* WebInbandTextTrackImpl::client() {
+ return client_;
+}
+
+void WebInbandTextTrackImpl::setMode(Mode mode) {
+ mode_ = mode;
+}
+
+WebInbandTextTrackImpl::Mode WebInbandTextTrackImpl::mode() const {
+ return mode_;
+}
+
+WebInbandTextTrackImpl::Kind WebInbandTextTrackImpl::kind() const {
+ return kind_;
+}
+
+bool WebInbandTextTrackImpl::isClosedCaptions() const {
+ // 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.
+ return true;
+}
+
+WebKit::WebString WebInbandTextTrackImpl::label() const {
+ return label_;
+}
+
+WebKit::WebString WebInbandTextTrackImpl::language() const {
+ return language_;
+}
+
+bool WebInbandTextTrackImpl::isDefault() const {
+ // 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
+ return false;
+}
+
+int WebInbandTextTrackImpl::textTrackIndex() const {
+ // TODO(matthewjheaney): What is correct value here?
+ return 0;
+}
+
+} // namespace webkit_media

Powered by Google App Engine
This is Rietveld 408576698