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

Unified Diff: content/browser/android/content_video_view.cc

Issue 15035013: Keep screen on when there is an active WebRTC session on Android. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: code review: nits Created 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/browser/android/content_video_view.h ('k') | content/browser/power_save_blocker_android.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/android/content_video_view.cc
===================================================================
--- content/browser/android/content_video_view.cc (revision 201139)
+++ content/browser/android/content_video_view.cc (working copy)
@@ -49,6 +49,12 @@
}
}
+// static
+void ContentVideoView::KeepScreenOn(bool screen_on) {
+ Java_ContentVideoView_keepScreenOnContentVideoView(AttachCurrentThread(),
+ screen_on);
+}
+
void ContentVideoView::OnMediaPlayerError(int error_type) {
if (!j_content_video_view_.is_null()) {
Java_ContentVideoView_onMediaPlayerError(AttachCurrentThread(),
« no previous file with comments | « content/browser/android/content_video_view.h ('k') | content/browser/power_save_blocker_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698