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

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

Issue 10823004: Consume TAP regardless of menu result to avoid setting HOT state in CustomButton. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/controls/button/menu_button.cc
diff --git a/ui/views/controls/button/menu_button.cc b/ui/views/controls/button/menu_button.cc
index 23607f4eb56b4279bd1c44c6c31b9077279c5eed..0c4be83837c5615a493d096183b9adc6d40223fd 100644
--- a/ui/views/controls/button/menu_button.cc
+++ b/ui/views/controls/button/menu_button.cc
@@ -222,8 +222,8 @@ void MenuButton::OnMouseExited(const MouseEvent& event) {
ui::GestureStatus MenuButton::OnGestureEvent(const GestureEvent& event) {
if (state() != BS_DISABLED && event.type() == ui::ET_GESTURE_TAP) {
- if (Activate())
- return ui::GESTURE_STATUS_CONSUMED;
+ ignore_result(Activate());
sky 2012/07/25 00:48:42 You don't need ignore_result here. Are you sure th
flackr 2012/07/25 01:31:59 Yes, Activate blocks until the menu completion, af
+ return ui::GESTURE_STATUS_CONSUMED;
}
return TextButton::OnGestureEvent(event);
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698