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

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

Issue 307533007: Move common accelerator code from ash to ui/wm/core (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix linkage warning Created 6 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | ash/accelerators/accelerator_delegate.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2014 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 ASH_ACCELERATORS_ACCELERATOR_DELEGATE_H_
6 #define ASH_ACCELERATORS_ACCELERATOR_DELEGATE_H_
7
8 #include "ash/ash_export.h"
9 #include "base/macros.h"
10 #include "ui/wm/core/accelerator_delegate.h"
11
12 namespace ash {
13
14 class ASH_EXPORT AcceleratorDelegate
15 : NON_EXPORTED_BASE(public wm::AcceleratorDelegate) {
16 public:
17 AcceleratorDelegate();
18 virtual ~AcceleratorDelegate();
19
20 // wm::AcceleratorDelegate:
21 virtual void PreProcessAccelerator(
22 const ui::Accelerator& accelerator) OVERRIDE;
23 virtual bool CanConsumeSystemKeys(const ui::KeyEvent& event) OVERRIDE;
24 virtual bool ShouldProcessAcceleratorNow(
25 const ui::KeyEvent& key_event,
26 const ui::Accelerator& accelerator) OVERRIDE;
27 virtual bool ProcessAccelerator(const ui::Accelerator& accelerator) OVERRIDE;
28
29 private:
30 DISALLOW_COPY_AND_ASSIGN(AcceleratorDelegate);
31 };
32
33 } // namespace ash
34
35 #endif // ASH_ACCELERATORS_ACCELERATOR_DELEGATE_H_
OLDNEW
« no previous file with comments | « no previous file | ash/accelerators/accelerator_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698