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

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

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: chrome/browser/ui/libgtkui/native_theme_gtk2.cc
diff --git a/chrome/browser/ui/libgtkui/native_theme_gtk2.cc b/chrome/browser/ui/libgtkui/native_theme_gtk2.cc
index edf6ef9dbb28ac377b59e6d9ec709131ee2f2e4c..f12497dc543f41f361b6c7fe4b82dfbddf014fb8 100644
--- a/chrome/browser/ui/libgtkui/native_theme_gtk2.cc
+++ b/chrome/browser/ui/libgtkui/native_theme_gtk2.cc
@@ -71,13 +71,13 @@ NativeThemeGtk2::NativeThemeGtk2() {}
NativeThemeGtk2::~NativeThemeGtk2() {}
void NativeThemeGtk2::PaintMenuPopupBackground(
- SkCanvas* canvas,
+ cc::PaintCanvas* canvas,
const gfx::Size& size,
const MenuBackgroundExtraParams& menu_background) const {
if (menu_background.corner_radius > 0) {
- SkPaint paint;
- paint.setStyle(SkPaint::kFill_Style);
- paint.setFlags(SkPaint::kAntiAlias_Flag);
+ cc::PaintFlags paint;
+ paint.setStyle(cc::PaintFlags::kFill_Style);
+ paint.setFlags(cc::PaintFlags::kAntiAlias_Flag);
paint.setColor(GetSystemColor(kColorId_MenuBackgroundColor));
gfx::Path path;
@@ -96,12 +96,12 @@ void NativeThemeGtk2::PaintMenuPopupBackground(
}
void NativeThemeGtk2::PaintMenuItemBackground(
- SkCanvas* canvas,
+ cc::PaintCanvas* canvas,
State state,
const gfx::Rect& rect,
const MenuItemExtraParams& menu_item) const {
SkColor color;
- SkPaint paint;
+ cc::PaintFlags paint;
switch (state) {
case NativeTheme::kNormal:
case NativeTheme::kDisabled:

Powered by Google App Engine
This is Rietveld 408576698