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

Unified Diff: ui/views/controls/button/menu_button.h

Issue 639893003: Unify MenuButton Pushed state logic (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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
« no previous file with comments | « no previous file | ui/views/controls/button/menu_button.cc » ('j') | ui/views/controls/button/menu_button.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/controls/button/menu_button.h
diff --git a/ui/views/controls/button/menu_button.h b/ui/views/controls/button/menu_button.h
index a1baf05cc5f30e95bd28a555e90b89e5d56d8fd3..afaf4d0d92de30a504042abdc6529796a50ccb67 100644
--- a/ui/views/controls/button/menu_button.h
+++ b/ui/views/controls/button/menu_button.h
@@ -85,6 +85,9 @@ class VIEWS_EXPORT MenuButton : public LabelButton {
// Overridden from LabelButton:
virtual gfx::Rect GetChildAreaBounds() override;
+ // Overridden from CustomButton:
+ virtual bool ShouldEnterPushedState(const ui::Event& event) OVERRIDE;
+
// Offset of the associated menu position.
gfx::Point menu_offset_;
« no previous file with comments | « no previous file | ui/views/controls/button/menu_button.cc » ('j') | ui/views/controls/button/menu_button.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698