diff options
author | shess@chromium.org <shess@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-08 14:37:26 +0000 |
---|---|---|
committer | shess@chromium.org <shess@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-08 14:37:26 +0000 |
commit | 62464e049919ba2868c1b4bbca685865167bc52a (patch) | |
tree | 3a5b06c6a5a953f9cd314d1b11b35d336bba4e15 /chrome/common/render_messages_internal.h | |
parent | 6c3cb5d0cd05941282d47a40ea902453924821a5 (diff) | |
download | chromium_src-62464e049919ba2868c1b4bbca685865167bc52a.zip chromium_src-62464e049919ba2868c1b4bbca685865167bc52a.tar.gz chromium_src-62464e049919ba2868c1b4bbca685865167bc52a.tar.bz2 |
Wire GetWindowRect, GetRootWindowRect, and GetScreenInfo out to the UI thread.
Convert GetScreenInfo to be sync and routed.
http://crbug.com/13113
R=darin@chromium.org, jam@chromium.org, amanda@chromium.org
TEST=See bug.
Review URL: http://codereview.chromium.org/151130
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@20143 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/render_messages_internal.h')
-rw-r--r-- | chrome/common/render_messages_internal.h | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/chrome/common/render_messages_internal.h b/chrome/common/render_messages_internal.h index 0f50867..b087229 100644 --- a/chrome/common/render_messages_internal.h +++ b/chrome/common/render_messages_internal.h @@ -756,6 +756,8 @@ IPC_BEGIN_MESSAGES(ViewHost) IPC_MESSAGE_ROUTED0(ViewHostMsg_Blur) // Returns the window location of the given window. + // TODO(shess): Provide a mapping from reply_msg->routing_id() to + // HWND so that we can eliminate the NativeViewId parameter. IPC_SYNC_MESSAGE_ROUTED1_1(ViewHostMsg_GetWindowRect, gfx::NativeViewId /* window */, gfx::Rect /* Out: Window location */) @@ -966,11 +968,11 @@ IPC_BEGIN_MESSAGES(ViewHost) #endif // defined(OS_WIN) // Returns WebScreenInfo corresponding to the view. - // TODO(darin): Change this to be a routed message so we don't need to pass - // the view id. - IPC_SYNC_MESSAGE_CONTROL1_1(ViewHostMsg_GetScreenInfo, - gfx::NativeViewId /* native view id */, - WebKit::WebScreenInfo /* results */) + // TODO(shess): Provide a mapping from reply_msg->routing_id() to + // HWND so that we can eliminate the NativeViewId parameter. + IPC_SYNC_MESSAGE_ROUTED1_1(ViewHostMsg_GetScreenInfo, + gfx::NativeViewId /* view */, + WebKit::WebScreenInfo /* results */) // Send the tooltip text for the current mouse position to the browser. IPC_MESSAGE_ROUTED1(ViewHostMsg_SetTooltipText, @@ -1250,6 +1252,8 @@ IPC_BEGIN_MESSAGES(ViewHost) bool /* enabled */) // Returns the window location of the window this widget is embeded. + // TODO(shess): Provide a mapping from reply_msg->routing_id() to + // HWND so that we can eliminate the NativeViewId parameter. IPC_SYNC_MESSAGE_ROUTED1_1(ViewHostMsg_GetRootWindowRect, gfx::NativeViewId /* window */, gfx::Rect /* Out: Window location */) |