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

Unified Diff: chrome/browser/ui/ash/chrome_shell_delegate.cc

Issue 11969006: cros: Trigger immersive mode with F4 maximize key (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 11 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
Index: chrome/browser/ui/ash/chrome_shell_delegate.cc
diff --git a/chrome/browser/ui/ash/chrome_shell_delegate.cc b/chrome/browser/ui/ash/chrome_shell_delegate.cc
index b784036259380a3ed6dcfb974b65e7109626a2ad..d994640b113149352234cd54a501ca469ee398e6 100644
--- a/chrome/browser/ui/ash/chrome_shell_delegate.cc
+++ b/chrome/browser/ui/ash/chrome_shell_delegate.cc
@@ -9,6 +9,7 @@
#include "ash/magnifier/magnifier_constants.h"
#include "ash/system/tray/system_tray_delegate.h"
#include "ash/wm/stacking_controller.h"
+#include "ash/wm/window_properties.h"
#include "ash/wm/window_util.h"
#include "base/bind.h"
#include "base/command_line.h"
@@ -207,6 +208,10 @@ void ChromeShellDelegate::ToggleMaximized() {
return;
}
ash::wm::ToggleMaximizedWindow(window);
+ // Experiment with automatically entering immersive mode when the user presses
+ // the F4 maximize key.
+ window->SetProperty(ash::internal::kImmersiveModeKey,
+ ash::wm::IsWindowMaximized(window));
}
void ChromeShellDelegate::OpenFileManager() {

Powered by Google App Engine
This is Rietveld 408576698