Chromium Code Reviews| Index: chrome/browser/ui/views/toolbar/toolbar_view.cc |
| diff --git a/chrome/browser/ui/views/toolbar/toolbar_view.cc b/chrome/browser/ui/views/toolbar/toolbar_view.cc |
| index de07fa29263c1a9b3d4f64a32d0cd7fb551d8190..9b58aaa65ee84fb62cfd4d42f9c26e8432651aa9 100644 |
| --- a/chrome/browser/ui/views/toolbar/toolbar_view.cc |
| +++ b/chrome/browser/ui/views/toolbar/toolbar_view.cc |
| @@ -688,6 +688,9 @@ void ToolbarView::UpdateBadgeSeverity(AppMenuBadgeController::BadgeType type, |
| } |
| int ToolbarView::PopupTopSpacing() const { |
| + if (browser_->host_desktop_type() == chrome::HOST_DESKTOP_TYPE_ASH) |
|
Peter Kasting
2016/02/10 07:23:40
Oh, BTW, HOST_DESKTOP_TYPE_ASH is going away as we
Peter Kasting
2016/02/10 07:46:04
(Which is in fact precisely what https://coderevie
tdanderson
2016/02/10 18:22:30
Acknowledged.
|
| + return 0; |
|
Peter Kasting
2016/02/10 09:12:57
Actually, the more I think about this, the less su
tdanderson
2016/02/10 18:22:30
In my understanding, we're not (and don't want to)
Peter Kasting
2016/02/10 23:46:21
OK, reading your code again, I understand what's h
tdanderson
2016/02/11 16:10:21
Acknowledged.
|
| + |
| const int kAdditionalPopupTopSpacingNonGlass = 2; |
| return views::NonClientFrameView::kClientEdgeThickness + |
| (GetWidget()->ShouldWindowContentsBeTransparent() ? |
| @@ -735,14 +738,7 @@ gfx::Size ToolbarView::SizeForContentSize(gfx::Size size) const { |
| size.SetToMax( |
| gfx::Size(0, normal_background->height() - content_shadow_height())); |
| } |
| - } else if (size.height() == 0) { |
| - // Location mode with a 0 height location bar. If on ash, expand by one |
| - // pixel to show a border in the title bar, otherwise leave the size as zero |
| - // height. |
| - const int kAshBorderSpacing = 1; |
| - if (browser_->host_desktop_type() == chrome::HOST_DESKTOP_TYPE_ASH) |
| - size.Enlarge(0, kAshBorderSpacing); |
| - } else { |
| + } else if (size.height() > 0) { |
| size.Enlarge( |
| 0, PopupTopSpacing() + views::NonClientFrameView::kClientEdgeThickness); |
| } |