|
Declares GetHeightForWidth() for those who need it.
The default behavior of GetHeightForWidth() just refers GetPreferredSize(),
but views::BoxLayout now calculate the height based on the children.
However, some views use BoxLayout to layout children but want to keep
some specific height by GetPreferredSize(). This doesn't work well anymore,
since BoxLayout just ignores the GetPreferredSize() of the host.
Those views have to override GetHeightForWidth() to keep the preferred height.
BUG= 196693
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=193800
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+25 lines, -0 lines) |
Patch |
 |
M |
ash/system/power/power_status_view.h
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
ash/system/power/power_status_view.cc
|
View
|
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
 |
M |
ash/system/tray/hover_highlight_view.h
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
ash/system/tray/hover_highlight_view.cc
|
View
|
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
 |
M |
ash/system/tray/special_popup_row.h
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
ash/system/tray/special_popup_row.cc
|
View
|
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
 |
M |
ash/system/tray/tray_item_view.h
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
ash/system/tray/tray_item_view.cc
|
View
|
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
 |
M |
ash/system/user/tray_user.cc
|
View
|
|
2 chunks |
+5 lines, -0 lines |
0 comments
|
Download
|
Total messages: 5 (0 generated)
|