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

Unified Diff: content/shell/android/java/src/org/chromium/content_shell/Shell.java

Issue 627513002: Support fullscreen video for content shell (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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/public/android/java/src/org/chromium/content_public/browser/WebContents.java ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/shell/android/java/src/org/chromium/content_shell/Shell.java
diff --git a/content/shell/android/java/src/org/chromium/content_shell/Shell.java b/content/shell/android/java/src/org/chromium/content_shell/Shell.java
index cb8c99542748ac428e25ca8d973b5d7c74fbda1f..c6ca85f17d2b2ade40988d8572b52c0b0fd654b3 100644
--- a/content/shell/android/java/src/org/chromium/content_shell/Shell.java
+++ b/content/shell/android/java/src/org/chromium/content_shell/Shell.java
@@ -63,6 +63,7 @@ public class Shell extends LinearLayout {
private WindowAndroid mWindow;
private boolean mLoading = false;
+ private boolean mIsFullscreen = false;
/**
* Constructor for inflating via XML.
@@ -261,11 +262,13 @@ public class Shell extends LinearLayout {
@CalledByNative
private void toggleFullscreenModeForTab(boolean enterFullscreen) {
+ mIsFullscreen = enterFullscreen;
+ mWebContents.wasResized();
Ted C 2014/10/02 21:52:45 Why is this necessary? Could we just do: mUrlText
qinmin 2014/10/02 22:44:30 Done. Set the whole toolbar's visibility to false
}
@CalledByNative
private boolean isFullscreenForTabOrPending() {
- return false;
+ return mIsFullscreen;
}
@SuppressWarnings("unused")
« no previous file with comments | « content/public/android/java/src/org/chromium/content_public/browser/WebContents.java ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698