| OLD | NEW |
| 1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "chrome/browser/renderer_host/resource_message_filter.h" | 5 #include "chrome/browser/renderer_host/resource_message_filter.h" |
| 6 #include "chrome/common/render_messages.h" | 6 #include "chrome/common/render_messages.h" |
| 7 #include "third_party/WebKit/WebKit/chromium/public/WebScreenInfo.h" | |
| 8 #include "third_party/WebKit/WebKit/chromium/public/win/WebScreenInfoFactory.h" | 7 #include "third_party/WebKit/WebKit/chromium/public/win/WebScreenInfoFactory.h" |
| 9 | 8 |
| 10 using WebKit::WebScreenInfo; | 9 using WebKit::WebScreenInfo; |
| 11 using WebKit::WebScreenInfoFactory; | 10 using WebKit::WebScreenInfoFactory; |
| 12 | 11 |
| 13 // We get null window_ids passed into the two functions below; please see | 12 // We get null window_ids passed into the two functions below; please see |
| 14 // http://crbug.com/9060 for more details. | 13 // http://crbug.com/9060 for more details. |
| 15 | 14 |
| 16 // TODO(shess): Provide a mapping from reply_msg->routing_id() to HWND | 15 // TODO(shess): Provide a mapping from reply_msg->routing_id() to HWND |
| 17 // so that we can eliminate the NativeViewId parameter. | 16 // so that we can eliminate the NativeViewId parameter. |
| (...skipping 21 matching lines...) Expand all Loading... |
| 39 Send(reply_msg); | 38 Send(reply_msg); |
| 40 } | 39 } |
| 41 | 40 |
| 42 void ResourceMessageFilter::OnGetScreenInfo(gfx::NativeViewId view, | 41 void ResourceMessageFilter::OnGetScreenInfo(gfx::NativeViewId view, |
| 43 IPC::Message* reply_msg) { | 42 IPC::Message* reply_msg) { |
| 44 WebScreenInfo results = | 43 WebScreenInfo results = |
| 45 WebScreenInfoFactory::screenInfo(gfx::NativeViewFromId(view)); | 44 WebScreenInfoFactory::screenInfo(gfx::NativeViewFromId(view)); |
| 46 ViewHostMsg_GetScreenInfo::WriteReplyParams(reply_msg, results); | 45 ViewHostMsg_GetScreenInfo::WriteReplyParams(reply_msg, results); |
| 47 Send(reply_msg); | 46 Send(reply_msg); |
| 48 } | 47 } |
| OLD | NEW |