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

Unified Diff: chrome/browser/renderer_host/resource_message_filter.cc

Issue 58008: Replace webkit/glue/screen_info.h with WebKit/chromium/public/WebScreenInfo.h... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/renderer_host/resource_message_filter.h ('k') | chrome/chrome.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/renderer_host/resource_message_filter.cc
===================================================================
--- chrome/browser/renderer_host/resource_message_filter.cc (revision 12916)
+++ chrome/browser/renderer_host/resource_message_filter.cc (working copy)
@@ -42,7 +42,17 @@
#include "chrome/common/temp_scaffolding_stubs.h"
#endif
+#if defined(OS_WIN)
darin (slow to review) 2009/04/01 20:28:54 This is where not having a search path for WebKit
+#include "third_party/WebKit/WebKit/chromium/public/win/WebScreenInfoFactory.h"
+#elif defined(OS_MACOSX)
+#include "third_party/WebKit/WebKit/chromium/public/mac/WebScreenInfoFactory.h"
+#elif defined(OS_LINUX)
+#include "third_party/WebKit/WebKit/chromium/public/gtk/WebScreenInfoFactory.h"
+#endif
+
using WebKit::WebCache;
+using WebKit::WebScreenInfo;
+using WebKit::WebScreenInfoFactory;
namespace {
@@ -442,9 +452,11 @@
}
#endif
-void ResourceMessageFilter::OnGetScreenInfo(
- gfx::NativeViewId window, webkit_glue::ScreenInfo* results) {
- *results = webkit_glue::GetScreenInfoHelper(gfx::NativeViewFromId(window));
+void ResourceMessageFilter::OnGetScreenInfo(gfx::NativeViewId view,
+ WebScreenInfo* results) {
+ // TODO(darin): Change this into a routed message so that we can eliminate
+ // the NativeViewId parameter.
+ *results = WebScreenInfoFactory::screenInfo(gfx::NativeViewFromId(view));
}
void ResourceMessageFilter::OnGetPlugins(bool refresh,
« no previous file with comments | « chrome/browser/renderer_host/resource_message_filter.h ('k') | chrome/chrome.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698