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

Unified Diff: chrome/browser/ui/views/frame/opaque_browser_frame_view.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/frame/opaque_browser_frame_view.cc
diff --git a/chrome/browser/ui/views/frame/opaque_browser_frame_view.cc b/chrome/browser/ui/views/frame/opaque_browser_frame_view.cc
index 51659936184982ceb2be1e8e92c6cf3b41e38246..e11d10c96649f381ee139b8586be176129d3543d 100644
--- a/chrome/browser/ui/views/frame/opaque_browser_frame_view.cc
+++ b/chrome/browser/ui/views/frame/opaque_browser_frame_view.cc
@@ -240,6 +240,10 @@ OpaqueBrowserFrameView::GetTabStripInsets(bool restored) const {
return TabStripInsets(top, 0, 0);
}
+int OpaqueBrowserFrameView::GetThemeBackgroundXInset() const {
+ return 0;
+}
+
void OpaqueBrowserFrameView::UpdateThrobber(bool running) {
if (window_icon_)
window_icon_->Update();
@@ -710,9 +714,10 @@ void OpaqueBrowserFrameView::PaintToolbarBackground(gfx::Canvas* canvas) {
// Tile the toolbar image starting at the frame edge on the left and where the
// horizontal tabstrip is (or would be) on the top.
- canvas->TileImageInt(*theme_toolbar, x,
- bottom_y - GetTabStripInsets(false).top, x,
- bottom_y, w, theme_toolbar->height());
+ canvas->TileImageInt(*theme_toolbar,
+ x + GetThemeBackgroundXInset(),
+ bottom_y - GetTabStripInsets(false).top,
+ x, bottom_y, w, theme_toolbar->height());
// Draw rounded corners for the tab.
gfx::ImageSkia* toolbar_left_mask =
« no previous file with comments | « chrome/browser/ui/views/frame/opaque_browser_frame_view.h ('k') | chrome/browser/ui/views/frame/popup_non_client_frame_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698