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/tree_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/tree_view.h')
-rw-r--r-- | chrome/views/tree_view.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/chrome/views/tree_view.h b/chrome/views/tree_view.h index a385c60..c2fe4d3 100644 --- a/chrome/views/tree_view.h +++ b/chrome/views/tree_view.h @@ -208,6 +208,8 @@ class TreeView : public NativeControl, TreeModelObserver { bool GetSelectOnRightMouseDown() { return select_on_right_mouse_down_; } protected: + // Overriden to return a location based on the selected node. + virtual gfx::Point GetKeyboardContextMenuLocation(); // Creates and configures the tree_view. virtual HWND CreateNativeControl(HWND parent_container); |