| 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 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| 11 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
| 12 #include "base/strings/string16.h" | 12 #include "base/strings/string16.h" |
| 13 #include "skia/ext/platform_canvas.h" | 13 #include "skia/ext/platform_canvas.h" |
| 14 #include "skia/ext/refptr.h" | 14 #include "skia/ext/refptr.h" |
| 15 #include "ui/gfx/image/image_skia.h" | 15 #include "ui/gfx/image/image_skia.h" |
| 16 #include "ui/gfx/native_widget_types.h" | 16 #include "ui/gfx/native_widget_types.h" |
| 17 #include "ui/gfx/shadow_value.h" | 17 #include "ui/gfx/shadow_value.h" |
| 18 | 18 |
| 19 namespace gfx { | 19 namespace gfx { |
| 20 | 20 |
| 21 class Rect; | 21 class Rect; |
| 22 class Font; | |
| 23 class FontList; | 22 class FontList; |
| 24 class Point; | 23 class Point; |
| 25 class Size; | 24 class Size; |
| 26 class Transform; | 25 class Transform; |
| 27 | 26 |
| 28 // Canvas is a SkCanvas wrapper that provides a number of methods for | 27 // Canvas is a SkCanvas wrapper that provides a number of methods for |
| 29 // common operations used throughout an application built using ui/gfx. | 28 // common operations used throughout an application built using ui/gfx. |
| 30 // | 29 // |
| 31 // All methods that take integer arguments (as is used throughout views) | 30 // All methods that take integer arguments (as is used throughout views) |
| 32 // end with Int. If you need to use methods provided by SkCanvas, you'll | 31 // end with Int. If you need to use methods provided by SkCanvas, you'll |
| (...skipping 412 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 445 | 444 |
| 446 skia::RefPtr<skia::PlatformCanvas> owned_canvas_; | 445 skia::RefPtr<skia::PlatformCanvas> owned_canvas_; |
| 447 SkCanvas* canvas_; | 446 SkCanvas* canvas_; |
| 448 | 447 |
| 449 DISALLOW_COPY_AND_ASSIGN(Canvas); | 448 DISALLOW_COPY_AND_ASSIGN(Canvas); |
| 450 }; | 449 }; |
| 451 | 450 |
| 452 } // namespace gfx | 451 } // namespace gfx |
| 453 | 452 |
| 454 #endif // UI_GFX_CANVAS_H_ | 453 #endif // UI_GFX_CANVAS_H_ |
| OLD | NEW |