OLD | NEW |
1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-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 #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> |
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
190 // The position and size of the bitmap. | 190 // The position and size of the bitmap. |
191 gfx::Rect bitmap_rect; | 191 gfx::Rect bitmap_rect; |
192 | 192 |
193 // The size of the RenderView when this message was generated. This is | 193 // The size of the RenderView when this message was generated. This is |
194 // included so the host knows how large the view is from the perspective of | 194 // included so the host knows how large the view is from the perspective of |
195 // the renderer process. This is necessary in case a resize operation is in | 195 // the renderer process. This is necessary in case a resize operation is in |
196 // progress. | 196 // progress. |
197 gfx::Size view_size; | 197 gfx::Size view_size; |
198 | 198 |
199 // New window locations for plugin child windows. | 199 // New window locations for plugin child windows. |
200 std::vector<WebPluginGeometry> plugin_window_moves; | 200 std::vector<webkit_glue::WebPluginGeometry> plugin_window_moves; |
201 | 201 |
202 // The following describes the various bits that may be set in flags: | 202 // The following describes the various bits that may be set in flags: |
203 // | 203 // |
204 // ViewHostMsg_PaintRect_Flags::IS_RESIZE_ACK | 204 // ViewHostMsg_PaintRect_Flags::IS_RESIZE_ACK |
205 // Indicates that this is a response to a ViewMsg_Resize message. | 205 // Indicates that this is a response to a ViewMsg_Resize message. |
206 // | 206 // |
207 // ViewHostMsg_PaintRect_Flags::IS_RESTORE_ACK | 207 // ViewHostMsg_PaintRect_Flags::IS_RESTORE_ACK |
208 // Indicates that this is a response to a ViewMsg_WasRestored message. | 208 // Indicates that this is a response to a ViewMsg_WasRestored message. |
209 // | 209 // |
210 // If flags is zero, then this message corresponds to an unsoliticed paint | 210 // If flags is zero, then this message corresponds to an unsoliticed paint |
(...skipping 16 matching lines...) Expand all Loading... |
227 int dx; | 227 int dx; |
228 int dy; | 228 int dy; |
229 | 229 |
230 // The rectangular region to scroll. | 230 // The rectangular region to scroll. |
231 gfx::Rect clip_rect; | 231 gfx::Rect clip_rect; |
232 | 232 |
233 // The size of the RenderView when this message was generated. | 233 // The size of the RenderView when this message was generated. |
234 gfx::Size view_size; | 234 gfx::Size view_size; |
235 | 235 |
236 // New window locations for plugin child windows. | 236 // New window locations for plugin child windows. |
237 std::vector<WebPluginGeometry> plugin_window_moves; | 237 std::vector<webkit_glue::WebPluginGeometry> plugin_window_moves; |
238 }; | 238 }; |
239 | 239 |
240 // Parameters structure for ViewMsg_UploadFile. | 240 // Parameters structure for ViewMsg_UploadFile. |
241 struct ViewMsg_UploadFile_Params { | 241 struct ViewMsg_UploadFile_Params { |
242 // See TabContents::StartFileUpload for a description of these fields. | 242 // See TabContents::StartFileUpload for a description of these fields. |
243 std::wstring file_path; | 243 std::wstring file_path; |
244 std::wstring form; | 244 std::wstring form; |
245 std::wstring file; | 245 std::wstring file; |
246 std::wstring submit; | 246 std::wstring submit; |
247 std::wstring other_values; | 247 std::wstring other_values; |
(...skipping 805 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1053 LogParam(p.clip_rect, l); | 1053 LogParam(p.clip_rect, l); |
1054 l->append(L", "); | 1054 l->append(L", "); |
1055 LogParam(p.view_size, l); | 1055 LogParam(p.view_size, l); |
1056 l->append(L", "); | 1056 l->append(L", "); |
1057 LogParam(p.plugin_window_moves, l); | 1057 LogParam(p.plugin_window_moves, l); |
1058 l->append(L")"); | 1058 l->append(L")"); |
1059 } | 1059 } |
1060 }; | 1060 }; |
1061 | 1061 |
1062 template <> | 1062 template <> |
1063 struct ParamTraits<WebPluginGeometry> { | 1063 struct ParamTraits<webkit_glue::WebPluginGeometry> { |
1064 typedef WebPluginGeometry param_type; | 1064 typedef webkit_glue::WebPluginGeometry param_type; |
1065 static void Write(Message* m, const param_type& p) { | 1065 static void Write(Message* m, const param_type& p) { |
1066 WriteParam(m, p.window); | 1066 WriteParam(m, p.window); |
1067 WriteParam(m, p.window_rect); | 1067 WriteParam(m, p.window_rect); |
1068 WriteParam(m, p.clip_rect); | 1068 WriteParam(m, p.clip_rect); |
1069 WriteParam(m, p.cutout_rects); | 1069 WriteParam(m, p.cutout_rects); |
1070 WriteParam(m, p.rects_valid); | 1070 WriteParam(m, p.rects_valid); |
1071 WriteParam(m, p.visible); | 1071 WriteParam(m, p.visible); |
1072 } | 1072 } |
1073 static bool Read(const Message* m, void** iter, param_type* p) { | 1073 static bool Read(const Message* m, void** iter, param_type* p) { |
1074 return | 1074 return |
(...skipping 1093 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2168 } | 2168 } |
2169 }; | 2169 }; |
2170 | 2170 |
2171 } // namespace IPC | 2171 } // namespace IPC |
2172 | 2172 |
2173 | 2173 |
2174 #define MESSAGES_INTERNAL_FILE "chrome/common/render_messages_internal.h" | 2174 #define MESSAGES_INTERNAL_FILE "chrome/common/render_messages_internal.h" |
2175 #include "ipc/ipc_message_macros.h" | 2175 #include "ipc/ipc_message_macros.h" |
2176 | 2176 |
2177 #endif // CHROME_COMMON_RENDER_MESSAGES_H_ | 2177 #endif // CHROME_COMMON_RENDER_MESSAGES_H_ |
OLD | NEW |