OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef ASH_ACCELERATORS_ACCELERATOR_DELEGATE_H_ |
| 6 #define ASH_ACCELERATORS_ACCELERATOR_DELEGATE_H_ |
| 7 |
| 8 #include "ash/ash_export.h" |
| 9 #include "base/macros.h" |
| 10 #include "ui/wm/core/accelerator_delegate.h" |
| 11 |
| 12 namespace ash { |
| 13 |
| 14 class ASH_EXPORT AcceleratorDelegate : public wm::AcceleratorDelegate { |
| 15 public: |
| 16 AcceleratorDelegate(); |
| 17 virtual ~AcceleratorDelegate(); |
| 18 |
| 19 // wm::AcceleratorDelegate: |
| 20 virtual void PreProcessAccelerator( |
| 21 const ui::Accelerator& accelerator) OVERRIDE; |
| 22 virtual bool CanConsumeSystemKeys(const ui::KeyEvent& event) OVERRIDE; |
| 23 virtual bool ShouldProcessAcceleratorNow( |
| 24 const ui::KeyEvent& key_event, |
| 25 const ui::Accelerator& accelerator) OVERRIDE; |
| 26 virtual bool ProcessAccelerator(const ui::Accelerator& accelerator) OVERRIDE; |
| 27 |
| 28 private: |
| 29 DISALLOW_COPY_AND_ASSIGN(AcceleratorDelegate); |
| 30 }; |
| 31 |
| 32 } // namespace ash |
| 33 |
| 34 #endif // ASH_ACCELERATORS_ACCELERATOR_DELEGATE_H_ |
OLD | NEW |