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

Unified Diff: ash/switchable_windows.cc

Issue 149493008: Use active window if on current workspace for fullscreen mode. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge with master. Created 6 years, 10 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
« no previous file with comments | « ash/switchable_windows.h ('k') | ash/wm/mru_window_tracker.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/switchable_windows.cc
diff --git a/ash/switchable_windows.cc b/ash/switchable_windows.cc
index 86c31f66e335d7b08b5212f3d5ca5ff574794510..352599b250a29a2332b39be5031aba798255636d 100644
--- a/ash/switchable_windows.cc
+++ b/ash/switchable_windows.cc
@@ -5,6 +5,7 @@
#include "ash/switchable_windows.h"
#include "ash/shell_window_ids.h"
+#include "ui/aura/window.h"
namespace ash {
@@ -17,4 +18,14 @@ const int kSwitchableWindowContainerIds[] = {
const size_t kSwitchableWindowContainerIdsLength =
arraysize(kSwitchableWindowContainerIds);
+bool IsSwitchableContainer(const aura::Window* window) {
+ if (!window)
+ return false;
+ for (size_t i = 0; i < kSwitchableWindowContainerIdsLength; ++i) {
+ if (window->id() == kSwitchableWindowContainerIds[i])
+ return true;
+ }
+ return false;
+}
+
} // namespace ash
« no previous file with comments | « ash/switchable_windows.h ('k') | ash/wm/mru_window_tracker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698