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

Issue 271863006: Fix gesture event handling in MenuButton (Closed)

Created:
6 years, 7 months ago by mohsen
Modified:
6 years, 7 months ago
Reviewers:
ananta, sky
CC:
chromium-reviews, tfarina
Visibility:
Public.

Description

Fix gesture event handling in MenuButton In MenuButton, when Activate() function returns true, it means the button has not shown a drop-down menu, so the gesture event handler should continue handling the event passing it up to the base class handler. On the other hand, if it returns false, the drop-down menu is shown and no more processing is needed by the button. Also, touch_down_context_ in HWNDMessageHandler is changed from boolean to integer in order to account for multiple touches happening right after each other. BUG=349881 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=270756

Patch Set 1 #

Patch Set 2 : git cl format #

Unified diffs Side-by-side diffs Delta from patch set Stats (+216 lines, -11 lines) Patch
M chrome/browser/ui/views/profiles/profile_chooser_view.cc View 1 chunk +3 lines, -0 lines 0 comments Download
M ui/views/controls/button/menu_button.cc View 1 chunk +5 lines, -3 lines 0 comments Download
A ui/views/controls/button/menu_button_unittest.cc View 1 1 chunk +199 lines, -0 lines 0 comments Download
M ui/views/views.gyp View 1 chunk +1 line, -0 lines 0 comments Download
M ui/views/win/hwnd_message_handler.h View 1 chunk +3 lines, -3 lines 0 comments Download
M ui/views/win/hwnd_message_handler.cc View 4 chunks +5 lines, -5 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
mohsen
sky@: Please take a look... ananta@: Can you take a look at changes in HWNDMessageHandler?
6 years, 7 months ago (2014-05-08 21:18:22 UTC) #1
sky
I suspect your test isn't going to work on windows. Have you tried it?
6 years, 7 months ago (2014-05-08 23:09:49 UTC) #2
mohsen
On 2014/05/08 23:09:49, sky wrote: > I suspect your test isn't going to work on ...
6 years, 7 months ago (2014-05-08 23:16:57 UTC) #3
sky
I'm worried about focus activation and all sort of stuff like that as you're creating ...
6 years, 7 months ago (2014-05-08 23:33:25 UTC) #4
mohsen
I don't think there is any focus/activation problem here. I'm using an event generator which ...
6 years, 7 months ago (2014-05-09 00:07:02 UTC) #5
sky
LGTM
6 years, 7 months ago (2014-05-09 13:55:20 UTC) #6
ananta
lgtm
6 years, 7 months ago (2014-05-15 17:20:07 UTC) #7
mohsen
The CQ bit was checked by mohsen@chromium.org
6 years, 7 months ago (2014-05-15 17:33:48 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mohsen@chromium.org/271863006/20001
6 years, 7 months ago (2014-05-15 17:36:00 UTC) #9
commit-bot: I haz the power
6 years, 7 months ago (2014-05-15 18:51:37 UTC) #10
Message was sent while issue was closed.
Change committed as 270756

Powered by Google App Engine
This is Rietveld 408576698