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

Unified Diff: views/controls/menu/menu_separator_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_scroll_view_container.cc ('k') | views/controls/menu/menu_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/controls/menu/menu_separator_win.cc
===================================================================
--- views/controls/menu/menu_separator_win.cc (revision 82144)
+++ views/controls/menu/menu_separator_win.cc (working copy)
@@ -28,16 +28,18 @@
config.gutter_to_label - config.gutter_width, 0,
config.gutter_width, height());
gfx::NativeTheme::ExtraParams extra;
- theme->Paint(canvas->AsCanvasSkia(), gfx::NativeTheme::kMenuPopupGutter,
- gfx::NativeTheme::kNormal, gutter_bounds, extra);
+ theme->Paint(canvas->AsCanvasSkia()->skia_canvas(),
+ gfx::NativeTheme::kMenuPopupGutter, gfx::NativeTheme::kNormal,
+ gutter_bounds, extra);
start_x = gutter_bounds.x() + config.gutter_width;
}
gfx::Rect separator_bounds(start_x, 0, width(), height());
gfx::NativeTheme::ExtraParams extra;
extra.menu_separator.has_gutter = config.render_gutter;
- theme->Paint(canvas->AsCanvasSkia(), gfx::NativeTheme::kMenuPopupSeparator,
- gfx::NativeTheme::kNormal, separator_bounds, extra);
+ theme->Paint(canvas->AsCanvasSkia()->skia_canvas(),
+ gfx::NativeTheme::kMenuPopupSeparator, gfx::NativeTheme::kNormal,
+ separator_bounds, extra);
}
gfx::Size MenuSeparator::GetPreferredSize() {
« no previous file with comments | « views/controls/menu/menu_scroll_view_container.cc ('k') | views/controls/menu/menu_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698