| Index: content/browser/renderer_host/render_widget_host_impl.cc
|
| ===================================================================
|
| --- content/browser/renderer_host/render_widget_host_impl.cc (revision 141081)
|
| +++ content/browser/renderer_host/render_widget_host_impl.cc (working copy)
|
| @@ -283,6 +283,7 @@
|
| IPC_MESSAGE_HANDLER(ViewHostMsg_LockMouse, OnMsgLockMouse)
|
| IPC_MESSAGE_HANDLER(ViewHostMsg_UnlockMouse, OnMsgUnlockMouse)
|
| #if defined(OS_POSIX) || defined(USE_AURA)
|
| + IPC_MESSAGE_HANDLER(ViewHostMsg_GetScreenInfo, OnMsgGetScreenInfo)
|
| IPC_MESSAGE_HANDLER(ViewHostMsg_GetWindowRect, OnMsgGetWindowRect)
|
| IPC_MESSAGE_HANDLER(ViewHostMsg_GetRootWindowRect, OnMsgGetRootWindowRect)
|
| #endif
|
| @@ -1526,6 +1527,14 @@
|
| }
|
|
|
| #if defined(OS_POSIX) || defined(USE_AURA)
|
| +void RenderWidgetHostImpl::OnMsgGetScreenInfo(gfx::NativeViewId window_id,
|
| + WebKit::WebScreenInfo* results) {
|
| + if (view_)
|
| + view_->GetScreenInfo(results);
|
| + else
|
| + RenderWidgetHostViewPort::GetDefaultScreenInfo(results);
|
| +}
|
| +
|
| void RenderWidgetHostImpl::OnMsgGetWindowRect(gfx::NativeViewId window_id,
|
| gfx::Rect* results) {
|
| if (view_)
|
|
|