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

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

Issue 2282853002: ash: Add comment about where to add new accelerators (Closed)
Patch Set: Created 4 years, 3 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 | « no previous file | ash/accelerators/accelerator_controller_delegate_aura.cc » ('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/common/accelerators/accelerator_controller_delegate.h" 10 #include "ash/common/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 // Contains all the accelerators that have dependencies on portions of ash
18 // not yet converted to ash/common. 18 // not yet converted to ash/common. When adding a new accelerator that only
19 // depends on ash/common code, add it to accelerator_controller.cc instead.
19 class ASH_EXPORT AcceleratorControllerDelegateAura 20 class ASH_EXPORT AcceleratorControllerDelegateAura
20 : public AcceleratorControllerDelegate { 21 : public AcceleratorControllerDelegate {
21 public: 22 public:
22 AcceleratorControllerDelegateAura(); 23 AcceleratorControllerDelegateAura();
23 ~AcceleratorControllerDelegateAura() override; 24 ~AcceleratorControllerDelegateAura() override;
24 25
25 void SetScreenshotDelegate( 26 void SetScreenshotDelegate(
26 std::unique_ptr<ScreenshotDelegate> screenshot_delegate); 27 std::unique_ptr<ScreenshotDelegate> screenshot_delegate);
27 ScreenshotDelegate* screenshot_delegate() { 28 ScreenshotDelegate* screenshot_delegate() {
28 return screenshot_delegate_.get(); 29 return screenshot_delegate_.get();
(...skipping 13 matching lines...) Expand all
42 43
43 private: 44 private:
44 std::unique_ptr<ScreenshotDelegate> screenshot_delegate_; 45 std::unique_ptr<ScreenshotDelegate> screenshot_delegate_;
45 46
46 DISALLOW_COPY_AND_ASSIGN(AcceleratorControllerDelegateAura); 47 DISALLOW_COPY_AND_ASSIGN(AcceleratorControllerDelegateAura);
47 }; 48 };
48 49
49 } // namespace ash 50 } // namespace ash
50 51
51 #endif // ASH_ACCELERATORS_ACCELERATOR_HANDLER_AURA_H_ 52 #endif // ASH_ACCELERATORS_ACCELERATOR_HANDLER_AURA_H_
OLDNEW
« no previous file with comments | « no previous file | ash/accelerators/accelerator_controller_delegate_aura.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698