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

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: remove wasResized() call 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 | « no previous file | 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..a928a02093f4de0c577213036feda0b76f06fa4f 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,14 @@ public class Shell extends LinearLayout {
@CalledByNative
private void toggleFullscreenModeForTab(boolean enterFullscreen) {
+ mIsFullscreen = enterFullscreen;
+ LinearLayout toolBar = (LinearLayout) findViewById(R.id.toolbar);
+ toolBar.setVisibility(enterFullscreen ? GONE : VISIBLE);
}
@CalledByNative
private boolean isFullscreenForTabOrPending() {
- return false;
+ return mIsFullscreen;
}
@SuppressWarnings("unused")
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698