OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 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 | 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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <list> | 9 #include <list> |
10 #include <map> | 10 #include <map> |
11 | 11 |
12 #include "base/basictypes.h" | 12 #include "base/basictypes.h" |
13 #include "base/memory/scoped_ptr.h" | 13 #include "base/memory/scoped_ptr.h" |
14 #include "base/observer_list.h" | 14 #include "base/observer_list.h" |
15 #include "ui/base/accelerators/accelerator.h" | 15 #include "ui/base/accelerators/accelerator.h" |
16 #include "ui/gfx/native_widget_types.h" | 16 #include "ui/gfx/native_widget_types.h" |
17 #include "ui/views/events/event.h" | 17 #include "ui/views/events/event.h" |
18 #include "views/views_export.h" | 18 #include "ui/views/views_export.h" |
19 | 19 |
20 // The FocusManager class is used to handle focus traversal, store/restore | 20 // The FocusManager class is used to handle focus traversal, store/restore |
21 // focused views and handle keyboard accelerators. | 21 // focused views and handle keyboard accelerators. |
22 // | 22 // |
23 // There are 2 types of focus: | 23 // There are 2 types of focus: |
24 // - the native focus, which is the focus that an gfx::NativeView has. | 24 // - 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. | 25 // - the view focus, which is the focus that a views::View has. |
26 // | 26 // |
27 // Each native view must register with their Focus Manager so the focus manager | 27 // Each native view must register with their Focus Manager so the focus manager |
28 // gets notified when they are focused (and keeps track of the native focus) and | 28 // gets notified when they are focused (and keeps track of the native focus) and |
(...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
271 | 271 |
272 // See description above getter. | 272 // See description above getter. |
273 bool is_changing_focus_; | 273 bool is_changing_focus_; |
274 | 274 |
275 DISALLOW_COPY_AND_ASSIGN(FocusManager); | 275 DISALLOW_COPY_AND_ASSIGN(FocusManager); |
276 }; | 276 }; |
277 | 277 |
278 } // namespace views | 278 } // namespace views |
279 | 279 |
280 #endif // UI_VIEWS_FOCUS_FOCUS_MANAGER_H_ | 280 #endif // UI_VIEWS_FOCUS_FOCUS_MANAGER_H_ |
OLD | NEW |