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

Issue 2620133003: Set slide_out_enabled property for CustomNotification (Closed)

Created:
3 years, 11 months ago by yoshiki
Modified:
3 years, 11 months ago
Reviewers:
yhanada, dewittj
CC:
chromium-reviews, Peter Beverloo, mlamouri+watch-notifications_chromium.org, awdf+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Set slide_out_enabled property for CustomNotification The "slide_out_enabled" property of SlideOutView should be set according to the "pinned" property of notification. It was set for both CustomNotificationView and NotificationView correctly, but now the code has been moved to NotificationView after recent refactoring. This patch moves the code NotificationView to MessageView and fixes the regression. BUG=680353 TEST=manually Review-Url: https://codereview.chromium.org/2620133003 Cr-Commit-Position: refs/heads/master@{#444275} Committed: https://chromium.googlesource.com/chromium/src/+/0993bc30936c72dfdd60ec7c15aacc1579756704

Patch Set 1 #

Total comments: 2

Patch Set 2 : Addressed comment and added tests #

Total comments: 2

Patch Set 3 : Fix the wrong term: vertical -> horizontal #

Unified diffs Side-by-side diffs Delta from patch set Stats (+76 lines, -6 lines) Patch
M ui/message_center/views/custom_notification_view_unittest.cc View 1 2 3 chunks +73 lines, -0 lines 0 comments Download
M ui/message_center/views/message_view.cc View 1 4 chunks +3 lines, -4 lines 0 comments Download
M ui/message_center/views/notification_view.cc View 1 chunk +0 lines, -2 lines 0 comments Download

Messages

Total messages: 31 (24 generated)
yoshiki
Hanada-san, PTAL since you touched the code around recently?
3 years, 11 months ago (2017-01-12 02:20:35 UTC) #7
yhanada
lgtm https://codereview.chromium.org/2620133003/diff/1/ui/message_center/views/message_view.cc File ui/message_center/views/message_view.cc (right): https://codereview.chromium.org/2620133003/diff/1/ui/message_center/views/message_view.cc#newcode89 ui/message_center/views/message_view.cc:89: set_slide_out_enabled(!notification.pinned()); optional: How about calling UpdateWithNotification() here?
3 years, 11 months ago (2017-01-12 05:51:58 UTC) #8
yoshiki
Justin, PTAL. Thanks https://codereview.chromium.org/2620133003/diff/1/ui/message_center/views/message_view.cc File ui/message_center/views/message_view.cc (right): https://codereview.chromium.org/2620133003/diff/1/ui/message_center/views/message_view.cc#newcode89 ui/message_center/views/message_view.cc:89: set_slide_out_enabled(!notification.pinned()); On 2017/01/12 05:51:58, yhanada wrote: ...
3 years, 11 months ago (2017-01-16 06:08:50 UTC) #12
dewittj
lgtm https://codereview.chromium.org/2620133003/diff/40001/ui/message_center/views/custom_notification_view_unittest.cc File ui/message_center/views/custom_notification_view_unittest.cc (right): https://codereview.chromium.org/2620133003/diff/40001/ui/message_center/views/custom_notification_view_unittest.cc#newcode36 ui/message_center/views/custom_notification_view_unittest.cc:36: std::unique_ptr<ui::GestureEvent> GenerateGestureVerticalScrollUpdateEvent( Shouldn't this be Horizontal, not vertical?
3 years, 11 months ago (2017-01-17 17:24:45 UTC) #20
yoshiki
Thanks! https://codereview.chromium.org/2620133003/diff/40001/ui/message_center/views/custom_notification_view_unittest.cc File ui/message_center/views/custom_notification_view_unittest.cc (right): https://codereview.chromium.org/2620133003/diff/40001/ui/message_center/views/custom_notification_view_unittest.cc#newcode36 ui/message_center/views/custom_notification_view_unittest.cc:36: std::unique_ptr<ui::GestureEvent> GenerateGestureVerticalScrollUpdateEvent( On 2017/01/17 17:24:44, dewittj wrote: > ...
3 years, 11 months ago (2017-01-18 04:32:18 UTC) #25
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/2620133003/60001
3 years, 11 months ago (2017-01-18 04:32:40 UTC) #28
commit-bot: I haz the power
3 years, 11 months ago (2017-01-18 04:39:40 UTC) #31
Message was sent while issue was closed.
Committed patchset #3 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/0993bc30936c72dfdd60ec7c15aa...

Powered by Google App Engine
This is Rietveld 408576698