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

Unified Diff: chrome/android/shell/java/src/org/chromium/chrome/shell/TabManager.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 | « chrome/android/shell/java/src/org/chromium/chrome/shell/ChromeShellTab.java ('k') | no next file » | 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/TabManager.java
diff --git a/chrome/android/shell/java/src/org/chromium/chrome/shell/TabManager.java b/chrome/android/shell/java/src/org/chromium/chrome/shell/TabManager.java
index b64767bf3384e418c8bf96bbe49be9b167ad9c7d..b2c31ce1d6b1821ba9b5695a8feaacccb7d8d170 100644
--- a/chrome/android/shell/java/src/org/chromium/chrome/shell/TabManager.java
+++ b/chrome/android/shell/java/src/org/chromium/chrome/shell/TabManager.java
@@ -112,6 +112,12 @@ public class TabManager extends LinearLayout {
}
};
ChromeShellTab tab = new ChromeShellTab(getContext(), url, mWindow, client);
+ tab.addObserver(new EmptyTabObserver() {
+ @Override
+ public void onToggleFullscreenMode(Tab tab, boolean enable) {
+ mToolbar.setVisibility(enable ? GONE : VISIBLE);
+ }
+ });
setCurrentTab(tab);
}
« no previous file with comments | « chrome/android/shell/java/src/org/chromium/chrome/shell/ChromeShellTab.java ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698