Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(199)

Unified Diff: ui/native_theme/native_theme.h

Issue 2640983002: Rename paint data structures (Closed)
Patch Set: Clean up comments, fix mac build Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: ui/native_theme/native_theme.h
diff --git a/ui/native_theme/native_theme.h b/ui/native_theme/native_theme.h
index 3595dffc3945d8d7b40f5a71bb639fad02263758..c93f839f28bc9c1ad8b87b681bf0988a8f39731c 100644
--- a/ui/native_theme/native_theme.h
+++ b/ui/native_theme/native_theme.h
@@ -8,12 +8,11 @@
#include "base/macros.h"
#include "base/observer_list.h"
#include "build/build_config.h"
+#include "cc/paint/paint_canvas.h"
#include "third_party/skia/include/core/SkColor.h"
#include "ui/gfx/native_widget_types.h"
#include "ui/native_theme/native_theme_export.h"
-class SkCanvas;
-
namespace gfx {
class Rect;
class Size;
@@ -228,7 +227,7 @@ class NATIVE_THEME_EXPORT NativeTheme {
const ExtraParams& extra) const = 0;
// Paint the part to the canvas.
- virtual void Paint(SkCanvas* canvas,
+ virtual void Paint(cc::PaintCanvas* canvas,
Part part,
State state,
const gfx::Rect& rect,
@@ -236,7 +235,7 @@ class NATIVE_THEME_EXPORT NativeTheme {
// Paint part during state transition, used for overlay scrollbar state
// transition animation.
- virtual void PaintStateTransition(SkCanvas* canvas,
+ virtual void PaintStateTransition(cc::PaintCanvas* canvas,
Part part,
State startState,
State endState,

Powered by Google App Engine
This is Rietveld 408576698