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" |
7 #include "third_party/WebKit/WebKit/chromium/public/win/WebScreenInfoFactory.h" | 8 #include "third_party/WebKit/WebKit/chromium/public/win/WebScreenInfoFactory.h" |
8 | 9 |
9 using WebKit::WebScreenInfo; | 10 using WebKit::WebScreenInfo; |
10 using WebKit::WebScreenInfoFactory; | 11 using WebKit::WebScreenInfoFactory; |
11 | 12 |
12 // We get null window_ids passed into the two functions below; please see | 13 // We get null window_ids passed into the two functions below; please see |
13 // http://crbug.com/9060 for more details. | 14 // http://crbug.com/9060 for more details. |
14 | 15 |
15 // TODO(shess): Provide a mapping from reply_msg->routing_id() to HWND | 16 // TODO(shess): Provide a mapping from reply_msg->routing_id() to HWND |
16 // so that we can eliminate the NativeViewId parameter. | 17 // so that we can eliminate the NativeViewId parameter. |
(...skipping 21 matching lines...) Expand all Loading... |
38 Send(reply_msg); | 39 Send(reply_msg); |
39 } | 40 } |
40 | 41 |
41 void ResourceMessageFilter::OnGetScreenInfo(gfx::NativeViewId view, | 42 void ResourceMessageFilter::OnGetScreenInfo(gfx::NativeViewId view, |
42 IPC::Message* reply_msg) { | 43 IPC::Message* reply_msg) { |
43 WebScreenInfo results = | 44 WebScreenInfo results = |
44 WebScreenInfoFactory::screenInfo(gfx::NativeViewFromId(view)); | 45 WebScreenInfoFactory::screenInfo(gfx::NativeViewFromId(view)); |
45 ViewHostMsg_GetScreenInfo::WriteReplyParams(reply_msg, results); | 46 ViewHostMsg_GetScreenInfo::WriteReplyParams(reply_msg, results); |
46 Send(reply_msg); | 47 Send(reply_msg); |
47 } | 48 } |
OLD | NEW |