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

Unified Diff: chrome/renderer/render_widget.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
Index: chrome/renderer/render_widget.cc
===================================================================
--- chrome/renderer/render_widget.cc (revision 12916)
+++ chrome/renderer/render_widget.cc (working copy)
@@ -14,6 +14,7 @@
#include "chrome/common/transport_dib.h"
#include "chrome/renderer/render_process.h"
#include "skia/ext/platform_canvas.h"
+#include "third_party/WebKit/WebKit/chromium/public/WebScreenInfo.h"
#if defined(OS_POSIX)
#include "skia/include/SkPixelRef.h"
@@ -24,6 +25,7 @@
#include "webkit/glue/webwidget.h"
using WebKit::WebInputEvent;
+using WebKit::WebScreenInfo;
RenderWidget::RenderWidget(RenderThreadBase* render_thread, bool activatable)
: routing_id_(MSG_ROUTING_NONE),
@@ -765,3 +767,10 @@
if (i == plugin_window_moves_.size())
plugin_window_moves_.push_back(move);
}
+
+WebScreenInfo RenderWidget::GetScreenInfo(WebWidget* webwidget) {
+ WebScreenInfo results;
+ RenderThread::current()->Send(
+ new ViewHostMsg_GetScreenInfo(host_window_, &results));
+ return results;
+}

Powered by Google App Engine
This is Rietveld 408576698