| Index: ui/views/controls/menu/menu_event_dispatcher_linux.h
|
| diff --git a/ui/views/controls/menu/menu_event_dispatcher_linux.h b/ui/views/controls/menu/menu_event_dispatcher_linux.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..bdc76fd88ba4302272b2beb444596f1ef3607b0f
|
| --- /dev/null
|
| +++ b/ui/views/controls/menu/menu_event_dispatcher_linux.h
|
| @@ -0,0 +1,32 @@
|
| +// Copyright 2014 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.
|
| +
|
| +#include "base/macros.h"
|
| +#include "ui/events/platform/platform_event_dispatcher.h"
|
| +
|
| +namespace views {
|
| +
|
| +class MenuController;
|
| +
|
| +namespace internal {
|
| +
|
| +// A message-pump dispatcher object used to dispatch events from the nested
|
| +// message-loop initiated by the MenuController.
|
| +class MenuEventDispatcher : public ui::PlatformEventDispatcher {
|
| + public:
|
| + explicit MenuEventDispatcher(MenuController* menu_controller);
|
| + virtual ~MenuEventDispatcher();
|
| +
|
| + private:
|
| + // ui::PlatformEventDispatcher:
|
| + virtual bool CanDispatchEvent(const ui::PlatformEvent& event) OVERRIDE;
|
| + virtual uint32_t DispatchEvent(const ui::PlatformEvent& event) OVERRIDE;
|
| +
|
| + MenuController* menu_controller_;
|
| +
|
| + DISALLOW_COPY_AND_ASSIGN(MenuEventDispatcher);
|
| +};
|
| +
|
| +} // namespace internal
|
| +} // namespace views
|
|
|