OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef UI_WM_CORE_FOCUS_CONTROLLER_H_ | 5 #ifndef UI_WM_CORE_FOCUS_CONTROLLER_H_ |
6 #define UI_WM_CORE_FOCUS_CONTROLLER_H_ | 6 #define UI_WM_CORE_FOCUS_CONTROLLER_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 | 9 |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 // |rules| cannot be NULL. | 48 // |rules| cannot be NULL. |
49 explicit FocusController(FocusRules* rules); | 49 explicit FocusController(FocusRules* rules); |
50 ~FocusController() override; | 50 ~FocusController() override; |
51 | 51 |
52 // Overridden from aura::client::ActivationClient: | 52 // Overridden from aura::client::ActivationClient: |
53 void AddObserver(aura::client::ActivationChangeObserver* observer) override; | 53 void AddObserver(aura::client::ActivationChangeObserver* observer) override; |
54 void RemoveObserver( | 54 void RemoveObserver( |
55 aura::client::ActivationChangeObserver* observer) override; | 55 aura::client::ActivationChangeObserver* observer) override; |
56 void ActivateWindow(aura::Window* window) override; | 56 void ActivateWindow(aura::Window* window) override; |
57 void DeactivateWindow(aura::Window* window) override; | 57 void DeactivateWindow(aura::Window* window) override; |
58 aura::Window* GetActiveWindow() override; | 58 const aura::Window* GetActiveWindow() const override; |
59 aura::Window* GetActivatableWindow(aura::Window* window) override; | 59 aura::Window* GetActivatableWindow(aura::Window* window) override; |
60 aura::Window* GetToplevelWindow(aura::Window* window) override; | 60 aura::Window* GetToplevelWindow(aura::Window* window) override; |
61 bool CanActivateWindow(aura::Window* window) const override; | 61 bool CanActivateWindow(aura::Window* window) const override; |
62 | 62 |
63 // Overridden from aura::client::FocusClient: | 63 // Overridden from aura::client::FocusClient: |
64 void AddObserver(aura::client::FocusChangeObserver* observer) override; | 64 void AddObserver(aura::client::FocusChangeObserver* observer) override; |
65 void RemoveObserver(aura::client::FocusChangeObserver* observer) override; | 65 void RemoveObserver(aura::client::FocusChangeObserver* observer) override; |
66 void FocusWindow(aura::Window* window) override; | 66 void FocusWindow(aura::Window* window) override; |
67 void ResetFocusWithinActiveWindow(aura::Window* window) override; | 67 void ResetFocusWithinActiveWindow(aura::Window* window) override; |
68 aura::Window* GetFocusedWindow() override; | 68 aura::Window* GetFocusedWindow() override; |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
131 base::ObserverList<aura::client::FocusChangeObserver> focus_observers_; | 131 base::ObserverList<aura::client::FocusChangeObserver> focus_observers_; |
132 | 132 |
133 ScopedObserver<aura::Window, aura::WindowObserver> observer_manager_; | 133 ScopedObserver<aura::Window, aura::WindowObserver> observer_manager_; |
134 | 134 |
135 DISALLOW_COPY_AND_ASSIGN(FocusController); | 135 DISALLOW_COPY_AND_ASSIGN(FocusController); |
136 }; | 136 }; |
137 | 137 |
138 } // namespace wm | 138 } // namespace wm |
139 | 139 |
140 #endif // UI_WM_CORE_FOCUS_CONTROLLER_H_ | 140 #endif // UI_WM_CORE_FOCUS_CONTROLLER_H_ |
OLD | NEW |