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_AURA_CLIENT_FOCUS_CLIENT_H_ | 5 #ifndef UI_AURA_CLIENT_FOCUS_CLIENT_H_ |
6 #define UI_AURA_CLIENT_FOCUS_CLIENT_H_ | 6 #define UI_AURA_CLIENT_FOCUS_CLIENT_H_ |
7 | 7 |
8 #include "ui/aura/aura_export.h" | 8 #include "ui/aura/aura_export.h" |
9 #include "ui/aura/window.h" | 9 #include "ui/aura/window.h" |
10 | 10 |
11 namespace aura { | 11 namespace aura { |
12 class Window; | |
13 namespace client { | 12 namespace client { |
14 class FocusChangeObserver; | 13 class FocusChangeObserver; |
15 | 14 |
16 // An interface implemented by an object that manages window focus. | 15 // An interface implemented by an object that manages window focus. |
17 class AURA_EXPORT FocusClient { | 16 class AURA_EXPORT FocusClient { |
18 public: | 17 public: |
19 virtual ~FocusClient() {} | 18 virtual ~FocusClient() {} |
20 | 19 |
21 virtual void AddObserver(FocusChangeObserver* observer) = 0; | 20 virtual void AddObserver(FocusChangeObserver* observer) = 0; |
22 virtual void RemoveObserver(FocusChangeObserver* observer) = 0; | 21 virtual void RemoveObserver(FocusChangeObserver* observer) = 0; |
(...skipping 14 matching lines...) Expand all Loading... |
37 AURA_EXPORT FocusClient* GetFocusClient(Window* window); | 36 AURA_EXPORT FocusClient* GetFocusClient(Window* window); |
38 AURA_EXPORT FocusClient* GetFocusClient(const Window* window); | 37 AURA_EXPORT FocusClient* GetFocusClient(const Window* window); |
39 | 38 |
40 // The focus client is stored on the window using this property. | 39 // The focus client is stored on the window using this property. |
41 AURA_EXPORT extern const WindowProperty<FocusClient*>* const kFocusClientKey; | 40 AURA_EXPORT extern const WindowProperty<FocusClient*>* const kFocusClientKey; |
42 | 41 |
43 } // namespace clients | 42 } // namespace clients |
44 } // namespace aura | 43 } // namespace aura |
45 | 44 |
46 #endif // UI_AURA_CLIENT_FOCUS_CLIENT_H_ | 45 #endif // UI_AURA_CLIENT_FOCUS_CLIENT_H_ |
OLD | NEW |