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

Side by Side Diff: chrome/common/render_messages_internal.h

Issue 506075: Revert 34951 - Combine ViewHostMsg_{Paint,Scroll}Rect into one IPC.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 11 years 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/common/render_messages.h ('k') | chrome/renderer/render_widget.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // This header is meant to be included in multiple passes, hence no traditional 5 // This header is meant to be included in multiple passes, hence no traditional
6 // header guard. 6 // header guard.
7 // See ipc_message_macros.h for explanation of the macros and passes. 7 // See ipc_message_macros.h for explanation of the macros and passes.
8 8
9 #include <map> 9 #include <map>
10 #include <string> 10 #include <string>
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 // is true. In that case, the generated ViewHostMsg_PaintRect message will 121 // is true. In that case, the generated ViewHostMsg_PaintRect message will
122 // have the IS_RESTORE_ACK flag set. If needs_repainting is false, then this 122 // have the IS_RESTORE_ACK flag set. If needs_repainting is false, then this
123 // message does not trigger a message in response. 123 // message does not trigger a message in response.
124 IPC_MESSAGE_ROUTED1(ViewMsg_WasRestored, 124 IPC_MESSAGE_ROUTED1(ViewMsg_WasRestored,
125 bool /* needs_repainting */) 125 bool /* needs_repainting */)
126 126
127 // Tells the render view to capture a thumbnail image of the page. The 127 // Tells the render view to capture a thumbnail image of the page. The
128 // render view responds with a ViewHostMsg_Thumbnail. 128 // render view responds with a ViewHostMsg_Thumbnail.
129 IPC_MESSAGE_ROUTED0(ViewMsg_CaptureThumbnail) 129 IPC_MESSAGE_ROUTED0(ViewMsg_CaptureThumbnail)
130 130
131 // Tells the render view that a ViewHostMsg_PaintRect message was processed.
132 // This signals the render view that it can send another PaintRect message.
133 IPC_MESSAGE_ROUTED0(ViewMsg_PaintRect_ACK)
134
131 // Tells the render view to switch the CSS to print media type, renders every 135 // Tells the render view to switch the CSS to print media type, renders every
132 // requested pages and switch back the CSS to display media type. 136 // requested pages and switch back the CSS to display media type.
133 IPC_MESSAGE_ROUTED0(ViewMsg_PrintPages) 137 IPC_MESSAGE_ROUTED0(ViewMsg_PrintPages)
134 138
135 // Tells the render view that printing is done so it can clean up. 139 // Tells the render view that printing is done so it can clean up.
136 IPC_MESSAGE_ROUTED2(ViewMsg_PrintingDone, 140 IPC_MESSAGE_ROUTED2(ViewMsg_PrintingDone,
137 int /* document_cookie */, 141 int /* document_cookie */,
138 bool /* success */) 142 bool /* success */)
139 143
140 // Tells the renderer to dump as much memory as it can, perhaps because we 144 // Tells the renderer to dump as much memory as it can, perhaps because we
141 // have memory pressure or the renderer is (or will be) paged out. This 145 // have memory pressure or the renderer is (or will be) paged out. This
142 // should only result in purging objects we can recalculate, e.g. caches or 146 // should only result in purging objects we can recalculate, e.g. caches or
143 // JS garbage, not in purging irreplaceable objects. 147 // JS garbage, not in purging irreplaceable objects.
144 IPC_MESSAGE_CONTROL0(ViewMsg_PurgeMemory) 148 IPC_MESSAGE_CONTROL0(ViewMsg_PurgeMemory)
145 149
146 // Tells the render view that a ViewHostMsg_UpdateRect message was processed. 150 // Tells the render view that a ViewHostMsg_ScrollRect message was processed.
147 // This signals the render view that it can send another UpdateRect message. 151 // This signals the render view that it can send another ScrollRect message.
148 IPC_MESSAGE_ROUTED0(ViewMsg_UpdateRect_ACK) 152 IPC_MESSAGE_ROUTED0(ViewMsg_ScrollRect_ACK)
149 153
150 // Message payload includes: 154 // Message payload includes:
151 // 1. A blob that should be cast to WebInputEvent 155 // 1. A blob that should be cast to WebInputEvent
152 // 2. An optional boolean value indicating if a RawKeyDown event is associated 156 // 2. An optional boolean value indicating if a RawKeyDown event is associated
153 // to a keyboard shortcut of the browser. 157 // to a keyboard shortcut of the browser.
154 IPC_MESSAGE_ROUTED0(ViewMsg_HandleInputEvent) 158 IPC_MESSAGE_ROUTED0(ViewMsg_HandleInputEvent)
155 159
156 // This message notifies the renderer that the next key event is bound to one 160 // This message notifies the renderer that the next key event is bound to one
157 // or more pre-defined edit commands. If the next key event is not handled 161 // or more pre-defined edit commands. If the next key event is not handled
158 // by webkit, the specified edit commands shall be executed against current 162 // by webkit, the specified edit commands shall be executed against current
(...skipping 823 matching lines...) Expand 10 before | Expand all | Expand 10 after
982 986
983 // Sent when the renderer fails a provisional load with an error. 987 // Sent when the renderer fails a provisional load with an error.
984 IPC_MESSAGE_ROUTED4(ViewHostMsg_DidFailProvisionalLoadWithError, 988 IPC_MESSAGE_ROUTED4(ViewHostMsg_DidFailProvisionalLoadWithError,
985 bool /* true if it is the main frame */, 989 bool /* true if it is the main frame */,
986 int /* error_code */, 990 int /* error_code */,
987 GURL /* url */, 991 GURL /* url */,
988 bool /* true if the failure is the result of 992 bool /* true if the failure is the result of
989 navigating to a POST again and we're going to 993 navigating to a POST again and we're going to
990 show the POST interstitial */ ) 994 show the POST interstitial */ )
991 995
992 // Sent to update part of the view. In response to this message, the host 996 // Sent to paint part of the view. In response to this message, the host
993 // generates a ViewMsg_UpdateRect_ACK message. 997 // generates a ViewMsg_PaintRect_ACK message.
994 IPC_MESSAGE_ROUTED1(ViewHostMsg_UpdateRect, 998 IPC_MESSAGE_ROUTED1(ViewHostMsg_PaintRect,
995 ViewHostMsg_UpdateRect_Params) 999 ViewHostMsg_PaintRect_Params)
1000
1001 // Sent to scroll part of the view. In response to this message, the host
1002 // generates a ViewMsg_ScrollRect_ACK message.
1003 IPC_MESSAGE_ROUTED1(ViewHostMsg_ScrollRect,
1004 ViewHostMsg_ScrollRect_Params)
996 1005
997 // Acknowledges receipt of a ViewMsg_HandleInputEvent message. 1006 // Acknowledges receipt of a ViewMsg_HandleInputEvent message.
998 // Payload is a WebInputEvent::Type which is the type of the event, followed 1007 // Payload is a WebInputEvent::Type which is the type of the event, followed
999 // by an optional WebInputEvent which is provided only if the event was not 1008 // by an optional WebInputEvent which is provided only if the event was not
1000 // processed. 1009 // processed.
1001 IPC_MESSAGE_ROUTED0(ViewHostMsg_HandleInputEvent_ACK) 1010 IPC_MESSAGE_ROUTED0(ViewHostMsg_HandleInputEvent_ACK)
1002 1011
1003 IPC_MESSAGE_ROUTED0(ViewHostMsg_Focus) 1012 IPC_MESSAGE_ROUTED0(ViewHostMsg_Focus)
1004 IPC_MESSAGE_ROUTED0(ViewHostMsg_Blur) 1013 IPC_MESSAGE_ROUTED0(ViewHostMsg_Blur)
1005 IPC_MESSAGE_ROUTED0(ViewHostMsg_FocusedNodeChanged) 1014 IPC_MESSAGE_ROUTED0(ViewHostMsg_FocusedNodeChanged)
(...skipping 988 matching lines...) Expand 10 before | Expand all | Expand 10 after
1994 string16 /* word */, 2003 string16 /* word */,
1995 int /* document tag */, 2004 int /* document tag */,
1996 bool /* correct */) 2005 bool /* correct */)
1997 2006
1998 IPC_SYNC_MESSAGE_CONTROL1_1( 2007 IPC_SYNC_MESSAGE_CONTROL1_1(
1999 ViewHostMsg_SpellChecker_PlatformFillSuggestionList, 2008 ViewHostMsg_SpellChecker_PlatformFillSuggestionList,
2000 string16 /* word */, 2009 string16 /* word */,
2001 std::vector<string16> /* suggestions */) 2010 std::vector<string16> /* suggestions */)
2002 2011
2003 IPC_END_MESSAGES(ViewHost) 2012 IPC_END_MESSAGES(ViewHost)
OLDNEW
« no previous file with comments | « chrome/common/render_messages.h ('k') | chrome/renderer/render_widget.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698