summaryrefslogtreecommitdiffstats
path: root/chrome/views/view.h
diff options
context:
space:
mode:
authorklink@chromium.org <klink@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2008-10-31 21:31:34 +0000
committerklink@chromium.org <klink@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2008-10-31 21:31:34 +0000
commit042811ccf79795d7847a672345770b801987c217 (patch)
tree6f59fb637cb512177dffdd530745b3beaca4f628 /chrome/views/view.h
parent6b1731c04c7855f0b03e0b52279f6ad114746158 (diff)
downloadchromium_src-042811ccf79795d7847a672345770b801987c217.zip
chromium_src-042811ccf79795d7847a672345770b801987c217.tar.gz
chromium_src-042811ccf79795d7847a672345770b801987c217.tar.bz2
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
Diffstat (limited to 'chrome/views/view.h')
-rw-r--r--chrome/views/view.h10
1 files changed, 10 insertions, 0 deletions
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);