From dfec1959de9bf1fff9a0b16d96cd64947f543d0f Mon Sep 17 00:00:00 2001 From: "varunjain@chromium.org" Date: Fri, 1 Jun 2012 15:39:22 +0000 Subject: Revert 124453 - WebWidgetClient::screenInfo() no longer does a synchronous IPC. Instead it grabs the necessary info from a cached WebScreenInfo factory. BUG=111401,126586 TEST=Manually Review URL: http://codereview.chromium.org/9302022 TBR=fsamuel@chromium.org,jam@chromium.org Review URL: https://chromiumcodereview.appspot.com/10441101 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@140030 0039d316-1c4b-4281-b951-d872f2087c98 --- content/common/view_messages.h | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'content/common/view_messages.h') diff --git a/content/common/view_messages.h b/content/common/view_messages.h index 0870e02..346295a 100644 --- a/content/common/view_messages.h +++ b/content/common/view_messages.h @@ -681,9 +681,6 @@ IPC_STRUCT_BEGIN(ViewMsg_New_Params) // to a view and are only updated by the renderer after this initial value. IPC_STRUCT_MEMBER(int32, next_page_id) - // The properties of the screen associated with the view. - IPC_STRUCT_MEMBER(WebKit::WebScreenInfo, screen_info) - // The name of the channel with which a guest talks to its embedder. // If this newly created RenderView has no embedder this string will be // empty. @@ -1763,6 +1760,13 @@ IPC_SYNC_MESSAGE_CONTROL1_3(ViewHostMsg_LoadFont, uint32 /* font id */) #endif +// Returns WebScreenInfo corresponding to the view. +// 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_ROUTED2(ViewHostMsg_SetTooltipText, string16 /* tooltip text string */, -- cgit v1.1