diff --git a/atom/browser/ui/views/submenu_button.cc b/atom/browser/ui/views/submenu_button.cc index aabed323d2b7..3c3cff3c6541 100644 --- a/atom/browser/ui/views/submenu_button.cc +++ b/atom/browser/ui/views/submenu_button.cc @@ -77,8 +77,8 @@ void SubmenuButton::SetUnderlineColor(SkColor color) { underline_color_ = color; } -void SubmenuButton::OnPaint(gfx::Canvas* canvas) { - views::MenuButton::OnPaint(canvas); +void SubmenuButton::PaintButtonContents(gfx::Canvas* canvas) { + views::MenuButton::PaintButtonContents(canvas); if (show_underline_ && (underline_start_ != underline_end_)) { int padding = (width() - text_width_) / 2; diff --git a/atom/browser/ui/views/submenu_button.h b/atom/browser/ui/views/submenu_button.h index 901234fdf54c..5c05481cbbfb 100644 --- a/atom/browser/ui/views/submenu_button.h +++ b/atom/browser/ui/views/submenu_button.h @@ -27,7 +27,7 @@ class SubmenuButton : public views::MenuButton { base::char16 accelerator() const { return accelerator_; } // views::MenuButton: - void OnPaint(gfx::Canvas* canvas) override; + void PaintButtonContents(gfx::Canvas* canvas) override; // views::InkDropHostView: std::unique_ptr CreateInkDropRipple() const override;