OLD | NEW |
| (Empty) |
1 // Copyright (c) 2011 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. | |
4 | |
5 #ifndef AURA_FOCUS_MANAGER_H_ | |
6 #define AURA_FOCUS_MANAGER_H_ | |
7 #pragma once | |
8 | |
9 #include "base/basictypes.h" | |
10 | |
11 namespace aura { | |
12 class Window; | |
13 | |
14 namespace internal { | |
15 | |
16 // The FocusManager, when attached to a Window, tracks changes to keyboard input | |
17 // focus within that Window's hierarchy. | |
18 class FocusManager { | |
19 public: | |
20 explicit FocusManager(Window* owner); | |
21 ~FocusManager(); | |
22 | |
23 void SetFocusedWindow(Window* window); | |
24 | |
25 Window* focused_window() { return focused_window_; } | |
26 | |
27 private: | |
28 Window* owner_; | |
29 Window* focused_window_; | |
30 | |
31 DISALLOW_COPY_AND_ASSIGN(FocusManager); | |
32 }; | |
33 | |
34 } // namespace internal | |
35 } // namespace aura | |
36 | |
37 #endif // AURA_FOCUS_MANAGER_H_ | |
OLD | NEW |