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

Unified Diff: chrome/browser/ui/views/frame/browser_non_client_frame_view_ash.cc

Issue 1505223004: Do not use assets for Ash window control button backgrounds (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: for owners review Created 4 years, 12 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
Index: chrome/browser/ui/views/frame/browser_non_client_frame_view_ash.cc
diff --git a/chrome/browser/ui/views/frame/browser_non_client_frame_view_ash.cc b/chrome/browser/ui/views/frame/browser_non_client_frame_view_ash.cc
index 5349b06313dab595a9bc1380fc8283cf11f54214..ffefd3ce4f0e520293533d730b967a122bd0e454 100644
--- a/chrome/browser/ui/views/frame/browser_non_client_frame_view_ash.cc
+++ b/chrome/browser/ui/views/frame/browser_non_client_frame_view_ash.cc
@@ -177,6 +177,14 @@ int BrowserNonClientFrameViewAsh::GetTopInset(bool restored) const {
return 0;
if (browser_view()->IsTabStripVisible()) {
+ // TODO(tdanderson): Remove this temporary hack to prevent the buttons in
+ // the header from overlapping the tabstrip/toolbar
+ // separator in material design.
+ if (ui::MaterialDesignController::IsModeMaterial()) {
+ return header_painter_->GetHeaderHeight() -
+ browser_view()->GetTabStripHeight();
+ }
+
return ((frame()->IsMaximized() || frame()->IsFullscreen()) && !restored) ?
kTabstripTopSpacingShort : kTabstripTopSpacingTall;
}

Powered by Google App Engine
This is Rietveld 408576698