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

Unified Diff: content/public/test/render_view_test.cc

Issue 16048003: Fix race between DPI and window size (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove semicolon Created 7 years, 7 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 | « content/common/view_messages.h ('k') | content/public/test/render_widget_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/test/render_view_test.cc
diff --git a/content/public/test/render_view_test.cc b/content/public/test/render_view_test.cc
index 6c3dd335dfa8be8f57ccee9ef99a2add7ea99fe0..c59f08909837c6f959417b609fdd600a1c3d04d2 100644
--- a/content/public/test/render_view_test.cc
+++ b/content/public/test/render_view_test.cc
@@ -317,8 +317,14 @@ uint32 RenderViewTest::GetNavigationIPCType() {
void RenderViewTest::Resize(gfx::Size new_size,
gfx::Rect resizer_rect,
bool is_fullscreen) {
- scoped_ptr<IPC::Message> resize_message(new ViewMsg_Resize(
- 0, new_size, new_size, 0.f, resizer_rect, is_fullscreen));
+ ViewMsg_Resize_Params params;
+ params.screen_info = WebKit::WebScreenInfo();
+ params.new_size = new_size;
+ params.physical_backing_size = new_size;
+ params.overdraw_bottom_height = 0.f;
+ params.resizer_rect = resizer_rect;
+ params.is_fullscreen = is_fullscreen;
+ scoped_ptr<IPC::Message> resize_message(new ViewMsg_Resize(0, params));
OnMessageReceived(*resize_message);
}
« no previous file with comments | « content/common/view_messages.h ('k') | content/public/test/render_widget_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698