|
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}
Total comments: 8
Total comments: 16
|
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
|
Total messages: 57 (35 generated)
|