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 399143004: Open the WrenchMenu on mouseover when dragging a browser action (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Nit Created 6 years, 5 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 (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 "build/build_config.h" 8 #include "build/build_config.h"
9 9
10 #include <list> 10 #include <list>
(...skipping 384 matching lines...) Expand 10 before | Expand all | Expand 10 after
395 // Starts/stops the timer that commits the pending state to state 395 // Starts/stops the timer that commits the pending state to state
396 // (opens/closes submenus). 396 // (opens/closes submenus).
397 void StartShowTimer(); 397 void StartShowTimer();
398 void StopShowTimer(); 398 void StopShowTimer();
399 399
400 // Starts/stops the timer cancel the menu. This is used during drag and 400 // Starts/stops the timer cancel the menu. This is used during drag and
401 // drop when the drop enters/exits the menu. 401 // drop when the drop enters/exits the menu.
402 void StartCancelAllTimer(); 402 void StartCancelAllTimer();
403 void StopCancelAllTimer(); 403 void StopCancelAllTimer();
404 404
405 // Closes the menu because an in-progress drag-and-drop operation left the
406 // bounds of the active menu view.
407 void CancelAllForDrag();
408
405 // Calculates the bounds of the menu to show. is_leading is set to match the 409 // Calculates the bounds of the menu to show. is_leading is set to match the
406 // direction the menu opened in. 410 // direction the menu opened in.
407 gfx::Rect CalculateMenuBounds(MenuItemView* item, 411 gfx::Rect CalculateMenuBounds(MenuItemView* item,
408 bool prefer_leading, 412 bool prefer_leading,
409 bool* is_leading); 413 bool* is_leading);
410 414
411 // Calculates the bubble bounds of the menu to show. is_leading is set to 415 // Calculates the bubble bounds of the menu to show. is_leading is set to
412 // match the direction the menu opened in. 416 // match the direction the menu opened in.
413 gfx::Rect CalculateBubbleMenuBounds(MenuItemView* item, 417 gfx::Rect CalculateBubbleMenuBounds(MenuItemView* item,
414 bool prefer_leading, 418 bool prefer_leading,
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after
622 bool item_selected_by_touch_; 626 bool item_selected_by_touch_;
623 627
624 scoped_ptr<MenuMessageLoop> message_loop_; 628 scoped_ptr<MenuMessageLoop> message_loop_;
625 629
626 DISALLOW_COPY_AND_ASSIGN(MenuController); 630 DISALLOW_COPY_AND_ASSIGN(MenuController);
627 }; 631 };
628 632
629 } // namespace views 633 } // namespace views
630 634
631 #endif // UI_VIEWS_CONTROLS_MENU_MENU_CONTROLLER_H_ 635 #endif // UI_VIEWS_CONTROLS_MENU_MENU_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698