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

Unified Diff: ui/views/controls/button/button_dropdown.cc

Issue 16979002: Add ContextMenuSourceType to views::ContextMenuController::ShowContextMenuForView. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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: ui/views/controls/button/button_dropdown.cc
diff --git a/ui/views/controls/button/button_dropdown.cc b/ui/views/controls/button/button_dropdown.cc
index a243cee1917c4a0aa01e377bdf9d168218f1a012..1e659b3107b257a147f7b557552d739b95e932da 100644
--- a/ui/views/controls/button/button_dropdown.cc
+++ b/ui/views/controls/button/button_dropdown.cc
@@ -131,8 +131,10 @@ void ButtonDropDown::GetAccessibleState(ui::AccessibleViewState* state) {
state->state = ui::AccessibilityTypes::STATE_HASPOPUP;
}
-void ButtonDropDown::ShowContextMenuForView(View* source,
- const gfx::Point& point) {
+void ButtonDropDown::ShowContextMenuForView(
+ View* source,
+ const gfx::Point& point,
+ ui::ContextMenuSourceType source_type) {
if (!enabled())
return;

Powered by Google App Engine
This is Rietveld 408576698