| 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 APP_GFX_CANVAS_H_ | 5 #ifndef APP_GFX_CANVAS_H_ |
| 6 #define APP_GFX_CANVAS_H_ | 6 #define APP_GFX_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 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 201 // aligned to the left, vertically centered, clipped to the region. If the | 201 // aligned to the left, vertically centered, clipped to the region. If the |
| 202 // text is too big, it is truncated and '...' is added to the end. | 202 // text is too big, it is truncated and '...' is added to the end. |
| 203 void DrawStringInt(const std::wstring& text, HFONT font, | 203 void DrawStringInt(const std::wstring& text, HFONT font, |
| 204 const SkColor& color, int x, int y, int w, int h, | 204 const SkColor& color, int x, int y, int w, int h, |
| 205 int flags); | 205 int flags); |
| 206 #endif | 206 #endif |
| 207 | 207 |
| 208 DISALLOW_COPY_AND_ASSIGN(Canvas); | 208 DISALLOW_COPY_AND_ASSIGN(Canvas); |
| 209 }; | 209 }; |
| 210 | 210 |
| 211 #if defined(OS_WIN) || defined(OS_LINUX) | |
| 212 typedef skia::CanvasPaintT<Canvas> CanvasPaint; | |
| 213 #endif | |
| 214 | |
| 215 } // namespace gfx; | 211 } // namespace gfx; |
| 216 | 212 |
| 217 #endif // #ifndef APP_GFX_CANVAS_H_ | 213 #endif // #ifndef APP_GFX_CANVAS_H_ |
| OLD | NEW |