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

Issue 10534092: Add touch gestures to views menu controls. (Closed)

Created:
8 years, 6 months ago by flackr
Modified:
8 years, 6 months ago
Reviewers:
sadrul, sky
CC:
chromium-reviews, tfarina, ben+watch_chromium.org
Visibility:
Public.

Description

Add touch gestures to views menu controls. BUG=131200 TEST=Run chrome with --aura-disable-mouse-events-from-touch --enable-touch-events and navigate the wrench menu, selecting an item. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=141796

Patch Set 1 #

Total comments: 5

Patch Set 2 : Move OnGestureEvent to proper order in file. #

Patch Set 3 : ReleaseCapture if capture was started. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+21 lines, -2 lines) Patch
M ui/views/controls/button/custom_button.cc View 1 chunk +1 line, -1 line 0 comments Download
M ui/views/controls/button/menu_button.h View 1 chunk +1 line, -0 lines 0 comments Download
M ui/views/controls/button/menu_button.cc View 1 2 chunks +9 lines, -0 lines 0 comments Download
M ui/views/controls/menu/menu_controller.cc View 1 chunk +8 lines, -0 lines 0 comments Download
M ui/views/widget/widget.cc View 1 2 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 12 (0 generated)
flackr
PTAL, thanks!
8 years, 6 months ago (2012-06-11 15:19:20 UTC) #1
sadrul
LGTM with nits (but wait for sky@s full review too) https://chromiumcodereview.appspot.com/10534092/diff/1/ui/views/controls/button/menu_button.cc File ui/views/controls/button/menu_button.cc (right): https://chromiumcodereview.appspot.com/10534092/diff/1/ui/views/controls/button/menu_button.cc#newcode241 ...
8 years, 6 months ago (2012-06-11 16:00:36 UTC) #2
sky
Is there an expectation that menus show on a down event so that you can ...
8 years, 6 months ago (2012-06-11 18:28:01 UTC) #3
flackr
On 2012/06/11 18:28:01, sky wrote: > Is there an expectation that menus show on a ...
8 years, 6 months ago (2012-06-11 18:36:03 UTC) #4
sky
https://chromiumcodereview.appspot.com/10534092/diff/1/ui/views/widget/widget.cc File ui/views/widget/widget.cc (left): https://chromiumcodereview.appspot.com/10534092/diff/1/ui/views/widget/widget.cc#oldcode1114 ui/views/widget/widget.cc:1114: ReleaseCapture(); This is needed for tab dragging.
8 years, 6 months ago (2012-06-11 19:15:56 UTC) #5
flackr
https://chromiumcodereview.appspot.com/10534092/diff/1/ui/views/controls/button/menu_button.cc File ui/views/controls/button/menu_button.cc (right): https://chromiumcodereview.appspot.com/10534092/diff/1/ui/views/controls/button/menu_button.cc#newcode241 ui/views/controls/button/menu_button.cc:241: ui::GestureStatus MenuButton::OnGestureEvent(const GestureEvent& event) { On 2012/06/11 16:00:37, sadrul ...
8 years, 6 months ago (2012-06-11 19:34:44 UTC) #6
sky
What if you only do it when ShouldReleaseCaptureOnMouseReleased() is true.
8 years, 6 months ago (2012-06-11 20:14:20 UTC) #7
flackr
On 2012/06/11 20:14:20, sky wrote: > What if you only do it when ShouldReleaseCaptureOnMouseReleased() is ...
8 years, 6 months ago (2012-06-11 20:31:54 UTC) #8
flackr
sky, ping
8 years, 6 months ago (2012-06-12 20:14:09 UTC) #9
sky
LGTM
8 years, 6 months ago (2012-06-12 21:26:28 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/flackr@chromium.org/10534092/2002
8 years, 6 months ago (2012-06-12 22:24:25 UTC) #11
commit-bot: I haz the power
8 years, 6 months ago (2012-06-13 00:08:08 UTC) #12
Change committed as 141796

Powered by Google App Engine
This is Rietveld 408576698