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

Unified Diff: chrome/browser/ui/libgtkui/native_theme_gtk3.cc

Issue 2640983002: Rename paint data structures (Closed)
Patch Set: three Rs: rebase, readme, review 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: chrome/browser/ui/libgtkui/native_theme_gtk3.cc
diff --git a/chrome/browser/ui/libgtkui/native_theme_gtk3.cc b/chrome/browser/ui/libgtkui/native_theme_gtk3.cc
index 74399f075518c5051a9e7a6a0b420f459de3a8fa..e0f9f5392ec621e3ff398afe5a1377d2490a3d4e 100644
--- a/chrome/browser/ui/libgtkui/native_theme_gtk3.cc
+++ b/chrome/browser/ui/libgtkui/native_theme_gtk3.cc
@@ -39,7 +39,7 @@ SkBitmap GetWidgetBitmap(const gfx::Size& size,
return bitmap;
}
-void PaintWidget(SkCanvas* canvas,
+void PaintWidget(cc::PaintCanvas* canvas,
const gfx::Rect& rect,
GtkStyleContext* context) {
canvas->drawBitmap(GetWidgetBitmap(rect.size(), context), rect.x(), rect.y());
@@ -365,14 +365,14 @@ SkColor NativeThemeGtk3::GetSystemColor(ColorId color_id) const {
}
void NativeThemeGtk3::PaintMenuPopupBackground(
- SkCanvas* canvas,
+ cc::PaintCanvas* canvas,
const gfx::Size& size,
const MenuBackgroundExtraParams& menu_background) const {
PaintWidget(canvas, gfx::Rect(size), GetStyleContextFromCss("GtkMenu#menu"));
}
void NativeThemeGtk3::PaintMenuItemBackground(
- SkCanvas* canvas,
+ cc::PaintCanvas* canvas,
State state,
const gfx::Rect& rect,
const MenuItemExtraParams& menu_item) const {
@@ -382,7 +382,7 @@ void NativeThemeGtk3::PaintMenuItemBackground(
}
void NativeThemeGtk3::PaintFrameTopArea(
- SkCanvas* canvas,
+ cc::PaintCanvas* canvas,
State state,
const gfx::Rect& rect,
const FrameTopAreaExtraParams& frame_top_area) const {

Powered by Google App Engine
This is Rietveld 408576698