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

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: 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/context_menu_controller.h
diff --git a/ui/views/context_menu_controller.h b/ui/views/context_menu_controller.h
index 23ebd2730d0bd4a07aa9d548377a162f3f8070eb..87eec37e18316b136b0f2b6d07f0069e9909d747 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 {
@@ -29,8 +30,10 @@ class VIEWS_EXPORT ContextMenuController {
public:
// Invoked to show the context menu for |source|.
// |point| is in screen coordinates.
- virtual void ShowContextMenuForView(View* source,
- const gfx::Point& point) = 0;
+ virtual void ShowContextMenuForView(
+ View* source,
+ const gfx::Point& point,
+ ui::ContextMenuSourceType source_type) = 0;
protected:
virtual ~ContextMenuController() {}

Powered by Google App Engine
This is Rietveld 408576698