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

Issue 8503037: Fix the problem that notifications and panels overlap. (Closed)

Created:
9 years, 1 month ago by jianli
Modified:
9 years, 1 month ago
Reviewers:
jennb, Dmitry Titov
CC:
chromium-reviews, jennb, jianli, prasadt, dcheng, Paweł Hajdan Jr.
Visibility:
Public.

Description

Fix the problem that notifications and panels overlap. The workaround is to move all notifications on top of the panels that could overlap with. BUG=103052 TEST=new test Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=109588

Patch Set 1 #

Total comments: 10

Patch Set 2 : Fix. #

Total comments: 4

Patch Set 3 : Fix for MacOSX #

Total comments: 12

Patch Set 4 : Fix per feedback #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+407 lines, -24 lines) Patch
M chrome/browser/notifications/balloon_collection_gtk.cc View 1 2 3 2 chunks +9 lines, -0 lines 0 comments Download
M chrome/browser/notifications/balloon_collection_impl.h View 1 2 3 6 chunks +24 lines, -1 line 0 comments Download
M chrome/browser/notifications/balloon_collection_impl.cc View 1 2 3 8 chunks +117 lines, -21 lines 1 comment Download
M chrome/browser/notifications/balloon_collection_mac.mm View 1 2 3 2 chunks +9 lines, -0 lines 0 comments Download
M chrome/browser/notifications/balloon_collection_views.cc View 1 2 3 2 chunks +9 lines, -0 lines 0 comments Download
M chrome/browser/ui/panels/base_panel_browser_test.h View 1 2 3 2 chunks +5 lines, -0 lines 0 comments Download
M chrome/browser/ui/panels/base_panel_browser_test.cc View 1 2 3 3 chunks +29 lines, -1 line 1 comment Download
M chrome/browser/ui/panels/panel.cc View 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/ui/panels/panel_browsertest.cc View 1 2 3 3 chunks +170 lines, -0 lines 0 comments Download
M chrome/browser/ui/panels/panel_manager.h View 1 2 chunks +1 line, -1 line 0 comments Download
M chrome/browser/ui/panels/panel_manager.cc View 1 2 3 3 chunks +14 lines, -0 lines 0 comments Download
M chrome/common/chrome_notification_types.h View 1 2 3 1 chunk +15 lines, -0 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
jianli
9 years, 1 month ago (2011-11-09 00:32:44 UTC) #1
Dmitry Titov
Cool. Some notes below. I understand we are not doing the low-left corner... Do you ...
9 years, 1 month ago (2011-11-09 03:09:57 UTC) #2
Dmitry Titov
LGTM if all above are addressed and try bots are clear.
9 years, 1 month ago (2011-11-09 03:10:35 UTC) #3
jianli
Added the support for balloons shown on bottom-left corner. Uploaded a new patch and will ...
9 years, 1 month ago (2011-11-09 19:04:40 UTC) #4
Dmitry Titov
still LGTM
9 years, 1 month ago (2011-11-09 19:55:47 UTC) #5
jennb
Drive by... Make sure the bug report notes that this is a temporary hack. The ...
9 years, 1 month ago (2011-11-09 21:44:33 UTC) #6
jianli
dimich, can you take a look again with new patch? I fixed the issue for ...
9 years, 1 month ago (2011-11-10 02:10:29 UTC) #7
Dmitry Titov
http://codereview.chromium.org/8503037/diff/4003/chrome/browser/notifications/balloon_collection_impl.cc File chrome/browser/notifications/balloon_collection_impl.cc (right): http://codereview.chromium.org/8503037/diff/4003/chrome/browser/notifications/balloon_collection_impl.cc#newcode184 chrome/browser/notifications/balloon_collection_impl.cc:184: closed_browser = browser; Lets add a notification when panel ...
9 years, 1 month ago (2011-11-10 18:35:45 UTC) #8
jennb
I think there are problems with the way notifications are used in this patch. See ...
9 years, 1 month ago (2011-11-10 19:17:13 UTC) #9
jianli
http://codereview.chromium.org/8503037/diff/4003/chrome/browser/notifications/balloon_collection_impl.cc File chrome/browser/notifications/balloon_collection_impl.cc (right): http://codereview.chromium.org/8503037/diff/4003/chrome/browser/notifications/balloon_collection_impl.cc#newcode44 chrome/browser/notifications/balloon_collection_impl.cc:44: registrar_.Add(this, chrome::NOTIFICATION_BROWSER_WINDOW_READY, On 2011/11/10 19:17:13, jennb wrote: > Instead ...
9 years, 1 month ago (2011-11-11 00:38:29 UTC) #10
Dmitry Titov
LGTM
9 years, 1 month ago (2011-11-11 02:03:36 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jianli@chromium.org/8503037/10003
9 years, 1 month ago (2011-11-11 03:40:45 UTC) #12
commit-bot: I haz the power
Change committed as 109588
9 years, 1 month ago (2011-11-11 04:49:25 UTC) #13
jennb
9 years, 1 month ago (2011-11-11 23:02:43 UTC) #14
LGTM

Belated feedback. I like the improvements. One FYI and one that should be fixed
to avoid possibility of flaky test.

http://codereview.chromium.org/8503037/diff/10003/chrome/browser/notification...
File chrome/browser/notifications/balloon_collection_impl.cc (right):

http://codereview.chromium.org/8503037/diff/10003/chrome/browser/notification...
chrome/browser/notifications/balloon_collection_impl.cc:419: if
((*iter)->GetBounds().x() >= work_area_.x() + max_balloon_width())
FYI, until your overflow changes are in, this will cause balloons to be affected
by tall overflow panels appearing offscreen.

No need to fix now as you're almost done with overflow changes.

http://codereview.chromium.org/8503037/diff/10003/chrome/browser/ui/panels/ba...
File chrome/browser/ui/panels/base_panel_browser_test.cc (right):

http://codereview.chromium.org/8503037/diff/10003/chrome/browser/ui/panels/ba...
chrome/browser/ui/panels/base_panel_browser_test.cc:196:
ui_test_utils::WindowedNotificationObserver signal(
Should create the signal first, then do the 'if (ExistsPanel...)' to avoid
possibility that panel is created after the check and before the signal is
created.

Powered by Google App Engine
This is Rietveld 408576698