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

Issue 2668583005: Not Remove Non-Closable Arc Popup When Close Button is Pressed (Closed)

Created:
3 years, 10 months ago by yoshiki
Modified:
3 years, 9 months ago
Reviewers:
xiyuan, dewittj
CC:
chromium-reviews, elijahtaylor+arcwatch_chromium.org, yusukes+watch_chromium.org, Peter Beverloo, mlamouri+watch-notifications_chromium.org, lhchavez+watch_chromium.org, hidehiko+watch_chromium.org, awdf+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Not Remove Non-Closable Arc Popup When Close Button is Pressed * Fixes the issue: crbug.com/689220 - Adds ArcNotificationDelegate::Close method to handle the closing event - Not calls ArcCustomNotificationItem::Close() when the close button is pressed * Refines the code - Uses the same method MessageView::OnCloseButtonPressed() both from custom and normal notification BUG=689220 Review-Url: https://codereview.chromium.org/2668583005 Cr-Commit-Position: refs/heads/master@{#454814} Committed: https://chromium.googlesource.com/chromium/src/+/9739ee62037118f47be3dab9701164c428b02e5b

Patch Set 1 #

Total comments: 3

Patch Set 2 #

Total comments: 4

Patch Set 3 : Fix the CHECK location #

Patch Set 4 : rebase #

Total comments: 4

Patch Set 5 : Addressed comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+32 lines, -10 lines) Patch
M ui/arc/notification/arc_custom_notification_item.cc View 1 2 3 3 chunks +5 lines, -8 lines 0 comments Download
M ui/arc/notification/arc_custom_notification_view.cc View 1 2 3 2 chunks +10 lines, -1 line 0 comments Download
M ui/message_center/views/custom_notification_view.h View 1 2 3 2 chunks +3 lines, -0 lines 0 comments Download
M ui/message_center/views/custom_notification_view.cc View 1 2 3 2 chunks +7 lines, -0 lines 0 comments Download
M ui/message_center/views/message_view.h View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M ui/message_center/views/message_view.cc View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M ui/message_center/views/notification_view.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 51 (40 generated)
yoshiki
Justin, PTAL. Thanks. https://codereview.chromium.org/2668583005/diff/40001/ui/arc/notification/arc_custom_notification_item.cc File ui/arc/notification/arc_custom_notification_item.cc (left): https://codereview.chromium.org/2668583005/diff/40001/ui/arc/notification/arc_custom_notification_item.cc#oldcode111 ui/arc/notification/arc_custom_notification_item.cc:111: // Needs to manually remove notification ...
3 years, 10 months ago (2017-02-06 22:22:22 UTC) #16
dewittj
https://codereview.chromium.org/2668583005/diff/40001/ui/arc/notification/arc_custom_notification_view.cc File ui/arc/notification/arc_custom_notification_view.cc (right): https://codereview.chromium.org/2668583005/diff/40001/ui/arc/notification/arc_custom_notification_view.cc#newcode509 ui/arc/notification/arc_custom_notification_view.cc:509: parent_->OnCloseButtonPressed(); any reason you didn't just use views::View::parent()? If ...
3 years, 10 months ago (2017-02-07 00:03:12 UTC) #17
yoshiki
Justin, Sorry for late, PTAL. https://codereview.chromium.org/2668583005/diff/40001/ui/arc/notification/arc_custom_notification_view.cc File ui/arc/notification/arc_custom_notification_view.cc (right): https://codereview.chromium.org/2668583005/diff/40001/ui/arc/notification/arc_custom_notification_view.cc#newcode509 ui/arc/notification/arc_custom_notification_view.cc:509: parent_->OnCloseButtonPressed(); On 2017/02/07 00:03:11, ...
3 years, 10 months ago (2017-02-22 08:55:23 UTC) #20
dewittj
https://codereview.chromium.org/2668583005/diff/60001/ui/arc/notification/arc_custom_notification_view.cc File ui/arc/notification/arc_custom_notification_view.cc (right): https://codereview.chromium.org/2668583005/diff/60001/ui/arc/notification/arc_custom_notification_view.cc#newcode492 ui/arc/notification/arc_custom_notification_view.cc:492: CHECK_EQ(message_center::CustomNotificationView::kViewClassName, Unclear to me whether this should be CHECK ...
3 years, 9 months ago (2017-02-28 21:38:48 UTC) #24
yoshiki
Justin, PTAL. Thanks. https://codereview.chromium.org/2668583005/diff/60001/ui/arc/notification/arc_custom_notification_view.cc File ui/arc/notification/arc_custom_notification_view.cc (right): https://codereview.chromium.org/2668583005/diff/60001/ui/arc/notification/arc_custom_notification_view.cc#newcode492 ui/arc/notification/arc_custom_notification_view.cc:492: CHECK_EQ(message_center::CustomNotificationView::kViewClassName, On 2017/02/28 21:38:48, dewittj wrote: ...
3 years, 9 months ago (2017-03-02 03:33:35 UTC) #29
xiyuan
drive-by https://codereview.chromium.org/2668583005/diff/100001/ui/arc/notification/arc_custom_notification_view.h File ui/arc/notification/arc_custom_notification_view.h (right): https://codereview.chromium.org/2668583005/diff/100001/ui/arc/notification/arc_custom_notification_view.h#newcode38 ui/arc/notification/arc_custom_notification_view.h:38: ArcCustomNotificationView(ArcCustomNotificationItem* item); "explicit" is required for single arg ...
3 years, 9 months ago (2017-03-02 20:39:51 UTC) #35
yoshiki
https://codereview.chromium.org/2668583005/diff/100001/ui/arc/notification/arc_custom_notification_view.h File ui/arc/notification/arc_custom_notification_view.h (right): https://codereview.chromium.org/2668583005/diff/100001/ui/arc/notification/arc_custom_notification_view.h#newcode38 ui/arc/notification/arc_custom_notification_view.h:38: ArcCustomNotificationView(ArcCustomNotificationItem* item); On 2017/03/02 20:39:51, xiyuan wrote: > "explicit" ...
3 years, 9 months ago (2017-03-03 01:22:04 UTC) #41
dewittj
lgtm Thanks for writing the tests in another cl.
3 years, 9 months ago (2017-03-03 17:44:45 UTC) #45
xiyuan
lgtm
3 years, 9 months ago (2017-03-03 17:56:03 UTC) #46
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/2668583005/120001
3 years, 9 months ago (2017-03-06 01:44:02 UTC) #48
commit-bot: I haz the power
3 years, 9 months ago (2017-03-06 02:28:51 UTC) #51
Message was sent while issue was closed.
Committed patchset #5 (id:120001) as
https://chromium.googlesource.com/chromium/src/+/9739ee62037118f47be3dab97011...

Powered by Google App Engine
This is Rietveld 408576698