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

Unified Diff: ui/native_theme/native_theme.h

Issue 2640983002: Rename paint data structures (Closed)
Patch Set: Rebase 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 2242fa8865927374040b2bf25390366a21dd464b..899476196b197c6f5183d2ac2b17ff882f22af3c 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;
@@ -245,7 +244,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,
@@ -253,7 +252,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