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 CHROME_COMMON_GFX_CHROME_CANVAS_H_ | 5 #ifndef CHROME_COMMON_GFX_CHROME_CANVAS_H_ |
6 #define CHROME_COMMON_GFX_CHROME_CANVAS_H_ | 6 #define CHROME_COMMON_GFX_CHROME_CANVAS_H_ |
7 | 7 |
8 #include <windows.h> | 8 #include <windows.h> |
9 #include <string> | 9 #include <string> |
| 10 |
10 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
11 #include "base/gfx/platform_canvas_win.h" | 12 #include "skia/ext/platform_canvas_win.h" |
12 | 13 |
13 class ChromeFont; | 14 class ChromeFont; |
14 namespace gfx { | 15 namespace gfx { |
15 class Rect; | 16 class Rect; |
16 } | 17 } |
17 | 18 |
18 // ChromeCanvas is the SkCanvas used by Views for all painting. It | 19 // ChromeCanvas is the SkCanvas used by Views for all painting. It |
19 // provides a handful of methods for the common operations used throughout | 20 // provides a handful of methods for the common operations used throughout |
20 // Views. With few exceptions, you should NOT create a ChromeCanvas directly, | 21 // Views. With few exceptions, you should NOT create a ChromeCanvas directly, |
21 // rather one will be passed to you via the various paint methods in view. | 22 // rather one will be passed to you via the various paint methods in view. |
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
170 const SkColor& color, int x, int y, int w, int h, | 171 const SkColor& color, int x, int y, int w, int h, |
171 int flags); | 172 int flags); |
172 | 173 |
173 DISALLOW_EVIL_CONSTRUCTORS(ChromeCanvas); | 174 DISALLOW_EVIL_CONSTRUCTORS(ChromeCanvas); |
174 }; | 175 }; |
175 | 176 |
176 typedef gfx::CanvasPaintT<ChromeCanvas> ChromeCanvasPaint; | 177 typedef gfx::CanvasPaintT<ChromeCanvas> ChromeCanvasPaint; |
177 | 178 |
178 #endif // CHROME_COMMON_GFX_CHROME_CANVAS_H_ | 179 #endif // CHROME_COMMON_GFX_CHROME_CANVAS_H_ |
179 | 180 |
OLD | NEW |