| Index: webkit/renderer/media/texttrack_impl.cc
|
| diff --git a/webkit/renderer/media/texttrack_impl.cc b/webkit/renderer/media/texttrack_impl.cc
|
| deleted file mode 100644
|
| index 103459877ac09abbc8c05828c4a6ff7d64576241..0000000000000000000000000000000000000000
|
| --- a/webkit/renderer/media/texttrack_impl.cc
|
| +++ /dev/null
|
| @@ -1,37 +0,0 @@
|
| -// Copyright 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/renderer/media/texttrack_impl.h"
|
| -
|
| -#include "third_party/WebKit/public/web/WebInbandTextTrackClient.h"
|
| -#include "third_party/WebKit/public/web/WebMediaPlayerClient.h"
|
| -#include "webkit/renderer/media/webinbandtexttrack_impl.h"
|
| -
|
| -namespace webkit_media {
|
| -
|
| -TextTrackImpl::TextTrackImpl(WebKit::WebMediaPlayerClient* client,
|
| - WebInbandTextTrackImpl* text_track)
|
| - : client_(client), text_track_(text_track) {
|
| - client_->addTextTrack(text_track_.get());
|
| -}
|
| -
|
| -TextTrackImpl::~TextTrackImpl() {
|
| - if (text_track_->client())
|
| - client_->removeTextTrack(text_track_.get());
|
| -}
|
| -
|
| -void TextTrackImpl::addWebVTTCue(const base::TimeDelta& start,
|
| - const base::TimeDelta& end,
|
| - const std::string& id,
|
| - const std::string& content,
|
| - const std::string& settings) {
|
| - if (WebKit::WebInbandTextTrackClient* client = text_track_->client())
|
| - client->addWebVTTCue(start.InSecondsF(),
|
| - end.InSecondsF(),
|
| - WebKit::WebString::fromUTF8(id),
|
| - WebKit::WebString::fromUTF8(content),
|
| - WebKit::WebString::fromUTF8(settings));
|
| -}
|
| -
|
| -} // namespace webkit_media
|
|
|