diff options
author | varunjain@chromium.org <varunjain@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-06-01 15:39:22 +0000 |
---|---|---|
committer | varunjain@chromium.org <varunjain@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-06-01 15:39:22 +0000 |
commit | dfec1959de9bf1fff9a0b16d96cd64947f543d0f (patch) | |
tree | 34cc78751bbe0939be805abafef338d02d3a645e /content/common/view_messages.h | |
parent | cf4972a0ff960ea8ce5a90c9a5516d22dcf1525a (diff) | |
download | chromium_src-dfec1959de9bf1fff9a0b16d96cd64947f543d0f.zip chromium_src-dfec1959de9bf1fff9a0b16d96cd64947f543d0f.tar.gz chromium_src-dfec1959de9bf1fff9a0b16d96cd64947f543d0f.tar.bz2 |
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
Diffstat (limited to 'content/common/view_messages.h')
-rw-r--r-- | content/common/view_messages.h | 10 |
1 files changed, 7 insertions, 3 deletions
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 */, |