summaryrefslogtreecommitdiffstats
path: root/ash/root_window_controller.cc
diff options
context:
space:
mode:
authorflackr@chromium.org <flackr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-11-13 22:05:56 +0000
committerflackr@chromium.org <flackr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-11-13 22:05:56 +0000
commitb2b46ac85b0fca2481e715a6181d3b448ed2da6c (patch)
tree15228bccd19f9115e0a3b00708db7c228b2a650d /ash/root_window_controller.cc
parentc0f759b1863f24bbcdd5679623a33380874cbb69 (diff)
downloadchromium_src-b2b46ac85b0fca2481e715a6181d3b448ed2da6c.zip
chromium_src-b2b46ac85b0fca2481e715a6181d3b448ed2da6c.tar.gz
chromium_src-b2b46ac85b0fca2481e715a6181d3b448ed2da6c.tar.bz2
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
Diffstat (limited to 'ash/root_window_controller.cc')
-rw-r--r--ash/root_window_controller.cc6
1 files changed, 6 insertions, 0 deletions
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<aura::Window*>(
+ const_cast<const RootWindowController*>(this)->
+ GetTopmostFullscreenWindow());
+}
+
void RootWindowController::ActivateKeyboard(
keyboard::KeyboardController* keyboard_controller) {
if (!keyboard::IsKeyboardEnabled() ||