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

Unified Diff: chrome/android/shell/java/src/org/chromium/chrome/shell/ChromeShellTab.java

Issue 662723002: Support fullscreen api for chrome 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 | « no previous file | chrome/android/shell/java/src/org/chromium/chrome/shell/TabManager.java » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/android/shell/java/src/org/chromium/chrome/shell/ChromeShellTab.java
diff --git a/chrome/android/shell/java/src/org/chromium/chrome/shell/ChromeShellTab.java b/chrome/android/shell/java/src/org/chromium/chrome/shell/ChromeShellTab.java
index 04e857b2c4e445770a9919a17337e19137782a9b..1293564c4f3b0dce40788c74d3f36ddabc3d7606 100644
--- a/chrome/android/shell/java/src/org/chromium/chrome/shell/ChromeShellTab.java
+++ b/chrome/android/shell/java/src/org/chromium/chrome/shell/ChromeShellTab.java
@@ -26,6 +26,7 @@ import org.chromium.ui.base.WindowAndroid;
public class ChromeShellTab extends Tab {
// Tab state
private boolean mIsLoading;
+ private boolean mIsFullscreen = false;
/**
* @param context The Context the view is running in.
@@ -122,5 +123,16 @@ public class ChromeShellTab extends Tab {
public void onLoadStopped() {
mIsLoading = false;
}
+
+ @Override
+ public void toggleFullscreenModeForTab(boolean enterFullscreen) {
+ mIsFullscreen = enterFullscreen;
+ super.toggleFullscreenModeForTab(enterFullscreen);
+ }
+
+ @Override
+ public boolean isFullscreenForTabOrPending() {
+ return mIsFullscreen;
+ }
}
}
« no previous file with comments | « no previous file | chrome/android/shell/java/src/org/chromium/chrome/shell/TabManager.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698