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

Side by Side Diff: content/renderer/media/android/media_player_renderer_client.cc

Issue 2243683002: Add OnDurationChange() to RenderClient (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@media_player_simplified
Patch Set: Created 4 years, 4 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
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/renderer/media/android/media_player_renderer_client.h" 5 #include "content/renderer/media/android/media_player_renderer_client.h"
6 6
7 #include "base/callback_helpers.h" 7 #include "base/callback_helpers.h"
8 8
9 namespace content { 9 namespace content {
10 10
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 void MediaPlayerRendererClient::OnVideoNaturalSizeChange( 144 void MediaPlayerRendererClient::OnVideoNaturalSizeChange(
145 const gfx::Size& size) { 145 const gfx::Size& size) {
146 stream_texture_wrapper_->UpdateTextureSize(size); 146 stream_texture_wrapper_->UpdateTextureSize(size);
147 client_->OnVideoNaturalSizeChange(size); 147 client_->OnVideoNaturalSizeChange(size);
148 } 148 }
149 149
150 void MediaPlayerRendererClient::OnVideoOpacityChange(bool opaque) { 150 void MediaPlayerRendererClient::OnVideoOpacityChange(bool opaque) {
151 client_->OnVideoOpacityChange(opaque); 151 client_->OnVideoOpacityChange(opaque);
152 } 152 }
153 153
154 void MediaPlayerRendererClient::OnDurationChange(base::TimeDelta duration) {
155 client_->OnDurationChange(duration);
156 }
157
154 } // namespace content 158 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698