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

Unified Diff: content/public/android/java/src/org/chromium/content/browser/ContentVideoView.java

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
Index: content/public/android/java/src/org/chromium/content/browser/ContentVideoView.java
===================================================================
--- content/public/android/java/src/org/chromium/content/browser/ContentVideoView.java (revision 201139)
+++ content/public/android/java/src/org/chromium/content/browser/ContentVideoView.java (working copy)
@@ -592,12 +592,19 @@
sContentVideoView = null;
}
+ @CalledByNative
+ public static void keepScreenOnContentVideoView(boolean screenOn) {
+ if (sDelegate != null) {
+ sDelegate.keepScreenOn(screenOn);
+ }
+ }
+
public static ContentVideoView getContentVideoView() {
return sContentVideoView;
}
public static void registerContentVideoViewContextDelegate(
- ContentVideoViewContextDelegate delegate) {
+ ContentVideoViewContextDelegate delegate) {
sDelegate = delegate;
}

Powered by Google App Engine
This is Rietveld 408576698