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

Unified Diff: chrome/browser/ui/views/detachable_toolbar_view.cc

Issue 10662032: alternate ntp (cros/partial-win): add tab-related stuff and toolbar/tab background change (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: addressed scott's comments Created 8 years, 6 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
« no previous file with comments | « chrome/browser/ui/views/detachable_toolbar_view.h ('k') | chrome/browser/ui/views/frame/browser_view.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/detachable_toolbar_view.cc
diff --git a/chrome/browser/ui/views/detachable_toolbar_view.cc b/chrome/browser/ui/views/detachable_toolbar_view.cc
index c0a0e4748bc549f37f0e71fc57f706c9e502a1c5..3adde2e4f2f96284b418ae41b4ff37d354e3986b 100644
--- a/chrome/browser/ui/views/detachable_toolbar_view.cc
+++ b/chrome/browser/ui/views/detachable_toolbar_view.cc
@@ -26,15 +26,16 @@ const SkColor DetachableToolbarView::kMiddleDividerColor =
void DetachableToolbarView::PaintBackgroundAttachedMode(
gfx::Canvas* canvas,
views::View* view,
- const gfx::Point& background_origin) {
- ui::ThemeProvider* tp = view->GetThemeProvider();
- canvas->FillRect(view->GetLocalBounds(),
- tp->GetColor(ThemeService::COLOR_TOOLBAR));
- canvas->TileImageInt(*tp->GetImageSkiaNamed(IDR_THEME_TOOLBAR),
+ const gfx::Point& background_origin,
+ SkColor toolbar_background_color,
+ gfx::ImageSkia* toolbar_background_image) {
+ canvas->FillRect(view->GetLocalBounds(), toolbar_background_color);
+ canvas->TileImageInt(*toolbar_background_image,
background_origin.x(), background_origin.y(), 0, 0,
view->width(), view->height());
#if defined(USE_ASH)
// Ash provides additional lightening at the edges of the toolbar.
+ ui::ThemeProvider* tp = view->GetThemeProvider();
gfx::ImageSkia* toolbar_left = tp->GetImageSkiaNamed(IDR_TOOLBAR_SHADE_LEFT);
canvas->TileImageInt(*toolbar_left,
0, 0,
« no previous file with comments | « chrome/browser/ui/views/detachable_toolbar_view.h ('k') | chrome/browser/ui/views/frame/browser_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698