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

Unified Diff: chrome/browser/ui/views/frame/glass_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/glass_browser_frame_view.cc
diff --git a/chrome/browser/ui/views/frame/glass_browser_frame_view.cc b/chrome/browser/ui/views/frame/glass_browser_frame_view.cc
index ae6197a689832e683be342f6b09a2ee897d2a8df..0bed418bc3714dd40579b1295342e52b7a3bd92d 100644
--- a/chrome/browser/ui/views/frame/glass_browser_frame_view.cc
+++ b/chrome/browser/ui/views/frame/glass_browser_frame_view.cc
@@ -124,6 +124,10 @@ GlassBrowserFrameView::GetTabStripInsets(bool restored) const {
return TabStripInsets(NonClientTopBorderHeight(restored), 0, 0);
}
+int GlassBrowserFrameView::GetThemeBackgroundXInset() const {
+ return 0;
+}
+
void GlassBrowserFrameView::UpdateThrobber(bool running) {
if (throbber_running_) {
if (running) {
@@ -296,7 +300,8 @@ void GlassBrowserFrameView::PaintToolbarBackground(gfx::Canvas* canvas) {
// the tabstrip is on the top.
int y = toolbar_bounds.y();
int dest_y = y + (kFrameShadowThickness * 2);
- canvas->TileImageInt(*theme_toolbar, x,
+ canvas->TileImageInt(*theme_toolbar,
+ x + GetThemeBackgroundXInset(),
dest_y - GetTabStripInsets(false).top, x,
dest_y, w, theme_toolbar->height());
« no previous file with comments | « chrome/browser/ui/views/frame/glass_browser_frame_view.h ('k') | chrome/browser/ui/views/frame/opaque_browser_frame_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698