OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 |
11 #include "base/string16.h" | 11 #include "base/string16.h" |
12 #include "gfx/native_widget_types.h" | |
13 // TODO(beng): remove this include when we no longer depend on SkTypes. | 12 // TODO(beng): remove this include when we no longer depend on SkTypes. |
14 #include "skia/ext/platform_canvas.h" | 13 #include "skia/ext/platform_canvas.h" |
| 14 #include "ui/gfx/native_widget_types.h" |
15 | 15 |
16 namespace gfx { | 16 namespace gfx { |
17 | 17 |
18 class Brush; | 18 class Brush; |
19 class CanvasSkia; | 19 class CanvasSkia; |
20 class Font; | 20 class Font; |
21 class Point; | 21 class Point; |
22 class Rect; | 22 class Rect; |
23 | 23 |
24 // TODO(beng): documentation. | 24 // TODO(beng): documentation. |
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
229 // Returns the rectangle that is invalid. | 229 // Returns the rectangle that is invalid. |
230 virtual gfx::Rect GetInvalidRect() const = 0; | 230 virtual gfx::Rect GetInvalidRect() const = 0; |
231 | 231 |
232 // Returns the underlying Canvas. | 232 // Returns the underlying Canvas. |
233 virtual Canvas* AsCanvas() = 0; | 233 virtual Canvas* AsCanvas() = 0; |
234 }; | 234 }; |
235 | 235 |
236 } // namespace gfx; | 236 } // namespace gfx; |
237 | 237 |
238 #endif // UI_GFX_CANVAS_H_ | 238 #endif // UI_GFX_CANVAS_H_ |
OLD | NEW |