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

Unified Diff: chrome/browser/ui/views/autofill/autofill_dialog_views.cc

Issue 16979002: Add ContextMenuSourceType to views::ContextMenuController::ShowContextMenuForView. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: patch Created 7 years, 6 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: chrome/browser/ui/views/autofill/autofill_dialog_views.cc
diff --git a/chrome/browser/ui/views/autofill/autofill_dialog_views.cc b/chrome/browser/ui/views/autofill/autofill_dialog_views.cc
index 92d084b263b6047572ad88e7a03d0652902a1a0f..32dff53c14c4840ad145f0b026ff0686ee765b7a 100644
--- a/chrome/browser/ui/views/autofill/autofill_dialog_views.cc
+++ b/chrome/browser/ui/views/autofill/autofill_dialog_views.cc
@@ -547,6 +547,7 @@ void AutofillDialogViews::AccountChooser::OnMouseReleased(
NULL,
GetBoundsInScreen(),
views::MenuItemView::TOPRIGHT,
+ ui::MENU_SOURCE_MOUSE,
0));
}
@@ -1300,6 +1301,7 @@ void AutofillDialogViews::ButtonPressed(views::Button* sender,
NULL,
bounds,
views::MenuItemView::TOPRIGHT,
+ ui::GetMenuSourceTypeForEvent(event),
0));
group->container->SetActive(false);
group->suggested_button->SetState(state);
« no previous file with comments | « chrome/browser/ui/views/action_box_menu.cc ('k') | chrome/browser/ui/views/bookmarks/bookmark_bar_instructions_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698