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

Unified Diff: ui/native_theme/common_theme.cc

Issue 1817613002: MacViews: draw Mac combobox arrows (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove noop image_bounds Created 4 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 | « ui/native_theme/common_theme.h ('k') | ui/native_theme/native_theme.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/native_theme/common_theme.cc
diff --git a/ui/native_theme/common_theme.cc b/ui/native_theme/common_theme.cc
index cf6b6afdaaa165a1aec1a5a316fcdbe09671ad66..ab72df6dd66187a46fa484e110631bf421859193 100644
--- a/ui/native_theme/common_theme.cc
+++ b/ui/native_theme/common_theme.cc
@@ -405,28 +405,6 @@ SkColor GetAuraColor(NativeTheme::ColorId color_id,
return gfx::kPlaceholderColor;
}
-gfx::Size CommonThemeGetPartSize(NativeTheme::Part part,
- NativeTheme::State state,
- const NativeTheme::ExtraParams& extra) {
- gfx::Size size;
- switch (part) {
- case NativeTheme::kComboboxArrow:
- return ui::ResourceBundle::GetSharedInstance().GetImageNamed(
- IDR_MENU_DROPARROW).Size();
-
- default:
- break;
- }
-
- return size;
-}
-
-void CommonThemePaintComboboxArrow(SkCanvas* canvas, const gfx::Rect& rect) {
- gfx::ImageSkia* arrow = ui::ResourceBundle::GetSharedInstance().
- GetImageSkiaNamed(IDR_MENU_DROPARROW);
- CommonThemeCreateCanvas(canvas)->DrawImageInt(*arrow, rect.x(), rect.y());
-}
-
void CommonThemePaintMenuItemBackground(
const NativeTheme* theme,
SkCanvas* canvas,
« no previous file with comments | « ui/native_theme/common_theme.h ('k') | ui/native_theme/native_theme.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698