Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1)

Side by Side Diff: ui/views/controls/menu/menu_message_loop_aura.h

Issue 851853002: It is time. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Trying to reup because the last upload failed. Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
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.
4
5 #ifndef UI_VIEWS_CONTROLS_MENU_MENU_MESSAGE_LOOP_AURA_H_
6 #define UI_VIEWS_CONTROLS_MENU_MENU_MESSAGE_LOOP_AURA_H_
7
8 #include "base/callback.h"
9 #include "base/compiler_specific.h"
10 #include "base/memory/scoped_ptr.h"
11 #include "ui/views/controls/menu/menu_message_loop.h"
12
13 namespace base {
14 class MessagePumpDispatcher;
15 }
16
17 namespace ui {
18 class ScopedEventDispatcher;
19 }
20
21 namespace views {
22
23 class MenuMessageLoopAura : public MenuMessageLoop {
24 public:
25 MenuMessageLoopAura();
26 virtual ~MenuMessageLoopAura();
27
28 // Overridden from MenuMessageLoop:
29 virtual void Run(MenuController* controller,
30 Widget* owner,
31 bool nested_menu) override;
32 virtual bool ShouldQuitNow() const override;
33 virtual void QuitNow() override;
34 virtual void RepostEventToWindow(const ui::LocatedEvent& event,
35 gfx::NativeWindow window,
36 const gfx::Point& screen_loc) override;
37 virtual void ClearOwner() override;
38
39 private:
40 // Owner of child windows.
41 // WARNING: this may be NULL.
42 Widget* owner_;
43
44 scoped_ptr<ui::ScopedEventDispatcher> nested_dispatcher_;
45 base::Closure message_loop_quit_;
46
47 DISALLOW_COPY_AND_ASSIGN(MenuMessageLoopAura);
48 };
49
50 } // namespace views
51
52 #endif // UI_VIEWS_CONTROLS_MENU_MENU_MESSAGE_LOOP_AURA_H_
OLDNEW
« no previous file with comments | « ui/views/controls/menu/menu_message_loop.h ('k') | ui/views/controls/menu/menu_message_loop_aura.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698