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

Issue 12660016: Make long press & release to trigger context menu on tab (Closed)

Created:
7 years, 9 months ago by Yufeng Shen (Slow to review)
Modified:
7 years, 9 months ago
Reviewers:
sadrul, sky
CC:
chromium-reviews, tfarina
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Make long tap to trigger context menu on tab Showing context menu after long tap (long press & finger release) on tab. BUG=170693 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=190111

Patch Set 1 #

Total comments: 2

Patch Set 2 : long press - immdediately show context menu in non-stacking mode; delay until finger lift in stacki… #

Patch Set 3 : showing context menu after long press & finger lift (long tap) #

Total comments: 2

Patch Set 4 : fix for comments #

Total comments: 2

Patch Set 5 : addressed sky's comments #

Total comments: 2

Patch Set 6 : EndDrag() on LONG_TAP to be safe #

Unified diffs Side-by-side diffs Delta from patch set Stats (+27 lines, -10 lines) Patch
M chrome/browser/ui/views/tabs/tab_strip.cc View 1 2 3 4 5 2 chunks +27 lines, -10 lines 0 comments Download

Messages

Total messages: 27 (0 generated)
Yufeng Shen (Slow to review)
hey sky, could you please take a look at this ?
7 years, 9 months ago (2013-03-19 22:11:05 UTC) #1
sadrul
https://codereview.chromium.org/12660016/diff/1/chrome/browser/ui/views/tabs/tab_strip.cc File chrome/browser/ui/views/tabs/tab_strip.cc (right): https://codereview.chromium.org/12660016/diff/1/chrome/browser/ui/views/tabs/tab_strip.cc#newcode1512 chrome/browser/ui/views/tabs/tab_strip.cc:1512: ShowContextMenuForTab(tab, local_point); The finger may have moved a significant ...
7 years, 9 months ago (2013-03-19 22:17:31 UTC) #2
Yufeng Shen (Slow to review)
https://codereview.chromium.org/12660016/diff/1/chrome/browser/ui/views/tabs/tab_strip.cc File chrome/browser/ui/views/tabs/tab_strip.cc (right): https://codereview.chromium.org/12660016/diff/1/chrome/browser/ui/views/tabs/tab_strip.cc#newcode1512 chrome/browser/ui/views/tabs/tab_strip.cc:1512: ShowContextMenuForTab(tab, local_point); On 2013/03/19 22:17:31, sadrul wrote: > The ...
7 years, 9 months ago (2013-03-19 23:37:38 UTC) #3
sadrul
On 2013/03/19 23:37:38, Yufeng Shen wrote: > https://codereview.chromium.org/12660016/diff/1/chrome/browser/ui/views/tabs/tab_strip.cc > File chrome/browser/ui/views/tabs/tab_strip.cc (right): > > https://codereview.chromium.org/12660016/diff/1/chrome/browser/ui/views/tabs/tab_strip.cc#newcode1512 ...
7 years, 9 months ago (2013-03-19 23:38:51 UTC) #4
sky
Long press is only going to matter when the tabs are actually stacked (see https://codereview.chromium.org/12886030/ ...
7 years, 9 months ago (2013-03-19 23:53:00 UTC) #5
Yufeng Shen (Slow to review)
7 years, 9 months ago (2013-03-20 01:43:53 UTC) #6
Yufeng Shen (Slow to review)
Make this happen: In non-stacking mode, context menu shows immediately after long press. In stacking ...
7 years, 9 months ago (2013-03-20 01:45:44 UTC) #7
sadrul
On 2013/03/20 01:45:44, Yufeng Shen wrote: > Make this happen: > > In non-stacking mode, ...
7 years, 9 months ago (2013-03-20 02:00:57 UTC) #8
Yufeng Shen (Slow to review)
showing context menu after long press & finger lift (long tap)
7 years, 9 months ago (2013-03-20 02:13:46 UTC) #9
sadrul
The code in OnGestureEvent LG after this: https://codereview.chromium.org/12660016/diff/10002/chrome/browser/ui/views/tabs/tab_strip.cc File chrome/browser/ui/views/tabs/tab_strip.cc (right): https://codereview.chromium.org/12660016/diff/10002/chrome/browser/ui/views/tabs/tab_strip.cc#newcode1517 chrome/browser/ui/views/tabs/tab_strip.cc:1517: } Missing ...
7 years, 9 months ago (2013-03-20 02:15:52 UTC) #10
Yufeng Shen (Slow to review)
https://codereview.chromium.org/12660016/diff/10002/chrome/browser/ui/views/tabs/tab_strip.cc File chrome/browser/ui/views/tabs/tab_strip.cc (right): https://codereview.chromium.org/12660016/diff/10002/chrome/browser/ui/views/tabs/tab_strip.cc#newcode1517 chrome/browser/ui/views/tabs/tab_strip.cc:1517: } On 2013/03/20 02:15:52, sadrul wrote: > Missing a ...
7 years, 9 months ago (2013-03-20 02:22:47 UTC) #11
sky
https://codereview.chromium.org/12660016/diff/11002/chrome/browser/ui/views/tabs/tab_strip.cc File chrome/browser/ui/views/tabs/tab_strip.cc (right): https://codereview.chromium.org/12660016/diff/11002/chrome/browser/ui/views/tabs/tab_strip.cc#newcode2506 chrome/browser/ui/views/tabs/tab_strip.cc:2506: Tab* tab = NULL; Nuke 'tab' and return where ...
7 years, 9 months ago (2013-03-20 14:21:25 UTC) #12
Yufeng Shen (Slow to review)
https://codereview.chromium.org/12660016/diff/11002/chrome/browser/ui/views/tabs/tab_strip.cc File chrome/browser/ui/views/tabs/tab_strip.cc (right): https://codereview.chromium.org/12660016/diff/11002/chrome/browser/ui/views/tabs/tab_strip.cc#newcode2506 chrome/browser/ui/views/tabs/tab_strip.cc:2506: Tab* tab = NULL; On 2013/03/20 14:21:25, sky wrote: ...
7 years, 9 months ago (2013-03-20 16:15:24 UTC) #13
sky
https://codereview.chromium.org/12660016/diff/18001/chrome/browser/ui/views/tabs/tab_strip.cc File chrome/browser/ui/views/tabs/tab_strip.cc (right): https://codereview.chromium.org/12660016/diff/18001/chrome/browser/ui/views/tabs/tab_strip.cc#newcode1511 chrome/browser/ui/views/tabs/tab_strip.cc:1511: gfx::Point local_point = event->location(); One more question. If we ...
7 years, 9 months ago (2013-03-20 16:42:08 UTC) #14
Yufeng Shen (Slow to review)
https://codereview.chromium.org/12660016/diff/18001/chrome/browser/ui/views/tabs/tab_strip.cc File chrome/browser/ui/views/tabs/tab_strip.cc (right): https://codereview.chromium.org/12660016/diff/18001/chrome/browser/ui/views/tabs/tab_strip.cc#newcode1511 chrome/browser/ui/views/tabs/tab_strip.cc:1511: gfx::Point local_point = event->location(); On 2013/03/20 16:42:08, sky wrote: ...
7 years, 9 months ago (2013-03-20 17:18:29 UTC) #15
sky
Can you verify that. I'm worried since menus run a nested message loop and I ...
7 years, 9 months ago (2013-03-20 17:26:17 UTC) #16
Yufeng Shen (Slow to review)
On 2013/03/20 17:26:17, sky wrote: > Can you verify that. I'm worried since menus run ...
7 years, 9 months ago (2013-03-20 17:55:06 UTC) #17
sky
LGTM
7 years, 9 months ago (2013-03-20 20:53:10 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/miletus@chromium.org/12660016/17002
7 years, 9 months ago (2013-03-20 21:02:59 UTC) #19
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=125223
7 years, 9 months ago (2013-03-20 23:47:47 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/miletus@chromium.org/12660016/17002
7 years, 9 months ago (2013-03-21 01:10:10 UTC) #21
commit-bot: I haz the power
Retried try job too often on win7_aura for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win7_aura&number=22045
7 years, 9 months ago (2013-03-21 10:05:36 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/miletus@chromium.org/12660016/17002
7 years, 9 months ago (2013-03-21 18:30:25 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/miletus@chromium.org/12660016/17002
7 years, 9 months ago (2013-03-21 23:46:15 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/miletus@chromium.org/12660016/17002
7 years, 9 months ago (2013-03-22 18:29:04 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/miletus@chromium.org/12660016/17002
7 years, 9 months ago (2013-03-23 15:13:54 UTC) #26
commit-bot: I haz the power
7 years, 9 months ago (2013-03-23 23:19:34 UTC) #27
Message was sent while issue was closed.
Change committed as 190111

Powered by Google App Engine
This is Rietveld 408576698