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

Unified Diff: content/renderer/render_widget.h

Issue 9302022: WebWidgetClient::screenInfo() no longer does a synchronous IPC. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Created 8 years, 11 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: content/renderer/render_widget.h
diff --git a/content/renderer/render_widget.h b/content/renderer/render_widget.h
index 5c11923035e6f246109e162229cbaf69ed9b6731..ba475895e971f50c2f6d522767a902dbbbe7872b 100644
--- a/content/renderer/render_widget.h
+++ b/content/renderer/render_widget.h
@@ -76,7 +76,8 @@ class CONTENT_EXPORT RenderWidget
// Creates a new RenderWidget. The opener_id is the routing ID of the
// RenderView that this widget lives inside.
static RenderWidget* Create(int32 opener_id,
- WebKit::WebPopupType popup_type);
+ WebKit::WebPopupType popup_type,
+ const WebKit::WebScreenInfo& screen_info);
// Creates a WebWidget based on the popup type.
static WebKit::WebWidget* CreateWebWidget(RenderWidget* render_widget);
@@ -157,7 +158,8 @@ class CONTENT_EXPORT RenderWidget
// For unit tests.
friend class RenderWidgetTest;
- explicit RenderWidget(WebKit::WebPopupType popup_type);
+ explicit RenderWidget(WebKit::WebPopupType popup_type,
+ const WebKit::WebScreenInfo& screen_info);
virtual ~RenderWidget();
// Initializes this view with the given opener. CompleteInit must be called
@@ -489,6 +491,9 @@ class CONTENT_EXPORT RenderWidget
// case NULL is added to the queue.
std::deque<ViewHostMsg_UpdateRect*> updates_pending_swap_;
+ // Properties of the screen hosting this RenderWidget instance.
+ WebKit::WebScreenInfo screen_info_;
+
DISALLOW_COPY_AND_ASSIGN(RenderWidget);
};

Powered by Google App Engine
This is Rietveld 408576698