summaryrefslogtreecommitdiffstats
path: root/chrome/common/render_messages_internal.h
diff options
context:
space:
mode:
authorerg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-08-28 18:36:37 +0000
committererg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-08-28 18:36:37 +0000
commitd454745055f7ec8c6b5fc158c61f66452d39aabf (patch)
tree73395f7721bd5a23886a30afcab4ece31d88d866 /chrome/common/render_messages_internal.h
parent917543feedad73ad36a410413f9a5edc8b2e2c27 (diff)
downloadchromium_src-d454745055f7ec8c6b5fc158c61f66452d39aabf.zip
chromium_src-d454745055f7ec8c6b5fc158c61f66452d39aabf.tar.gz
chromium_src-d454745055f7ec8c6b5fc158c61f66452d39aabf.tar.bz2
The GetWindowRect must return the rect of the container HWND; not the actual window rect. The usage of GetWindowRect in the ChromeClientImpl::windowRect() function is erroneous, and my modification of GetWindowRect to return the HWND's root ancestor rect broke drop down combo boxes and other embeded controls.
So instead, add a GetRootWindowRect which gets the root anncestor of the HWND's rect and use it in ChromeClientImpl::windowRect(). BUG=1344367,1186573,1334505 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1496 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/render_messages_internal.h')
-rw-r--r--chrome/common/render_messages_internal.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/chrome/common/render_messages_internal.h b/chrome/common/render_messages_internal.h
index 973c6da..3b6a8f3 100644
--- a/chrome/common/render_messages_internal.h
+++ b/chrome/common/render_messages_internal.h
@@ -1014,5 +1014,9 @@ IPC_BEGIN_MESSAGES(ViewHost, 2)
IPC_MESSAGE_ROUTED1(ViewHostMsg_UnloadListenerChanged,
bool /* has_listener */)
-IPC_END_MESSAGES(ViewHost)
+ // Returns the window location of the window this widget is embeded in.
+ IPC_SYNC_MESSAGE_ROUTED1_1(ViewHostMsg_GetRootWindowRect,
+ HWND /* window */,
+ gfx::Rect /* Out: Window location */)
+IPC_END_MESSAGES(ViewHost)