From 042811ccf79795d7847a672345770b801987c217 Mon Sep 17 00:00:00 2001 From: "klink@chromium.org" Date: Fri, 31 Oct 2008 21:31:34 +0000 Subject: Adds support for keyboard-triggered (through VK_APPS and SHIFT+VK_F10) right-click menu, specifically on the toolbar's back/forward buttons. Review URL: http://codereview.chromium.org/8942 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@4326 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/views/view.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'chrome/views/view.h') diff --git a/chrome/views/view.h b/chrome/views/view.h index ff378b7..0a6ad31 100644 --- a/chrome/views/view.h +++ b/chrome/views/view.h @@ -864,6 +864,16 @@ class View : public AcceleratorTarget { return context_menu_controller_; } + // Provides default implementation for context menu handling. The default + // implementation calls the ShowContextMenu of the current + // ContextMenuController (if it is not NULL). Overridden in subclassed views + // to provide right-click menu display triggerd by the keyboard (i.e. for the + // Chrome toolbar Back and Forward buttons). No source needs to be specified, + // as it is always equal to the current View. + virtual void ShowContextMenu(int x, + int y, + bool is_mouse_gesture); + // Set the background. The background is owned by the view after this call. virtual void SetBackground(Background* b); -- cgit v1.1