Add ICU message format support
[chromium-blink-merge.git] / ui / views / controls / menu / menu_message_loop_mac.h
blob82ef8093f72b743998a9af67e3662ee9cb232377
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"
11 namespace base {
12 class RunLoop;
15 namespace views {
17 class MenuMessageLoopMac : public MenuMessageLoop {
18 public:
19 MenuMessageLoopMac();
20 ~MenuMessageLoopMac() override;
22 // Overridden from MenuMessageLoop:
23 void Run(MenuController* controller,
24 Widget* owner,
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;
32 private:
33 base::RunLoop* run_loop_ = nullptr;
35 DISALLOW_COPY_AND_ASSIGN(MenuMessageLoopMac);
38 } // namespace views
40 #endif // UI_VIEWS_CONTROLS_MENU_MENU_MESSAGE_LOOP_MAC_H_