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

Unified Diff: ui/views/controls/menu/menu_controller.h

Issue 1661673004: Enables hot-tracking for overflow extension buttons in the app menu (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Restores hot-tracking of extension buttons in app menu with MD (comments) Created 4 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 side-by-side diff with in-line comments
Download patch
Index: ui/views/controls/menu/menu_controller.h
diff --git a/ui/views/controls/menu/menu_controller.h b/ui/views/controls/menu/menu_controller.h
index 43c3c0ee55ee8af7300c9dab2c7bf62b9f3ac7b6..58325fe52cda550397887b8de5993a399df61cca 100644
--- a/ui/views/controls/menu/menu_controller.h
+++ b/ui/views/controls/menu/menu_controller.h
@@ -565,6 +565,13 @@ class VIEWS_EXPORT MenuController : public WidgetObserver {
void HandleMouseLocation(SubmenuView* source,
const gfx::Point& mouse_location);
+ // Updates the current |hot_button_| and its hot tracked state.
+ void SetHotTrackedButton(CustomButton* hot_button, bool is_hot_tracked);
+
+ // Sets hot-tracked state to the first focusable descendant view of |item|.
+ void SetInitialHotTrackedView(MenuItemView* item,
+ SelectionIncrementDirectionType direction);
+
// The active instance.
static MenuController* active_instance_;
@@ -663,6 +670,9 @@ class VIEWS_EXPORT MenuController : public WidgetObserver {
// See UpdateActiveMouseView() for details.
const int active_mouse_view_id_;
+ // Current hot tracked view if any.
+ CustomButton* hot_button_;
+
internal::MenuControllerDelegate* delegate_;
// How deep we are in nested message loops. This should be at most 2 (when

Powered by Google App Engine
This is Rietveld 408576698