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

Issue 2882073004: wm: Allow double tap on overview button to quick switch. (Closed)

Created:
3 years, 7 months ago by sammiequon
Modified:
3 years, 7 months ago
Reviewers:
James Cook, sadrul
CC:
chromium-reviews, kalyank
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

wm: Allow double tap on overview button to quick switch. Double-tapping the overview button will now fire up the most recently used app. For now I left the double tap logic inside the overview button since AFAIK there aren't much uses of double tap. But we can move the logic to CustomButton or something else if desired. TEST=ash_unittests --gtest-filter="OverviewButtonTrayTest.*" BUG=714869 Review-Url: https://codereview.chromium.org/2882073004 Cr-Commit-Position: refs/heads/master@{#473119} Committed: https://chromium.googlesource.com/chromium/src/+/302f124fa2846ceb4912152efe5f22032bbda255

Patch Set 1 #

Patch Set 2 : Use tap_count(). #

Total comments: 6

Patch Set 3 : Addressed commments. #

Patch Set 4 : Slight fix. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+74 lines, -1 line) Patch
M ash/system/overview/overview_button_tray.cc View 1 2 3 2 chunks +27 lines, -1 line 0 comments Download
M ash/system/overview/overview_button_tray_unittest.cc View 1 2 3 3 chunks +47 lines, -0 lines 0 comments Download

Messages

Total messages: 44 (26 generated)
sammiequon
derat@ - Could you take a look. Thanks!
3 years, 7 months ago (2017-05-16 22:58:43 UTC) #8
sammiequon
On 2017/05/16 22:58:43, sammiequon wrote: > derat@ - Could you take a look. Thanks! -derat@ ...
3 years, 7 months ago (2017-05-16 23:02:40 UTC) #10
James Cook
+sadrul Is it possible to build this with ET_GESTURE_DOUBLE_TAP, rather than building all the timing ...
3 years, 7 months ago (2017-05-16 23:21:31 UTC) #12
sammiequon
On 2017/05/16 23:21:31, James Cook wrote: > +sadrul > > Is it possible to build ...
3 years, 7 months ago (2017-05-16 23:40:51 UTC) #13
Daniel Erat
(looks like you found other reviewers; i'm unfamiliar with this code)
3 years, 7 months ago (2017-05-17 01:06:44 UTC) #14
sammiequon
On 2017/05/17 01:06:44, Daniel Erat wrote: > (looks like you found other reviewers; i'm unfamiliar ...
3 years, 7 months ago (2017-05-17 01:27:12 UTC) #15
sadrul
On 2017/05/16 23:40:51, sammiequon wrote: > On 2017/05/16 23:21:31, James Cook wrote: > > +sadrul ...
3 years, 7 months ago (2017-05-17 04:22:13 UTC) #16
sammiequon
On 2017/05/17 04:22:13, sadrul wrote: > On 2017/05/16 23:40:51, sammiequon wrote: > > On 2017/05/16 ...
3 years, 7 months ago (2017-05-17 16:30:40 UTC) #17
James Cook
Sadrul's probably the best person to answer.
3 years, 7 months ago (2017-05-17 16:34:29 UTC) #18
sammiequon
sadrul@ - I went ahead and used tap_count() because I did not see much uses ...
3 years, 7 months ago (2017-05-18 01:20:35 UTC) #19
sadrul
lgtm https://codereview.chromium.org/2882073004/diff/40001/ash/system/overview/overview_button_tray_unittest.cc File ash/system/overview/overview_button_tray_unittest.cc (right): https://codereview.chromium.org/2882073004/diff/40001/ash/system/overview/overview_button_tray_unittest.cc#newcode122 ash/system/overview/overview_button_tray_unittest.cc:122: // two single taps and open then close ...
3 years, 7 months ago (2017-05-18 13:41:39 UTC) #20
James Cook
LGTM after sadrul's comment addressed. https://codereview.chromium.org/2882073004/diff/40001/ash/system/overview/overview_button_tray_unittest.cc File ash/system/overview/overview_button_tray_unittest.cc (right): https://codereview.chromium.org/2882073004/diff/40001/ash/system/overview/overview_button_tray_unittest.cc#newcode125 ash/system/overview/overview_button_tray_unittest.cc:125: wm::ActivateWindow(window1.get()); Do you have ...
3 years, 7 months ago (2017-05-18 15:10:54 UTC) #21
sammiequon
Thanks! https://codereview.chromium.org/2882073004/diff/40001/ash/system/overview/overview_button_tray_unittest.cc File ash/system/overview/overview_button_tray_unittest.cc (right): https://codereview.chromium.org/2882073004/diff/40001/ash/system/overview/overview_button_tray_unittest.cc#newcode122 ash/system/overview/overview_button_tray_unittest.cc:122: // two single taps and open then close ...
3 years, 7 months ago (2017-05-18 16:19:06 UTC) #22
sammiequon
jamescook@ - I had to make a few changes to make sure things work as ...
3 years, 7 months ago (2017-05-18 22:05:55 UTC) #36
James Cook
still lgtm
3 years, 7 months ago (2017-05-19 02:37:31 UTC) #37
sammiequon
On 2017/05/19 02:37:31, James Cook wrote: > still lgtm Thanks!
3 years, 7 months ago (2017-05-19 07:31:23 UTC) #38
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2882073004/100001
3 years, 7 months ago (2017-05-19 07:32:16 UTC) #41
commit-bot: I haz the power
3 years, 7 months ago (2017-05-19 07:51:51 UTC) #44
Message was sent while issue was closed.
Committed patchset #4 (id:100001) as
https://chromium.googlesource.com/chromium/src/+/302f124fa2846ceb4912152efe5f...

Powered by Google App Engine
This is Rietveld 408576698