| Index: content/browser/renderer_host/render_widget_host_impl.cc
|
| diff --git a/content/browser/renderer_host/render_widget_host_impl.cc b/content/browser/renderer_host/render_widget_host_impl.cc
|
| index 02875f6b0fcb75cf5bc0722a3db884a6562e4c1b..04ee30d22f39b3c6a25d7e9cc49d2118922272ad 100644
|
| --- a/content/browser/renderer_host/render_widget_host_impl.cc
|
| +++ b/content/browser/renderer_host/render_widget_host_impl.cc
|
| @@ -281,6 +281,7 @@ bool RenderWidgetHostImpl::OnMessageReceived(const IPC::Message &msg) {
|
| 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
|
| @@ -1506,6 +1507,14 @@ void RenderWidgetHostImpl::OnMsgUnlockMouse() {
|
| }
|
|
|
| #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_)
|
|
|