| 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 602 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 829 // ViewHostMsg_UnlockMouse). | 821 // ViewHostMsg_UnlockMouse). |
| 830 IPC_MESSAGE_ROUTED0(ViewHostMsg_UnlockMouse) | 822 IPC_MESSAGE_ROUTED0(ViewHostMsg_UnlockMouse) |
| 831 | 823 |
| 832 // Notifies that multiple touch targets may have been pressed, and to show | 824 // Notifies that multiple touch targets may have been pressed, and to show |
| 833 // the disambiguation popup. | 825 // the disambiguation popup. |
| 834 IPC_MESSAGE_ROUTED3(ViewHostMsg_ShowDisambiguationPopup, | 826 IPC_MESSAGE_ROUTED3(ViewHostMsg_ShowDisambiguationPopup, |
| 835 gfx::Rect, /* Border of touched targets */ | 827 gfx::Rect, /* Border of touched targets */ |
| 836 gfx::Size, /* Size of zoomed image */ | 828 gfx::Size, /* Size of zoomed image */ |
| 837 cc::SharedBitmapId /* id */) | 829 cc::SharedBitmapId /* id */) |
| 838 | 830 |
| 839 // Notification that the urls for the favicon of a site has been determined. | |
| 840 IPC_MESSAGE_ROUTED1(ViewHostMsg_UpdateFaviconURL, | |
| 841 std::vector<content::FaviconURL> /* candidates */) | |
| 842 | |
| 843 // Message sent from renderer to the browser when the element that is focused | 831 // Message sent from renderer to the browser when the element that is focused |
| 844 // has been touched. A bool is passed in this message which indicates if the | 832 // has been touched. A bool is passed in this message which indicates if the |
| 845 // node is editable. | 833 // node is editable. |
| 846 IPC_MESSAGE_ROUTED1(ViewHostMsg_FocusedNodeTouched, | 834 IPC_MESSAGE_ROUTED1(ViewHostMsg_FocusedNodeTouched, |
| 847 bool /* editable */) | 835 bool /* editable */) |
| 848 | 836 |
| 849 // Message sent from the renderer to the browser when an HTML form has failed | 837 // Message sent from the renderer to the browser when an HTML form has failed |
| 850 // validation constraints. | 838 // validation constraints. |
| 851 IPC_MESSAGE_ROUTED3(ViewHostMsg_ShowValidationMessage, | 839 IPC_MESSAGE_ROUTED3(ViewHostMsg_ShowValidationMessage, |
| 852 gfx::Rect /* anchor rectangle in root view coordinate */, | 840 gfx::Rect /* anchor rectangle in root view coordinate */, |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 884 int /* y */) | 872 int /* y */) |
| 885 | 873 |
| 886 #elif defined(OS_MACOSX) | 874 #elif defined(OS_MACOSX) |
| 887 // Receives content of a web page as plain text. | 875 // Receives content of a web page as plain text. |
| 888 IPC_MESSAGE_ROUTED1(ViewMsg_GetRenderedTextCompleted, std::string) | 876 IPC_MESSAGE_ROUTED1(ViewMsg_GetRenderedTextCompleted, std::string) |
| 889 #endif | 877 #endif |
| 890 | 878 |
| 891 // Adding a new message? Stick to the sort order above: first platform | 879 // Adding a new message? Stick to the sort order above: first platform |
| 892 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform | 880 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform |
| 893 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. | 881 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. |
| OLD | NEW |