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 #ifndef UI_VIEWS_CONTROLS_MENU_MENU_MESSAGE_LOOP_MAC_H_
6 #define UI_VIEWS_CONTROLS_MENU_MENU_MESSAGE_LOOP_MAC_H_
8 #include "base/compiler_specific.h"
9 #include "ui/views/controls/menu/menu_message_loop.h"
17 class MenuMessageLoopMac
: public MenuMessageLoop
{
20 ~MenuMessageLoopMac() override
;
22 // Overridden from MenuMessageLoop:
23 void Run(MenuController
* controller
,
25 bool nested_menu
) override
;
26 void QuitNow() override
;
27 void RepostEventToWindow(const ui::LocatedEvent
& event
,
28 gfx::NativeWindow window
,
29 const gfx::Point
& screen_loc
) override
;
30 void ClearOwner() override
;
33 base::RunLoop
* run_loop_
= nullptr;
35 DISALLOW_COPY_AND_ASSIGN(MenuMessageLoopMac
);
40 #endif // UI_VIEWS_CONTROLS_MENU_MENU_MESSAGE_LOOP_MAC_H_