diff options
author | tdanderson <tdanderson@chromium.org> | 2015-03-30 14:51:00 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-03-30 21:52:30 +0000 |
commit | fd446a00e91e4a489d5520659431da603b0b63b3 (patch) | |
tree | 93d5038736adf807cbb87bb9d6dbb7d3e6adb741 /ash/wm/maximize_mode/maximize_mode_window_manager.cc | |
parent | 3f4b29434e7ca60356cf6a8c3e47015cb7dd37a0 (diff) | |
download | chromium_src-fd446a00e91e4a489d5520659431da603b0b63b3.zip chromium_src-fd446a00e91e4a489d5520659431da603b0b63b3.tar.gz chromium_src-fd446a00e91e4a489d5520659431da603b0b63b3.tar.bz2 |
Add flag to disable window backdrops in TouchView
Add a flag to allow disabling the translucent grey window
backdrops used for windows which cannot be maximized
in TouchView. Using this flag will allow the user to
interact with windows other than the one currently
at the top of the z-order.
BUG=471816
TEST=none
Review URL: https://codereview.chromium.org/1045043002
Cr-Commit-Position: refs/heads/master@{#322884}
Diffstat (limited to 'ash/wm/maximize_mode/maximize_mode_window_manager.cc')
-rw-r--r-- | ash/wm/maximize_mode/maximize_mode_window_manager.cc | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/ash/wm/maximize_mode/maximize_mode_window_manager.cc b/ash/wm/maximize_mode/maximize_mode_window_manager.cc index 1c9558c..e4c91f7 100644 --- a/ash/wm/maximize_mode/maximize_mode_window_manager.cc +++ b/ash/wm/maximize_mode/maximize_mode_window_manager.cc @@ -4,6 +4,7 @@ #include "ash/wm/maximize_mode/maximize_mode_window_manager.h" +#include "ash/ash_switches.h" #include "ash/root_window_controller.h" #include "ash/shell.h" #include "ash/shell_window_ids.h" @@ -15,6 +16,7 @@ #include "ash/wm/window_util.h" #include "ash/wm/wm_event.h" #include "ash/wm/workspace_controller.h" +#include "base/command_line.h" #include "ui/aura/window.h" #include "ui/gfx/screen.h" @@ -283,8 +285,15 @@ bool MaximizeModeWindowManager::IsContainerWindow(aura::Window* window) { void MaximizeModeWindowManager::EnableBackdropBehindTopWindowOnEachDisplay( bool enable) { + // This function should be a no-op if backdrops have been disabled. + if (base::CommandLine::ForCurrentProcess()->HasSwitch( + switches::kAshDisableMaximizeModeWindowBackdrop)) { + return; + } + if (backdrops_hidden_) return; + // Inform the WorkspaceLayoutManager that we want to show a backdrop behind // the topmost window of its container. Shell::RootWindowControllerList controllers = |