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

Side by Side Diff: ash/common/accelerators/accelerator_controller_delegate.h

Issue 2748173002: chromeos: Show deprecated accelerator notifications in mash (Closed)
Patch Set: rebase Created 3 years, 9 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
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_COMMON_ACCELERATORS_ACCELERATOR_CONTROLLER_DELEGATE_H_ 5 #ifndef ASH_COMMON_ACCELERATORS_ACCELERATOR_CONTROLLER_DELEGATE_H_
6 #define ASH_COMMON_ACCELERATORS_ACCELERATOR_CONTROLLER_DELEGATE_H_ 6 #define ASH_COMMON_ACCELERATORS_ACCELERATOR_CONTROLLER_DELEGATE_H_
7 7
8 #include "ash/ash_export.h" 8 #include "ash/ash_export.h"
9 #include "ash/common/accelerators/accelerator_table.h" 9 #include "ash/common/accelerators/accelerator_table.h"
10 10
(...skipping 16 matching lines...) Expand all
27 // invoked if HandlesAction() returns true. 27 // invoked if HandlesAction() returns true.
28 virtual bool CanPerformAction( 28 virtual bool CanPerformAction(
29 AcceleratorAction action, 29 AcceleratorAction action,
30 const ui::Accelerator& accelerator, 30 const ui::Accelerator& accelerator,
31 const ui::Accelerator& previous_accelerator) = 0; 31 const ui::Accelerator& previous_accelerator) = 0;
32 32
33 // Performs the specified action. 33 // Performs the specified action.
34 virtual void PerformAction(AcceleratorAction action, 34 virtual void PerformAction(AcceleratorAction action,
35 const ui::Accelerator& accelerator) = 0; 35 const ui::Accelerator& accelerator) = 0;
36 36
37 // Shows a warning the user is using a deprecated accelerator.
38 virtual void ShowDeprecatedAcceleratorNotification(
39 const char* const notification_id,
40 int message_id,
41 int old_shortcut_id,
42 int new_shortcut_id) = 0;
43
44 protected: 37 protected:
45 virtual ~AcceleratorControllerDelegate() {} 38 virtual ~AcceleratorControllerDelegate() {}
46 }; 39 };
47 40
48 } // namespace ash 41 } // namespace ash
49 42
50 #endif // ASH_COMMON_ACCELERATORS_ACCELERATOR_CONTROLLER_DELEGATE_H_ 43 #endif // ASH_COMMON_ACCELERATORS_ACCELERATOR_CONTROLLER_DELEGATE_H_
OLDNEW
« no previous file with comments | « ash/common/accelerators/accelerator_controller.cc ('k') | ash/mus/accelerators/accelerator_controller_delegate_mus.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698