Added llvm into exceptions as we can't add README.chromium into 3rd party repository
[chromium-blink-merge.git] / ash / wm / ash_focus_rules.h
blob70cf56997a2bf82aa16a1c120acb1c7155f8e3fb
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef ASH_WM_ASH_FOCUS_RULES_H_
6 #define ASH_WM_ASH_FOCUS_RULES_H_
8 #include "ash/ash_export.h"
9 #include "base/basictypes.h"
10 #include "base/compiler_specific.h"
11 #include "ui/wm/core/base_focus_rules.h"
13 namespace ash {
14 namespace wm {
16 class ASH_EXPORT AshFocusRules : public ::wm::BaseFocusRules {
17 public:
18 AshFocusRules();
19 ~AshFocusRules() override;
21 // Tests if the given |window| can be activated, ignoring the system modal
22 // dialog state.
23 bool IsWindowConsideredActivatable(aura::Window* window) const;
25 private:
26 // Overridden from ::wm::BaseFocusRules:
27 bool SupportsChildActivation(aura::Window* window) const override;
28 bool IsWindowConsideredVisibleForActivation(
29 aura::Window* window) const override;
30 bool CanActivateWindow(aura::Window* window) const override;
31 aura::Window* GetNextActivatableWindow(aura::Window* ignore) const override;
33 aura::Window* GetTopmostWindowToActivateForContainerIndex(
34 int index,
35 aura::Window* ignore) const;
36 aura::Window* GetTopmostWindowToActivateInContainer(
37 aura::Window* container,
38 aura::Window* ignore) const;
40 DISALLOW_COPY_AND_ASSIGN(AshFocusRules);
43 } // namespace wm
44 } // namespace ash
46 #endif // ASH_WM_ASH_FOCUS_RULES_H_