| 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 GFX_CANVAS_H_ | 5 #ifndef UI_GFX_CANVAS_H_ |
| 6 #define 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" | 12 #include "gfx/native_widget_types.h" |
| 13 // TODO(beng): remove this include when we no longer depend on SkTypes. | 13 // TODO(beng): remove this include when we no longer depend on SkTypes. |
| 14 #include "skia/ext/platform_canvas.h" | 14 #include "skia/ext/platform_canvas.h" |
| 15 | 15 |
| 16 namespace gfx { | 16 namespace gfx { |
| (...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 228 | 228 |
| 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 // GFX_CANVAS_H_ | 238 #endif // UI_GFX_CANVAS_H_ |
| OLD | NEW |