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

Unified Diff: ash/common/wm/focus_rules.h

Issue 2042913002: Converts MruWindowTracker to work with common types (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: not equal 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
« no previous file with comments | « ash/common/shell_window_ids.cc ('k') | ash/common/wm/focus_rules.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/wm/focus_rules.h
diff --git a/ash/common/wm/focus_rules.h b/ash/common/wm/focus_rules.h
new file mode 100644
index 0000000000000000000000000000000000000000..cd54d32e82c0c2d273e799c7accf7535f9ff406b
--- /dev/null
+++ b/ash/common/wm/focus_rules.h
@@ -0,0 +1,22 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef ASH_COMMON_WM_FOCUS_RULES_H_
+#define ASH_COMMON_WM_FOCUS_RULES_H_
+
+#include "ash/ash_export.h"
+
+namespace ash {
+
+class WmWindow;
+
+// These functions provide the ash implementation wm::FocusRules. See
+// description there for details.
+ASH_EXPORT bool IsToplevelWindow(WmWindow* window);
+ASH_EXPORT bool IsWindowConsideredActivatable(WmWindow* window);
+ASH_EXPORT bool IsWindowConsideredVisibleForActivation(WmWindow* window);
+
+} // namespace ash
+
+#endif // ASH_COMMON_WM_FOCUS_RULES_H_
« no previous file with comments | « ash/common/shell_window_ids.cc ('k') | ash/common/wm/focus_rules.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698