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

Issue 2075953003: mash: Convert WebNotificationTray to wm common types (Closed)

Created:
4 years, 6 months ago by James Cook
Modified:
4 years, 6 months ago
Reviewers:
msw, stevenjb
CC:
chromium-reviews, Peter Beverloo, kalyank, mlamouri+watch-notifications_chromium.org, sadrul, tfarina
Base URL:
https://chromium.googlesource.com/chromium/src.git@statusarea
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

mash: Convert WebNotificationTray to wm common types This is a dependency of the status area widget which I'm trying to convert to wm common types. Introduce a method to the message center's delegate that allows it to compute the parent container for a popup. This cannot be a NativeView, since on mus a NativeView is an aura::Window, but the parent container is a mus window. This can't move to //ash/common yet because of system tray dependencies. BUG=619636 TEST=ash_unittests Committed: https://crrev.com/21c95c56e86bda6f8f056551ca9ee043317ed1d6 Cr-Commit-Position: refs/heads/master@{#400738}

Patch Set 1 #

Patch Set 2 : rebase #

Total comments: 4

Patch Set 3 : rebase #

Patch Set 4 : fix test #

Patch Set 5 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+86 lines, -49 lines) Patch
M ash/system/web_notification/ash_popup_alignment_delegate.h View 1 chunk +3 lines, -0 lines 0 comments Download
M ash/system/web_notification/ash_popup_alignment_delegate.cc View 2 chunks +12 lines, -0 lines 0 comments Download
M ash/system/web_notification/web_notification_tray.h View 1 chunk +4 lines, -0 lines 0 comments Download
M ash/system/web_notification/web_notification_tray.cc View 1 5 chunks +8 lines, -19 lines 0 comments Download
M ash/system/web_notification/web_notification_tray_unittest.cc View 4 chunks +3 lines, -4 lines 0 comments Download
M chrome/browser/ui/views/message_center/web_notification_tray.cc View 1 chunk +1 line, -2 lines 0 comments Download
M ui/message_center/views/desktop_popup_alignment_delegate.h View 1 chunk +3 lines, -0 lines 0 comments Download
M ui/message_center/views/desktop_popup_alignment_delegate.cc View 1 chunk +6 lines, -0 lines 0 comments Download
M ui/message_center/views/message_popup_collection.h View 4 chunks +1 line, -10 lines 0 comments Download
M ui/message_center/views/message_popup_collection.cc View 2 chunks +4 lines, -5 lines 0 comments Download
M ui/message_center/views/message_popup_collection_unittest.cc View 1 2 3 2 chunks +24 lines, -3 lines 0 comments Download
M ui/message_center/views/popup_alignment_delegate.h View 2 chunks +7 lines, -0 lines 0 comments Download
M ui/message_center/views/toast_contents_view.h View 4 chunks +3 lines, -2 lines 0 comments Download
M ui/message_center/views/toast_contents_view.cc View 4 chunks +7 lines, -4 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 13 (5 generated)
James Cook
msw, please take a look.
4 years, 6 months ago (2016-06-17 21:24:14 UTC) #2
msw
A bit complex, but seems reasonable. lgtm with a q. https://codereview.chromium.org/2075953003/diff/20001/ash/system/web_notification/web_notification_tray.cc File ash/system/web_notification/web_notification_tray.cc (right): https://codereview.chromium.org/2075953003/diff/20001/ash/system/web_notification/web_notification_tray.cc#newcode506 ...
4 years, 6 months ago (2016-06-17 22:28:11 UTC) #3
James Cook
stevenjb, can I get OWNERS for ui/message_center ? (Also, any idea on the question below?) ...
4 years, 6 months ago (2016-06-17 23:46:33 UTC) #5
stevenjb
lgtm https://codereview.chromium.org/2075953003/diff/20001/ash/system/web_notification/web_notification_tray.cc File ash/system/web_notification/web_notification_tray.cc (right): https://codereview.chromium.org/2075953003/diff/20001/ash/system/web_notification/web_notification_tray.cc#newcode506 ash/system/web_notification/web_notification_tray.cc:506: return status_area_widget()->login_status() != LoginStatus::NOT_LOGGED_IN && On 2016/06/17 23:46:33, ...
4 years, 6 months ago (2016-06-20 17:41:35 UTC) #6
James Cook
Thanks for the reviews, guys. I may need to take login status out of StatusAreaWidget ...
4 years, 6 months ago (2016-06-20 18:05:10 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2075953003/80001
4 years, 6 months ago (2016-06-20 18:06:03 UTC) #10
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 6 months ago (2016-06-20 18:47:34 UTC) #11
commit-bot: I haz the power
4 years, 6 months ago (2016-06-20 18:50:26 UTC) #13
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/21c95c56e86bda6f8f056551ca9ee043317ed1d6
Cr-Commit-Position: refs/heads/master@{#400738}

Powered by Google App Engine
This is Rietveld 408576698