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

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

Issue 1412833008: Draw the same portion of the frame background behind the tabstrip in maximized (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@match_frame_alignment
Patch Set: Add comment Created 5 years, 1 month 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_view.cc
diff --git a/chrome/browser/ui/views/frame/browser_view.cc b/chrome/browser/ui/views/frame/browser_view.cc
index e6665e734e8b830210f85e2e6c2d8dd3b7ec4593..b9183f5e709b5551c57cd4d2df095c318fbf0d98 100644
--- a/chrome/browser/ui/views/frame/browser_view.cc
+++ b/chrome/browser/ui/views/frame/browser_view.cc
@@ -335,8 +335,8 @@ class BrowserViewLayoutDelegateImpl : public BrowserViewLayoutDelegate {
return gfx::ToEnclosingRect(bounds_f);
}
- int GetTopInsetInBrowserView() const override {
- return browser_view_->frame()->GetTopInset() -
+ int GetTopInsetInBrowserView(bool restored) const override {
+ return browser_view_->frame()->GetTopInset(restored) -
browser_view_->y();
}
@@ -594,7 +594,7 @@ gfx::Point BrowserView::OffsetPointForToolbarBackgroundImage(
// be). We expect our parent's origin to be the window origin.
gfx::Point window_point(point + GetMirroredPosition().OffsetFromOrigin());
window_point.Offset(frame_->GetThemeBackgroundXInset(),
- -frame_->GetTopInset());
+ -frame_->GetTopInset(false));
return window_point;
}

Powered by Google App Engine
This is Rietveld 408576698