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

Issue 2961313003: Touch gestures for System Tray/ IME/ Stylus/ Notifications (Closed)

Created:
3 years, 5 months ago by minch1
Modified:
3 years, 5 months ago
CC:
chromium-reviews, groby+bubble_chromium.org, sadrul, tfarina, hcarmona+bubble_chromium.org, kalyank, rouslan+bubble_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Touch gestures for System Tray/ IME/ Stylus/ Notifications Swiping up on the System Tray/ IME/ Stylus/ Notifications buttons in status area should open the associated bubble. Swiping down on the opened bubble should close the associated bubble. Changes: 1.Added the tray_drag_controller to extract the logic of dragging behavior from system_tray. 2.Added help functions in tray_background_view to get the state of associated tray bubble. 3.Added one interface ProcessGestureEventForBubble in TrayBubbleView::Delegate to help process the dragging that happened on the tray bubble. BUG=735994, 735996 Review-Url: https://codereview.chromium.org/2961313003 Cr-Commit-Position: refs/heads/master@{#487573} Committed: https://chromium.googlesource.com/chromium/src/+/d8633937d1ea5d357a182247ae8e977966d6a67e

Patch Set 1 #

Total comments: 8

Patch Set 2 : Create SystemTrayBubbleView instead of Delegate. #

Total comments: 13

Patch Set 3 : Add |is_on_bubble_| instead of. #

Total comments: 12

Patch Set 4 : Fixed comments. #

Total comments: 1

Patch Set 5 : Swiping IME/Stylues/System tray/Notifications tray/bubble. #

Total comments: 83

Patch Set 6 : Swiping IME/Stylues/System tray/Notifications tray/bubble. #

Patch Set 7 : Fixed msw's comments. #

Patch Set 8 : . #

Patch Set 9 : Fixed UT. #

Total comments: 27

Patch Set 10 : Fixed msw's comments. #

Total comments: 5

Patch Set 11 : Fixed msw's comments. #

Total comments: 6

Patch Set 12 : Fixed msw's comments. #

Total comments: 47

Patch Set 13 : Fixed tdanderson's comments. #

Total comments: 4

Patch Set 14 : Fixed nits. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+660 lines, -422 lines) Patch
M ash/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +2 lines, -0 lines 0 comments Download
M ash/accelerators/accelerator_controller.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +4 lines, -4 lines 0 comments Download
M ash/system/ime_menu/ime_menu_tray.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +3 lines, -10 lines 0 comments Download
M ash/system/ime_menu/ime_menu_tray.cc View 1 2 3 4 5 6 7 8 9 10 11 12 7 chunks +35 lines, -32 lines 0 comments Download
M ash/system/ime_menu/ime_menu_tray_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -1 line 0 comments Download
M ash/system/palette/palette_tray.h View 1 2 3 4 5 6 7 8 9 10 3 chunks +5 lines, -9 lines 0 comments Download
M ash/system/palette/palette_tray.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 4 chunks +74 lines, -63 lines 0 comments Download
M ash/system/tray/system_tray.h View 1 2 3 4 5 6 7 8 9 10 5 chunks +8 lines, -44 lines 0 comments Download
M ash/system/tray/system_tray.cc View 1 2 3 4 5 6 7 8 9 10 11 12 4 chunks +34 lines, -122 lines 0 comments Download
M ash/system/tray/system_tray_bubble.h View 1 2 3 4 5 6 3 chunks +0 lines, -9 lines 0 comments Download
M ash/system/tray/system_tray_bubble.cc View 1 2 3 4 5 6 4 chunks +2 lines, -58 lines 0 comments Download
M ash/system/tray/system_tray_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 chunks +83 lines, -27 lines 0 comments Download
M ash/system/tray/tray_background_view.h View 1 2 3 4 5 6 7 8 9 10 11 12 7 chunks +40 lines, -6 lines 0 comments Download
M ash/system/tray/tray_background_view.cc View 1 2 3 4 5 6 7 8 9 10 11 12 7 chunks +88 lines, -8 lines 0 comments Download
A ash/system/tray_drag_controller.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +75 lines, -0 lines 0 comments Download
A ash/system/tray_drag_controller.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +128 lines, -0 lines 0 comments Download
M ash/system/web_notification/web_notification_tray.h View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +3 lines, -6 lines 0 comments Download
M ash/system/web_notification/web_notification_tray.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 4 chunks +25 lines, -13 lines 0 comments Download
M ui/views/bubble/tray_bubble_view.h View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +14 lines, -10 lines 0 comments Download
M ui/views/bubble/tray_bubble_view.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +36 lines, -0 lines 0 comments Download

Messages

Total messages: 104 (74 generated)
minch1
hi,xdai@,sammiequon@, could you help review first? Thanks.
3 years, 5 months ago (2017-06-29 18:35:10 UTC) #7
sammiequon
would it make more sense to create a impl of SystemTrayBubbleView and override OnGestureEvent there ...
3 years, 5 months ago (2017-06-29 21:28:19 UTC) #8
minch1
@sammiequon, thanks for your comments. Create SystemTrayBubbleView instead of delegate. Since, only systemtray use this ...
3 years, 5 months ago (2017-06-30 17:02:30 UTC) #13
sammiequon
lgtm once xdai@ is happy with it https://codereview.chromium.org/2961313003/diff/1/ash/system/tray/system_tray_unittest.cc File ash/system/tray/system_tray_unittest.cc (right): https://codereview.chromium.org/2961313003/diff/1/ash/system/tray/system_tray_unittest.cc#newcode72 ash/system/tray/system_tray_unittest.cc:72: bool is_on_bubble) ...
3 years, 5 months ago (2017-06-30 17:46:03 UTC) #14
xdai1
https://codereview.chromium.org/2961313003/diff/20001/ash/system/tray/system_tray.cc File ash/system/tray/system_tray.cc (right): https://codereview.chromium.org/2961313003/diff/20001/ash/system/tray/system_tray.cc#newcode630 ash/system/tray/system_tray.cc:630: target_view_ = this; What if you press and drag ...
3 years, 5 months ago (2017-06-30 17:46:54 UTC) #15
xdai1
https://codereview.chromium.org/2961313003/diff/20001/ash/system/tray/system_tray_bubble.cc File ash/system/tray/system_tray_bubble.cc (right): https://codereview.chromium.org/2961313003/diff/20001/ash/system/tray/system_tray_bubble.cc#newcode92 ash/system/tray/system_tray_bubble.cc:92: class SystemTrayBubbleView : public TrayBubbleView { On 2017/06/30 17:46:02, ...
3 years, 5 months ago (2017-06-30 17:51:02 UTC) #16
minch1
https://codereview.chromium.org/2961313003/diff/20001/ash/system/tray/system_tray.cc File ash/system/tray/system_tray.cc (right): https://codereview.chromium.org/2961313003/diff/20001/ash/system/tray/system_tray.cc#newcode630 ash/system/tray/system_tray.cc:630: target_view_ = this; On 2017/06/30 17:46:54, xdai1 wrote: > ...
3 years, 5 months ago (2017-06-30 19:08:04 UTC) #19
xdai1
defer the decision if we should let SystemTrayBubbleView and SystemTray handle their own gesture events ...
3 years, 5 months ago (2017-06-30 22:27:09 UTC) #22
minch1
hi, tdanderson@, could you help review? Thanks. https://codereview.chromium.org/2961313003/diff/40001/ash/system/tray/system_tray.cc File ash/system/tray/system_tray.cc (right): https://codereview.chromium.org/2961313003/diff/40001/ash/system/tray/system_tray.cc#newcode628 ash/system/tray/system_tray.cc:628: if (ProcessGestureEvent(*event, ...
3 years, 5 months ago (2017-07-01 05:57:14 UTC) #28
tdanderson
https://codereview.chromium.org/2961313003/diff/60001/ash/system/tray/system_tray_bubble.cc File ash/system/tray/system_tray_bubble.cc (right): https://codereview.chromium.org/2961313003/diff/60001/ash/system/tray/system_tray_bubble.cc#newcode92 ash/system/tray/system_tray_bubble.cc:92: class SystemTrayBubbleView : public TrayBubbleView { I agree with ...
3 years, 5 months ago (2017-07-04 21:50:45 UTC) #29
minch1
msw@chromium.org: Please review changes in
3 years, 5 months ago (2017-07-11 20:56:20 UTC) #36
minch1
On 2017/07/11 20:56:20, minch1 wrote: > mailto:msw@chromium.org: Please review changes in Sorry, let me check ...
3 years, 5 months ago (2017-07-12 00:56:47 UTC) #41
msw
Mostly comments encouraging cleanup and clarification. https://codereview.chromium.org/2961313003/diff/80001/ash/system/ime_menu/ime_menu_tray.cc File ash/system/ime_menu/ime_menu_tray.cc (right): https://codereview.chromium.org/2961313003/diff/80001/ash/system/ime_menu/ime_menu_tray.cc#newcode474 ash/system/ime_menu/ime_menu_tray.cc:474: return bubble_.get() != ...
3 years, 5 months ago (2017-07-12 05:04:53 UTC) #46
msw
Also, maybe you meant to say "swiping down" closes the bubble in your CL description? ...
3 years, 5 months ago (2017-07-12 05:06:22 UTC) #47
minch1
msw@, thanks for your comments. tdanderson@, msw@, please help review the latest ps. https://codereview.chromium.org/2961313003/diff/80001/ash/system/ime_menu/ime_menu_tray.cc File ...
3 years, 5 months ago (2017-07-13 19:10:37 UTC) #62
msw
Looking better, thanks. I still have some nontrivial comments. https://codereview.chromium.org/2961313003/diff/80001/ash/system/tray/system_tray.cc File ash/system/tray/system_tray.cc (right): https://codereview.chromium.org/2961313003/diff/80001/ash/system/tray/system_tray.cc#newcode638 ash/system/tray/system_tray.cc:638: ...
3 years, 5 months ago (2017-07-14 02:00:46 UTC) #65
minch1
msw@, tdanderson@, oshima@, please help review the latest ps. Thanks. https://codereview.chromium.org/2961313003/diff/80001/ash/system/tray/system_tray.cc File ash/system/tray/system_tray.cc (right): https://codereview.chromium.org/2961313003/diff/80001/ash/system/tray/system_tray.cc#newcode638 ...
3 years, 5 months ago (2017-07-14 19:45:18 UTC) #68
minch1
3 years, 5 months ago (2017-07-14 19:46:06 UTC) #70
msw
Looking pretty good; please try to consolidate drag controller usage. https://codereview.chromium.org/2961313003/diff/80001/ash/system/tray/system_tray.cc File ash/system/tray/system_tray.cc (right): https://codereview.chromium.org/2961313003/diff/80001/ash/system/tray/system_tray.cc#newcode638 ...
3 years, 5 months ago (2017-07-14 21:00:30 UTC) #73
minch1
Thanks, msw@. Please help review the latest ps. https://codereview.chromium.org/2961313003/diff/80001/ash/system/tray/system_tray.cc File ash/system/tray/system_tray.cc (right): https://codereview.chromium.org/2961313003/diff/80001/ash/system/tray/system_tray.cc#newcode638 ash/system/tray/system_tray.cc:638: bool ...
3 years, 5 months ago (2017-07-15 02:46:29 UTC) #78
msw
Nice, thanks for the cleanup! lgtm with some comments. https://codereview.chromium.org/2961313003/diff/180001/ash/system/tray/system_tray_unittest.cc File ash/system/tray/system_tray_unittest.cc (right): https://codereview.chromium.org/2961313003/diff/180001/ash/system/tray/system_tray_unittest.cc#newcode112 ash/system/tray/system_tray_unittest.cc:112: ...
3 years, 5 months ago (2017-07-17 19:28:01 UTC) #79
minch1
msw@, tdanderson@, please help review the ps#12. Thanks. https://codereview.chromium.org/2961313003/diff/200001/ash/system/tray/tray_background_view.cc File ash/system/tray/tray_background_view.cc (right): https://codereview.chromium.org/2961313003/diff/200001/ash/system/tray/tray_background_view.cc#newcode279 ash/system/tray/tray_background_view.cc:279: if ...
3 years, 5 months ago (2017-07-17 20:41:11 UTC) #82
msw
lgtm with a minor optional nit. https://codereview.chromium.org/2961313003/diff/220001/ui/views/bubble/tray_bubble_view.h File ui/views/bubble/tray_bubble_view.h (right): https://codereview.chromium.org/2961313003/diff/220001/ui/views/bubble/tray_bubble_view.h#newcode51 ui/views/bubble/tray_bubble_view.h:51: virtual ~Delegate() {} ...
3 years, 5 months ago (2017-07-17 20:45:05 UTC) #83
tdanderson
Please see my comments below for Patch Set 12. https://codereview.chromium.org/2961313003/diff/220001/ash/BUILD.gn File ash/BUILD.gn (right): https://codereview.chromium.org/2961313003/diff/220001/ash/BUILD.gn#newcode3 ash/BUILD.gn:3: ...
3 years, 5 months ago (2017-07-17 22:44:38 UTC) #84
minch1
Thanks tdanderson@, please help review ps#13. https://codereview.chromium.org/2961313003/diff/220001/ash/BUILD.gn File ash/BUILD.gn (right): https://codereview.chromium.org/2961313003/diff/220001/ash/BUILD.gn#newcode3 ash/BUILD.gn:3: # found in ...
3 years, 5 months ago (2017-07-18 03:59:00 UTC) #91
tdanderson
Patch Set 13 LGTM. Thanks for all your work in arriving at a good design ...
3 years, 5 months ago (2017-07-18 16:38:05 UTC) #92
oshima
nice CL. just one nit. lgtm https://codereview.chromium.org/2961313003/diff/240001/ash/system/palette/palette_tray.cc File ash/system/palette/palette_tray.cc (right): https://codereview.chromium.org/2961313003/diff/240001/ash/system/palette/palette_tray.cc#newcode391 ash/system/palette/palette_tray.cc:391: bubble_.reset(new ash::TrayBubbleWrapper(this, bubble_view)); ...
3 years, 5 months ago (2017-07-18 17:20:38 UTC) #93
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/2961313003/260001
3 years, 5 months ago (2017-07-18 20:01:51 UTC) #100
minch1
Thanks for review. https://codereview.chromium.org/2961313003/diff/240001/ash/system/palette/palette_tray.cc File ash/system/palette/palette_tray.cc (right): https://codereview.chromium.org/2961313003/diff/240001/ash/system/palette/palette_tray.cc#newcode391 ash/system/palette/palette_tray.cc:391: bubble_.reset(new ash::TrayBubbleWrapper(this, bubble_view)); On 2017/07/18 17:20:38, ...
3 years, 5 months ago (2017-07-18 20:01:52 UTC) #101
commit-bot: I haz the power
3 years, 5 months ago (2017-07-18 20:08:25 UTC) #104
Message was sent while issue was closed.
Committed patchset #14 (id:260001) as
https://chromium.googlesource.com/chromium/src/+/d8633937d1ea5d357a182247ae8e...

Powered by Google App Engine
This is Rietveld 408576698