summaryrefslogtreecommitdiffstats
path: root/ui/views/context_menu_controller.h
diff options
context:
space:
mode:
authortfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-03-11 22:16:38 +0000
committertfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-03-11 22:16:38 +0000
commitc4c052845d062c1ff7ce74e2b94922463039e632 (patch)
tree2416f3b7f67852e57686656982a407234ce53936 /ui/views/context_menu_controller.h
parent25c3d7b0d4d8dbfcda2f5e4f55f68c626dee27f1 (diff)
downloadchromium_src-c4c052845d062c1ff7ce74e2b94922463039e632.zip
chromium_src-c4c052845d062c1ff7ce74e2b94922463039e632.tar.gz
chromium_src-c4c052845d062c1ff7ce74e2b94922463039e632.tar.bz2
views: Nuke is_mouse_gesture parameter from ContextMenuController::ShowContextMenuForView().
BUG=117092 R=sky@chromium.org Review URL: https://chromiumcodereview.appspot.com/9665008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@126081 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/views/context_menu_controller.h')
-rw-r--r--ui/views/context_menu_controller.h13
1 files changed, 4 insertions, 9 deletions
diff --git a/ui/views/context_menu_controller.h b/ui/views/context_menu_controller.h
index 5bee8b7..e427117 100644
--- a/ui/views/context_menu_controller.h
+++ b/ui/views/context_menu_controller.h
@@ -1,4 +1,4 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -28,15 +28,10 @@ class View;
// implementation for mouse processing.
class VIEWS_EXPORT ContextMenuController {
public:
- // Invoked to show the context menu for the source view. If |is_mouse_gesture|
- // is true, |p| is the location of the mouse. If |is_mouse_gesture| is false,
- // this method was not invoked by a mouse gesture and |p| is the recommended
- // location to show the menu at.
- //
- // |p| is in screen coordinates.
+ // Invoked to show the context menu for |source|.
+ // |point| is in screen coordinates.
virtual void ShowContextMenuForView(View* source,
- const gfx::Point& p,
- bool is_mouse_gesture) = 0;
+ const gfx::Point& point) = 0;
protected:
virtual ~ContextMenuController() {}