| 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 #if defined(OS_WIN) | 8 #if defined(OS_WIN) |
| 9 #include <windows.h> | 9 #include <windows.h> |
| 10 #endif | 10 #endif |
| (...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 181 // aligned to the left, vertically centered, clipped to the region. If the | 181 // aligned to the left, vertically centered, clipped to the region. If the |
| 182 // text is too big, it is truncated and '...' is added to the end. | 182 // text is too big, it is truncated and '...' is added to the end. |
| 183 void DrawStringInt(const std::wstring& text, HFONT font, | 183 void DrawStringInt(const std::wstring& text, HFONT font, |
| 184 const SkColor& color, int x, int y, int w, int h, | 184 const SkColor& color, int x, int y, int w, int h, |
| 185 int flags); | 185 int flags); |
| 186 #endif | 186 #endif |
| 187 | 187 |
| 188 DISALLOW_EVIL_CONSTRUCTORS(ChromeCanvas); | 188 DISALLOW_EVIL_CONSTRUCTORS(ChromeCanvas); |
| 189 }; | 189 }; |
| 190 | 190 |
| 191 #if defined(OS_WIN) || defined(OS_LINUX) | 191 #if defined(OS_WIN) || defined(TOOLKIT_GTK) |
| 192 typedef skia::CanvasPaintT<ChromeCanvas> ChromeCanvasPaint; | 192 typedef skia::CanvasPaintT<ChromeCanvas> ChromeCanvasPaint; |
| 193 #endif | 193 #endif |
| 194 | 194 |
| 195 #endif // CHROME_COMMON_GFX_CHROME_CANVAS_H_ | 195 #endif // CHROME_COMMON_GFX_CHROME_CANVAS_H_ |
| OLD | NEW |