Commit 14f06d99 authored by flackr@chromium.org's avatar flackr@chromium.org

Consume TAP regardless of menu result to avoid setting HOT state in CustomButton.

BUG=137704
TEST=Tap on wrench menu and tap out of wrench menu, button returns to normal state.


Review URL: https://chromiumcodereview.appspot.com/10823004

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@148375 0039d316-1c4b-4281-b951-d872f2087c98
parent a4fb67a6
......@@ -224,6 +224,7 @@ ui::GestureStatus MenuButton::OnGestureEvent(const GestureEvent& event) {
if (state() != BS_DISABLED && event.type() == ui::ET_GESTURE_TAP) {
if (Activate())
return ui::GESTURE_STATUS_CONSUMED;
return ui::GESTURE_STATUS_UNKNOWN;
}
return TextButton::OnGestureEvent(event);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment