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

Side by Side Diff: ui/aura/client/accelerator_client.h

Issue 9224001: Fixes issue with accelerators when a menu is open (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Changes as suggested by oshima Created 8 years, 10 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
OLDNEW
(Empty)
1 // Copyright (c) 2012 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_AURA_ACCELERATOR_CLIENT_H_
6 #define UI_AURA_ACCELERATOR_CLIENT_H_
7 #pragma once
8
9 #include "ui/aura/aura_export.h"
10
11 namespace ui {
12 class Accelerator;
13 }
14
15 namespace aura {
16
17 namespace client {
18
19 // A property key to store the accelerator controller for menus. The type of the
20 // value is |aura::client::AcceleratorClient*|.
21 AURA_EXPORT extern const char kMenuAcceleratorClient[];
22
23 // An interface implemented by an object which handles aura accelerators.
24 class AURA_EXPORT AcceleratorClient {
25 public:
26 virtual bool Process(const ui::Accelerator& accelerator) = 0;
oshima 2012/01/27 21:41:34 Can you pass base::NativeEvent so that menu_contro
27 };
28
29 AURA_EXPORT void SetAcceleratorClient(AcceleratorClient* client);
30 AURA_EXPORT AcceleratorClient* GetAcceleratorClient();
31
32 } // namespace client
33 } // namespace aura
34
35 #endif // UI_AURA_ACCELERATOR_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698