diff options
author | sky@google.com <sky@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-11-10 21:31:59 +0000 |
---|---|---|
committer | sky@google.com <sky@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-11-10 21:31:59 +0000 |
commit | f704ee742d36f65d92893873f9c23e743cbc0608 (patch) | |
tree | 610817635f24e86646f7810259f5639cafec4cca /chrome/views/view.h | |
parent | f7a391a1808906f50e978355e911e2f7c2c31eb2 (diff) | |
download | chromium_src-f704ee742d36f65d92893873f9c23e743cbc0608.zip chromium_src-f704ee742d36f65d92893873f9c23e743cbc0608.tar.gz chromium_src-f704ee742d36f65d92893873f9c23e743cbc0608.tar.bz2 |
Changes tree/table to pass in an appropriate location when the context
menu is invoked from the keyboard.
BUG=4029
TEST=In the bookmark manager bring up the context menu of the
tree/table via the menu key and make sure the menu appears at a
reasonable location.
Review URL: http://codereview.chromium.org/10256
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@5125 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/views/view.h')
-rw-r--r-- | chrome/views/view.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/chrome/views/view.h b/chrome/views/view.h index d8bf716..b98951f 100644 --- a/chrome/views/view.h +++ b/chrome/views/view.h @@ -989,6 +989,14 @@ class View : public AcceleratorTarget { virtual bool IsProcessingPaint() const; #endif + // Returns the location, in screen coordinates, to show the context menu at + // when the context menu is shown from the keyboard. This implementation + // returns the middle of the visible region of this view. + // + // This method is invoked when the context menu is shown by way of the + // keyboard. + virtual gfx::Point GetKeyboardContextMenuLocation(); + // Called by HitTest to see if this View has a custom hit test mask. If the // return value is true, GetHitTestMask will be called to obtain the mask. // Default value is false, in which case the View will hit-test against its |