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

Side by Side Diff: ash/accelerators/accelerator_dispatcher.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 requested Created 8 years, 11 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 ASH_ACCELERATORS_ACCELERATOR_DISPATCHER_H_
6 #define ASH_ACCELERATORS_ACCELERATOR_DISPATCHER_H_
7 #pragma once
8
9 #include "ash/ash_export.h"
10 #include "base/message_loop.h"
11
12 namespace ash {
13
14 // Dispatcher for handling accelerators in ash.
15 // Wraps a nested dispatcher to which control is passed if no accelerator key
16 // has been pressed.
17 // TODO(pkotwicz): Port AcceleratorDispatcher to mac.
18
oshima 2012/01/26 17:02:55 remove empty line
19 class ASH_EXPORT AcceleratorDispatcher : public MessageLoop::Dispatcher {
20 public:
21 explicit AcceleratorDispatcher(MessageLoop::Dispatcher* nested_dispatcher);
22
23 #if defined(USE_X11)
24 virtual base::MessagePumpDispatcher::DispatchStatus Dispatch(
25 XEvent* xev) OVERRIDE;
26 #elif defined(OS_WIN)
27 bool AcceleratorDispatcher::Dispatch(const MSG& msg) OVERRIDE;
28 #endif
29
30 private:
31 MessageLoop::Dispatcher* nested_dispatcher_;
32
33 DISALLOW_COPY_AND_ASSIGN(AcceleratorDispatcher);
34 };
35
36 } // namespace ash
37
38 #endif // ASH_ACCELERATORS_ACCELERATOR_DISPATCHER_H_
OLDNEW
« no previous file with comments | « no previous file | ash/accelerators/accelerator_dispatcher.cc » ('j') | ash/accelerators/accelerator_dispatcher_win.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698