| 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 #ifndef VIEWS_PAINTER_H_ | 5 #ifndef VIEWS_PAINTER_H_ |
| 6 #define VIEWS_PAINTER_H_ | 6 #define VIEWS_PAINTER_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| 11 #include "skia/include/SkColor.h" | 11 #include "third_party/skia/include/core/SkColor.h" |
| 12 | 12 |
| 13 class ChromeCanvas; | 13 class ChromeCanvas; |
| 14 class SkBitmap; | 14 class SkBitmap; |
| 15 | 15 |
| 16 namespace views { | 16 namespace views { |
| 17 | 17 |
| 18 // Painter, as the name implies, is responsible for painting in a particular | 18 // Painter, as the name implies, is responsible for painting in a particular |
| 19 // region. Think of Painter as a Border or Background that can be painted | 19 // region. Think of Painter as a Border or Background that can be painted |
| 20 // in any region of a View. | 20 // in any region of a View. |
| 21 class Painter { | 21 class Painter { |
| (...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 111 int height_; | 111 int height_; |
| 112 // NOTE: the images are owned by ResourceBundle. Don't free them. | 112 // NOTE: the images are owned by ResourceBundle. Don't free them. |
| 113 SkBitmap* images_[3]; | 113 SkBitmap* images_[3]; |
| 114 | 114 |
| 115 DISALLOW_EVIL_CONSTRUCTORS(HorizontalPainter); | 115 DISALLOW_EVIL_CONSTRUCTORS(HorizontalPainter); |
| 116 }; | 116 }; |
| 117 | 117 |
| 118 } // namespace views | 118 } // namespace views |
| 119 | 119 |
| 120 #endif // VIEWS_PAINTER_H_ | 120 #endif // VIEWS_PAINTER_H_ |
| OLD | NEW |