| 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 #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_manager.h" | 16 #include "ui/base/accelerators/accelerator_manager.h" |
| 16 #include "ui/base/accelerators/accelerator.h" | |
| 17 #include "ui/gfx/native_widget_types.h" | 17 #include "ui/gfx/native_widget_types.h" |
| 18 #include "ui/views/events/event.h" | 18 #include "ui/views/events/event.h" |
| 19 #include "ui/views/views_export.h" | 19 #include "ui/views/views_export.h" |
| 20 | 20 |
| 21 // The FocusManager class is used to handle focus traversal, store/restore | 21 // The FocusManager class is used to handle focus traversal, store/restore |
| 22 // focused views and handle keyboard accelerators. | 22 // focused views and handle keyboard accelerators. |
| 23 // | 23 // |
| 24 // There are 2 types of focus: | 24 // There are 2 types of focus: |
| 25 // - the native focus, which is the focus that an gfx::NativeView has. | 25 // - the native focus, which is the focus that an gfx::NativeView has. |
| 26 // - the view focus, which is the focus that a views::View has. | 26 // - the view focus, which is the focus that a views::View has. |
| (...skipping 271 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 298 | 298 |
| 299 // See description above getter. | 299 // See description above getter. |
| 300 bool is_changing_focus_; | 300 bool is_changing_focus_; |
| 301 | 301 |
| 302 DISALLOW_COPY_AND_ASSIGN(FocusManager); | 302 DISALLOW_COPY_AND_ASSIGN(FocusManager); |
| 303 }; | 303 }; |
| 304 | 304 |
| 305 } // namespace views | 305 } // namespace views |
| 306 | 306 |
| 307 #endif // UI_VIEWS_FOCUS_FOCUS_MANAGER_H_ | 307 #endif // UI_VIEWS_FOCUS_FOCUS_MANAGER_H_ |
| OLD | NEW |