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

Unified Diff: views/controls/menu/menu_item_view_win.cc

Issue 6879013: skia::PlatformCanvas is being deprecated. Going forward we will use gfx::Canvas wherever we need ... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 8 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
« no previous file with comments | « views/controls/menu/menu_controller.cc ('k') | views/controls/menu/menu_scroll_view_container.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/controls/menu/menu_item_view_win.cc
===================================================================
--- views/controls/menu/menu_item_view_win.cc (revision 82144)
+++ views/controls/menu/menu_item_view_win.cc (working copy)
@@ -49,7 +49,7 @@
height());
AdjustBoundsForRTLUI(&gutter_bounds);
NativeTheme::ExtraParams extra;
- NativeTheme::instance()->Paint(canvas->AsCanvasSkia(),
+ NativeTheme::instance()->Paint(canvas->AsCanvasSkia()->skia_canvas(),
NativeTheme::kMenuPopupGutter,
NativeTheme::kNormal,
gutter_bounds,
@@ -62,7 +62,7 @@
NativeTheme::ExtraParams extra;
extra.menu_item.is_selected = render_selection;
AdjustBoundsForRTLUI(&item_bounds);
- NativeTheme::instance()->Paint(canvas->AsCanvasSkia(),
+ NativeTheme::instance()->Paint(canvas->AsCanvasSkia()->skia_canvas(),
NativeTheme::kMenuItemBackground, control_state, item_bounds, extra);
}
@@ -127,7 +127,7 @@
// right direction.
gfx::NativeTheme::ExtraParams extra;
extra.menu_arrow.pointing_right = !base::i18n::IsRTL();
- gfx::NativeTheme::instance()->Paint(canvas->AsCanvasSkia(),
+ gfx::NativeTheme::instance()->Paint(canvas->AsCanvasSkia()->skia_canvas(),
gfx::NativeTheme::kMenuPopupArrow, control_state, arrow_bounds, extra);
}
}
@@ -155,13 +155,13 @@
// Draw the background.
gfx::Rect bg_bounds(0, 0, icon_x + icon_width, height());
AdjustBoundsForRTLUI(&bg_bounds);
- NativeTheme::instance()->Paint(canvas->AsCanvasSkia(),
+ NativeTheme::instance()->Paint(canvas->AsCanvasSkia()->skia_canvas(),
NativeTheme::kMenuCheckBackground, state, bg_bounds, extra);
// And the check.
gfx::Rect icon_bounds(icon_x / 2, icon_y, icon_width, icon_height);
AdjustBoundsForRTLUI(&icon_bounds);
- NativeTheme::instance()->Paint(canvas->AsCanvasSkia(),
+ NativeTheme::instance()->Paint(canvas->AsCanvasSkia()->skia_canvas(),
NativeTheme::kMenuCheck, state, bg_bounds, extra);
}
« no previous file with comments | « views/controls/menu/menu_controller.cc ('k') | views/controls/menu/menu_scroll_view_container.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698