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

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

Issue 506013: 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
135 // Tells the render view to switch the CSS to print media type, renders every 131 // Tells the render view to switch the CSS to print media type, renders every
136 // requested pages and switch back the CSS to display media type. 132 // requested pages and switch back the CSS to display media type.
137 IPC_MESSAGE_ROUTED0(ViewMsg_PrintPages) 133 IPC_MESSAGE_ROUTED0(ViewMsg_PrintPages)
138 134
139 // Tells the render view that printing is done so it can clean up. 135 // Tells the render view that printing is done so it can clean up.
140 IPC_MESSAGE_ROUTED2(ViewMsg_PrintingDone, 136 IPC_MESSAGE_ROUTED2(ViewMsg_PrintingDone,
141 int /* document_cookie */, 137 int /* document_cookie */,
142 bool /* success */) 138 bool /* success */)
143 139
144 // Tells the renderer to dump as much memory as it can, perhaps because we 140 // Tells the renderer to dump as much memory as it can, perhaps because we
145 // have memory pressure or the renderer is (or will be) paged out. This 141 // have memory pressure or the renderer is (or will be) paged out. This
146 // should only result in purging objects we can recalculate, e.g. caches or 142 // should only result in purging objects we can recalculate, e.g. caches or
147 // JS garbage, not in purging irreplaceable objects. 143 // JS garbage, not in purging irreplaceable objects.
148 IPC_MESSAGE_CONTROL0(ViewMsg_PurgeMemory) 144 IPC_MESSAGE_CONTROL0(ViewMsg_PurgeMemory)
149 145
150 // Tells the render view that a ViewHostMsg_ScrollRect message was processed. 146 // Tells the render view that a ViewHostMsg_UpdateRect message was processed.
151 // This signals the render view that it can send another ScrollRect message. 147 // This signals the render view that it can send another UpdateRect message.
152 IPC_MESSAGE_ROUTED0(ViewMsg_ScrollRect_ACK) 148 IPC_MESSAGE_ROUTED0(ViewMsg_UpdateRect_ACK)
153 149
154 // Message payload includes: 150 // Message payload includes:
155 // 1. A blob that should be cast to WebInputEvent 151 // 1. A blob that should be cast to WebInputEvent
156 // 2. An optional boolean value indicating if a RawKeyDown event is associated 152 // 2. An optional boolean value indicating if a RawKeyDown event is associated
157 // to a keyboard shortcut of the browser. 153 // to a keyboard shortcut of the browser.
158 IPC_MESSAGE_ROUTED0(ViewMsg_HandleInputEvent) 154 IPC_MESSAGE_ROUTED0(ViewMsg_HandleInputEvent)
159 155
160 // This message notifies the renderer that the next key event is bound to one 156 // This message notifies the renderer that the next key event is bound to one
161 // or more pre-defined edit commands. If the next key event is not handled 157 // or more pre-defined edit commands. If the next key event is not handled
162 // by webkit, the specified edit commands shall be executed against current 158 // by webkit, the specified edit commands shall be executed against current
(...skipping 823 matching lines...) Expand 10 before | Expand all | Expand 10 after
986 982
987 // Sent when the renderer fails a provisional load with an error. 983 // Sent when the renderer fails a provisional load with an error.
988 IPC_MESSAGE_ROUTED4(ViewHostMsg_DidFailProvisionalLoadWithError, 984 IPC_MESSAGE_ROUTED4(ViewHostMsg_DidFailProvisionalLoadWithError,
989 bool /* true if it is the main frame */, 985 bool /* true if it is the main frame */,
990 int /* error_code */, 986 int /* error_code */,
991 GURL /* url */, 987 GURL /* url */,
992 bool /* true if the failure is the result of 988 bool /* true if the failure is the result of
993 navigating to a POST again and we're going to 989 navigating to a POST again and we're going to
994 show the POST interstitial */ ) 990 show the POST interstitial */ )
995 991
996 // Sent to paint part of the view. In response to this message, the host 992 // Sent to update part of the view. In response to this message, the host
997 // generates a ViewMsg_PaintRect_ACK message. 993 // generates a ViewMsg_UpdateRect_ACK message.
998 IPC_MESSAGE_ROUTED1(ViewHostMsg_PaintRect, 994 IPC_MESSAGE_ROUTED1(ViewHostMsg_UpdateRect,
999 ViewHostMsg_PaintRect_Params) 995 ViewHostMsg_UpdateRect_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)
1005 996
1006 // Acknowledges receipt of a ViewMsg_HandleInputEvent message. 997 // Acknowledges receipt of a ViewMsg_HandleInputEvent message.
1007 // Payload is a WebInputEvent::Type which is the type of the event, followed 998 // Payload is a WebInputEvent::Type which is the type of the event, followed
1008 // by an optional WebInputEvent which is provided only if the event was not 999 // by an optional WebInputEvent which is provided only if the event was not
1009 // processed. 1000 // processed.
1010 IPC_MESSAGE_ROUTED0(ViewHostMsg_HandleInputEvent_ACK) 1001 IPC_MESSAGE_ROUTED0(ViewHostMsg_HandleInputEvent_ACK)
1011 1002
1012 IPC_MESSAGE_ROUTED0(ViewHostMsg_Focus) 1003 IPC_MESSAGE_ROUTED0(ViewHostMsg_Focus)
1013 IPC_MESSAGE_ROUTED0(ViewHostMsg_Blur) 1004 IPC_MESSAGE_ROUTED0(ViewHostMsg_Blur)
1014 IPC_MESSAGE_ROUTED0(ViewHostMsg_FocusedNodeChanged) 1005 IPC_MESSAGE_ROUTED0(ViewHostMsg_FocusedNodeChanged)
(...skipping 988 matching lines...) Expand 10 before | Expand all | Expand 10 after
2003 string16 /* word */, 1994 string16 /* word */,
2004 int /* document tag */, 1995 int /* document tag */,
2005 bool /* correct */) 1996 bool /* correct */)
2006 1997
2007 IPC_SYNC_MESSAGE_CONTROL1_1( 1998 IPC_SYNC_MESSAGE_CONTROL1_1(
2008 ViewHostMsg_SpellChecker_PlatformFillSuggestionList, 1999 ViewHostMsg_SpellChecker_PlatformFillSuggestionList,
2009 string16 /* word */, 2000 string16 /* word */,
2010 std::vector<string16> /* suggestions */) 2001 std::vector<string16> /* suggestions */)
2011 2002
2012 IPC_END_MESSAGES(ViewHost) 2003 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