OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 #ifndef CHROME_COMMON_RENDER_MESSAGES_H_ | 5 #ifndef CHROME_COMMON_RENDER_MESSAGES_H_ |
6 #define CHROME_COMMON_RENDER_MESSAGES_H_ | 6 #define CHROME_COMMON_RENDER_MESSAGES_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 #include <map> | 10 #include <map> |
11 | 11 |
12 #include "base/basictypes.h" | 12 #include "base/basictypes.h" |
13 #include "base/gfx/native_widget_types.h" | 13 #include "base/gfx/native_widget_types.h" |
14 #include "base/ref_counted.h" | 14 #include "base/ref_counted.h" |
15 #include "base/shared_memory.h" | 15 #include "base/shared_memory.h" |
16 #include "chrome/browser/renderer_host/resource_handler.h" | 16 #include "chrome/browser/renderer_host/resource_handler.h" |
17 #include "chrome/common/accessibility.h" | 17 #include "chrome/common/accessibility.h" |
18 #include "chrome/common/bitmap_wire_data.h" | |
19 #include "chrome/common/filter_policy.h" | 18 #include "chrome/common/filter_policy.h" |
20 #include "chrome/common/ipc_message_utils.h" | 19 #include "chrome/common/ipc_message_utils.h" |
21 #include "chrome/common/modal_dialog_event.h" | 20 #include "chrome/common/modal_dialog_event.h" |
22 #include "chrome/common/page_transition_types.h" | 21 #include "chrome/common/page_transition_types.h" |
| 22 #include "chrome/common/transport_dib.h" |
23 #include "googleurl/src/gurl.h" | 23 #include "googleurl/src/gurl.h" |
24 #include "media/audio/audio_output.h" | 24 #include "media/audio/audio_output.h" |
25 #include "net/base/upload_data.h" | 25 #include "net/base/upload_data.h" |
26 #include "net/http/http_response_headers.h" | 26 #include "net/http/http_response_headers.h" |
27 #include "net/url_request/url_request_status.h" | 27 #include "net/url_request/url_request_status.h" |
28 #include "webkit/glue/autofill_form.h" | 28 #include "webkit/glue/autofill_form.h" |
29 #include "webkit/glue/cache_manager.h" | 29 #include "webkit/glue/cache_manager.h" |
30 #include "webkit/glue/context_menu.h" | 30 #include "webkit/glue/context_menu.h" |
31 #include "webkit/glue/form_data.h" | 31 #include "webkit/glue/form_data.h" |
32 #include "webkit/glue/password_form.h" | 32 #include "webkit/glue/password_form.h" |
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
140 return (flags & IS_RESTORE_ACK) != 0; | 140 return (flags & IS_RESTORE_ACK) != 0; |
141 } | 141 } |
142 | 142 |
143 static bool is_repaint_ack(int flags) { | 143 static bool is_repaint_ack(int flags) { |
144 return (flags & IS_REPAINT_ACK) != 0; | 144 return (flags & IS_REPAINT_ACK) != 0; |
145 } | 145 } |
146 }; | 146 }; |
147 | 147 |
148 struct ViewHostMsg_PaintRect_Params { | 148 struct ViewHostMsg_PaintRect_Params { |
149 // The bitmap to be painted into the rect given by bitmap_rect. | 149 // The bitmap to be painted into the rect given by bitmap_rect. |
150 BitmapWireData bitmap; | 150 TransportDIB::Id bitmap; |
151 | 151 |
152 // The position and size of the bitmap. | 152 // The position and size of the bitmap. |
153 gfx::Rect bitmap_rect; | 153 gfx::Rect bitmap_rect; |
154 | 154 |
155 // The size of the RenderView when this message was generated. This is | 155 // The size of the RenderView when this message was generated. This is |
156 // included so the host knows how large the view is from the perspective of | 156 // included so the host knows how large the view is from the perspective of |
157 // the renderer process. This is necessary in case a resize operation is in | 157 // the renderer process. This is necessary in case a resize operation is in |
158 // progress. | 158 // progress. |
159 gfx::Size view_size; | 159 gfx::Size view_size; |
160 | 160 |
(...skipping 12 matching lines...) Expand all Loading... |
173 // request by the render view. Both of the above bits may be set in flags, | 173 // request by the render view. Both of the above bits may be set in flags, |
174 // which would indicate that this paint message is an ACK for multiple | 174 // which would indicate that this paint message is an ACK for multiple |
175 // request messages. | 175 // request messages. |
176 int flags; | 176 int flags; |
177 }; | 177 }; |
178 | 178 |
179 // Parameters structure for ViewHostMsg_ScrollRect, which has too many data | 179 // Parameters structure for ViewHostMsg_ScrollRect, which has too many data |
180 // parameters to be reasonably put in a predefined IPC message. | 180 // parameters to be reasonably put in a predefined IPC message. |
181 struct ViewHostMsg_ScrollRect_Params { | 181 struct ViewHostMsg_ScrollRect_Params { |
182 // The bitmap to be painted into the rect exposed by scrolling. | 182 // The bitmap to be painted into the rect exposed by scrolling. |
183 BitmapWireData bitmap; | 183 TransportDIB::Id bitmap; |
184 | 184 |
185 // The position and size of the bitmap. | 185 // The position and size of the bitmap. |
186 gfx::Rect bitmap_rect; | 186 gfx::Rect bitmap_rect; |
187 | 187 |
188 // The scroll offset. Only one of these can be non-zero. | 188 // The scroll offset. Only one of these can be non-zero. |
189 int dx; | 189 int dx; |
190 int dy; | 190 int dy; |
191 | 191 |
192 // The rectangular region to scroll. | 192 // The rectangular region to scroll. |
193 gfx::Rect clip_rect; | 193 gfx::Rect clip_rect; |
(...skipping 1506 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1700 | 1700 |
1701 #endif // defined(OS_POSIX) | 1701 #endif // defined(OS_POSIX) |
1702 | 1702 |
1703 } // namespace IPC | 1703 } // namespace IPC |
1704 | 1704 |
1705 | 1705 |
1706 #define MESSAGES_INTERNAL_FILE "chrome/common/render_messages_internal.h" | 1706 #define MESSAGES_INTERNAL_FILE "chrome/common/render_messages_internal.h" |
1707 #include "chrome/common/ipc_message_macros.h" | 1707 #include "chrome/common/ipc_message_macros.h" |
1708 | 1708 |
1709 #endif // CHROME_COMMON_RENDER_MESSAGES_H_ | 1709 #endif // CHROME_COMMON_RENDER_MESSAGES_H_ |
OLD | NEW |