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_controller.h

Issue 2828913003: Replace "nested message loop" with "nested run loop" in comments. (Closed)
Patch Set: rebase Created 3 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
« no previous file with comments | « ui/events/test/event_generator.h ('k') | ui/views/controls/menu/menu_controller_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_CONTROLLER_H_ 5 #ifndef UI_VIEWS_CONTROLS_MENU_MENU_CONTROLLER_H_
6 #define UI_VIEWS_CONTROLS_MENU_MENU_CONTROLLER_H_ 6 #define UI_VIEWS_CONTROLS_MENU_MENU_CONTROLLER_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include <list> 10 #include <list>
(...skipping 290 matching lines...) Expand 10 before | Expand all | Expand 10 after
301 // to show/hide submenus and update state_. 301 // to show/hide submenus and update state_.
302 void SetSelection(MenuItemView* menu_item, int types); 302 void SetSelection(MenuItemView* menu_item, int types);
303 303
304 void SetSelectionOnPointerDown(SubmenuView* source, 304 void SetSelectionOnPointerDown(SubmenuView* source,
305 const ui::LocatedEvent* event); 305 const ui::LocatedEvent* event);
306 void StartDrag(SubmenuView* source, const gfx::Point& location); 306 void StartDrag(SubmenuView* source, const gfx::Point& location);
307 307
308 // Key processing. 308 // Key processing.
309 void OnKeyDown(ui::KeyboardCode key_code); 309 void OnKeyDown(ui::KeyboardCode key_code);
310 310
311 // Creates a MenuController. If |blocking| is true a nested message loop is 311 // Creates a MenuController. If |blocking| is true a nested run loop is
312 // started in |Run|. 312 // started in |Run|.
313 MenuController(bool blocking, 313 MenuController(bool blocking,
314 internal::MenuControllerDelegate* delegate); 314 internal::MenuControllerDelegate* delegate);
315 315
316 ~MenuController() override; 316 ~MenuController() override;
317 317
318 // Runs the platform specific bits of the message loop. 318 // Runs the platform specific bits of the message loop.
319 void RunMessageLoop(); 319 void RunMessageLoop();
320 320
321 // Invokes AcceleratorPressed() on the hot tracked view if there is one. 321 // Invokes AcceleratorPressed() on the hot tracked view if there is one.
(...skipping 360 matching lines...) Expand 10 before | Expand all | Expand 10 after
682 #if defined(USE_AURA) 682 #if defined(USE_AURA)
683 std::unique_ptr<MenuPreTargetHandler> menu_pre_target_handler_; 683 std::unique_ptr<MenuPreTargetHandler> menu_pre_target_handler_;
684 #endif 684 #endif
685 685
686 DISALLOW_COPY_AND_ASSIGN(MenuController); 686 DISALLOW_COPY_AND_ASSIGN(MenuController);
687 }; 687 };
688 688
689 } // namespace views 689 } // namespace views
690 690
691 #endif // UI_VIEWS_CONTROLS_MENU_MENU_CONTROLLER_H_ 691 #endif // UI_VIEWS_CONTROLS_MENU_MENU_CONTROLLER_H_
OLDNEW
« no previous file with comments | « ui/events/test/event_generator.h ('k') | ui/views/controls/menu/menu_controller_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698