OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 ATHENA_INPUT_ACCELERATOR_MANAGER_H_ | 5 #ifndef ATHENA_INPUT_ACCELERATOR_MANAGER_H_ |
6 #define ATHENA_INPUT_ACCELERATOR_MANAGER_H_ | 6 #define ATHENA_INPUT_ACCELERATOR_MANAGER_H_ |
7 | 7 |
8 #include "athena/input/public/accelerator_manager.h" | 8 #include "athena/input/public/accelerator_manager.h" |
9 | 9 |
10 #include <map> | 10 #include <map> |
11 | 11 |
12 #include "base/macros.h" | 12 #include "base/macros.h" |
13 #include "ui/base/accelerators/accelerator.h" | 13 #include "ui/base/accelerators/accelerator.h" |
| 14 #include "ui/base/accelerators/accelerator_history.h" |
14 #include "ui/events/event_target_iterator.h" | 15 #include "ui/events/event_target_iterator.h" |
15 | 16 |
16 namespace aura { | 17 namespace aura { |
17 class Window; | 18 class Window; |
18 } | 19 } |
19 | 20 |
20 namespace wm { | 21 namespace wm { |
21 class AcceleratorFilter; | 22 class AcceleratorFilter; |
22 class NestedAcceleratorController; | 23 class NestedAcceleratorController; |
23 } | 24 } |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 virtual void UnregisterAccelerator(const AcceleratorData& accelerator_data, | 69 virtual void UnregisterAccelerator(const AcceleratorData& accelerator_data, |
69 AcceleratorHandler* handler) override; | 70 AcceleratorHandler* handler) override; |
70 virtual void SetDebugAcceleratorsEnabled(bool enabled) override; | 71 virtual void SetDebugAcceleratorsEnabled(bool enabled) override; |
71 | 72 |
72 // ui::AcceleratorTarget: | 73 // ui::AcceleratorTarget: |
73 virtual bool AcceleratorPressed(const ui::Accelerator& accelerator) override; | 74 virtual bool AcceleratorPressed(const ui::Accelerator& accelerator) override; |
74 virtual bool CanHandleAccelerators() const override; | 75 virtual bool CanHandleAccelerators() const override; |
75 | 76 |
76 std::map<ui::Accelerator, InternalData> accelerators_; | 77 std::map<ui::Accelerator, InternalData> accelerators_; |
77 scoped_ptr<AcceleratorWrapper> accelerator_wrapper_; | 78 scoped_ptr<AcceleratorWrapper> accelerator_wrapper_; |
| 79 scoped_ptr<ui::AcceleratorHistory> accelerator_history_; |
78 scoped_ptr<wm::AcceleratorFilter> accelerator_filter_; | 80 scoped_ptr<wm::AcceleratorFilter> accelerator_filter_; |
79 scoped_ptr<wm::NestedAcceleratorController> nested_accelerator_controller_; | 81 scoped_ptr<wm::NestedAcceleratorController> nested_accelerator_controller_; |
80 bool debug_accelerators_enabled_; | 82 bool debug_accelerators_enabled_; |
81 bool global_; | 83 bool global_; |
82 | 84 |
83 DISALLOW_COPY_AND_ASSIGN(AcceleratorManagerImpl); | 85 DISALLOW_COPY_AND_ASSIGN(AcceleratorManagerImpl); |
84 }; | 86 }; |
85 | 87 |
86 } // namespace athena | 88 } // namespace athena |
87 | 89 |
88 #endif // ATHENA_INPUT_ACCELERATOR_MANAGER_H_ | 90 #endif // ATHENA_INPUT_ACCELERATOR_MANAGER_H_ |
OLD | NEW |