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

Issue 2491033006: Adjust positioning of cros tray bubbles. (Closed)

Created:
4 years, 1 month ago by Evan Stade
Modified:
4 years, 1 month ago
CC:
chromium-reviews, groby+bubble_chromium.org, sadrul, oshima+watch_chromium.org, tfarina, msw+watch_chromium.org, hcarmona+bubble_chromium.org, kalyank, rouslan+bubble_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Adjust positioning of cros tray bubbles. This consolidates the anchoring logic of all tray bubbles. In the common case (bottom aligned, LTR) this is right bubble edge to right button edge, and vertically, flushed to the tray (i.e. the area that turns black when you maximize a window). There are never arrows on tray bubbles these days, so a ton of arrow- related logic is removed from TrayBubbleView. Since all bubbles position themselves the same way (and because set_anchor_view_insets is flexible enough to cover any differences), there's no need to delegate GetAnchorRect any more. Many other settings such as the shadow are also not needed since they're always the same. Trying to maintain pre-MD behavior and have both coexist would be a mess, so the change is not gated on the MD flag. However, it works fine in both worlds. BUG=663016 Committed: https://crrev.com/3acb088db0632abae388129760f33bdf5fbe09a2 Cr-Commit-Position: refs/heads/master@{#432567}

Patch Set 1 #

Patch Set 2 : dbg code and all #

Patch Set 3 : formatted, with debug code #

Patch Set 4 : no dbg #

Patch Set 5 : . #

Total comments: 8

Patch Set 6 : rebase and update bug link #

Total comments: 16

Patch Set 7 : msw review, resolve merge conflict #

Patch Set 8 : disable test on windows #

Patch Set 9 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+125 lines, -506 lines) Patch
M ash/common/system/chromeos/audio/tray_audio.h View 1 2 3 4 5 1 chunk +0 lines, -1 line 0 comments Download
M ash/common/system/chromeos/audio/tray_audio.cc View 1 2 3 4 5 1 chunk +0 lines, -4 lines 0 comments Download
M ash/common/system/chromeos/brightness/tray_brightness.h View 1 chunk +0 lines, -1 line 0 comments Download
M ash/common/system/chromeos/brightness/tray_brightness.cc View 1 2 3 4 5 1 chunk +0 lines, -4 lines 0 comments Download
M ash/common/system/chromeos/ime_menu/ime_menu_tray.h View 1 1 chunk +0 lines, -3 lines 0 comments Download
M ash/common/system/chromeos/ime_menu/ime_menu_tray.cc View 1 2 3 4 5 6 2 chunks +3 lines, -25 lines 0 comments Download
M ash/common/system/chromeos/palette/palette_tray.h View 1 1 chunk +0 lines, -3 lines 0 comments Download
M ash/common/system/chromeos/palette/palette_tray.cc View 1 2 3 4 5 6 3 chunks +4 lines, -31 lines 0 comments Download
M ash/common/system/tray/system_tray.h View 1 3 chunks +0 lines, -13 lines 0 comments Download
M ash/common/system/tray/system_tray.cc View 1 2 3 4 5 6 7 8 10 chunks +27 lines, -82 lines 0 comments Download
M ash/common/system/tray/system_tray_bubble.cc View 1 2 3 4 5 1 chunk +1 line, -2 lines 0 comments Download
M ash/common/system/tray/system_tray_item.h View 1 chunk +0 lines, -3 lines 0 comments Download
M ash/common/system/tray/system_tray_item.cc View 1 chunk +0 lines, -4 lines 0 comments Download
M ash/common/system/tray/tray_background_view.h View 1 2 3 4 5 6 2 chunks +7 lines, -6 lines 0 comments Download
M ash/common/system/tray/tray_background_view.cc View 1 2 3 4 5 6 4 chunks +33 lines, -83 lines 0 comments Download
M ash/common/system/tray/tray_constants.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M ash/common/system/web_notification/web_notification_tray.h View 1 1 chunk +0 lines, -3 lines 0 comments Download
M ash/common/system/web_notification/web_notification_tray.cc View 1 2 3 4 5 6 4 chunks +6 lines, -21 lines 0 comments Download
M ash/shelf/shelf_layout_manager_unittest.cc View 1 2 3 4 5 6 7 1 chunk +11 lines, -1 line 0 comments Download
M ui/message_center/views/message_bubble_base.cc View 1 2 1 chunk +1 line, -2 lines 0 comments Download
M ui/message_center/views/message_center_bubble.h View 1 2 2 chunks +1 line, -7 lines 0 comments Download
M ui/message_center/views/message_center_bubble.cc View 1 2 chunks +2 lines, -5 lines 0 comments Download
M ui/views/bubble/tray_bubble_view.h View 1 2 3 4 5 6 7 chunks +3 lines, -37 lines 0 comments Download
M ui/views/bubble/tray_bubble_view.cc View 1 2 3 4 8 chunks +25 lines, -164 lines 0 comments Download

Messages

Total messages: 57 (35 generated)
Evan Stade
(I'm sure there will be test failures)
4 years, 1 month ago (2016-11-13 04:28:59 UTC) #6
tdanderson
Thanks a lot for this code cleanup! ash/common/system LG but it would definitely not hurt ...
4 years, 1 month ago (2016-11-14 04:03:22 UTC) #9
sky
+msw as he is likely a better reviewer for this than I am. https://codereview.chromium.org/2491033006/diff/80001/ui/views/bubble/tray_bubble_view.h File ...
4 years, 1 month ago (2016-11-14 16:18:49 UTC) #11
Evan Stade
https://codereview.chromium.org/2491033006/diff/80001/ui/views/bubble/tray_bubble_view.h File ui/views/bubble/tray_bubble_view.h (right): https://codereview.chromium.org/2491033006/diff/80001/ui/views/bubble/tray_bubble_view.h#newcode31 ui/views/bubble/tray_bubble_view.h:31: // Specialized bubble view for bubbles associated with a ...
4 years, 1 month ago (2016-11-14 17:00:00 UTC) #12
sky
https://codereview.chromium.org/2491033006/diff/80001/ui/views/bubble/tray_bubble_view.h File ui/views/bubble/tray_bubble_view.h (right): https://codereview.chromium.org/2491033006/diff/80001/ui/views/bubble/tray_bubble_view.h#newcode31 ui/views/bubble/tray_bubble_view.h:31: // Specialized bubble view for bubbles associated with a ...
4 years, 1 month ago (2016-11-14 17:16:35 UTC) #13
Evan Stade
+msw, hate to nag, but we'd like to land this by Thursday, so if major ...
4 years, 1 month ago (2016-11-15 01:11:55 UTC) #15
msw
skuhne@ knows tray bubble better than me, but I have some comments. https://codereview.chromium.org/2491033006/diff/100001/ash/common/system/tray/system_tray.cc File ash/common/system/tray/system_tray.cc ...
4 years, 1 month ago (2016-11-15 02:59:38 UTC) #20
sky
Leave moving for a future patch. I should have made that clear, sorry. -Scott On ...
4 years, 1 month ago (2016-11-15 03:00:03 UTC) #21
Evan Stade
https://codereview.chromium.org/2491033006/diff/100001/ash/common/system/tray/system_tray.cc File ash/common/system/tray/system_tray.cc (right): https://codereview.chromium.org/2491033006/diff/100001/ash/common/system/tray/system_tray.cc#newcode132 ash/common/system/tray/system_tray.cc:132: TrayBubbleView::InitParams* init_params, On 2016/11/15 02:59:38, msw wrote: > should ...
4 years, 1 month ago (2016-11-15 17:01:29 UTC) #22
msw
lgtm
4 years, 1 month ago (2016-11-15 19:07:44 UTC) #27
sky
LGTM
4 years, 1 month ago (2016-11-15 20:25:33 UTC) #28
Evan Stade
4 years, 1 month ago (2016-11-15 22:52:58 UTC) #34
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/2491033006/160001
4 years, 1 month ago (2016-11-15 22:53:36 UTC) #37
commit-bot: I haz the power
Try jobs failed on following builders: cast_shell_linux on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/cast_shell_linux/builds/261297)
4 years, 1 month ago (2016-11-15 23:19:28 UTC) #39
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/2491033006/160001
4 years, 1 month ago (2016-11-15 23:57:08 UTC) #41
commit-bot: I haz the power
Failed to apply patch for ash/common/system/tray/system_tray.cc: While running git apply --index -p1; error: patch failed: ...
4 years, 1 month ago (2016-11-16 00:16:05 UTC) #43
Mr4D (OOO till 08-26)
lgtm
4 years, 1 month ago (2016-11-16 00:25:53 UTC) #44
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/2491033006/180001
4 years, 1 month ago (2016-11-16 03:48:07 UTC) #49
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_ozone_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_ozone_rel_ng/builds/273278)
4 years, 1 month ago (2016-11-16 05:49:22 UTC) #51
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/2491033006/180001
4 years, 1 month ago (2016-11-16 18:01:19 UTC) #53
commit-bot: I haz the power
Failed to apply patch for ash/common/system/chromeos/audio/tray_audio.cc: While running git apply --index -p1; error: patch failed: ...
4 years, 1 month ago (2016-11-16 18:34:04 UTC) #55
commit-bot: I haz the power
4 years, 1 month ago (2016-11-16 18:52:47 UTC) #57
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/3acb088db0632abae388129760f33bdf5fbe09a2
Cr-Commit-Position: refs/heads/master@{#432567}

Powered by Google App Engine
This is Rietveld 408576698