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

Issue 2930123002: Tablet WM : Swiping on system tray bubble. (Closed)

Created:
3 years, 6 months ago by minch1
Modified:
3 years, 5 months ago
Reviewers:
tdanderson, xdai1, jwd, xiyuan
CC:
chromium-reviews, kalyank, sadrul
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Tablet WM : Swiping on system tray bubble. Swiping up on the system tray to open the system tray bubble. 1.This works only for tablet and horizontal shelf. 2.Update the bounds of the bubble according to the position of the gesture. 3.For SCROLL_END event. To show or hide the bubble depends on the position of the gesture. Bubble is split into two parts. End in the lower part (one-third position) will hide the bubble; Otherwise, should always show the bubble. 4.For FLING event. To show or hide the bubble depends on gesture position and velocity. If the fling velocity larger than |kSwipingVelocity|, show or hide according to the fling direction; Otherwise, show or hide depends on the position. BUG=734814 Review-Url: https://codereview.chromium.org/2930123002 Cr-Commit-Position: refs/heads/master@{#482696} Committed: https://chromium.googlesource.com/chromium/src/+/e6131f3b26bf5d8904d266f9f826fb811b28f875

Patch Set 1 #

Total comments: 26

Patch Set 2 : Add animation and addressed xiyuan's comments. #

Patch Set 3 : Add tests and rebased. #

Patch Set 4 : . #

Patch Set 5 : . #

Patch Set 6 : . #

Total comments: 29

Patch Set 7 : Addressed xiyuan's comments. #

Total comments: 43

Patch Set 8 : Addressed comments. #

Total comments: 40

Patch Set 9 : Fixed tdanderson's comments. #

Total comments: 16

Patch Set 10 : Fixed tdanderson's comments. #

Patch Set 11 : Fixed UT. #

Total comments: 19

Patch Set 12 : Fixed comments. #

Total comments: 1

Patch Set 13 : Fixed comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+494 lines, -5 lines) Patch
M ash/system/tray/system_tray.h View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +39 lines, -0 lines 0 comments Download
M ash/system/tray/system_tray.cc View 1 2 3 4 5 6 7 8 9 10 11 5 chunks +111 lines, -2 lines 0 comments Download
M ash/system/tray/system_tray_bubble.h View 1 2 3 4 5 6 7 8 2 chunks +8 lines, -0 lines 0 comments Download
M ash/system/tray/system_tray_bubble.cc View 1 2 3 4 5 6 7 8 4 chunks +58 lines, -2 lines 0 comments Download
M ash/system/tray/system_tray_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +263 lines, -1 line 0 comments Download
M ash/system/tray/tray_event_filter.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +15 lines, -0 lines 0 comments Download

Messages

Total messages: 88 (64 generated)
tdanderson
On 2017/06/09 20:29:05, minch1 wrote: > mailto:minch@chromium.org changed reviewers: > + mailto:tdanderson@chromium.org, mailto:xdai@chromium.org, mailto:xiyuan@chromium.org I ...
3 years, 6 months ago (2017-06-09 21:53:21 UTC) #5
minch1
Could you please help review? Thanks.
3 years, 6 months ago (2017-06-09 21:58:06 UTC) #6
minch1
On 2017/06/09 21:53:21, tdanderson wrote: > On 2017/06/09 20:29:05, minch1 wrote: > > mailto:minch@chromium.org changed ...
3 years, 6 months ago (2017-06-09 21:59:30 UTC) #7
xiyuan
https://codereview.chromium.org/2930123002/diff/1/ash/system/tray/system_tray.cc File ash/system/tray/system_tray.cc (right): https://codereview.chromium.org/2930123002/diff/1/ash/system/tray/system_tray.cc#newcode82 ash/system/tray/system_tray.cc:82: constexpr float kSwipingVelocity = 100.0; nit: move this to ...
3 years, 6 months ago (2017-06-12 18:00:51 UTC) #10
minch1
Could you please help review? Thanks. https://codereview.chromium.org/2930123002/diff/1/ash/system/tray/system_tray.cc File ash/system/tray/system_tray.cc (right): https://codereview.chromium.org/2930123002/diff/1/ash/system/tray/system_tray.cc#newcode82 ash/system/tray/system_tray.cc:82: constexpr float kSwipingVelocity ...
3 years, 6 months ago (2017-06-16 03:30:35 UTC) #31
xiyuan
https://codereview.chromium.org/2930123002/diff/100001/ash/system/tray/system_tray.cc File ash/system/tray/system_tray.cc (right): https://codereview.chromium.org/2930123002/diff/100001/ash/system/tray/system_tray.cc#newcode217 ash/system/tray/system_tray.cc:217: in_maximize_mode_ = true; nit: just do in_maximize_mode_ = Shell::Get() ...
3 years, 6 months ago (2017-06-16 17:33:43 UTC) #33
minch1
https://codereview.chromium.org/2930123002/diff/100001/ash/system/tray/system_tray.cc File ash/system/tray/system_tray.cc (right): https://codereview.chromium.org/2930123002/diff/100001/ash/system/tray/system_tray.cc#newcode217 ash/system/tray/system_tray.cc:217: in_maximize_mode_ = true; On 2017/06/16 17:33:42, xiyuan wrote: > ...
3 years, 6 months ago (2017-06-16 22:11:52 UTC) #40
xiyuan
lgtm https://codereview.chromium.org/2930123002/diff/100001/ash/system/tray/system_tray_bubble.cc File ash/system/tray/system_tray_bubble.cc (right): https://codereview.chromium.org/2930123002/diff/100001/ash/system/tray/system_tray_bubble.cc#newcode81 ash/system/tray/system_tray_bubble.cc:81: if (system_tray_bubble_) On 2017/06/16 22:11:51, minch1 wrote: > ...
3 years, 6 months ago (2017-06-16 23:09:13 UTC) #41
tdanderson
Hi Min, I have left a round of comments below. https://codereview.chromium.org/2930123002/diff/120001/ash/system/tray/system_tray.cc File ash/system/tray/system_tray.cc (right): https://codereview.chromium.org/2930123002/diff/120001/ash/system/tray/system_tray.cc#newcode651 ...
3 years, 6 months ago (2017-06-19 16:19:39 UTC) #42
xdai1
https://codereview.chromium.org/2930123002/diff/120001/ash/system/tray/system_tray.cc File ash/system/tray/system_tray.cc (right): https://codereview.chromium.org/2930123002/diff/120001/ash/system/tray/system_tray.cc#newcode679 ash/system/tray/system_tray.cc:679: if (event.type() == ui::ET_GESTURE_SCROLL_BEGIN) I think "switch case" might ...
3 years, 6 months ago (2017-06-19 19:01:30 UTC) #43
minch1
https://codereview.chromium.org/2930123002/diff/120001/ash/system/tray/system_tray.cc File ash/system/tray/system_tray.cc (right): https://codereview.chromium.org/2930123002/diff/120001/ash/system/tray/system_tray.cc#newcode651 ash/system/tray/system_tray.cc:651: void SystemTray::OnGestureEvent(ui::GestureEvent* event) { On 2017/06/19 16:19:38, tdanderson wrote: ...
3 years, 6 months ago (2017-06-20 16:45:35 UTC) #48
xdai1
https://codereview.chromium.org/2930123002/diff/140001/ash/system/tray/system_tray.cc File ash/system/tray/system_tray.cc (right): https://codereview.chromium.org/2930123002/diff/140001/ash/system/tray/system_tray.cc#newcode671 ash/system/tray/system_tray.cc:671: return false; Why don't put this if-clause at the ...
3 years, 6 months ago (2017-06-20 17:00:31 UTC) #49
xdai1
lgtm Thanks. https://codereview.chromium.org/2930123002/diff/140001/ash/system/tray/system_tray.cc File ash/system/tray/system_tray.cc (right): https://codereview.chromium.org/2930123002/diff/140001/ash/system/tray/system_tray.cc#newcode671 ash/system/tray/system_tray.cc:671: return false; On 2017/06/20 17:00:31, xdai1 wrote: ...
3 years, 6 months ago (2017-06-20 17:02:54 UTC) #50
tdanderson
Hi Min, thanks for addressing one of the crashers and for adding extra tests! Please ...
3 years, 6 months ago (2017-06-20 22:42:31 UTC) #51
minch1
https://codereview.chromium.org/2930123002/diff/120001/ash/system/tray/system_tray.h File ash/system/tray/system_tray.h (right): https://codereview.chromium.org/2930123002/diff/120001/ash/system/tray/system_tray.h#newcode236 ash/system/tray/system_tray.h:236: // Swiping of the system tray bubble is only ...
3 years, 6 months ago (2017-06-22 17:42:12 UTC) #58
jwd
lgtm
3 years, 6 months ago (2017-06-22 19:03:51 UTC) #59
tdanderson
Hi Min, please take a look at my comments. https://codereview.chromium.org/2930123002/diff/140001/ash/system/tray/system_tray.cc File ash/system/tray/system_tray.cc (right): https://codereview.chromium.org/2930123002/diff/140001/ash/system/tray/system_tray.cc#newcode747 ash/system/tray/system_tray.cc:747: ...
3 years, 6 months ago (2017-06-22 20:21:43 UTC) #60
minch1
Hi, tdanderson@, please help review patch 11. Thanks. https://codereview.chromium.org/2930123002/diff/140001/ash/system/tray/system_tray.cc File ash/system/tray/system_tray.cc (right): https://codereview.chromium.org/2930123002/diff/140001/ash/system/tray/system_tray.cc#newcode747 ash/system/tray/system_tray.cc:747: On ...
3 years, 6 months ago (2017-06-23 22:39:57 UTC) #69
minch1
Hi, tdanderson@, please help review patch 11. Thanks.
3 years, 6 months ago (2017-06-23 22:40:01 UTC) #70
tdanderson
Patch set 11 is looking great! I have a few last questions/comments, and have also ...
3 years, 5 months ago (2017-06-26 18:13:02 UTC) #71
minch1
Hi, tdanderson@, could you help review the patch 12? Thanks. https://codereview.chromium.org/2930123002/diff/200001/ash/system/tray/system_tray.cc File ash/system/tray/system_tray.cc (right): https://codereview.chromium.org/2930123002/diff/200001/ash/system/tray/system_tray.cc#newcode689 ...
3 years, 5 months ago (2017-06-26 23:26:49 UTC) #77
tdanderson
Patch set 12 LGTM https://codereview.chromium.org/2930123002/diff/220001/ash/system/tray/system_tray.h File ash/system/tray/system_tray.h (right): https://codereview.chromium.org/2930123002/diff/220001/ash/system/tray/system_tray.h#newcode228 ash/system/tray/system_tray.h:228: // Tracks the amount of ...
3 years, 5 months ago (2017-06-27 17:58:13 UTC) #78
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/2930123002/240001
3 years, 5 months ago (2017-06-27 18:44:20 UTC) #85
commit-bot: I haz the power
3 years, 5 months ago (2017-06-27 18:49:06 UTC) #88
Message was sent while issue was closed.
Committed patchset #13 (id:240001) as
https://chromium.googlesource.com/chromium/src/+/e6131f3b26bf5d8904d266f9f826...

Powered by Google App Engine
This is Rietveld 408576698