summaryrefslogtreecommitdiffstats
path: root/ui/views/context_menu_controller.h
diff options
context:
space:
mode:
authorvarunjain@chromium.org <varunjain@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-06-18 16:54:28 +0000
committervarunjain@chromium.org <varunjain@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-06-18 16:54:28 +0000
commit940fb1c9ca08476b1d52fdb6e92b42e699f2d1e4 (patch)
tree49f2f8fbb112b16feadd07bef76f86bd5423f16b /ui/views/context_menu_controller.h
parentcf43b6c19e56557cae9f0c36d3896b4576830475 (diff)
downloadchromium_src-940fb1c9ca08476b1d52fdb6e92b42e699f2d1e4.zip
chromium_src-940fb1c9ca08476b1d52fdb6e92b42e699f2d1e4.tar.gz
chromium_src-940fb1c9ca08476b1d52fdb6e92b42e699f2d1e4.tar.bz2
Add ContextMenuSourceType to views::ContextMenuController::ShowContextMenuForView.
This will help bring context menu positioning logic to one place and unify the positioning logic for all views. BUG=239110 Review URL: https://chromiumcodereview.appspot.com/16979002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@207019 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/views/context_menu_controller.h')
-rw-r--r--ui/views/context_menu_controller.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/ui/views/context_menu_controller.h b/ui/views/context_menu_controller.h
index 23ebd27..dd137a9 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() {}