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

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

Issue 2811643003: chromeos: Cleanup comments and DEPS in //ash (Closed)
Patch Set: comments Created 3 years, 8 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
« no previous file with comments | « ash/README.md ('k') | ash/mus/DEPS » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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_HANDLER_AURA_H_ 5 #ifndef ASH_ACCELERATORS_ACCELERATOR_HANDLER_AURA_H_
6 #define ASH_ACCELERATORS_ACCELERATOR_HANDLER_AURA_H_ 6 #define ASH_ACCELERATORS_ACCELERATOR_HANDLER_AURA_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "ash/accelerators/accelerator_controller_delegate.h" 10 #include "ash/accelerators/accelerator_controller_delegate.h"
11 #include "base/macros.h" 11 #include "base/macros.h"
12 12
13 namespace ash { 13 namespace ash {
14 14
15 class ScreenshotDelegate; 15 class ScreenshotDelegate;
16 16
17 // Contains all the accelerators that have dependencies on portions of ash 17 // Support for accelerators that only work in classic ash and not in mash,
18 // not yet converted to ash/common. When adding a new accelerator that only 18 // for example accelerators related to display management. These sorts of
19 // depends on ash/common code, add it to accelerator_controller.cc instead. 19 // accelerators should be rare. Most new accelerators should be added to
20 // accelerator_controller.cc instead.
20 class ASH_EXPORT AcceleratorControllerDelegateAura 21 class ASH_EXPORT AcceleratorControllerDelegateAura
21 : public AcceleratorControllerDelegate { 22 : public AcceleratorControllerDelegate {
22 public: 23 public:
23 AcceleratorControllerDelegateAura(); 24 AcceleratorControllerDelegateAura();
24 ~AcceleratorControllerDelegateAura() override; 25 ~AcceleratorControllerDelegateAura() override;
25 26
26 void SetScreenshotDelegate( 27 void SetScreenshotDelegate(
27 std::unique_ptr<ScreenshotDelegate> screenshot_delegate); 28 std::unique_ptr<ScreenshotDelegate> screenshot_delegate);
28 ScreenshotDelegate* screenshot_delegate() { 29 ScreenshotDelegate* screenshot_delegate() {
29 return screenshot_delegate_.get(); 30 return screenshot_delegate_.get();
30 } 31 }
31 32
32 // AcceleratorControllerDelegate: 33 // AcceleratorControllerDelegate:
33 bool HandlesAction(AcceleratorAction action) override; 34 bool HandlesAction(AcceleratorAction action) override;
34 bool CanPerformAction(AcceleratorAction action, 35 bool CanPerformAction(AcceleratorAction action,
35 const ui::Accelerator& accelerator, 36 const ui::Accelerator& accelerator,
36 const ui::Accelerator& previous_accelerator) override; 37 const ui::Accelerator& previous_accelerator) override;
37 void PerformAction(AcceleratorAction action, 38 void PerformAction(AcceleratorAction action,
38 const ui::Accelerator& accelerator) override; 39 const ui::Accelerator& accelerator) override;
39 40
40 private: 41 private:
41 std::unique_ptr<ScreenshotDelegate> screenshot_delegate_; 42 std::unique_ptr<ScreenshotDelegate> screenshot_delegate_;
42 43
43 DISALLOW_COPY_AND_ASSIGN(AcceleratorControllerDelegateAura); 44 DISALLOW_COPY_AND_ASSIGN(AcceleratorControllerDelegateAura);
44 }; 45 };
45 46
46 } // namespace ash 47 } // namespace ash
47 48
48 #endif // ASH_ACCELERATORS_ACCELERATOR_HANDLER_AURA_H_ 49 #endif // ASH_ACCELERATORS_ACCELERATOR_HANDLER_AURA_H_
OLDNEW
« no previous file with comments | « ash/README.md ('k') | ash/mus/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698