| 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_PUBLIC_ACCELERATOR_MANAGER_H_ | 5 #ifndef ATHENA_INPUT_PUBLIC_ACCELERATOR_MANAGER_H_ |
| 6 #define ATHENA_INPUT_PUBLIC_ACCELERATOR_MANAGER_H_ | 6 #define ATHENA_INPUT_PUBLIC_ACCELERATOR_MANAGER_H_ |
| 7 | 7 |
| 8 #include "athena/athena_export.h" | 8 #include "athena/athena_export.h" |
| 9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "ui/events/keycodes/keyboard_codes.h" | 10 #include "ui/events/keycodes/keyboard_codes.h" |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 75 // registered with any flags. | 75 // registered with any flags. |
| 76 virtual bool IsRegistered(const ui::Accelerator& accelerator, | 76 virtual bool IsRegistered(const ui::Accelerator& accelerator, |
| 77 int flags) const = 0; | 77 int flags) const = 0; |
| 78 | 78 |
| 79 // Register accelerators and its handler that will be invoked when | 79 // Register accelerators and its handler that will be invoked when |
| 80 // one of accelerator is fired. | 80 // one of accelerator is fired. |
| 81 virtual void RegisterAccelerators(const AcceleratorData accelerators[], | 81 virtual void RegisterAccelerators(const AcceleratorData accelerators[], |
| 82 size_t num_accelerators, | 82 size_t num_accelerators, |
| 83 AcceleratorHandler* handler) = 0; | 83 AcceleratorHandler* handler) = 0; |
| 84 | 84 |
| 85 virtual void RegisterAccelerator(const AcceleratorData& accelerator_data, |
| 86 AcceleratorHandler* handler) = 0; |
| 87 virtual void UnregisterAccelerator(const AcceleratorData& accelerator_data, |
| 88 AcceleratorHandler* handler) = 0; |
| 89 |
| 85 // Enables/Disables accelerators that has a AF_DEBUG flag. | 90 // Enables/Disables accelerators that has a AF_DEBUG flag. |
| 86 virtual void SetDebugAcceleratorsEnabled(bool enabled) = 0; | 91 virtual void SetDebugAcceleratorsEnabled(bool enabled) = 0; |
| 87 }; | 92 }; |
| 88 | 93 |
| 89 } // namespace athena | 94 } // namespace athena |
| 90 | 95 |
| 91 #endif // ATHENA_INPUT_PUBLIC_ACCELERATOR_MANAGER_H_ | 96 #endif // ATHENA_INPUT_PUBLIC_ACCELERATOR_MANAGER_H_ |
| OLD | NEW |