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

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

Issue 2656823008: New MenuController Checks (Closed)
Patch Set: Created 3 years, 10 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 | « no previous file | ui/views/controls/menu/menu_controller.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 556 matching lines...) Expand 10 before | Expand all | Expand 10 after
567 567
568 // If true, Run blocks. If false, Run doesn't block and this is used for 568 // If true, Run blocks. If false, Run doesn't block and this is used for
569 // drag and drop. Note that the semantics for drag and drop are slightly 569 // drag and drop. Note that the semantics for drag and drop are slightly
570 // different: cancel timer is kicked off any time the drag moves outside the 570 // different: cancel timer is kicked off any time the drag moves outside the
571 // menu, mouse events do nothing... 571 // menu, mouse events do nothing...
572 bool blocking_run_; 572 bool blocking_run_;
573 573
574 // If true, we're showing. 574 // If true, we're showing.
575 bool showing_; 575 bool showing_;
576 576
577 // If true running has began and there are still delegates which have not been
sky 2017/01/27 20:16:47 Please add references to bug where with a TODO tha
jonross 2017/01/27 20:27:36 Done.
578 // closed. We may not be showing.
579 bool running_;
580
577 // Indicates what to exit. 581 // Indicates what to exit.
578 ExitType exit_type_; 582 ExitType exit_type_;
579 583
580 // Whether we did a capture. We do a capture only if we're blocking and 584 // Whether we did a capture. We do a capture only if we're blocking and
581 // the mouse was down when Run. 585 // the mouse was down when Run.
582 bool did_capture_; 586 bool did_capture_;
583 587
584 // As the user drags the mouse around pending_state_ changes immediately. 588 // As the user drags the mouse around pending_state_ changes immediately.
585 // When the user stops moving/dragging the mouse (or clicks the mouse) 589 // When the user stops moving/dragging the mouse (or clicks the mouse)
586 // pending_state_ is committed to state_, potentially resulting in 590 // pending_state_ is committed to state_, potentially resulting in
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
705 #if defined(USE_AURA) 709 #if defined(USE_AURA)
706 std::unique_ptr<MenuPreTargetHandler> menu_pre_target_handler_; 710 std::unique_ptr<MenuPreTargetHandler> menu_pre_target_handler_;
707 #endif 711 #endif
708 712
709 DISALLOW_COPY_AND_ASSIGN(MenuController); 713 DISALLOW_COPY_AND_ASSIGN(MenuController);
710 }; 714 };
711 715
712 } // namespace views 716 } // namespace views
713 717
714 #endif // UI_VIEWS_CONTROLS_MENU_MENU_CONTROLLER_H_ 718 #endif // UI_VIEWS_CONTROLS_MENU_MENU_CONTROLLER_H_
OLDNEW
« no previous file with comments | « no previous file | ui/views/controls/menu/menu_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698