| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 UI_GFX_CANVAS_H_ | 5 #ifndef UI_GFX_CANVAS_H_ |
| 6 #define UI_GFX_CANVAS_H_ | 6 #define UI_GFX_CANVAS_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 190 virtual void DrawStringInt(const string16& text, | 190 virtual void DrawStringInt(const string16& text, |
| 191 const gfx::Font& font, | 191 const gfx::Font& font, |
| 192 const SkColor& color, | 192 const SkColor& color, |
| 193 int x, int y, int w, int h, | 193 int x, int y, int w, int h, |
| 194 int flags) = 0; | 194 int flags) = 0; |
| 195 | 195 |
| 196 // Draws a dotted gray rectangle used for focus purposes. | 196 // Draws a dotted gray rectangle used for focus purposes. |
| 197 virtual void DrawFocusRect(const gfx::Rect& rect) = 0; | 197 virtual void DrawFocusRect(const gfx::Rect& rect) = 0; |
| 198 | 198 |
| 199 // Tiles the image in the specified region. | 199 // Tiles the image in the specified region. |
| 200 virtual void TileImageInt(const SkBitmap& bitmap, | 200 virtual void TileImage(const SkBitmap& bitmap, const gfx::Rect& rect) = 0; |
| 201 int x, int y, int w, int h) = 0; | |
| 202 virtual void TileImageInt(const SkBitmap& bitmap, | 201 virtual void TileImageInt(const SkBitmap& bitmap, |
| 203 int src_x, int src_y, | 202 int src_x, int src_y, |
| 204 int dest_x, int dest_y, int w, int h) = 0; | 203 int dest_x, int dest_y, int w, int h) = 0; |
| 205 | 204 |
| 206 // Returns a native drawing context for platform specific drawing routines to | 205 // Returns a native drawing context for platform specific drawing routines to |
| 207 // use. Must be balanced by a call to EndPlatformPaint(). | 206 // use. Must be balanced by a call to EndPlatformPaint(). |
| 208 virtual gfx::NativeDrawingContext BeginPlatformPaint() = 0; | 207 virtual gfx::NativeDrawingContext BeginPlatformPaint() = 0; |
| 209 | 208 |
| 210 // Signifies the end of platform drawing using the native drawing context | 209 // Signifies the end of platform drawing using the native drawing context |
| 211 // returned by BeginPlatformPaint(). | 210 // returned by BeginPlatformPaint(). |
| (...skipping 25 matching lines...) Expand all Loading... |
| 237 // Returns the rectangle that is invalid. | 236 // Returns the rectangle that is invalid. |
| 238 virtual gfx::Rect GetInvalidRect() const = 0; | 237 virtual gfx::Rect GetInvalidRect() const = 0; |
| 239 | 238 |
| 240 // Returns the underlying Canvas. | 239 // Returns the underlying Canvas. |
| 241 virtual Canvas* AsCanvas() = 0; | 240 virtual Canvas* AsCanvas() = 0; |
| 242 }; | 241 }; |
| 243 | 242 |
| 244 } // namespace gfx | 243 } // namespace gfx |
| 245 | 244 |
| 246 #endif // UI_GFX_CANVAS_H_ | 245 #endif // UI_GFX_CANVAS_H_ |
| OLD | NEW |