diff options
author | jam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-02-09 07:15:35 +0000 |
---|---|---|
committer | jam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-02-09 07:15:35 +0000 |
commit | a22f7e069020486f1d93510b46b488b40dcb57c7 (patch) | |
tree | 65c408219af0405df7914877a944cc2c58540cc1 /chrome_frame/chrome_frame_plugin.h | |
parent | 91c521b79fcd8a696f5a08013269cb1fd2b7c394 (diff) | |
download | chromium_src-a22f7e069020486f1d93510b46b488b40dcb57c7.zip chromium_src-a22f7e069020486f1d93510b46b488b40dcb57c7.tar.gz chromium_src-a22f7e069020486f1d93510b46b488b40dcb57c7.tar.bz2 |
Remove includes of message headers in headers.
Review URL: http://codereview.chromium.org/6458004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@74257 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome_frame/chrome_frame_plugin.h')
-rw-r--r-- | chrome_frame/chrome_frame_plugin.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/chrome_frame/chrome_frame_plugin.h b/chrome_frame/chrome_frame_plugin.h index 9513087..2d0c43e 100644 --- a/chrome_frame/chrome_frame_plugin.h +++ b/chrome_frame/chrome_frame_plugin.h @@ -20,6 +20,12 @@ #define IDC_ABOUT_CHROME_FRAME 40018 +// Helper so that this file doesn't include the messages header. +void ChromeFramePluginGetParamsCoordinates( + const MiniContextMenuParams& params, + int* x, + int* y); + // A class to implement common functionality for all types of // plugins: NPAPI. ActiveX and ActiveDoc template <typename T> @@ -141,8 +147,9 @@ END_MSG_MAP() SetFocus(GetWindow()); ignore_setfocus_ = false; UINT flags = align_flags | TPM_LEFTBUTTON | TPM_RETURNCMD | TPM_RECURSE; - UINT selected = TrackPopupMenuEx(copy, flags, params.screen_x, - params.screen_y, GetWindow(), NULL); + int x, y; + ChromeFramePluginGetParamsCoordinates(params, &x, &y); + UINT selected = TrackPopupMenuEx(copy, flags, x, y, GetWindow(), NULL); // Menu is over now give focus back to chrome GiveFocusToChrome(false); if (IsValid() && selected != 0 && |