Don't show supervised user as "already on this device" while they're being imported.
[chromium-blink-merge.git] / ui / views / controls / menu / menu_event_dispatcher_linux.h
blob657cb7e300d734d09e2ff0637b6cd2497cf5fb29
1 // Copyright 2014 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.
5 #include "base/macros.h"
6 #include "ui/events/platform/platform_event_dispatcher.h"
8 namespace views {
10 class MenuController;
12 namespace internal {
14 // A message-pump dispatcher object used to dispatch events from the nested
15 // message-loop initiated by the MenuController.
16 class MenuEventDispatcher : public ui::PlatformEventDispatcher {
17 public:
18 explicit MenuEventDispatcher(MenuController* menu_controller);
19 ~MenuEventDispatcher() override;
21 private:
22 // ui::PlatformEventDispatcher:
23 bool CanDispatchEvent(const ui::PlatformEvent& event) override;
24 uint32_t DispatchEvent(const ui::PlatformEvent& event) override;
26 MenuController* menu_controller_;
28 DISALLOW_COPY_AND_ASSIGN(MenuEventDispatcher);
31 } // namespace internal
32 } // namespace views