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

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: add braces 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
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(),

Powered by Google App Engine
This is Rietveld 408576698