Index: ui/views/controls/scrollbar/base_scroll_bar.cc |
diff --git a/ui/views/controls/scrollbar/base_scroll_bar.cc b/ui/views/controls/scrollbar/base_scroll_bar.cc |
index 64b1d13a06edf9f464890403513d0c680079eac5..bf96a98a74a5837714e38bc3faa1ae18bd9f3b53 100644 |
--- a/ui/views/controls/scrollbar/base_scroll_bar.cc |
+++ b/ui/views/controls/scrollbar/base_scroll_bar.cc |
@@ -273,7 +273,9 @@ enum ScrollBarContextMenuCommands { |
ScrollBarContextMenuCommand_ScrollNext |
}; |
-void BaseScrollBar::ShowContextMenuForView(View* source, const gfx::Point& p) { |
+void BaseScrollBar::ShowContextMenuForView(View* source, |
+ const gfx::Point& p, |
+ ui::MenuSourceType source_type) { |
Widget* widget = GetWidget(); |
gfx::Rect widget_bounds = widget->GetWindowBoundsInScreen(); |
gfx::Point temp_pt(p.x() - widget_bounds.x(), p.y() - widget_bounds.y()); |
@@ -294,7 +296,7 @@ void BaseScrollBar::ShowContextMenuForView(View* source, const gfx::Point& p) { |
menu->AppendDelegateMenuItem(ScrollBarContextMenuCommand_ScrollPrev); |
menu->AppendDelegateMenuItem(ScrollBarContextMenuCommand_ScrollNext); |
if (menu_runner_->RunMenuAt(GetWidget(), NULL, gfx::Rect(p, gfx::Size()), |
- MenuItemView::TOPLEFT, MenuRunner::HAS_MNEMONICS | |
+ views::MenuItemView::TOPLEFT, source_type, MenuRunner::HAS_MNEMONICS | |
views::MenuRunner::CONTEXT_MENU) == |
MenuRunner::MENU_DELETED) |
return; |