Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | |
|
James Cook
2016/07/20 16:08:04
2016
sky
2016/07/20 16:42:50
Done.
| |
| 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_HANDLER_AURA_H_ | |
| 6 #define ASH_ACCELERATORS_ACCELERATOR_HANDLER_AURA_H_ | |
| 7 | |
| 8 #include <memory> | |
| 9 | |
| 10 #include "ash/accelerators/accelerator_controller_delegate.h" | |
| 11 #include "base/macros.h" | |
| 12 | |
| 13 namespace ash { | |
| 14 | |
| 15 class ScreenshotDelegate; | |
| 16 | |
| 17 // Contains all the accelerators that have dependencies on portions of ash | |
| 18 // not yet converted to ash/common. | |
| 19 class ASH_EXPORT AcceleratorControllerDelegateAura | |
| 20 : public AcceleratorControllerDelegate { | |
| 21 public: | |
| 22 AcceleratorControllerDelegateAura(); | |
| 23 ~AcceleratorControllerDelegateAura() override; | |
| 24 | |
| 25 void SetScreenshotDelegate( | |
| 26 std::unique_ptr<ScreenshotDelegate> screenshot_delegate); | |
| 27 ScreenshotDelegate* screenshot_delegate() { | |
| 28 return screenshot_delegate_.get(); | |
| 29 } | |
| 30 | |
| 31 // AcceleratorControllerDelegate: | |
| 32 bool HandlesAction(AcceleratorAction action) override; | |
| 33 bool CanPerformAction(AcceleratorAction action, | |
| 34 const ui::Accelerator& accelerator, | |
| 35 const ui::Accelerator& previous_accelerator) override; | |
| 36 void PerformAction(AcceleratorAction action, | |
| 37 const ui::Accelerator& accelerator) override; | |
| 38 void ShowDeprecatedAcceleratorNotification(const char* const notification_id, | |
| 39 int message_id, | |
| 40 int old_shortcut_id, | |
| 41 int new_shortcut_id) override; | |
| 42 | |
| 43 private: | |
| 44 std::unique_ptr<ScreenshotDelegate> screenshot_delegate_; | |
| 45 | |
| 46 DISALLOW_COPY_AND_ASSIGN(AcceleratorControllerDelegateAura); | |
| 47 }; | |
| 48 | |
| 49 } // namespace ash | |
| 50 | |
| 51 #endif // ASH_ACCELERATORS_ACCELERATOR_HANDLER_AURA_H_ | |
| OLD | NEW |