Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(44)

Side by Side Diff: chrome/browser/renderer_host/resource_message_filter_win.cc

Issue 3118009: Reapplies r55735, fixing some message code that was checked in that I collided with. (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: Created 10 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | chrome/chrome_common.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « no previous file | chrome/chrome_common.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698