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 |
11 #include "base/memory/shared_memory.h" | 11 #include "base/memory/shared_memory.h" |
12 #include "base/process/process.h" | 12 #include "base/process/process.h" |
13 #include "base/strings/string16.h" | 13 #include "base/strings/string16.h" |
14 #include "build/build_config.h" | 14 #include "build/build_config.h" |
15 #include "cc/ipc/cc_param_traits.h" | 15 #include "cc/ipc/cc_param_traits.h" |
16 #include "cc/output/begin_frame_args.h" | 16 #include "cc/output/begin_frame_args.h" |
17 #include "cc/output/compositor_frame.h" | 17 #include "cc/output/compositor_frame.h" |
18 #include "cc/resources/shared_bitmap.h" | 18 #include "cc/resources/shared_bitmap.h" |
19 #include "content/common/content_export.h" | 19 #include "content/common/content_export.h" |
20 #include "content/common/content_param_traits.h" | 20 #include "content/common/content_param_traits.h" |
21 #include "content/common/date_time_suggestion.h" | 21 #include "content/common/date_time_suggestion.h" |
22 #include "content/common/frame_replication_state.h" | 22 #include "content/common/frame_replication_state.h" |
23 #include "content/common/message_port.h" | 23 #include "content/common/message_port.h" |
24 #include "content/common/navigation_gesture.h" | 24 #include "content/common/navigation_gesture.h" |
25 #include "content/common/resize_params.h" | 25 #include "content/common/resize_params.h" |
26 #include "content/common/text_input_state.h" | 26 #include "content/common/text_input_state.h" |
27 #include "content/common/view_message_enums.h" | 27 #include "content/common/view_message_enums.h" |
28 #include "content/public/common/common_param_traits.h" | 28 #include "content/public/common/common_param_traits.h" |
29 #include "content/public/common/favicon_url.h" | |
30 #include "content/public/common/menu_item.h" | 29 #include "content/public/common/menu_item.h" |
31 #include "content/public/common/page_state.h" | 30 #include "content/public/common/page_state.h" |
32 #include "content/public/common/page_zoom.h" | 31 #include "content/public/common/page_zoom.h" |
33 #include "content/public/common/referrer.h" | 32 #include "content/public/common/referrer.h" |
34 #include "content/public/common/renderer_preferences.h" | 33 #include "content/public/common/renderer_preferences.h" |
35 #include "content/public/common/screen_info.h" | 34 #include "content/public/common/screen_info.h" |
36 #include "content/public/common/three_d_api_types.h" | 35 #include "content/public/common/three_d_api_types.h" |
37 #include "ipc/ipc_channel_handle.h" | 36 #include "ipc/ipc_channel_handle.h" |
38 #include "ipc/ipc_message_macros.h" | 37 #include "ipc/ipc_message_macros.h" |
39 #include "media/base/audio_parameters.h" | 38 #include "media/base/audio_parameters.h" |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
87 blink::WebPopupType::kWebPopupTypeLast) | 86 blink::WebPopupType::kWebPopupTypeLast) |
88 IPC_ENUM_TRAITS_MIN_MAX_VALUE(blink::WebScreenOrientationType, | 87 IPC_ENUM_TRAITS_MIN_MAX_VALUE(blink::WebScreenOrientationType, |
89 blink::kWebScreenOrientationUndefined, | 88 blink::kWebScreenOrientationUndefined, |
90 blink::WebScreenOrientationTypeLast) | 89 blink::WebScreenOrientationTypeLast) |
91 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebWorkerCreationError, | 90 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebWorkerCreationError, |
92 blink::kWebWorkerCreationErrorLast) | 91 blink::kWebWorkerCreationErrorLast) |
93 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebTextDirection, | 92 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebTextDirection, |
94 blink::WebTextDirection::kWebTextDirectionLast) | 93 blink::WebTextDirection::kWebTextDirectionLast) |
95 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebDisplayMode, | 94 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebDisplayMode, |
96 blink::WebDisplayMode::kWebDisplayModeLast) | 95 blink::WebDisplayMode::kWebDisplayModeLast) |
97 IPC_ENUM_TRAITS(content::FaviconURL::IconType) | |
98 IPC_ENUM_TRAITS(content::MenuItem::Type) | 96 IPC_ENUM_TRAITS(content::MenuItem::Type) |
99 IPC_ENUM_TRAITS_MAX_VALUE(content::NavigationGesture, | 97 IPC_ENUM_TRAITS_MAX_VALUE(content::NavigationGesture, |
100 content::NavigationGestureLast) | 98 content::NavigationGestureLast) |
101 IPC_ENUM_TRAITS_MIN_MAX_VALUE(content::PageZoom, | 99 IPC_ENUM_TRAITS_MIN_MAX_VALUE(content::PageZoom, |
102 content::PageZoom::PAGE_ZOOM_OUT, | 100 content::PageZoom::PAGE_ZOOM_OUT, |
103 content::PageZoom::PAGE_ZOOM_IN) | 101 content::PageZoom::PAGE_ZOOM_IN) |
104 IPC_ENUM_TRAITS_MAX_VALUE(gfx::FontRenderParams::Hinting, | 102 IPC_ENUM_TRAITS_MAX_VALUE(gfx::FontRenderParams::Hinting, |
105 gfx::FontRenderParams::HINTING_MAX) | 103 gfx::FontRenderParams::HINTING_MAX) |
106 IPC_ENUM_TRAITS_MAX_VALUE(gfx::FontRenderParams::SubpixelRendering, | 104 IPC_ENUM_TRAITS_MAX_VALUE(gfx::FontRenderParams::SubpixelRendering, |
107 gfx::FontRenderParams::SUBPIXEL_RENDERING_MAX) | 105 gfx::FontRenderParams::SUBPIXEL_RENDERING_MAX) |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
201 IPC_STRUCT_TRAITS_MEMBER(checked) | 199 IPC_STRUCT_TRAITS_MEMBER(checked) |
202 IPC_STRUCT_TRAITS_MEMBER(submenu) | 200 IPC_STRUCT_TRAITS_MEMBER(submenu) |
203 IPC_STRUCT_TRAITS_END() | 201 IPC_STRUCT_TRAITS_END() |
204 | 202 |
205 IPC_STRUCT_TRAITS_BEGIN(content::DateTimeSuggestion) | 203 IPC_STRUCT_TRAITS_BEGIN(content::DateTimeSuggestion) |
206 IPC_STRUCT_TRAITS_MEMBER(value) | 204 IPC_STRUCT_TRAITS_MEMBER(value) |
207 IPC_STRUCT_TRAITS_MEMBER(localized_value) | 205 IPC_STRUCT_TRAITS_MEMBER(localized_value) |
208 IPC_STRUCT_TRAITS_MEMBER(label) | 206 IPC_STRUCT_TRAITS_MEMBER(label) |
209 IPC_STRUCT_TRAITS_END() | 207 IPC_STRUCT_TRAITS_END() |
210 | 208 |
211 IPC_STRUCT_TRAITS_BEGIN(content::FaviconURL) | |
212 IPC_STRUCT_TRAITS_MEMBER(icon_url) | |
213 IPC_STRUCT_TRAITS_MEMBER(icon_type) | |
214 IPC_STRUCT_TRAITS_MEMBER(icon_sizes) | |
215 IPC_STRUCT_TRAITS_END() | |
216 | |
217 IPC_STRUCT_TRAITS_BEGIN(content::RendererPreferences) | 209 IPC_STRUCT_TRAITS_BEGIN(content::RendererPreferences) |
218 IPC_STRUCT_TRAITS_MEMBER(can_accept_load_drops) | 210 IPC_STRUCT_TRAITS_MEMBER(can_accept_load_drops) |
219 IPC_STRUCT_TRAITS_MEMBER(should_antialias_text) | 211 IPC_STRUCT_TRAITS_MEMBER(should_antialias_text) |
220 IPC_STRUCT_TRAITS_MEMBER(hinting) | 212 IPC_STRUCT_TRAITS_MEMBER(hinting) |
221 IPC_STRUCT_TRAITS_MEMBER(use_autohinter) | 213 IPC_STRUCT_TRAITS_MEMBER(use_autohinter) |
222 IPC_STRUCT_TRAITS_MEMBER(use_bitmaps) | 214 IPC_STRUCT_TRAITS_MEMBER(use_bitmaps) |
223 IPC_STRUCT_TRAITS_MEMBER(subpixel_rendering) | 215 IPC_STRUCT_TRAITS_MEMBER(subpixel_rendering) |
224 IPC_STRUCT_TRAITS_MEMBER(use_subpixel_positioning) | 216 IPC_STRUCT_TRAITS_MEMBER(use_subpixel_positioning) |
225 IPC_STRUCT_TRAITS_MEMBER(focus_ring_color) | 217 IPC_STRUCT_TRAITS_MEMBER(focus_ring_color) |
226 IPC_STRUCT_TRAITS_MEMBER(thumb_active_color) | 218 IPC_STRUCT_TRAITS_MEMBER(thumb_active_color) |
(...skipping 603 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
830 // ViewHostMsg_UnlockMouse). | 822 // ViewHostMsg_UnlockMouse). |
831 IPC_MESSAGE_ROUTED0(ViewHostMsg_UnlockMouse) | 823 IPC_MESSAGE_ROUTED0(ViewHostMsg_UnlockMouse) |
832 | 824 |
833 // Notifies that multiple touch targets may have been pressed, and to show | 825 // Notifies that multiple touch targets may have been pressed, and to show |
834 // the disambiguation popup. | 826 // the disambiguation popup. |
835 IPC_MESSAGE_ROUTED3(ViewHostMsg_ShowDisambiguationPopup, | 827 IPC_MESSAGE_ROUTED3(ViewHostMsg_ShowDisambiguationPopup, |
836 gfx::Rect, /* Border of touched targets */ | 828 gfx::Rect, /* Border of touched targets */ |
837 gfx::Size, /* Size of zoomed image */ | 829 gfx::Size, /* Size of zoomed image */ |
838 cc::SharedBitmapId /* id */) | 830 cc::SharedBitmapId /* id */) |
839 | 831 |
840 // Notification that the urls for the favicon of a site has been determined. | |
841 IPC_MESSAGE_ROUTED1(ViewHostMsg_UpdateFaviconURL, | |
842 std::vector<content::FaviconURL> /* candidates */) | |
843 | |
844 // Message sent from renderer to the browser when the element that is focused | 832 // Message sent from renderer to the browser when the element that is focused |
845 // has been touched. A bool is passed in this message which indicates if the | 833 // has been touched. A bool is passed in this message which indicates if the |
846 // node is editable. | 834 // node is editable. |
847 IPC_MESSAGE_ROUTED1(ViewHostMsg_FocusedNodeTouched, | 835 IPC_MESSAGE_ROUTED1(ViewHostMsg_FocusedNodeTouched, |
848 bool /* editable */) | 836 bool /* editable */) |
849 | 837 |
850 // Message sent from the renderer to the browser when an HTML form has failed | 838 // Message sent from the renderer to the browser when an HTML form has failed |
851 // validation constraints. | 839 // validation constraints. |
852 IPC_MESSAGE_ROUTED3(ViewHostMsg_ShowValidationMessage, | 840 IPC_MESSAGE_ROUTED3(ViewHostMsg_ShowValidationMessage, |
853 gfx::Rect /* anchor rectangle in root view coordinate */, | 841 gfx::Rect /* anchor rectangle in root view coordinate */, |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
885 int /* y */) | 873 int /* y */) |
886 | 874 |
887 #elif defined(OS_MACOSX) | 875 #elif defined(OS_MACOSX) |
888 // Receives content of a web page as plain text. | 876 // Receives content of a web page as plain text. |
889 IPC_MESSAGE_ROUTED1(ViewMsg_GetRenderedTextCompleted, std::string) | 877 IPC_MESSAGE_ROUTED1(ViewMsg_GetRenderedTextCompleted, std::string) |
890 #endif | 878 #endif |
891 | 879 |
892 // Adding a new message? Stick to the sort order above: first platform | 880 // Adding a new message? Stick to the sort order above: first platform |
893 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform | 881 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform |
894 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. | 882 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. |
OLD | NEW |