| 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..0e684be831e96a86bd3981aee67b75381f9c6215 100644
|
| --- a/ui/views/controls/scrollbar/base_scroll_bar.cc
|
| +++ b/ui/views/controls/scrollbar/base_scroll_bar.cc
|
| @@ -273,7 +273,10 @@ enum ScrollBarContextMenuCommands {
|
| ScrollBarContextMenuCommand_ScrollNext
|
| };
|
|
|
| -void BaseScrollBar::ShowContextMenuForView(View* source, const gfx::Point& p) {
|
| +void BaseScrollBar::ShowContextMenuForView(
|
| + View* source,
|
| + const gfx::Point& p,
|
| + ui::ContextMenuSourceType 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());
|
| @@ -293,8 +296,9 @@ void BaseScrollBar::ShowContextMenuForView(View* source, const gfx::Point& p) {
|
| menu->AppendSeparator();
|
| menu->AppendDelegateMenuItem(ScrollBarContextMenuCommand_ScrollPrev);
|
| menu->AppendDelegateMenuItem(ScrollBarContextMenuCommand_ScrollNext);
|
| - if (menu_runner_->RunMenuAt(GetWidget(), NULL, gfx::Rect(p, gfx::Size()),
|
| - MenuItemView::TOPLEFT, MenuRunner::HAS_MNEMONICS |
|
| + if (menu_runner_->RunContextMenuAt(GetWidget(), NULL,
|
| + gfx::Rect(p, gfx::Size()),
|
| + source_type, MenuRunner::HAS_MNEMONICS |
|
| views::MenuRunner::CONTEXT_MENU) ==
|
| MenuRunner::MENU_DELETED)
|
| return;
|
|
|