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

Unified Diff: ui/views/context_menu_controller.h

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
« no previous file with comments | « ui/ui.gyp ('k') | ui/views/controls/button/button_dropdown.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/context_menu_controller.h
diff --git a/ui/views/context_menu_controller.h b/ui/views/context_menu_controller.h
index 23ebd2730d0bd4a07aa9d548377a162f3f8070eb..dd137a993c567f4505f3250b3b3358382247f8c0 100644
--- a/ui/views/context_menu_controller.h
+++ b/ui/views/context_menu_controller.h
@@ -5,6 +5,7 @@
#ifndef UI_VIEWS_CONTEXT_MENU_CONTROLLER_H_
#define UI_VIEWS_CONTEXT_MENU_CONTROLLER_H_
+#include "ui/base/ui_base_types.h"
#include "ui/views/views_export.h"
namespace gfx {
@@ -30,7 +31,8 @@ class VIEWS_EXPORT ContextMenuController {
// Invoked to show the context menu for |source|.
// |point| is in screen coordinates.
virtual void ShowContextMenuForView(View* source,
- const gfx::Point& point) = 0;
+ const gfx::Point& point,
+ ui::MenuSourceType source_type) = 0;
protected:
virtual ~ContextMenuController() {}
« no previous file with comments | « ui/ui.gyp ('k') | ui/views/controls/button/button_dropdown.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698