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

Issue 2472233002: Fix a bug of PopupAlignmentDelegate on non-primary display (Closed)

Created:
4 years, 1 month ago by yoshiki
Modified:
4 years, 1 month ago
CC:
chromium-reviews, Peter Beverloo, kalyank, mlamouri+watch-notifications_chromium.org, sadrul, awdf+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix a bug of PopupAlignmentDelegate on non-primary display Previously, PopupAlignmentDelegate assumed the display's y-axis origin is 0. But it is not true in case of non-primary display which is not vertically aligned with the primary display. This patch makes PopupAlignmentDelegate consider such a non-primary display and fixes the issue. BUG=662198 TEST=none Committed: https://crrev.com/6171d1a24ab95e88598cbd499cfd908b8819ecba Cr-Commit-Position: refs/heads/master@{#430126}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Addressed comment: returning a rect instead of top #

Unified diffs Side-by-side diffs Delta from patch set Stats (+17 lines, -12 lines) Patch
M ash/common/system/web_notification/ash_popup_alignment_delegate.h View 1 1 chunk +1 line, -1 line 0 comments Download
M ash/common/system/web_notification/ash_popup_alignment_delegate.cc View 1 1 chunk +5 lines, -2 lines 0 comments Download
M ash/system/web_notification/web_notification_tray_unittest.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M ui/message_center/views/desktop_popup_alignment_delegate.h View 1 1 chunk +1 line, -1 line 0 comments Download
M ui/message_center/views/desktop_popup_alignment_delegate.cc View 1 1 chunk +2 lines, -2 lines 0 comments Download
M ui/message_center/views/message_popup_collection.cc View 1 2 chunks +5 lines, -3 lines 0 comments Download
M ui/message_center/views/popup_alignment_delegate.h View 1 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 23 (16 generated)
yoshiki
Stefan, PTAL at ash/common/system/web_notification/*. Justin, PTAL at ui/message_center/views/*. Thanks.
4 years, 1 month ago (2016-11-04 00:32:31 UTC) #7
Mr4D (OOO till 08-26)
a/c/s/w lgtm - But please consider passing back the entire bounds - if this might ...
4 years, 1 month ago (2016-11-04 14:03:12 UTC) #10
dewittj
also lgtm, agree that it's probably right to expose the whole work area. Or at ...
4 years, 1 month ago (2016-11-04 20:18:37 UTC) #11
yoshiki
Thank you for reviewing. Let me submit. https://codereview.chromium.org/2472233002/diff/1/ash/common/system/web_notification/ash_popup_alignment_delegate.cc File ash/common/system/web_notification/ash_popup_alignment_delegate.cc (right): https://codereview.chromium.org/2472233002/diff/1/ash/common/system/web_notification/ash_popup_alignment_delegate.cc#newcode93 ash/common/system/web_notification/ash_popup_alignment_delegate.cc:93: int AshPopupAlignmentDelegate::GetWorkAreaTop() ...
4 years, 1 month ago (2016-11-05 01:56:54 UTC) #16
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/2472233002/20001
4 years, 1 month ago (2016-11-05 01:57:24 UTC) #19
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 1 month ago (2016-11-05 02:03:41 UTC) #21
commit-bot: I haz the power
4 years, 1 month ago (2016-11-05 02:06:26 UTC) #23
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/6171d1a24ab95e88598cbd499cfd908b8819ecba
Cr-Commit-Position: refs/heads/master@{#430126}

Powered by Google App Engine
This is Rietveld 408576698