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 ASH_ACCELERATORS_ACCELERATOR_DELEGATE_H_ | 5 #ifndef ASH_ACCELERATORS_ACCELERATOR_DELEGATE_H_ |
6 #define ASH_ACCELERATORS_ACCELERATOR_DELEGATE_H_ | 6 #define ASH_ACCELERATORS_ACCELERATOR_DELEGATE_H_ |
7 | 7 |
8 #include "ash/ash_export.h" | 8 #include "ash/ash_export.h" |
| 9 #include "base/compiler_specific.h" |
9 #include "base/macros.h" | 10 #include "base/macros.h" |
10 #include "ui/wm/core/accelerator_delegate.h" | 11 #include "ui/wm/core/accelerator_delegate.h" |
11 | 12 |
12 namespace ash { | 13 namespace ash { |
13 | 14 |
14 class ASH_EXPORT AcceleratorDelegate | 15 class ASH_EXPORT AcceleratorDelegate |
15 : NON_EXPORTED_BASE(public wm::AcceleratorDelegate) { | 16 : NON_EXPORTED_BASE(public wm::AcceleratorDelegate) { |
16 public: | 17 public: |
17 AcceleratorDelegate(); | 18 AcceleratorDelegate(); |
18 ~AcceleratorDelegate() override; | 19 ~AcceleratorDelegate() override; |
(...skipping 10 matching lines...) Expand all Loading... |
29 | 30 |
30 bool ShouldProcessAcceleratorNow(const ui::KeyEvent& event, | 31 bool ShouldProcessAcceleratorNow(const ui::KeyEvent& event, |
31 const ui::Accelerator& accelerator); | 32 const ui::Accelerator& accelerator); |
32 | 33 |
33 DISALLOW_COPY_AND_ASSIGN(AcceleratorDelegate); | 34 DISALLOW_COPY_AND_ASSIGN(AcceleratorDelegate); |
34 }; | 35 }; |
35 | 36 |
36 } // namespace ash | 37 } // namespace ash |
37 | 38 |
38 #endif // ASH_ACCELERATORS_ACCELERATOR_DELEGATE_H_ | 39 #endif // ASH_ACCELERATORS_ACCELERATOR_DELEGATE_H_ |
OLD | NEW |