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

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

Issue 10816004: Fixes missing 5 pixel inset for theme background in Ash (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 4 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/ash/browser_non_client_frame_view_ash.cc
diff --git a/chrome/browser/ui/views/ash/browser_non_client_frame_view_ash.cc b/chrome/browser/ui/views/ash/browser_non_client_frame_view_ash.cc
index 1332fbd37b1907c9a071514b11a4208b19c91a3d..c8844b48083f57393a272c3831cd632687aa827d 100644
--- a/chrome/browser/ui/views/ash/browser_non_client_frame_view_ash.cc
+++ b/chrome/browser/ui/views/ash/browser_non_client_frame_view_ash.cc
@@ -206,6 +206,10 @@ BrowserNonClientFrameViewAsh::GetTabStripInsets(bool force_restored) const {
return TabStripInsets(NonClientTopBorderHeight(force_restored), left, right);
}
+int BrowserNonClientFrameViewAsh::GetThemeBackgroundXInset() const {
+ return frame_painter_->GetThemeBackgroundXInset();
+}
+
void BrowserNonClientFrameViewAsh::UpdateThrobber(bool running) {
if (window_icon_)
window_icon_->Update();
@@ -521,7 +525,8 @@ void BrowserNonClientFrameViewAsh::PaintToolbarBackground(
browser_view()->GetToolbarBackgroundImage(mode);
canvas->TileImageInt(
*theme_toolbar,
- x, bottom_y - GetTabStripInsets(false).top,
+ x + GetThemeBackgroundXInset(),
+ bottom_y - GetTabStripInsets(false).top,
x, bottom_y,
w, theme_toolbar->height());

Powered by Google App Engine
This is Rietveld 408576698