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

Side by Side Diff: ui/base/accelerators/accelerator_manager_delegate.h

Issue 2177983002: Adds AcceleratorManagerDelegate (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: cleanup 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 2016 The Chromium Authors. All rights reserved.
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 UI_BASE_ACCELERATORS_ACCELERATOR_MANAGER_DELEGATE_H_
6 #define UI_BASE_ACCELERATORS_ACCELERATOR_MANAGER_DELEGATE_H_
7
8 #include "ui/base/ui_base_export.h"
9
10 namespace ui {
11
12 class Accelerator;
13
14 class UI_BASE_EXPORT AcceleratorManagerDelegate {
15 public:
16 // Called the first time a target is registered for |accelerator|. This is
17 // only called the first time a target is registered for a unique accelerator.
18 // For example, if Register() is called twice with the same accelerator
19 // this is called only for the first call.
20 virtual void OnAcceleratorRegistered(const Accelerator& accelerator) = 0;
21
22 // Called when there no more targets are registered for |accelerator|.
23 virtual void OnAcceleratorUnregistered(const Accelerator& accelerator) = 0;
24
25 protected:
26 virtual ~AcceleratorManagerDelegate() {}
27 };
28
29 } // namespace ui
30
31 #endif // UI_BASE_ACCELERATORS_ACCELERATOR_MANAGER_DELEGATE_H_
OLDNEW
« no previous file with comments | « ui/base/accelerators/accelerator_manager.cc ('k') | ui/base/accelerators/accelerator_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698