| Index: webkit/media/texttrack_impl.cc
|
| diff --git a/webkit/media/texttrack_impl.cc b/webkit/media/texttrack_impl.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..70aff2ce7f840cddcf549479215f2e2a78833e91
|
| --- /dev/null
|
| +++ b/webkit/media/texttrack_impl.cc
|
| @@ -0,0 +1,32 @@
|
| +// 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/texttrack_impl.h"
|
| +#include "third_party/WebKit/Source/Platform/chromium/public/WebString.h"
|
| +#include "third_party/WebKit/Source/WebKit/chromium/public/WebInbandTextTrackClient.h"
|
| +
|
| +namespace webkit_media {
|
| +
|
| +TextTrackImpl::TextTrackImpl(WebKit::WebInbandTextTrackClient* client)
|
| + : client_(client) {
|
| +}
|
| +
|
| +TextTrackImpl::~TextTrackImpl() {
|
| + // TODO(matthewjheaney): Aaron suggests that this(?) dtor remove the
|
| + // text track during destruction of this object.
|
| +}
|
| +
|
| +void TextTrackImpl::addWebVTTCue(const base::TimeDelta& start,
|
| + const base::TimeDelta& end,
|
| + const std::string& id,
|
| + const std::string& content,
|
| + const std::string& settings) {
|
| + client_->addWebVTTCue(start.InSecondsF(),
|
| + end.InSecondsF(),
|
| + WebKit::WebString::fromUTF8(id),
|
| + WebKit::WebString::fromUTF8(content),
|
| + WebKit::WebString::fromUTF8(settings));
|
| +}
|
| +
|
| +} // namespace webkit_media
|
|
|