OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 VIEWS_FOCUS_FOCUS_MANAGER_H_ | 5 #ifndef VIEWS_FOCUS_FOCUS_MANAGER_H_ |
6 #define VIEWS_FOCUS_FOCUS_MANAGER_H_ | 6 #define VIEWS_FOCUS_FOCUS_MANAGER_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 #include <map> | 9 #include <map> |
10 #include <list> | 10 #include <list> |
11 | 11 |
| 12 #include "app/gfx/native_widget_types.h" |
12 #include "base/basictypes.h" | 13 #include "base/basictypes.h" |
13 #include "base/gfx/native_widget_types.h" | |
14 #include "views/accelerator.h" | 14 #include "views/accelerator.h" |
15 | 15 |
16 // The FocusManager class is used to handle focus traversal, store/restore | 16 // The FocusManager class is used to handle focus traversal, store/restore |
17 // focused views and handle keyboard accelerators. | 17 // focused views and handle keyboard accelerators. |
18 // | 18 // |
19 // There are 2 types of focus: | 19 // There are 2 types of focus: |
20 // - the native focus, which is the focus that an gfx::NativeView has. | 20 // - the native focus, which is the focus that an gfx::NativeView has. |
21 // - the view focus, which is the focus that a views::View has. | 21 // - the view focus, which is the focus that a views::View has. |
22 // | 22 // |
23 // Each native view must register with their Focus Manager so the focus manager | 23 // Each native view must register with their Focus Manager so the focus manager |
(...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
257 // The list of registered FocusChange listeners. | 257 // The list of registered FocusChange listeners. |
258 typedef std::vector<FocusChangeListener*> FocusChangeListenerList; | 258 typedef std::vector<FocusChangeListener*> FocusChangeListenerList; |
259 FocusChangeListenerList focus_change_listeners_; | 259 FocusChangeListenerList focus_change_listeners_; |
260 | 260 |
261 DISALLOW_COPY_AND_ASSIGN(FocusManager); | 261 DISALLOW_COPY_AND_ASSIGN(FocusManager); |
262 }; | 262 }; |
263 | 263 |
264 } // namespace views | 264 } // namespace views |
265 | 265 |
266 #endif // VIEWS_FOCUS_FOCUS_MANAGER_H_ | 266 #endif // VIEWS_FOCUS_FOCUS_MANAGER_H_ |
OLD | NEW |