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

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

Issue 1138523006: Enable keyboard accelerators while a menu is open (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Working solution (Even on Windows) Created 5 years, 6 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
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_event_filter.h"
11 #include "ui/views/controls/menu/menu_message_loop.h" 12 #include "ui/views/controls/menu/menu_message_loop.h"
12 13
13 namespace base { 14 namespace base {
14 class MessagePumpDispatcher; 15 class MessagePumpDispatcher;
15 } 16 }
16 17
17 namespace ui { 18 namespace ui {
18 class ScopedEventDispatcher; 19 class ScopedEventDispatcher;
19 } 20 }
20 21
(...skipping 12 matching lines...) Expand all
33 void RepostEventToWindow(const ui::LocatedEvent& event, 34 void RepostEventToWindow(const ui::LocatedEvent& event,
34 gfx::NativeWindow window, 35 gfx::NativeWindow window,
35 const gfx::Point& screen_loc) override; 36 const gfx::Point& screen_loc) override;
36 void ClearOwner() override; 37 void ClearOwner() override;
37 38
38 private: 39 private:
39 // Owner of child windows. 40 // Owner of child windows.
40 // WARNING: this may be NULL. 41 // WARNING: this may be NULL.
41 Widget* owner_; 42 Widget* owner_;
42 43
44 scoped_ptr<MenuEventFilter> menu_event_filter_;
45
43 base::Closure message_loop_quit_; 46 base::Closure message_loop_quit_;
44 47
45 DISALLOW_COPY_AND_ASSIGN(MenuMessageLoopAura); 48 DISALLOW_COPY_AND_ASSIGN(MenuMessageLoopAura);
46 }; 49 };
47 50
48 } // namespace views 51 } // namespace views
49 52
50 #endif // UI_VIEWS_CONTROLS_MENU_MENU_MESSAGE_LOOP_AURA_H_ 53 #endif // UI_VIEWS_CONTROLS_MENU_MENU_MESSAGE_LOOP_AURA_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698