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

Unified Diff: content/common/view_messages.h

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
Index: content/common/view_messages.h
diff --git a/content/common/view_messages.h b/content/common/view_messages.h
index 48378ab01246e9c5a239fc6f03da93edb052430d..40dc6be45d90018866fc9ed61d0d9dc49360dfae 100644
--- a/content/common/view_messages.h
+++ b/content/common/view_messages.h
@@ -804,17 +804,22 @@ IPC_MESSAGE_ROUTED0(ViewMsg_TimezoneChange)
// Tells the render view to close.
IPC_MESSAGE_ROUTED0(ViewMsg_Close)
-// Tells the render view to change its size. A ViewHostMsg_PaintRect message
+IPC_STRUCT_BEGIN(ViewMsg_Resize_Params)
+ IPC_STRUCT_MEMBER(WebKit::WebScreenInfo, screen_info)
+ IPC_STRUCT_MEMBER(gfx::Size, new_size)
+ IPC_STRUCT_MEMBER(gfx::Size, physical_backing_size)
+ IPC_STRUCT_MEMBER(float, overdraw_bottom_height)
+ IPC_STRUCT_MEMBER(gfx::Rect, resizer_rect)
+ IPC_STRUCT_MEMBER(bool, is_fullscreen)
+IPC_STRUCT_END()
+
+// Tells the render view to change its size. A ViewHostMsg_UpdateRect message
// is generated in response provided new_size is not empty and not equal to
-// the view's current size. The generated ViewHostMsg_PaintRect message will
+// the view's current size. The generated ViewHostMsg_UpdateRect message will
// have the IS_RESIZE_ACK flag set. It also receives the resizer rect so that
// we don't have to fetch it every time WebKit asks for it.
-IPC_MESSAGE_ROUTED5(ViewMsg_Resize,
- gfx::Size /* new_size */,
- gfx::Size /* physical_backing_size */,
- float /* overdraw_bottom_height */,
- gfx::Rect /* resizer_rect */,
- bool /* is_fullscreen */)
+IPC_MESSAGE_ROUTED1(ViewMsg_Resize,
+ ViewMsg_Resize_Params /* params */)
// Tells the render view that the resize rect has changed.
IPC_MESSAGE_ROUTED1(ViewMsg_ChangeResizeRect,
@@ -826,7 +831,7 @@ IPC_MESSAGE_ROUTED0(ViewMsg_WasHidden)
// Tells the render view that it is no longer hidden (see WasHidden), and the
// render view is expected to respond with a full repaint if needs_repainting
-// is true. In that case, the generated ViewHostMsg_PaintRect message will
+// is true. In that case, the generated ViewHostMsg_UpdateRect message will
// have the IS_RESTORE_ACK flag set. If needs_repainting is false, then this
// message does not trigger a message in response.
IPC_MESSAGE_ROUTED1(ViewMsg_WasShown,
@@ -1125,9 +1130,6 @@ IPC_MESSAGE_ROUTED1(ViewMsg_Repaint,
// started.
IPC_MESSAGE_ROUTED0(ViewMsg_MoveOrResizeStarted)
-IPC_MESSAGE_ROUTED1(ViewMsg_ScreenInfoChanged,
- WebKit::WebScreenInfo /* screen_info */)
-
IPC_MESSAGE_ROUTED2(ViewMsg_UpdateScreenRects,
gfx::Rect /* view_screen_rect */,
gfx::Rect /* window_screen_rect */)
« no previous file with comments | « content/browser/renderer_host/render_widget_host_view_base.cc ('k') | content/public/test/render_view_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698