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

Unified Diff: chrome/browser/ui/views/toolbar/toolbar_action_view.h

Issue 1246643004: [Extensions UI] Highlight toolbar extensions when the redesign bubble is active (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/views/toolbar/toolbar_action_view.h
diff --git a/chrome/browser/ui/views/toolbar/toolbar_action_view.h b/chrome/browser/ui/views/toolbar/toolbar_action_view.h
index aaaddb08d0c7c7e38d1cde030ddd8c939790732d..bf19e1e6649686e70451fd8121d4b57208b5246f 100644
--- a/chrome/browser/ui/views/toolbar/toolbar_action_view.h
+++ b/chrome/browser/ui/views/toolbar/toolbar_action_view.h
@@ -56,6 +56,9 @@ class ToolbarActionView : public views::MenuButton,
// reference point for a popup when this view isn't visible.
virtual views::MenuButton* GetOverflowReferenceView() = 0;
+ // Notifies the delegate that the mouse entered the view.
+ virtual void OnMouseEnteredToolbarActionView() = 0;
+
protected:
~Delegate() override {}
};
@@ -86,6 +89,7 @@ class ToolbarActionView : public views::MenuButton,
// menu buttons only enter a pressed state on release (if they're draggable).
// We should probably just pick a behavior, and stick to it.
bool Activate() override;
+ void OnMouseEntered(const ui::MouseEvent& event) override;
bool OnMousePressed(const ui::MouseEvent& event) override;
void OnMouseReleased(const ui::MouseEvent& event) override;
void OnMouseExited(const ui::MouseEvent& event) override;

Powered by Google App Engine
This is Rietveld 408576698