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

Unified Diff: chrome/browser/fullscreen_win.cc

Issue 14340007: Hide the tab indicators and the shelf when in immersive + tab fullscreen (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 8 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/browser/fullscreen_chromeos.cc ('k') | chrome/browser/ui/ash/launcher/launcher_context_menu.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/fullscreen_win.cc
diff --git a/chrome/browser/fullscreen_win.cc b/chrome/browser/fullscreen_win.cc
index 4c3da9f29fad7a4b4a4cb00b521d832f03656ecd..dd61b3e8f7d9827a3472b570a80b9136c3bbc418 100644
--- a/chrome/browser/fullscreen_win.cc
+++ b/chrome/browser/fullscreen_win.cc
@@ -11,7 +11,7 @@
#include "base/win/windows_version.h"
#if defined(USE_ASH)
-#include "ash/wm/window_util.h"
+#include "ash/root_window_controller.h"
#include "chrome/browser/ui/host_desktop.h"
#endif
@@ -102,8 +102,11 @@ static bool IsFullScreenConsoleMode() {
bool IsFullScreenMode() {
#if defined(USE_ASH)
- if (chrome::GetActiveDesktop() == chrome::HOST_DESKTOP_TYPE_ASH)
- return ash::wm::IsActiveWindowFullscreen();
+ if (chrome::GetActiveDesktop() == chrome::HOST_DESKTOP_TYPE_ASH) {
+ ash::internal::RootWindowController* controller =
+ ash::internal::RootWindowController::ForActiveRootWindow();
+ return controller && controller->GetFullscreenWindow();
+ }
#endif
return IsPlatformFullScreenMode() ||
IsFullScreenWindowMode() ||
« no previous file with comments | « chrome/browser/fullscreen_chromeos.cc ('k') | chrome/browser/ui/ash/launcher/launcher_context_menu.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698