Chromium Code Reviews| Index: ash/accelerators/accelerator_handler.h |
| diff --git a/ash/accelerators/accelerator_handler.h b/ash/accelerators/accelerator_handler.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..5480614500f28ee09fff6a617ac51ca620349980 |
| --- /dev/null |
| +++ b/ash/accelerators/accelerator_handler.h |
| @@ -0,0 +1,34 @@ |
| +// 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_HANDLER_H_ |
| +#define ASH_ACCELERATORS_ACCELERATOR_HANDLER_H_ |
| +#pragma once |
| + |
| +#include "ash/ash_export.h" |
| +#include "base/message_loop.h" |
| + |
| +namespace ash { |
| + |
| +#if defined(OS_MACOSX) |
| +class ASH_EXPORT AcceleratorHandler { |
| +#else |
| +class ASH_EXPORT AcceleratorHandler : public MessageLoop::Dispatcher { |
| +#endif // defined(OS_MACOSX) |
| + public: |
| + explicit AcceleratorHandler(MessageLoop::Dispatcher* nested_dispatcher); |
| + |
| +#if defined(OS_LINUX) |
|
sky
2012/01/23 23:14:35
What about windows?
|
| + virtual base::MessagePumpDispatcher::DispatchStatus Dispatch( |
| + XEvent* xev) OVERRIDE; |
| +#endif |
| + private: |
|
sky
2012/01/23 23:14:35
newline between 25 and 26.
|
| + MessageLoop::Dispatcher* nested_dispatcher_; |
| + |
| + DISALLOW_COPY_AND_ASSIGN(AcceleratorHandler); |
| +}; |
| + |
| +} // namespace ash |
| + |
| +#endif // ASH_ACCELERATORS_ACCELERATOR_HANDLER_H_ |