Chromium Code Reviews| Index: ash/accelerators/accelerator_dispatcher.h |
| diff --git a/ash/accelerators/accelerator_dispatcher.h b/ash/accelerators/accelerator_dispatcher.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..accfdf77f9417b1d3b32a5b93d56e5cac25f4716 |
| --- /dev/null |
| +++ b/ash/accelerators/accelerator_dispatcher.h |
| @@ -0,0 +1,37 @@ |
| +// Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef ASH_ACCELERATORS_ACCELERATOR_DISPATCHER_H_ |
| +#define ASH_ACCELERATORS_ACCELERATOR_DISPATCHER_H_ |
| +#pragma once |
| + |
| +#include "ash/ash_export.h" |
| +#include "base/message_loop.h" |
| + |
| +namespace ash { |
| + |
|
oshima
2012/01/25 18:38:57
Please add description what this is for.
|
| +#if defined(OS_MACOSX) |
|
oshima
2012/01/25 18:38:57
do you need this now?
|
| +class ASH_EXPORT AcceleratorDispatcher { |
| +#else |
| +class ASH_EXPORT AcceleratorDispatcher : public MessageLoop::Dispatcher { |
| +#endif // defined(OS_MACOSX) |
|
oshima
2012/01/25 18:38:57
two spaces before //
|
| + public: |
| + explicit AcceleratorDispatcher(MessageLoop::Dispatcher* nested_dispatcher); |
| + |
| +#if defined(OS_LINUX) |
| + virtual base::MessagePumpDispatcher::DispatchStatus Dispatch( |
| + XEvent* xev) OVERRIDE; |
| +#elif defined(OS_WIN) |
| + bool AcceleratorDispatcher::Dispatch(const MSG& msg) OVERRIDE; |
| +#endif |
| + |
| + private: |
| + MessageLoop::Dispatcher* nested_dispatcher_; |
| + |
| + DISALLOW_COPY_AND_ASSIGN(AcceleratorDispatcher); |
| +}; |
| + |
| +} // namespace ash |
|
oshima
2012/01/25 18:38:57
two spaces before //
|
| + |
| +#endif // ASH_ACCELERATORS_ACCELERATOR_DISPATCHER_H_ |