Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | |
|
oshima
2012/01/23 18:06:39
2012
| |
| 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_HANDLER_H_ | |
| 6 #define ASH_ACCELERATORS_ACCELERATOR_HANDLER_H_ | |
| 7 #pragma once | |
| 8 | |
| 9 #include "ash/ash_export.h" | |
| 10 #include "base/message_loop.h" | |
| 11 | |
| 12 namespace ash { | |
| 13 | |
| 14 #if defined(OS_MACOSX) | |
| 15 class ASH_EXPORT AcceleratorHandler { | |
| 16 #else | |
| 17 class ASH_EXPORT AcceleratorHandler : public MessageLoop::Dispatcher { | |
|
oshima
2012/01/23 18:06:39
There is an "AcceleratorHandler" class in views/fo
pkotwicz
2012/01/23 19:33:02
Oshima, do you have any suggestions for names?
oshima
2012/01/23 21:40:52
AcceleratorDispatcher? Hmm, I'm not good at coming
| |
| 18 #endif //defined(OS_MACOSX) | |
| 19 public: | |
| 20 AcceleratorHandler(MessageLoop::Dispatcher* nested_dispatcher); | |
|
oshima
2012/01/23 18:06:39
explicit
| |
| 21 | |
| 22 #if defined(OS_LINUX) | |
| 23 virtual base::MessagePumpDispatcher::DispatchStatus Dispatch( | |
| 24 XEvent* xev) OVERRIDE; | |
| 25 #endif | |
| 26 protected: | |
|
oshima
2012/01/23 18:06:39
can this be private?
| |
| 27 MessageLoop::Dispatcher* nested_dispatcher_; | |
|
oshima
2012/01/23 18:06:39
DISALLOW_COPY_AND_ASSIGN
| |
| 28 }; | |
| 29 | |
| 30 } // namespace ash | |
| 31 | |
| 32 #endif // ASH_ACCELERATORS_ACCELERATOR_HANDLER_H_ | |
| OLD | NEW |