Chromium Code Reviews| 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> |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 62 // AcceleratorManager: | 62 // AcceleratorManager: |
| 63 virtual void RegisterAccelerators(const AcceleratorData accelerators[], | 63 virtual void RegisterAccelerators(const AcceleratorData accelerators[], |
| 64 size_t num_accelerators, | 64 size_t num_accelerators, |
| 65 AcceleratorHandler* handler) OVERRIDE; | 65 AcceleratorHandler* handler) OVERRIDE; |
| 66 virtual void SetDebugAcceleratorsEnabled(bool enabled) OVERRIDE; | 66 virtual void SetDebugAcceleratorsEnabled(bool enabled) OVERRIDE; |
| 67 | 67 |
| 68 // ui::AcceleratorTarget: | 68 // ui::AcceleratorTarget: |
| 69 virtual bool AcceleratorPressed(const ui::Accelerator& accelerator) OVERRIDE; | 69 virtual bool AcceleratorPressed(const ui::Accelerator& accelerator) OVERRIDE; |
| 70 virtual bool CanHandleAccelerators() const OVERRIDE; | 70 virtual bool CanHandleAccelerators() const OVERRIDE; |
| 71 | 71 |
| 72 void RegisterAccelerator(const AcceleratorData& accelerator, | 72 virtual void RegisterAccelerator(const AcceleratorData& accelerator_data, |
| 73 AcceleratorHandler* handler); | 73 AcceleratorHandler* handler) OVERRIDE; |
|
oshima
2014/09/25 21:39:43
can you run "git cl format" ?
Greg Levin
2014/10/02 21:56:09
Done, and thanks for the advice!
| |
| 74 virtual void UnregisterAccelerator(const AcceleratorData& accelerator_data, | |
| 75 AcceleratorHandler* handler) OVERRIDE; | |
| 74 | 76 |
| 75 std::map<ui::Accelerator, InternalData> accelerators_; | 77 std::map<ui::Accelerator, InternalData> accelerators_; |
| 76 scoped_ptr<AcceleratorWrapper> accelerator_wrapper_; | 78 scoped_ptr<AcceleratorWrapper> accelerator_wrapper_; |
| 77 scoped_ptr<wm::AcceleratorFilter> accelerator_filter_; | 79 scoped_ptr<wm::AcceleratorFilter> accelerator_filter_; |
| 78 scoped_ptr<wm::NestedAcceleratorController> nested_accelerator_controller_; | 80 scoped_ptr<wm::NestedAcceleratorController> nested_accelerator_controller_; |
| 79 bool debug_accelerators_enabled_; | 81 bool debug_accelerators_enabled_; |
| 80 | 82 |
| 81 DISALLOW_COPY_AND_ASSIGN(AcceleratorManagerImpl); | 83 DISALLOW_COPY_AND_ASSIGN(AcceleratorManagerImpl); |
| 82 }; | 84 }; |
| 83 | 85 |
| 84 } // namespace athena | 86 } // namespace athena |
| 85 | 87 |
| 86 #endif // ATHENA_INPUT_ACCELERATOR_MANAGER_H_ | 88 #endif // ATHENA_INPUT_ACCELERATOR_MANAGER_H_ |
| OLD | NEW |