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 "base/process.h" | 8 #include "base/process.h" |
9 #include "base/shared_memory.h" | 9 #include "base/shared_memory.h" |
10 #include "base/strings/string16.h" | 10 #include "base/strings/string16.h" |
11 #include "cc/output/compositor_frame.h" | 11 #include "cc/output/compositor_frame.h" |
12 #include "cc/output/compositor_frame_ack.h" | 12 #include "cc/output/compositor_frame_ack.h" |
13 #include "content/common/browser_rendering_stats.h" | 13 #include "content/common/browser_rendering_stats.h" |
14 #include "content/common/content_export.h" | 14 #include "content/common/content_export.h" |
15 #include "content/common/content_param_traits.h" | 15 #include "content/common/content_param_traits.h" |
16 #include "content/common/navigation_gesture.h" | 16 #include "content/common/navigation_gesture.h" |
17 #include "content/common/pepper_renderer_instance_data.h" | 17 #include "content/common/pepper_renderer_instance_data.h" |
18 #include "content/common/view_message_enums.h" | 18 #include "content/common/view_message_enums.h" |
19 #include "content/port/common/input_event_ack_state.h" | 19 #include "content/port/common/input_event_ack_state.h" |
20 #include "content/public/common/common_param_traits.h" | 20 #include "content/public/common/common_param_traits.h" |
21 #include "content/public/common/context_menu_params.h" | 21 #include "content/public/common/context_menu_params.h" |
22 #include "content/public/common/context_menu_source_type.h" | |
23 #include "content/public/common/favicon_url.h" | 22 #include "content/public/common/favicon_url.h" |
24 #include "content/public/common/file_chooser_params.h" | 23 #include "content/public/common/file_chooser_params.h" |
25 #include "content/public/common/frame_navigate_params.h" | 24 #include "content/public/common/frame_navigate_params.h" |
26 #include "content/public/common/javascript_message_type.h" | 25 #include "content/public/common/javascript_message_type.h" |
27 #include "content/public/common/page_state.h" | 26 #include "content/public/common/page_state.h" |
28 #include "content/public/common/page_zoom.h" | 27 #include "content/public/common/page_zoom.h" |
29 #include "content/public/common/referrer.h" | 28 #include "content/public/common/referrer.h" |
30 #include "content/public/common/renderer_preferences.h" | 29 #include "content/public/common/renderer_preferences.h" |
31 #include "content/public/common/stop_find_action.h" | 30 #include "content/public/common/stop_find_action.h" |
32 #include "content/public/common/three_d_api_types.h" | 31 #include "content/public/common/three_d_api_types.h" |
33 #include "content/public/common/window_container_type.h" | 32 #include "content/public/common/window_container_type.h" |
34 #include "ipc/ipc_channel_handle.h" | 33 #include "ipc/ipc_channel_handle.h" |
35 #include "ipc/ipc_message_macros.h" | 34 #include "ipc/ipc_message_macros.h" |
36 #include "ipc/ipc_platform_file.h" | 35 #include "ipc/ipc_platform_file.h" |
37 #include "media/audio/audio_parameters.h" | 36 #include "media/audio/audio_parameters.h" |
38 #include "media/base/channel_layout.h" | 37 #include "media/base/channel_layout.h" |
39 #include "media/base/media_log_event.h" | 38 #include "media/base/media_log_event.h" |
40 #include "third_party/WebKit/public/web/WebCompositionUnderline.h" | 39 #include "third_party/WebKit/public/web/WebCompositionUnderline.h" |
41 #include "third_party/WebKit/public/web/WebFindOptions.h" | 40 #include "third_party/WebKit/public/web/WebFindOptions.h" |
42 #include "third_party/WebKit/public/web/WebMediaPlayerAction.h" | 41 #include "third_party/WebKit/public/web/WebMediaPlayerAction.h" |
43 #include "third_party/WebKit/public/web/WebPluginAction.h" | 42 #include "third_party/WebKit/public/web/WebPluginAction.h" |
44 #include "third_party/WebKit/public/web/WebPopupType.h" | 43 #include "third_party/WebKit/public/web/WebPopupType.h" |
45 #include "third_party/WebKit/public/web/WebScreenInfo.h" | 44 #include "third_party/WebKit/public/web/WebScreenInfo.h" |
46 #include "third_party/WebKit/public/web/WebTextDirection.h" | 45 #include "third_party/WebKit/public/web/WebTextDirection.h" |
47 #include "third_party/WebKit/public/platform/WebFloatPoint.h" | 46 #include "third_party/WebKit/public/platform/WebFloatPoint.h" |
48 #include "third_party/WebKit/public/platform/WebFloatRect.h" | 47 #include "third_party/WebKit/public/platform/WebFloatRect.h" |
49 #include "third_party/skia/include/core/SkBitmap.h" | 48 #include "third_party/skia/include/core/SkBitmap.h" |
50 #include "ui/base/ime/text_input_type.h" | 49 #include "ui/base/ime/text_input_type.h" |
51 #include "ui/base/range/range.h" | 50 #include "ui/base/range/range.h" |
| 51 #include "ui/base/ui_base_types.h" |
52 #include "ui/gfx/point.h" | 52 #include "ui/gfx/point.h" |
53 #include "ui/gfx/rect.h" | 53 #include "ui/gfx/rect.h" |
54 #include "ui/gfx/rect_f.h" | 54 #include "ui/gfx/rect_f.h" |
55 #include "ui/gfx/vector2d.h" | 55 #include "ui/gfx/vector2d.h" |
56 #include "ui/gfx/vector2d_f.h" | 56 #include "ui/gfx/vector2d_f.h" |
57 #include "ui/shell_dialogs/selected_file_info.h" | 57 #include "ui/shell_dialogs/selected_file_info.h" |
58 #include "webkit/common/webmenuitem.h" | 58 #include "webkit/common/webmenuitem.h" |
59 #include "webkit/glue/webcookie.h" | 59 #include "webkit/glue/webcookie.h" |
60 #include "webkit/plugins/npapi/webplugin.h" | 60 #include "webkit/plugins/npapi/webplugin.h" |
61 | 61 |
62 #if defined(OS_MACOSX) | 62 #if defined(OS_MACOSX) |
63 #include "content/common/mac/font_descriptor.h" | 63 #include "content/common/mac/font_descriptor.h" |
64 #endif | 64 #endif |
65 | 65 |
66 #undef IPC_MESSAGE_EXPORT | 66 #undef IPC_MESSAGE_EXPORT |
67 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT | 67 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT |
68 | 68 |
69 #define IPC_MESSAGE_START ViewMsgStart | 69 #define IPC_MESSAGE_START ViewMsgStart |
70 | 70 |
71 IPC_ENUM_TRAITS(AccessibilityMode) | 71 IPC_ENUM_TRAITS(AccessibilityMode) |
72 IPC_ENUM_TRAITS(ViewMsg_Navigate_Type::Value) | 72 IPC_ENUM_TRAITS(ViewMsg_Navigate_Type::Value) |
73 IPC_ENUM_TRAITS(WebKit::WebContextMenuData::MediaType) | 73 IPC_ENUM_TRAITS(WebKit::WebContextMenuData::MediaType) |
74 IPC_ENUM_TRAITS(WebKit::WebMediaPlayerAction::Type) | 74 IPC_ENUM_TRAITS(WebKit::WebMediaPlayerAction::Type) |
75 IPC_ENUM_TRAITS(WebKit::WebPluginAction::Type) | 75 IPC_ENUM_TRAITS(WebKit::WebPluginAction::Type) |
76 IPC_ENUM_TRAITS(WebKit::WebPopupType) | 76 IPC_ENUM_TRAITS(WebKit::WebPopupType) |
77 IPC_ENUM_TRAITS(WebKit::WebTextDirection) | 77 IPC_ENUM_TRAITS(WebKit::WebTextDirection) |
78 IPC_ENUM_TRAITS(WebMenuItem::Type) | 78 IPC_ENUM_TRAITS(WebMenuItem::Type) |
79 IPC_ENUM_TRAITS(WindowContainerType) | 79 IPC_ENUM_TRAITS(WindowContainerType) |
80 IPC_ENUM_TRAITS(content::ContextMenuSourceType) | |
81 IPC_ENUM_TRAITS(content::FaviconURL::IconType) | 80 IPC_ENUM_TRAITS(content::FaviconURL::IconType) |
82 IPC_ENUM_TRAITS(content::FileChooserParams::Mode) | 81 IPC_ENUM_TRAITS(content::FileChooserParams::Mode) |
83 IPC_ENUM_TRAITS(content::JavaScriptMessageType) | 82 IPC_ENUM_TRAITS(content::JavaScriptMessageType) |
84 IPC_ENUM_TRAITS(content::NavigationGesture) | 83 IPC_ENUM_TRAITS(content::NavigationGesture) |
85 IPC_ENUM_TRAITS(content::PageZoom) | 84 IPC_ENUM_TRAITS(content::PageZoom) |
86 IPC_ENUM_TRAITS(content::RendererPreferencesHintingEnum) | 85 IPC_ENUM_TRAITS(content::RendererPreferencesHintingEnum) |
87 IPC_ENUM_TRAITS(content::RendererPreferencesSubpixelRenderingEnum) | 86 IPC_ENUM_TRAITS(content::RendererPreferencesSubpixelRenderingEnum) |
88 IPC_ENUM_TRAITS(content::StopFindAction) | 87 IPC_ENUM_TRAITS(content::StopFindAction) |
89 IPC_ENUM_TRAITS(content::ThreeDAPIType) | 88 IPC_ENUM_TRAITS(content::ThreeDAPIType) |
90 IPC_ENUM_TRAITS(media::ChannelLayout) | 89 IPC_ENUM_TRAITS(media::ChannelLayout) |
91 IPC_ENUM_TRAITS(media::MediaLogEvent::Type) | 90 IPC_ENUM_TRAITS(media::MediaLogEvent::Type) |
| 91 IPC_ENUM_TRAITS(ui::MenuSourceType) |
92 IPC_ENUM_TRAITS(ui::TextInputType) | 92 IPC_ENUM_TRAITS(ui::TextInputType) |
93 | 93 |
94 #if defined(OS_MACOSX) | 94 #if defined(OS_MACOSX) |
95 IPC_STRUCT_TRAITS_BEGIN(FontDescriptor) | 95 IPC_STRUCT_TRAITS_BEGIN(FontDescriptor) |
96 IPC_STRUCT_TRAITS_MEMBER(font_name) | 96 IPC_STRUCT_TRAITS_MEMBER(font_name) |
97 IPC_STRUCT_TRAITS_MEMBER(font_point_size) | 97 IPC_STRUCT_TRAITS_MEMBER(font_point_size) |
98 IPC_STRUCT_TRAITS_END() | 98 IPC_STRUCT_TRAITS_END() |
99 #endif | 99 #endif |
100 | 100 |
101 IPC_STRUCT_TRAITS_BEGIN(WebKit::WebCompositionUnderline) | 101 IPC_STRUCT_TRAITS_BEGIN(WebKit::WebCompositionUnderline) |
(...skipping 2217 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2319 // Since the browser keeps handles to the allocated transport DIBs, this | 2319 // Since the browser keeps handles to the allocated transport DIBs, this |
2320 // message is sent to tell the browser that it may release them when the | 2320 // message is sent to tell the browser that it may release them when the |
2321 // renderer is finished with them. | 2321 // renderer is finished with them. |
2322 IPC_MESSAGE_CONTROL1(ViewHostMsg_FreeTransportDIB, | 2322 IPC_MESSAGE_CONTROL1(ViewHostMsg_FreeTransportDIB, |
2323 TransportDIB::Id /* DIB id */) | 2323 TransportDIB::Id /* DIB id */) |
2324 #endif | 2324 #endif |
2325 | 2325 |
2326 // Adding a new message? Stick to the sort order above: first platform | 2326 // Adding a new message? Stick to the sort order above: first platform |
2327 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform | 2327 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform |
2328 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. | 2328 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. |
OLD | NEW |