OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 // IPC messages for page rendering. | 5 // IPC messages for page rendering. |
6 // Multiply-included message file, hence no include guard. | 6 // Multiply-included message file, hence no include guard. |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
87 // TODO(dcheng): Update WebScreenOrientationType to have a "Last" enum member. | 87 // TODO(dcheng): Update WebScreenOrientationType to have a "Last" enum member. |
88 IPC_ENUM_TRAITS_MIN_MAX_VALUE(blink::WebScreenOrientationType, | 88 IPC_ENUM_TRAITS_MIN_MAX_VALUE(blink::WebScreenOrientationType, |
89 blink::WebScreenOrientationUndefined, | 89 blink::WebScreenOrientationUndefined, |
90 blink::WebScreenOrientationLandscapeSecondary) | 90 blink::WebScreenOrientationLandscapeSecondary) |
91 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebWorkerCreationError, | 91 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebWorkerCreationError, |
92 blink::WebWorkerCreationErrorLast) | 92 blink::WebWorkerCreationErrorLast) |
93 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebTextDirection, | 93 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebTextDirection, |
94 blink::WebTextDirection::WebTextDirectionLast) | 94 blink::WebTextDirection::WebTextDirectionLast) |
95 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebDisplayMode, | 95 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebDisplayMode, |
96 blink::WebDisplayMode::WebDisplayModeLast) | 96 blink::WebDisplayMode::WebDisplayModeLast) |
97 IPC_ENUM_TRAITS_MAX_VALUE(WindowContainerType, WINDOW_CONTAINER_TYPE_MAX_VALUE) | |
98 IPC_ENUM_TRAITS(content::FaviconURL::IconType) | 97 IPC_ENUM_TRAITS(content::FaviconURL::IconType) |
99 IPC_ENUM_TRAITS(content::MenuItem::Type) | 98 IPC_ENUM_TRAITS(content::MenuItem::Type) |
100 IPC_ENUM_TRAITS_MAX_VALUE(content::NavigationGesture, | 99 IPC_ENUM_TRAITS_MAX_VALUE(content::NavigationGesture, |
101 content::NavigationGestureLast) | 100 content::NavigationGestureLast) |
102 IPC_ENUM_TRAITS_MIN_MAX_VALUE(content::PageZoom, | 101 IPC_ENUM_TRAITS_MIN_MAX_VALUE(content::PageZoom, |
103 content::PageZoom::PAGE_ZOOM_OUT, | 102 content::PageZoom::PAGE_ZOOM_OUT, |
104 content::PageZoom::PAGE_ZOOM_IN) | 103 content::PageZoom::PAGE_ZOOM_IN) |
105 IPC_ENUM_TRAITS_MAX_VALUE(gfx::FontRenderParams::Hinting, | 104 IPC_ENUM_TRAITS_MAX_VALUE(gfx::FontRenderParams::Hinting, |
106 gfx::FontRenderParams::HINTING_MAX) | 105 gfx::FontRenderParams::HINTING_MAX) |
107 IPC_ENUM_TRAITS_MAX_VALUE(gfx::FontRenderParams::SubpixelRendering, | 106 IPC_ENUM_TRAITS_MAX_VALUE(gfx::FontRenderParams::SubpixelRendering, |
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
281 IPC_STRUCT_TRAITS_MEMBER(selection_start) | 280 IPC_STRUCT_TRAITS_MEMBER(selection_start) |
282 IPC_STRUCT_TRAITS_MEMBER(selection_end) | 281 IPC_STRUCT_TRAITS_MEMBER(selection_end) |
283 IPC_STRUCT_TRAITS_MEMBER(composition_start) | 282 IPC_STRUCT_TRAITS_MEMBER(composition_start) |
284 IPC_STRUCT_TRAITS_MEMBER(composition_end) | 283 IPC_STRUCT_TRAITS_MEMBER(composition_end) |
285 IPC_STRUCT_TRAITS_MEMBER(can_compose_inline) | 284 IPC_STRUCT_TRAITS_MEMBER(can_compose_inline) |
286 IPC_STRUCT_TRAITS_MEMBER(show_ime_if_needed) | 285 IPC_STRUCT_TRAITS_MEMBER(show_ime_if_needed) |
287 IPC_STRUCT_TRAITS_MEMBER(is_non_ime_change) | 286 IPC_STRUCT_TRAITS_MEMBER(is_non_ime_change) |
288 IPC_STRUCT_TRAITS_MEMBER(batch_edit) | 287 IPC_STRUCT_TRAITS_MEMBER(batch_edit) |
289 IPC_STRUCT_TRAITS_END() | 288 IPC_STRUCT_TRAITS_END() |
290 | 289 |
291 IPC_STRUCT_BEGIN(ViewHostMsg_CreateWindow_Params) | |
292 // Routing ID of the view initiating the open. | |
293 IPC_STRUCT_MEMBER(int, opener_id) | |
294 | |
295 // True if this open request came in the context of a user gesture. | |
296 IPC_STRUCT_MEMBER(bool, user_gesture) | |
297 | |
298 // Type of window requested. | |
299 IPC_STRUCT_MEMBER(WindowContainerType, window_container_type) | |
300 | |
301 // The session storage namespace ID this view should use. | |
302 IPC_STRUCT_MEMBER(int64_t, session_storage_namespace_id) | |
303 | |
304 // The name of the resulting frame that should be created (empty if none | |
305 // has been specified). UTF8 encoded string. | |
306 IPC_STRUCT_MEMBER(std::string, frame_name) | |
307 | |
308 // The routing id of the frame initiating the open. | |
309 IPC_STRUCT_MEMBER(int, opener_render_frame_id) | |
310 | |
311 // The URL of the frame initiating the open. | |
312 IPC_STRUCT_MEMBER(GURL, opener_url) | |
313 | |
314 // The URL of the top frame containing the opener. | |
315 IPC_STRUCT_MEMBER(GURL, opener_top_level_frame_url) | |
316 | |
317 // The security origin of the frame initiating the open. | |
318 IPC_STRUCT_MEMBER(GURL, opener_security_origin) | |
319 | |
320 // Whether the opener will be suppressed in the new window, in which case | |
321 // scripting the new window is not allowed. | |
322 IPC_STRUCT_MEMBER(bool, opener_suppressed) | |
323 | |
324 // Whether the window should be opened in the foreground, background, etc. | |
325 IPC_STRUCT_MEMBER(WindowOpenDisposition, disposition) | |
326 | |
327 // The URL that will be loaded in the new window (empty if none has been | |
328 // sepcified). | |
329 IPC_STRUCT_MEMBER(GURL, target_url) | |
330 | |
331 // The referrer that will be used to load |target_url| (empty if none has | |
332 // been specified). | |
333 IPC_STRUCT_MEMBER(content::Referrer, referrer) | |
334 | |
335 // The window features to use for the new view. | |
336 IPC_STRUCT_MEMBER(blink::WebWindowFeatures, features) | |
337 | |
338 // The additional window features to use for the new view. We pass these | |
339 // separately from |features| above because we cannot serialize WebStrings | |
340 // over IPC. | |
341 IPC_STRUCT_MEMBER(std::vector<base::string16>, additional_features) | |
342 IPC_STRUCT_END() | |
343 | |
344 IPC_STRUCT_BEGIN(ViewHostMsg_CreateWindow_Reply) | |
345 // The ID of the view to be created. If the ID is MSG_ROUTING_NONE, then the | |
346 // view couldn't be created. | |
347 IPC_STRUCT_MEMBER(int32_t, route_id, MSG_ROUTING_NONE) | |
348 | |
349 // The ID of the main frame hosted in the view. | |
350 IPC_STRUCT_MEMBER(int32_t, main_frame_route_id, MSG_ROUTING_NONE) | |
351 | |
352 // The ID of the widget for the main frame. | |
353 IPC_STRUCT_MEMBER(int32_t, main_frame_widget_route_id, MSG_ROUTING_NONE) | |
354 | |
355 // TODO(dcheng): No clue. This is kind of duplicated from ViewMsg_New_Params. | |
356 IPC_STRUCT_MEMBER(int64_t, cloned_session_storage_namespace_id) | |
357 IPC_STRUCT_END() | |
358 | |
359 IPC_STRUCT_BEGIN(ViewHostMsg_CreateWorker_Params) | 290 IPC_STRUCT_BEGIN(ViewHostMsg_CreateWorker_Params) |
360 // URL for the worker script. | 291 // URL for the worker script. |
361 IPC_STRUCT_MEMBER(GURL, url) | 292 IPC_STRUCT_MEMBER(GURL, url) |
362 | 293 |
363 // Name for a SharedWorker, otherwise empty string. | 294 // Name for a SharedWorker, otherwise empty string. |
364 IPC_STRUCT_MEMBER(base::string16, name) | 295 IPC_STRUCT_MEMBER(base::string16, name) |
365 | 296 |
366 // Security policy used in the worker. | 297 // Security policy used in the worker. |
367 IPC_STRUCT_MEMBER(base::string16, content_security_policy) | 298 IPC_STRUCT_MEMBER(base::string16, content_security_policy) |
368 | 299 |
(...skipping 449 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
818 | 749 |
819 // ----------------------------------------------------------------------------- | 750 // ----------------------------------------------------------------------------- |
820 // Messages sent from the renderer to the browser. | 751 // Messages sent from the renderer to the browser. |
821 | 752 |
822 // Sent by renderer to request a ViewMsg_BeginFrame message for upcoming | 753 // Sent by renderer to request a ViewMsg_BeginFrame message for upcoming |
823 // display events. If |enabled| is true, the BeginFrame message will continue | 754 // display events. If |enabled| is true, the BeginFrame message will continue |
824 // to be be delivered until the notification is disabled. | 755 // to be be delivered until the notification is disabled. |
825 IPC_MESSAGE_ROUTED1(ViewHostMsg_SetNeedsBeginFrames, | 756 IPC_MESSAGE_ROUTED1(ViewHostMsg_SetNeedsBeginFrames, |
826 bool /* enabled */) | 757 bool /* enabled */) |
827 | 758 |
828 // Sent by the renderer when it is creating a new window. The browser creates a | |
829 // tab for it. If |reply.route_id| is MSG_ROUTING_NONE, the view couldn't be | |
830 // created. | |
831 IPC_SYNC_MESSAGE_CONTROL1_1(ViewHostMsg_CreateWindow, | |
832 ViewHostMsg_CreateWindow_Params, | |
833 ViewHostMsg_CreateWindow_Reply) | |
834 | |
835 // Similar to ViewHostMsg_CreateWindow, except used for sub-widgets, like | 759 // Similar to ViewHostMsg_CreateWindow, except used for sub-widgets, like |
836 // <select> dropdowns. This message is sent to the WebContentsImpl that | 760 // <select> dropdowns. This message is sent to the WebContentsImpl that |
837 // contains the widget being created. | 761 // contains the widget being created. |
838 IPC_SYNC_MESSAGE_CONTROL2_1(ViewHostMsg_CreateWidget, | 762 IPC_SYNC_MESSAGE_CONTROL2_1(ViewHostMsg_CreateWidget, |
839 int /* opener_id */, | 763 int /* opener_id */, |
840 blink::WebPopupType /* popup type */, | 764 blink::WebPopupType /* popup type */, |
841 int /* route_id */) | 765 int /* route_id */) |
842 | 766 |
843 // Similar to ViewHostMsg_CreateWidget except the widget is a full screen | 767 // Similar to ViewHostMsg_CreateWidget except the widget is a full screen |
844 // window. | 768 // window. |
(...skipping 311 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1156 int /* y */) | 1080 int /* y */) |
1157 | 1081 |
1158 #elif defined(OS_MACOSX) | 1082 #elif defined(OS_MACOSX) |
1159 // Receives content of a web page as plain text. | 1083 // Receives content of a web page as plain text. |
1160 IPC_MESSAGE_ROUTED1(ViewMsg_GetRenderedTextCompleted, std::string) | 1084 IPC_MESSAGE_ROUTED1(ViewMsg_GetRenderedTextCompleted, std::string) |
1161 #endif | 1085 #endif |
1162 | 1086 |
1163 // Adding a new message? Stick to the sort order above: first platform | 1087 // Adding a new message? Stick to the sort order above: first platform |
1164 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform | 1088 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform |
1165 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. | 1089 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. |
OLD | NEW |