Chromium Code Reviews| OLD | NEW |
|---|---|
| (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 | |
|
oshima
2012/01/25 18:38:57
Please add description what this is for.
| |
| 14 #if defined(OS_MACOSX) | |
|
oshima
2012/01/25 18:38:57
do you need this now?
| |
| 15 class ASH_EXPORT AcceleratorDispatcher { | |
| 16 #else | |
| 17 class ASH_EXPORT AcceleratorDispatcher : public MessageLoop::Dispatcher { | |
| 18 #endif // defined(OS_MACOSX) | |
|
oshima
2012/01/25 18:38:57
two spaces before //
| |
| 19 public: | |
| 20 explicit AcceleratorDispatcher(MessageLoop::Dispatcher* nested_dispatcher); | |
| 21 | |
| 22 #if defined(OS_LINUX) | |
| 23 virtual base::MessagePumpDispatcher::DispatchStatus Dispatch( | |
| 24 XEvent* xev) OVERRIDE; | |
| 25 #elif defined(OS_WIN) | |
| 26 bool AcceleratorDispatcher::Dispatch(const MSG& msg) OVERRIDE; | |
| 27 #endif | |
| 28 | |
| 29 private: | |
| 30 MessageLoop::Dispatcher* nested_dispatcher_; | |
| 31 | |
| 32 DISALLOW_COPY_AND_ASSIGN(AcceleratorDispatcher); | |
| 33 }; | |
| 34 | |
| 35 } // namespace ash | |
|
oshima
2012/01/25 18:38:57
two spaces before //
| |
| 36 | |
| 37 #endif // ASH_ACCELERATORS_ACCELERATOR_DISPATCHER_H_ | |
| OLD | NEW |