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

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

Issue 275303002: Non-const impls. for WebMediaPlayer::didLoadingProgress(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 7 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/webmediaplayer_android.h" 5 #include "content/renderer/media/android/webmediaplayer_android.h"
6 6
7 #include <limits> 7 #include <limits>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/callback_helpers.h" 10 #include "base/callback_helpers.h"
(...skipping 436 matching lines...) Expand 10 before | Expand all | Expand 10 after
447 447
448 return duration(); 448 return duration();
449 } 449 }
450 450
451 bool WebMediaPlayerAndroid::didLoadingProgress() const { 451 bool WebMediaPlayerAndroid::didLoadingProgress() const {
452 bool ret = did_loading_progress_; 452 bool ret = did_loading_progress_;
453 did_loading_progress_ = false; 453 did_loading_progress_ = false;
454 return ret; 454 return ret;
455 } 455 }
456 456
457 bool WebMediaPlayerAndroid::didLoadingProgress() {
458 bool ret = did_loading_progress_;
459 did_loading_progress_ = false;
460 return ret;
461 }
462
457 void WebMediaPlayerAndroid::paint(blink::WebCanvas* canvas, 463 void WebMediaPlayerAndroid::paint(blink::WebCanvas* canvas,
458 const blink::WebRect& rect, 464 const blink::WebRect& rect,
459 unsigned char alpha) { 465 unsigned char alpha) {
460 NOTIMPLEMENTED(); 466 NOTIMPLEMENTED();
461 } 467 }
462 468
463 bool WebMediaPlayerAndroid::copyVideoTextureToPlatformTexture( 469 bool WebMediaPlayerAndroid::copyVideoTextureToPlatformTexture(
464 blink::WebGraphicsContext3D* web_graphics_context, 470 blink::WebGraphicsContext3D* web_graphics_context,
465 unsigned int texture, 471 unsigned int texture,
466 unsigned int level, 472 unsigned int level,
(...skipping 1086 matching lines...) Expand 10 before | Expand all | Expand 10 after
1553 1559
1554 void WebMediaPlayerAndroid::exitFullscreen() { 1560 void WebMediaPlayerAndroid::exitFullscreen() {
1555 manager_->ExitFullscreen(player_id_); 1561 manager_->ExitFullscreen(player_id_);
1556 } 1562 }
1557 1563
1558 bool WebMediaPlayerAndroid::canEnterFullscreen() const { 1564 bool WebMediaPlayerAndroid::canEnterFullscreen() const {
1559 return manager_->CanEnterFullscreen(frame_); 1565 return manager_->CanEnterFullscreen(frame_);
1560 } 1566 }
1561 1567
1562 } // namespace content 1568 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698