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

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

Issue 683563002: Standardize usage of virtual/override/final specifiers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month 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
1 // Copyright 2014 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef UI_VIEWS_CONTROLS_MENU_MENU_MESSAGE_LOOP_AURA_H_ 5 #ifndef UI_VIEWS_CONTROLS_MENU_MENU_MESSAGE_LOOP_AURA_H_
6 #define UI_VIEWS_CONTROLS_MENU_MENU_MESSAGE_LOOP_AURA_H_ 6 #define UI_VIEWS_CONTROLS_MENU_MENU_MESSAGE_LOOP_AURA_H_
7 7
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
11 #include "ui/views/controls/menu/menu_message_loop.h" 11 #include "ui/views/controls/menu/menu_message_loop.h"
12 12
13 namespace base { 13 namespace base {
14 class MessagePumpDispatcher; 14 class MessagePumpDispatcher;
15 } 15 }
16 16
17 namespace ui { 17 namespace ui {
18 class ScopedEventDispatcher; 18 class ScopedEventDispatcher;
19 } 19 }
20 20
21 namespace views { 21 namespace views {
22 22
23 class MenuMessageLoopAura : public MenuMessageLoop { 23 class MenuMessageLoopAura : public MenuMessageLoop {
24 public: 24 public:
25 MenuMessageLoopAura(); 25 MenuMessageLoopAura();
26 virtual ~MenuMessageLoopAura(); 26 ~MenuMessageLoopAura() override;
27 27
28 // Overridden from MenuMessageLoop: 28 // Overridden from MenuMessageLoop:
29 virtual void Run(MenuController* controller, 29 void Run(MenuController* controller,
30 Widget* owner, 30 Widget* owner,
31 bool nested_menu) override; 31 bool nested_menu) override;
32 virtual bool ShouldQuitNow() const override; 32 bool ShouldQuitNow() const override;
33 virtual void QuitNow() override; 33 void QuitNow() override;
34 virtual void RepostEventToWindow(const ui::LocatedEvent& event, 34 void RepostEventToWindow(const ui::LocatedEvent& event,
35 gfx::NativeWindow window, 35 gfx::NativeWindow window,
36 const gfx::Point& screen_loc) override; 36 const gfx::Point& screen_loc) override;
37 virtual void ClearOwner() override; 37 void ClearOwner() override;
38 38
39 private: 39 private:
40 // Owner of child windows. 40 // Owner of child windows.
41 // WARNING: this may be NULL. 41 // WARNING: this may be NULL.
42 Widget* owner_; 42 Widget* owner_;
43 43
44 scoped_ptr<ui::ScopedEventDispatcher> nested_dispatcher_; 44 scoped_ptr<ui::ScopedEventDispatcher> nested_dispatcher_;
45 base::Closure message_loop_quit_; 45 base::Closure message_loop_quit_;
46 46
47 DISALLOW_COPY_AND_ASSIGN(MenuMessageLoopAura); 47 DISALLOW_COPY_AND_ASSIGN(MenuMessageLoopAura);
48 }; 48 };
49 49
50 } // namespace views 50 } // namespace views
51 51
52 #endif // UI_VIEWS_CONTROLS_MENU_MENU_MESSAGE_LOOP_AURA_H_ 52 #endif // UI_VIEWS_CONTROLS_MENU_MENU_MESSAGE_LOOP_AURA_H_
OLDNEW
« no previous file with comments | « ui/views/controls/menu/menu_item_view_unittest.cc ('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