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

Unified Diff: chrome/browser/ui/views/toolbar/toolbar_view.cc

Issue 1682373002: Misc. small changes in preparation for moving popup mode edge drawing. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix build Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/ui/views/location_bar/location_bar_view.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 9b58aaa65ee84fb62cfd4d42f9c26e8432651aa9..fd93b02953f9593439941f093a7be170acc49345 100644
--- a/chrome/browser/ui/views/toolbar/toolbar_view.cc
+++ b/chrome/browser/ui/views/toolbar/toolbar_view.cc
@@ -688,13 +688,8 @@ void ToolbarView::UpdateBadgeSeverity(AppMenuBadgeController::BadgeType type,
}
int ToolbarView::PopupTopSpacing() const {
- if (browser_->host_desktop_type() == chrome::HOST_DESKTOP_TYPE_ASH)
- return 0;
-
- const int kAdditionalPopupTopSpacingNonGlass = 2;
- return views::NonClientFrameView::kClientEdgeThickness +
- (GetWidget()->ShouldWindowContentsBeTransparent() ?
- 0 : kAdditionalPopupTopSpacingNonGlass);
+ return (browser_->host_desktop_type() == chrome::HOST_DESKTOP_TYPE_ASH) ?
+ 0 : views::NonClientFrameView::kClientEdgeThickness;
}
gfx::Size ToolbarView::GetSizeInternal(
« no previous file with comments | « chrome/browser/ui/views/location_bar/location_bar_view.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698