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/memory/shared_memory.h" | 8 #include "base/memory/shared_memory.h" |
9 #include "base/process/process.h" | 9 #include "base/process/process.h" |
10 #include "base/strings/string16.h" | 10 #include "base/strings/string16.h" |
11 #include "cc/output/begin_frame_args.h" | 11 #include "cc/output/begin_frame_args.h" |
12 #include "cc/output/compositor_frame.h" | 12 #include "cc/output/compositor_frame.h" |
13 #include "cc/output/compositor_frame_ack.h" | 13 #include "cc/output/compositor_frame_ack.h" |
14 #include "content/common/browser_rendering_stats.h" | 14 #include "content/common/browser_rendering_stats.h" |
15 #include "content/common/content_export.h" | 15 #include "content/common/content_export.h" |
16 #include "content/common/content_param_traits.h" | 16 #include "content/common/content_param_traits.h" |
17 #include "content/common/cookie_data.h" | 17 #include "content/common/cookie_data.h" |
| 18 #include "content/common/date_time_suggestion.h" |
18 #include "content/common/navigation_gesture.h" | 19 #include "content/common/navigation_gesture.h" |
19 #include "content/common/pepper_renderer_instance_data.h" | 20 #include "content/common/pepper_renderer_instance_data.h" |
20 #include "content/common/view_message_enums.h" | 21 #include "content/common/view_message_enums.h" |
21 #include "content/common/webplugin_geometry.h" | 22 #include "content/common/webplugin_geometry.h" |
22 #include "content/port/common/input_event_ack_state.h" | 23 #include "content/port/common/input_event_ack_state.h" |
23 #include "content/public/common/common_param_traits.h" | 24 #include "content/public/common/common_param_traits.h" |
24 #include "content/public/common/context_menu_params.h" | 25 #include "content/public/common/context_menu_params.h" |
25 #include "content/public/common/favicon_url.h" | 26 #include "content/public/common/favicon_url.h" |
26 #include "content/public/common/file_chooser_params.h" | 27 #include "content/public/common/file_chooser_params.h" |
27 #include "content/public/common/frame_navigate_params.h" | 28 #include "content/public/common/frame_navigate_params.h" |
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
152 IPC_STRUCT_TRAITS_MEMBER(tool_tip) | 153 IPC_STRUCT_TRAITS_MEMBER(tool_tip) |
153 IPC_STRUCT_TRAITS_MEMBER(type) | 154 IPC_STRUCT_TRAITS_MEMBER(type) |
154 IPC_STRUCT_TRAITS_MEMBER(action) | 155 IPC_STRUCT_TRAITS_MEMBER(action) |
155 IPC_STRUCT_TRAITS_MEMBER(rtl) | 156 IPC_STRUCT_TRAITS_MEMBER(rtl) |
156 IPC_STRUCT_TRAITS_MEMBER(has_directional_override) | 157 IPC_STRUCT_TRAITS_MEMBER(has_directional_override) |
157 IPC_STRUCT_TRAITS_MEMBER(enabled) | 158 IPC_STRUCT_TRAITS_MEMBER(enabled) |
158 IPC_STRUCT_TRAITS_MEMBER(checked) | 159 IPC_STRUCT_TRAITS_MEMBER(checked) |
159 IPC_STRUCT_TRAITS_MEMBER(submenu) | 160 IPC_STRUCT_TRAITS_MEMBER(submenu) |
160 IPC_STRUCT_TRAITS_END() | 161 IPC_STRUCT_TRAITS_END() |
161 | 162 |
| 163 IPC_STRUCT_TRAITS_BEGIN(content::DateTimeSuggestion) |
| 164 IPC_STRUCT_TRAITS_MEMBER(value) |
| 165 IPC_STRUCT_TRAITS_MEMBER(localized_value) |
| 166 IPC_STRUCT_TRAITS_MEMBER(label) |
| 167 IPC_STRUCT_TRAITS_END() |
| 168 |
162 IPC_STRUCT_TRAITS_BEGIN(content::ContextMenuParams) | 169 IPC_STRUCT_TRAITS_BEGIN(content::ContextMenuParams) |
163 IPC_STRUCT_TRAITS_MEMBER(media_type) | 170 IPC_STRUCT_TRAITS_MEMBER(media_type) |
164 IPC_STRUCT_TRAITS_MEMBER(x) | 171 IPC_STRUCT_TRAITS_MEMBER(x) |
165 IPC_STRUCT_TRAITS_MEMBER(y) | 172 IPC_STRUCT_TRAITS_MEMBER(y) |
166 IPC_STRUCT_TRAITS_MEMBER(link_url) | 173 IPC_STRUCT_TRAITS_MEMBER(link_url) |
167 IPC_STRUCT_TRAITS_MEMBER(link_text) | 174 IPC_STRUCT_TRAITS_MEMBER(link_text) |
168 IPC_STRUCT_TRAITS_MEMBER(unfiltered_link_url) | 175 IPC_STRUCT_TRAITS_MEMBER(unfiltered_link_url) |
169 IPC_STRUCT_TRAITS_MEMBER(src_url) | 176 IPC_STRUCT_TRAITS_MEMBER(src_url) |
170 IPC_STRUCT_TRAITS_MEMBER(has_image_contents) | 177 IPC_STRUCT_TRAITS_MEMBER(has_image_contents) |
171 IPC_STRUCT_TRAITS_MEMBER(page_url) | 178 IPC_STRUCT_TRAITS_MEMBER(page_url) |
(...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
386 // The route ID to associate with the worker. If MSG_ROUTING_NONE is passed, | 393 // The route ID to associate with the worker. If MSG_ROUTING_NONE is passed, |
387 // a new unique ID is created and assigned to the worker. | 394 // a new unique ID is created and assigned to the worker. |
388 IPC_STRUCT_MEMBER(int, route_id) | 395 IPC_STRUCT_MEMBER(int, route_id) |
389 | 396 |
390 // The ID of the appcache the main shared worker script resource was loaded | 397 // The ID of the appcache the main shared worker script resource was loaded |
391 // from, only valid for shared workers. | 398 // from, only valid for shared workers. |
392 IPC_STRUCT_MEMBER(int64, script_resource_appcache_id) | 399 IPC_STRUCT_MEMBER(int64, script_resource_appcache_id) |
393 IPC_STRUCT_END() | 400 IPC_STRUCT_END() |
394 | 401 |
395 IPC_STRUCT_BEGIN(ViewHostMsg_DateTimeDialogValue_Params) | 402 IPC_STRUCT_BEGIN(ViewHostMsg_DateTimeDialogValue_Params) |
396 IPC_STRUCT_MEMBER(int, dialog_type) | 403 IPC_STRUCT_MEMBER(ui::TextInputType, dialog_type) |
397 IPC_STRUCT_MEMBER(int, year) | 404 IPC_STRUCT_MEMBER(double, dialog_value) |
398 IPC_STRUCT_MEMBER(int, month) | |
399 IPC_STRUCT_MEMBER(int, day) | |
400 IPC_STRUCT_MEMBER(int, hour) | |
401 IPC_STRUCT_MEMBER(int, minute) | |
402 IPC_STRUCT_MEMBER(int, second) | |
403 IPC_STRUCT_MEMBER(int, milli) | |
404 IPC_STRUCT_MEMBER(int, week) | |
405 IPC_STRUCT_MEMBER(double, minimum) | 405 IPC_STRUCT_MEMBER(double, minimum) |
406 IPC_STRUCT_MEMBER(double, maximum) | 406 IPC_STRUCT_MEMBER(double, maximum) |
407 IPC_STRUCT_MEMBER(double, step) | 407 IPC_STRUCT_MEMBER(double, step) |
| 408 IPC_STRUCT_MEMBER(std::vector<content::DateTimeSuggestion>, suggestions) |
408 IPC_STRUCT_END() | 409 IPC_STRUCT_END() |
409 | 410 |
410 IPC_STRUCT_BEGIN(ViewHostMsg_DidFailProvisionalLoadWithError_Params) | 411 IPC_STRUCT_BEGIN(ViewHostMsg_DidFailProvisionalLoadWithError_Params) |
411 // The frame ID for the failure report. | 412 // The frame ID for the failure report. |
412 IPC_STRUCT_MEMBER(int64, frame_id) | 413 IPC_STRUCT_MEMBER(int64, frame_id) |
413 // The WebFrame's uniqueName(). | 414 // The WebFrame's uniqueName(). |
414 IPC_STRUCT_MEMBER(string16, frame_unique_name) | 415 IPC_STRUCT_MEMBER(string16, frame_unique_name) |
415 // True if this is the top-most frame. | 416 // True if this is the top-most frame. |
416 IPC_STRUCT_MEMBER(bool, is_main_frame) | 417 IPC_STRUCT_MEMBER(bool, is_main_frame) |
417 // Error code as reported in the DidFailProvisionalLoad callback. | 418 // Error code as reported in the DidFailProvisionalLoad callback. |
(...skipping 545 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
963 IPC_MESSAGE_ROUTED1(ViewMsg_StopFinding, | 964 IPC_MESSAGE_ROUTED1(ViewMsg_StopFinding, |
964 content::StopFindAction /* action */) | 965 content::StopFindAction /* action */) |
965 | 966 |
966 // Informs the renderer about various statistics the browser has (e.g. | 967 // Informs the renderer about various statistics the browser has (e.g. |
967 // latency) regarding the frames that have been displayed. | 968 // latency) regarding the frames that have been displayed. |
968 IPC_MESSAGE_ROUTED1(ViewMsg_SetBrowserRenderingStats, | 969 IPC_MESSAGE_ROUTED1(ViewMsg_SetBrowserRenderingStats, |
969 content::BrowserRenderingStats /* stats */) | 970 content::BrowserRenderingStats /* stats */) |
970 | 971 |
971 // Replaces a date time input field. | 972 // Replaces a date time input field. |
972 IPC_MESSAGE_ROUTED1(ViewMsg_ReplaceDateTime, | 973 IPC_MESSAGE_ROUTED1(ViewMsg_ReplaceDateTime, |
973 ViewHostMsg_DateTimeDialogValue_Params /* value */) | 974 double /* dialog_value */) |
974 | 975 |
975 // Copies the image at location x, y to the clipboard (if there indeed is an | 976 // Copies the image at location x, y to the clipboard (if there indeed is an |
976 // image at that location). | 977 // image at that location). |
977 IPC_MESSAGE_ROUTED2(ViewMsg_CopyImageAt, | 978 IPC_MESSAGE_ROUTED2(ViewMsg_CopyImageAt, |
978 int /* x */, | 979 int /* x */, |
979 int /* y */) | 980 int /* y */) |
980 | 981 |
981 // Tells the renderer to perform the given action on the media player | 982 // Tells the renderer to perform the given action on the media player |
982 // located at the given point. | 983 // located at the given point. |
983 IPC_MESSAGE_ROUTED2(ViewMsg_MediaPlayerActionAt, | 984 IPC_MESSAGE_ROUTED2(ViewMsg_MediaPlayerActionAt, |
(...skipping 1370 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2354 // synchronously (see crbug.com/120597). This IPC message sends the character | 2355 // synchronously (see crbug.com/120597). This IPC message sends the character |
2355 // bounds after every composition change to always have correct bound info. | 2356 // bounds after every composition change to always have correct bound info. |
2356 IPC_MESSAGE_ROUTED2(ViewHostMsg_ImeCompositionRangeChanged, | 2357 IPC_MESSAGE_ROUTED2(ViewHostMsg_ImeCompositionRangeChanged, |
2357 gfx::Range /* composition range */, | 2358 gfx::Range /* composition range */, |
2358 std::vector<gfx::Rect> /* character bounds */) | 2359 std::vector<gfx::Rect> /* character bounds */) |
2359 #endif | 2360 #endif |
2360 | 2361 |
2361 // Adding a new message? Stick to the sort order above: first platform | 2362 // Adding a new message? Stick to the sort order above: first platform |
2362 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform | 2363 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform |
2363 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. | 2364 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. |
OLD | NEW |