Chromium Code Reviews| OLD | NEW |
|---|---|
| (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_ | |
| OLD | NEW |