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_VIEWS_FOCUS_FOCUS_MANAGER_H_ | 5 #ifndef UI_VIEWS_FOCUS_FOCUS_MANAGER_H_ |
6 #define UI_VIEWS_FOCUS_FOCUS_MANAGER_H_ | 6 #define UI_VIEWS_FOCUS_FOCUS_MANAGER_H_ |
7 | 7 |
8 #include <list> | 8 #include <list> |
9 #include <map> | 9 #include <map> |
10 | 10 |
11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
12 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
13 #include "base/observer_list.h" | 13 #include "base/observer_list.h" |
14 #include "ui/base/accelerators/accelerator.h" | 14 #include "ui/base/accelerators/accelerator.h" |
15 #include "ui/base/accelerators/accelerator_manager.h" | 15 #include "ui/base/accelerators/accelerator_manager.h" |
16 #include "ui/gfx/native_widget_types.h" | 16 #include "ui/gfx/native_widget_types.h" |
17 #include "ui/views/events/event.h" | |
18 #include "ui/views/views_export.h" | 17 #include "ui/views/views_export.h" |
19 | 18 |
20 // The FocusManager class is used to handle focus traversal, store/restore | 19 // The FocusManager class is used to handle focus traversal, store/restore |
21 // focused views and handle keyboard accelerators. | 20 // focused views and handle keyboard accelerators. |
22 // | 21 // |
23 // There are 2 types of focus: | 22 // There are 2 types of focus: |
24 // - the native focus, which is the focus that an gfx::NativeView has. | 23 // - the native focus, which is the focus that an gfx::NativeView has. |
25 // - the view focus, which is the focus that a views::View has. | 24 // - the view focus, which is the focus that a views::View has. |
26 // | 25 // |
27 // Each native view must register with their Focus Manager so the focus manager | 26 // Each native view must register with their Focus Manager so the focus manager |
(...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
308 | 307 |
309 // See description above getter. | 308 // See description above getter. |
310 bool is_changing_focus_; | 309 bool is_changing_focus_; |
311 | 310 |
312 DISALLOW_COPY_AND_ASSIGN(FocusManager); | 311 DISALLOW_COPY_AND_ASSIGN(FocusManager); |
313 }; | 312 }; |
314 | 313 |
315 } // namespace views | 314 } // namespace views |
316 | 315 |
317 #endif // UI_VIEWS_FOCUS_FOCUS_MANAGER_H_ | 316 #endif // UI_VIEWS_FOCUS_FOCUS_MANAGER_H_ |
OLD | NEW |