From b2b46ac85b0fca2481e715a6181d3b448ed2da6c Mon Sep 17 00:00:00 2001 From: "flackr@chromium.org" Date: Wed, 13 Nov 2013 22:05:56 +0000 Subject: Minimize panels on entering fullscreen and exit fullscreen on selecting another window. BUG=313919 TEST=WindowSelectorTest.FullscreenWindow, PanelLayoutManagerTest.PanelsHideAndRestoreWithShelf TEST=Navigate to a page using the fullscreen API (i.e. http://blogs.sitepointstatic.com/examples/tech/full-screen/index.html) and alt tab from the fullscreen window. You should be able to switch to another window or a panel which was previously open. Review URL: https://codereview.chromium.org/64853007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@234922 0039d316-1c4b-4281-b951-d872f2087c98 --- ash/root_window_controller.cc | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'ash/root_window_controller.cc') diff --git a/ash/root_window_controller.cc b/ash/root_window_controller.cc index c068809..d66f169 100644 --- a/ash/root_window_controller.cc +++ b/ash/root_window_controller.cc @@ -521,6 +521,12 @@ const aura::Window* RootWindowController::GetTopmostFullscreenWindow() const { return NULL; } +aura::Window* RootWindowController::GetTopmostFullscreenWindow() { + return const_cast( + const_cast(this)-> + GetTopmostFullscreenWindow()); +} + void RootWindowController::ActivateKeyboard( keyboard::KeyboardController* keyboard_controller) { if (!keyboard::IsKeyboardEnabled() || -- cgit v1.1