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

Unified Diff: ash/common/shell_window_ids.cc

Issue 2042913002: Converts MruWindowTracker to work with common types (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: tweaks Created 4 years, 6 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
Index: ash/common/shell_window_ids.cc
diff --git a/ash/common/shell_window_ids.cc b/ash/common/shell_window_ids.cc
index 26281f52a3050c147543a12ce120c521231af545..27fdf89b48dd27855be4b0f51f8bf7a56ee33653 100644
--- a/ash/common/shell_window_ids.cc
+++ b/ash/common/shell_window_ids.cc
@@ -27,4 +27,12 @@ const int kActivatableShellWindowIds[] = {
const size_t kNumActivatableShellWindowIds =
arraysize(kActivatableShellWindowIds);
+bool IsActivatableShellWindowId(int id) {
+ for (size_t i = 0; i < kNumActivatableShellWindowIds; i++) {
+ if (id == kActivatableShellWindowIds[i])
+ return true;
+ }
+ return false;
+}
+
} // namespace ash

Powered by Google App Engine
This is Rietveld 408576698