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

Unified Diff: ui/views/controls/scrollbar/base_scroll_bar.cc

Issue 10916180: Context menus on view elements should be positioned above the finger when (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: patch Created 8 years, 3 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
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 dd293af6a9ca53e68356af810fcaa1ec95a73486..ef5c68ed54ea89f52bf2adb89c76dc73bf40d878 100644
--- a/ui/views/controls/scrollbar/base_scroll_bar.cc
+++ b/ui/views/controls/scrollbar/base_scroll_bar.cc
@@ -266,7 +266,8 @@ 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) ==
+ MenuItemView::TOPLEFT, MenuRunner::HAS_MNEMONICS |
+ views::MenuRunner::CONTEXT_MENU) ==
MenuRunner::MENU_DELETED)
return;
}

Powered by Google App Engine
This is Rietveld 408576698