summaryrefslogtreecommitdiffstats
path: root/ui/aura_shell/window_util.cc
diff options
context:
space:
mode:
Diffstat (limited to 'ui/aura_shell/window_util.cc')
-rw-r--r--ui/aura_shell/window_util.cc10
1 files changed, 10 insertions, 0 deletions
diff --git a/ui/aura_shell/window_util.cc b/ui/aura_shell/window_util.cc
index a6e5e0d..6dd9cde 100644
--- a/ui/aura_shell/window_util.cc
+++ b/ui/aura_shell/window_util.cc
@@ -66,4 +66,14 @@ void UpdateBoundsFromShowState(aura::Window* window) {
}
}
+bool HasFullscreenWindow(const WindowSet& windows) {
+ for (WindowSet::const_iterator i = windows.begin(); i != windows.end(); ++i) {
+ if ((*i)->GetIntProperty(aura::client::kShowStateKey)
+ == ui::SHOW_STATE_FULLSCREEN) {
+ return true;
+ }
+ }
+ return false;
+}
+
} // namespace aura_shell