Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(10)

Side by Side Diff: ash/accelerators/accelerator_controller_delegate_aura.h

Issue 2162193003: Separates out accelerators using non-common types (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@accelerators
Patch Set: fix compile issues Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698