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

Issue 10808066: Fix position of web notification bubble and arrow (Closed)

Created:
8 years, 5 months ago by stevenjb
Modified:
8 years, 4 months ago
Reviewers:
msw, sadrul, jennyz
CC:
chromium-reviews, tfarina, alicet1, sadrul, msw+watch_chromium.org, ben+watch_chromium.org
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Fix position of web notification bubble and arrow * Move GetAnchorRect into TrayBubbleView * Remove double RTL inversion and modify arrow offset logic * Add rtl_mirrored to BubbleBorder to support unmirrored rtl bubbles * Correctly align notifications and rebuild on shelf alignment change. BUG=137154 TEST=tests pass; alignment for web notifications matches the system tray bubble and works correctly on left and right launcher and wirth RTL. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=149445

Patch Set 1 #

Patch Set 2 : Add comments #

Patch Set 3 : . #

Patch Set 4 : . #

Patch Set 5 : . #

Total comments: 23

Patch Set 6 : Reduce changes to BubbleBorder. #

Patch Set 7 : . #

Total comments: 26

Patch Set 8 : Rebase without unrelated changes + address comments #

Total comments: 14

Patch Set 9 : Update comments. #

Patch Set 10 : Rebase #

Patch Set 11 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+313 lines, -299 lines) Patch
M ash/system/tray/system_tray.cc View 1 2 3 4 5 6 7 8 chunks +35 lines, -48 lines 0 comments Download
M ash/system/tray/system_tray_bubble.h View 4 chunks +3 lines, -20 lines 0 comments Download
M ash/system/tray/system_tray_bubble.cc View 1 2 3 4 5 6 7 6 chunks +12 lines, -94 lines 0 comments Download
M ash/system/tray/tray_bubble_view.h View 1 2 3 4 5 6 7 6 chunks +38 lines, -14 lines 0 comments Download
M ash/system/tray/tray_bubble_view.cc View 1 2 3 4 5 6 7 8 9 10 13 chunks +166 lines, -61 lines 0 comments Download
M ash/system/tray_accessibility.cc View 1 2 3 4 5 1 chunk +0 lines, -1 line 0 comments Download
M ash/system/web_notification/web_notification_tray.cc View 1 2 3 4 5 6 7 7 chunks +17 lines, -29 lines 0 comments Download
M ui/views/bubble/bubble_border.h View 1 2 3 4 5 6 7 1 chunk +6 lines, -0 lines 0 comments Download
M ui/views/bubble/bubble_border.cc View 1 2 3 4 5 1 chunk +6 lines, -1 line 0 comments Download
M ui/views/bubble/bubble_delegate.cc View 1 2 3 4 5 6 7 1 chunk +10 lines, -1 line 0 comments Download
M ui/views/bubble/bubble_frame_view.h View 1 2 3 4 5 6 1 chunk +3 lines, -3 lines 0 comments Download
M ui/views/bubble/bubble_frame_view.cc View 1 2 3 4 5 1 chunk +4 lines, -11 lines 0 comments Download
M ui/views/bubble/bubble_frame_view_unittest.cc View 1 2 3 4 5 6 6 chunks +13 lines, -16 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
stevenjb
Ready for review. This fixes a lot of issues with the web notification tray, and ...
8 years, 5 months ago (2012-07-23 21:19:23 UTC) #1
msw
Can you explain what this CL is trying to accomplish with the mirroring of bubble ...
8 years, 5 months ago (2012-07-23 22:20:48 UTC) #2
stevenjb
I agree that the code is very (and possibly unnecessarily) complex. I'll try to take ...
8 years, 5 months ago (2012-07-23 23:32:06 UTC) #3
msw
I guess I'm still unclear why the arrow must be flipped in all but that ...
8 years, 5 months ago (2012-07-24 00:32:43 UTC) #4
stevenjb
NOTE: I have a separate CL that extracts some of the many changes in ash/system, ...
8 years, 5 months ago (2012-07-26 23:48:30 UTC) #5
msw
Thanks for cleaning up the Bubble changes and attempting to consolidate the arrow/border code etc. ...
8 years, 4 months ago (2012-07-27 20:32:04 UTC) #6
stevenjb
I split some of the unrelated changes into http://codereview.chromium.org/10833041/. I was going to split out ...
8 years, 4 months ago (2012-07-30 20:09:03 UTC) #7
jennyz
http://codereview.chromium.org/10808066/diff/25001/ash/system/tray/system_tray.cc File ash/system/tray/system_tray.cc (right): http://codereview.chromium.org/10808066/diff/25001/ash/system/tray/system_tray.cc#newcode479 ash/system/tray/system_tray.cc:479: init_params.arrow_color = kBackgroundColor; kBackgroundColor is a fixed const, uber ...
8 years, 4 months ago (2012-07-31 02:29:47 UTC) #8
msw
http://codereview.chromium.org/10808066/diff/25001/ash/system/tray/tray_bubble_view.cc File ash/system/tray/tray_bubble_view.cc (right): http://codereview.chromium.org/10808066/diff/25001/ash/system/tray/tray_bubble_view.cc#newcode115 ash/system/tray/tray_bubble_view.cc:115: // TrayBubbleView supports dynamically updated bubbles. This does not ...
8 years, 4 months ago (2012-07-31 14:41:55 UTC) #9
stevenjb
http://codereview.chromium.org/10808066/diff/25001/ash/system/tray/system_tray.cc File ash/system/tray/system_tray.cc (right): http://codereview.chromium.org/10808066/diff/25001/ash/system/tray/system_tray.cc#newcode479 ash/system/tray/system_tray.cc:479: init_params.arrow_color = kBackgroundColor; Making the previous code work reliably ...
8 years, 4 months ago (2012-07-31 16:35:28 UTC) #10
jennyz
lgtm
8 years, 4 months ago (2012-07-31 16:55:58 UTC) #11
sadrul
lgtm
8 years, 4 months ago (2012-08-01 14:55:18 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/stevenjb@chromium.org/10808066/13021
8 years, 4 months ago (2012-08-01 16:33:07 UTC) #13
commit-bot: I haz the power
8 years, 4 months ago (2012-08-01 16:33:22 UTC) #14
Failed to apply patch for ash/system/tray/tray_bubble_view.cc:
While running patch -p1 --forward --force;
patching file ash/system/tray/tray_bubble_view.cc
Hunk #2 succeeded at 38 with fuzz 1.
Hunk #7 FAILED at 212.
Hunk #8 succeeded at 239 (offset 1 line).
Hunk #9 succeeded at 298 (offset 1 line).
Hunk #10 succeeded at 319 (offset 1 line).
Hunk #11 succeeded at 368 (offset 1 line).
Hunk #12 succeeded at 400 (offset 1 line).
Hunk #13 succeeded at 431 (offset 1 line).
1 out of 13 hunks FAILED -- saving rejects to file
ash/system/tray/tray_bubble_view.cc.rej

Powered by Google App Engine
This is Rietveld 408576698