|
Add views::View::set_preferred_size, use it in a few places.
This sets a preferred size which will override the one provided by the
layout manager or a subclass's GetPreferredSize override. It also
renames the override-able function to CalculatePreferredSize and makes
it protected. Eventually all GetPreferredSize overrides should be
renamed.
This patch also gives precedence to LayoutManager::GetPreferredSize
over View::CalculatePreferredSize, although this distinction probably
rarely crops up.
BUG=none
Review-Url: https://codereview.chromium.org/2881183003
Cr-Commit-Position: refs/heads/master@{#472155}
Committed: https://chromium.googlesource.com/chromium/src/+/ae01bc6a3a50e49466bd2c1455ff011f2d006bf4
Total comments: 2
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+42 lines, -94 lines) |
Patch |
|
M |
ash/BUILD.gn
|
View
|
|
1 chunk |
+0 lines, -2 lines |
0 comments
|
Download
|
|
M |
ash/system/power/power_status_view.cc
|
View
|
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
|
M |
ash/system/screen_layout_observer.cc
|
View
|
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
|
D |
ash/system/tray/fixed_sized_image_view.h
|
View
|
|
1 chunk |
+0 lines, -31 lines |
0 comments
|
Download
|
|
D |
ash/system/tray/fixed_sized_image_view.cc
|
View
|
|
1 chunk |
+0 lines, -20 lines |
0 comments
|
Download
|
|
M |
ash/system/tray/system_menu_button.cc
|
View
|
|
2 chunks |
+1 line, -5 lines |
0 comments
|
Download
|
|
M |
ash/system/tray/tray_popup_utils.cc
|
View
|
1
2
|
2 chunks |
+6 lines, -5 lines |
0 comments
|
Download
|
|
M |
ash/system/tray_tracing.cc
|
View
|
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
|
M |
ash/system/update/tray_update.cc
|
View
|
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
|
M |
ash/system/user/user_card_view.cc
|
View
|
1
2
|
3 chunks |
+3 lines, -3 lines |
0 comments
|
Download
|
|
M |
chrome/browser/ui/views/profiles/profile_chooser_view.cc
|
View
|
|
2 chunks |
+3 lines, -16 lines |
0 comments
|
Download
|
|
M |
ui/views/controls/image_view.h
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
ui/views/controls/image_view.cc
|
View
|
|
2 chunks |
+6 lines, -6 lines |
0 comments
|
Download
|
|
M |
ui/views/view.h
|
View
|
1
|
3 chunks |
+15 lines, -0 lines |
0 comments
|
Download
|
|
M |
ui/views/view.cc
|
View
|
|
2 chunks |
+7 lines, -1 line |
0 comments
|
Download
|
Total messages: 21 (12 generated)
|