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

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

Issue 267593005: Refactor menu controller to isolate aura dependency. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Removing ifdefs, work in progress Created 6 years, 7 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2014 The Chromium Authors. All rights reserved.
tapted 2014/05/04 23:43:39 nit: No "(c)" in headers any more
Andre 2014/05/05 22:41:29 Done.
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_H_
6 #define UI_VIEWS_CONTROLS_MENU_MENU_MESSAGE_LOOP_H_
7
8 namespace ui {
9 class LocatedEvent;
10 }
11
12 namespace views {
13
14 class MenuController;
15
16 class MenuMessageLoop {
tapted 2014/05/04 23:43:39 nit: should have a class comment
Andre 2014/05/05 22:41:29 Done.
17 public:
18 virtual ~MenuMessageLoop() {}
19 // Runs the platform specific bits of the message loop. If |nested_menu| is
20 // true we're being asked to run a menu from within a menu (eg a context
21 // menu).
22 virtual void Run(MenuController*, bool nested_menu);
tapted 2014/05/04 23:43:39 It's more typical to declare a pure-virtual interf
Andre 2014/05/05 22:41:29 Done.
23
24 bool ShouldQuitNow() const;
25 virtual void QuitNow();
26 void RepostEvent(const ui::LocatedEvent& event);
27 };
tapted 2014/05/04 23:43:39 nit (unless it's just pure virtual methods): priv
Andre 2014/05/05 22:41:29 Changed to pure virtual.
28
29 } // namespace views
30
31 #endif // UI_VIEWS_CONTROLS_MENU_MENU_MESSAGE_LOOP_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698