Chromium Code Reviews| OLD | NEW |
|---|---|
| (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/texttrack_impl.h" | |
| 6 #include "third_party/WebKit/Source/Platform/chromium/public/WebString.h" | |
| 7 #include "third_party/WebKit/Source/WebKit/chromium/public/WebInbandTextTrackCli ent.h" | |
| 8 | |
| 9 namespace webkit_media { | |
| 10 | |
| 11 TextTrackImpl::TextTrackImpl(WebKit::WebInbandTextTrackClient* client) | |
| 12 : client_(client) { | |
| 13 } | |
| 14 | |
| 15 TextTrackImpl::~TextTrackImpl() { | |
| 16 // TODO(matthewjheaney): Aaron suggests that this(?) dtor remove the | |
| 17 // text track during destruction of this object. | |
|
acolwell GONE FROM CHROMIUM
2013/05/15 22:42:36
Is the plan still to do this? This should be resol
Matthew Heaney (Chromium)
2013/05/16 22:05:22
Done.
| |
| 18 } | |
| 19 | |
| 20 void TextTrackImpl::addWebVTTCue(const base::TimeDelta& start, | |
| 21 const base::TimeDelta& end, | |
| 22 const std::string& id, | |
| 23 const std::string& content, | |
| 24 const std::string& settings) { | |
| 25 client_->addWebVTTCue(start.InSecondsF(), | |
| 26 end.InSecondsF(), | |
| 27 WebKit::WebString::fromUTF8(id), | |
| 28 WebKit::WebString::fromUTF8(content), | |
| 29 WebKit::WebString::fromUTF8(settings)); | |
| 30 } | |
| 31 | |
| 32 } // namespace webkit_media | |
| OLD | NEW |