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

Unified Diff: chrome/browser/ui/panels/panel_manager.cc

Issue 8979001: Merge 113553 - Hide panels in presence of full screen app for windows. (Closed) Base URL: svn://svn.chromium.org/chrome/branches/963/src/
Patch Set: Created 9 years 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/ui/panels/panel_browser_window_gtk.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/panels/panel_manager.cc
===================================================================
--- chrome/browser/ui/panels/panel_manager.cc (revision 114830)
+++ chrome/browser/ui/panels/panel_manager.cc (working copy)
@@ -119,11 +119,16 @@
content::Source<Panel>(panel),
content::NotificationService::NoDetails());
+// We don't enable full screen detection for Linux as z-order rules for
+// panels on Linux ensures that they're below any app running in full screen
+// mode.
+#if defined(OS_WIN) || defined(OS_MACOSX)
if (num_panels() == 1) {
full_screen_mode_timer_.Start(FROM_HERE,
base::TimeDelta::FromMilliseconds(kFullScreenModeCheckIntervalMs),
this, &PanelManager::CheckFullScreenMode);
}
+#endif
return panel;
}
@@ -142,8 +147,10 @@
}
void PanelManager::Remove(Panel* panel) {
+#if defined(OS_WIN) || defined(OS_MACOSX)
if (num_panels() == 1)
full_screen_mode_timer_.Stop();
+#endif
if (panel_strip_->Remove(panel))
return;
« no previous file with comments | « chrome/browser/ui/panels/panel_browser_window_gtk.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698