Chromium Code Reviews| 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..6c3ee3dd8e9e1875737652cc71d644d05b987a09 |
| --- /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); |
| + |
| +} // namepsace ash |
|
James Cook
2016/06/07 01:21:04
nit: namespace
sky
2016/06/07 02:46:21
Done.
|
| + |
| +#endif // ASH_COMMON_WM_FOCUS_RULES_H_ |