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 "content/common/content_export.h" | 10 #include "content/common/content_export.h" |
11 #include "content/common/css_colors.h" | 11 #include "content/common/css_colors.h" |
12 #include "content/common/edit_command.h" | 12 #include "content/common/edit_command.h" |
13 #include "content/common/navigation_gesture.h" | 13 #include "content/common/navigation_gesture.h" |
14 #include "content/common/view_message_enums.h" | 14 #include "content/common/view_message_enums.h" |
15 #include "content/public/common/common_param_traits.h" | 15 #include "content/public/common/common_param_traits.h" |
16 #include "content/public/common/context_menu_params.h" | 16 #include "content/public/common/context_menu_params.h" |
17 #include "content/public/common/file_chooser_params.h" | 17 #include "content/public/common/file_chooser_params.h" |
18 #include "content/public/common/frame_navigate_params.h" | 18 #include "content/public/common/frame_navigate_params.h" |
19 #include "content/public/common/javascript_message_type.h" | 19 #include "content/public/common/javascript_message_type.h" |
20 #include "content/public/common/page_zoom.h" | 20 #include "content/public/common/page_zoom.h" |
21 #include "content/public/common/referrer.h" | 21 #include "content/public/common/referrer.h" |
22 #include "content/public/common/renderer_preferences.h" | 22 #include "content/public/common/renderer_preferences.h" |
23 #include "content/public/common/selected_file_info.h" | |
24 #include "content/public/common/stop_find_action.h" | 23 #include "content/public/common/stop_find_action.h" |
25 #include "content/public/common/webkit_param_traits.h" | 24 #include "content/public/common/webkit_param_traits.h" |
26 #include "content/public/common/window_container_type.h" | 25 #include "content/public/common/window_container_type.h" |
27 #include "ipc/ipc_channel_handle.h" | 26 #include "ipc/ipc_channel_handle.h" |
28 #include "ipc/ipc_message_macros.h" | 27 #include "ipc/ipc_message_macros.h" |
29 #include "ipc/ipc_platform_file.h" | 28 #include "ipc/ipc_platform_file.h" |
30 #include "media/base/channel_layout.h" | 29 #include "media/base/channel_layout.h" |
31 #include "media/base/media_log_event.h" | 30 #include "media/base/media_log_event.h" |
32 #include "third_party/skia/include/core/SkBitmap.h" | 31 #include "third_party/skia/include/core/SkBitmap.h" |
33 #include "third_party/WebKit/Source/WebKit/chromium/public/WebCompositionUnderli
ne.h" | 32 #include "third_party/WebKit/Source/WebKit/chromium/public/WebCompositionUnderli
ne.h" |
34 #include "third_party/WebKit/Source/WebKit/chromium/public/WebCompositor.h" | 33 #include "third_party/WebKit/Source/WebKit/chromium/public/WebCompositor.h" |
35 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFindOptions.h" | 34 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFindOptions.h" |
36 #include "third_party/WebKit/Source/WebKit/chromium/public/WebInputEvent.h" | 35 #include "third_party/WebKit/Source/WebKit/chromium/public/WebInputEvent.h" |
37 #include "third_party/WebKit/Source/WebKit/chromium/public/WebMediaPlayerAction.
h" | 36 #include "third_party/WebKit/Source/WebKit/chromium/public/WebMediaPlayerAction.
h" |
38 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPluginAction.h" | 37 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPluginAction.h" |
39 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPopupType.h" | 38 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPopupType.h" |
40 #include "third_party/WebKit/Source/WebKit/chromium/public/WebScreenInfo.h" | 39 #include "third_party/WebKit/Source/WebKit/chromium/public/WebScreenInfo.h" |
| 40 #include "ui/base/dialogs/selected_file_info.h" |
41 #include "ui/base/ime/text_input_type.h" | 41 #include "ui/base/ime/text_input_type.h" |
42 #include "ui/base/range/range.h" | 42 #include "ui/base/range/range.h" |
43 #include "ui/gfx/point.h" | 43 #include "ui/gfx/point.h" |
44 #include "ui/gfx/rect.h" | 44 #include "ui/gfx/rect.h" |
45 #include "webkit/glue/webcookie.h" | 45 #include "webkit/glue/webcookie.h" |
46 #include "webkit/glue/webmenuitem.h" | 46 #include "webkit/glue/webmenuitem.h" |
47 #include "webkit/glue/webpreferences.h" | 47 #include "webkit/glue/webpreferences.h" |
48 #include "webkit/plugins/npapi/webplugin.h" | 48 #include "webkit/plugins/npapi/webplugin.h" |
49 | 49 |
50 #if defined(OS_MACOSX) | 50 #if defined(OS_MACOSX) |
(...skipping 295 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
346 IPC_STRUCT_TRAITS_MEMBER(visible) | 346 IPC_STRUCT_TRAITS_MEMBER(visible) |
347 IPC_STRUCT_TRAITS_END() | 347 IPC_STRUCT_TRAITS_END() |
348 | 348 |
349 IPC_STRUCT_TRAITS_BEGIN(media::MediaLogEvent) | 349 IPC_STRUCT_TRAITS_BEGIN(media::MediaLogEvent) |
350 IPC_STRUCT_TRAITS_MEMBER(id) | 350 IPC_STRUCT_TRAITS_MEMBER(id) |
351 IPC_STRUCT_TRAITS_MEMBER(type) | 351 IPC_STRUCT_TRAITS_MEMBER(type) |
352 IPC_STRUCT_TRAITS_MEMBER(params) | 352 IPC_STRUCT_TRAITS_MEMBER(params) |
353 IPC_STRUCT_TRAITS_MEMBER(time) | 353 IPC_STRUCT_TRAITS_MEMBER(time) |
354 IPC_STRUCT_TRAITS_END() | 354 IPC_STRUCT_TRAITS_END() |
355 | 355 |
356 IPC_STRUCT_TRAITS_BEGIN(content::SelectedFileInfo) | 356 IPC_STRUCT_TRAITS_BEGIN(ui::SelectedFileInfo) |
357 IPC_STRUCT_TRAITS_MEMBER(path) | 357 IPC_STRUCT_TRAITS_MEMBER(path) |
358 IPC_STRUCT_TRAITS_MEMBER(display_name) | 358 IPC_STRUCT_TRAITS_MEMBER(display_name) |
359 IPC_STRUCT_TRAITS_END() | 359 IPC_STRUCT_TRAITS_END() |
360 | 360 |
361 IPC_STRUCT_BEGIN(ViewHostMsg_CreateWindow_Params) | 361 IPC_STRUCT_BEGIN(ViewHostMsg_CreateWindow_Params) |
362 // Routing ID of the view initiating the open. | 362 // Routing ID of the view initiating the open. |
363 IPC_STRUCT_MEMBER(int, opener_id) | 363 IPC_STRUCT_MEMBER(int, opener_id) |
364 | 364 |
365 // True if this open request came in the context of a user gesture. | 365 // True if this open request came in the context of a user gesture. |
366 IPC_STRUCT_MEMBER(bool, user_gesture) | 366 IPC_STRUCT_MEMBER(bool, user_gesture) |
(...skipping 725 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1092 IPC_MESSAGE_ROUTED1(ViewMsg_SetAltErrorPageURL, | 1092 IPC_MESSAGE_ROUTED1(ViewMsg_SetAltErrorPageURL, |
1093 GURL) | 1093 GURL) |
1094 | 1094 |
1095 // Notifies the color chooser client that the user selected a color. | 1095 // Notifies the color chooser client that the user selected a color. |
1096 IPC_MESSAGE_ROUTED2(ViewMsg_DidChooseColorResponse, unsigned, SkColor) | 1096 IPC_MESSAGE_ROUTED2(ViewMsg_DidChooseColorResponse, unsigned, SkColor) |
1097 | 1097 |
1098 // Notifies the color chooser client that the color chooser has ended. | 1098 // Notifies the color chooser client that the color chooser has ended. |
1099 IPC_MESSAGE_ROUTED1(ViewMsg_DidEndColorChooser, unsigned) | 1099 IPC_MESSAGE_ROUTED1(ViewMsg_DidEndColorChooser, unsigned) |
1100 | 1100 |
1101 IPC_MESSAGE_ROUTED1(ViewMsg_RunFileChooserResponse, | 1101 IPC_MESSAGE_ROUTED1(ViewMsg_RunFileChooserResponse, |
1102 std::vector<content::SelectedFileInfo>) | 1102 std::vector<ui::SelectedFileInfo>) |
1103 | 1103 |
1104 // Provides the results of directory enumeration. | 1104 // Provides the results of directory enumeration. |
1105 IPC_MESSAGE_ROUTED2(ViewMsg_EnumerateDirectoryResponse, | 1105 IPC_MESSAGE_ROUTED2(ViewMsg_EnumerateDirectoryResponse, |
1106 int /* request_id */, | 1106 int /* request_id */, |
1107 std::vector<FilePath> /* files_in_directory */) | 1107 std::vector<FilePath> /* files_in_directory */) |
1108 | 1108 |
1109 // When a renderer sends a ViewHostMsg_Focus to the browser process, | 1109 // When a renderer sends a ViewHostMsg_Focus to the browser process, |
1110 // the browser has the option of sending a ViewMsg_CantFocus back to | 1110 // the browser has the option of sending a ViewMsg_CantFocus back to |
1111 // the renderer. | 1111 // the renderer. |
1112 IPC_MESSAGE_ROUTED0(ViewMsg_CantFocus) | 1112 IPC_MESSAGE_ROUTED0(ViewMsg_CantFocus) |
(...skipping 1003 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2116 // (according to the value of is_hung). The browser can give the user the | 2116 // (according to the value of is_hung). The browser can give the user the |
2117 // option of killing the plugin. | 2117 // option of killing the plugin. |
2118 IPC_MESSAGE_ROUTED3(ViewHostMsg_PepperPluginHung, | 2118 IPC_MESSAGE_ROUTED3(ViewHostMsg_PepperPluginHung, |
2119 int /* plugin_child_id */, | 2119 int /* plugin_child_id */, |
2120 FilePath /* path */, | 2120 FilePath /* path */, |
2121 bool /* is_hung */) | 2121 bool /* is_hung */) |
2122 | 2122 |
2123 // Screen was rotated. Dispatched to the onorientationchange javascript API. | 2123 // Screen was rotated. Dispatched to the onorientationchange javascript API. |
2124 IPC_MESSAGE_ROUTED1(ViewMsg_OrientationChangeEvent, | 2124 IPC_MESSAGE_ROUTED1(ViewMsg_OrientationChangeEvent, |
2125 int /* orientation */) | 2125 int /* orientation */) |
OLD | NEW |