| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "chrome/views/painter.h" | 5 #include "chrome/views/painter.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "chrome/app/theme/theme_resources.h" | |
| 9 #include "chrome/common/gfx/chrome_canvas.h" | 8 #include "chrome/common/gfx/chrome_canvas.h" |
| 10 #include "chrome/common/resource_bundle.h" | 9 #include "chrome/common/resource_bundle.h" |
| 11 #include "skia/include/SkBitmap.h" | 10 #include "skia/include/SkBitmap.h" |
| 12 #include "skia/include/SkGradientShader.h" | 11 #include "skia/include/SkGradientShader.h" |
| 13 | 12 |
| 14 namespace views { | 13 namespace views { |
| 15 | 14 |
| 16 namespace { | 15 namespace { |
| 17 | 16 |
| 18 class GradientPainter : public Painter { | 17 class GradientPainter : public Painter { |
| (...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 158 canvas->DrawBitmapInt(*images_[RIGHT], w - images_[RIGHT]->width(), 0); | 157 canvas->DrawBitmapInt(*images_[RIGHT], w - images_[RIGHT]->width(), 0); |
| 159 canvas->TileImageInt(*images_[CENTER], | 158 canvas->TileImageInt(*images_[CENTER], |
| 160 images_[LEFT]->width(), | 159 images_[LEFT]->width(), |
| 161 0, | 160 0, |
| 162 w - images_[LEFT]->width() - images_[RIGHT]->width(), | 161 w - images_[LEFT]->width() - images_[RIGHT]->width(), |
| 163 height_); | 162 height_); |
| 164 } | 163 } |
| 165 | 164 |
| 166 } // namespace views | 165 } // namespace views |
| 167 | 166 |
| OLD | NEW |