| 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/navigation_gesture.h" | 18 #include "content/common/navigation_gesture.h" |
| 19 #include "content/common/pepper_renderer_instance_data.h" | 19 #include "content/common/pepper_renderer_instance_data.h" |
| 20 #include "content/common/view_message_enums.h" | 20 #include "content/common/view_message_enums.h" |
| 21 #include "content/common/webplugin_geometry.h" | 21 #include "content/common/webplugin_geometry.h" |
| 22 #include "content/port/common/input_event_ack_state.h" | 22 #include "content/port/common/input_event_ack_state.h" |
| 23 #include "content/public/common/common_param_traits.h" | 23 #include "content/public/common/common_param_traits.h" |
| 24 #include "content/public/common/context_menu_params.h" | 24 #include "content/public/common/context_menu_params.h" |
| 25 #include "content/public/common/date_time_suggestion.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" |
| 28 #include "content/public/common/javascript_message_type.h" | 29 #include "content/public/common/javascript_message_type.h" |
| 29 #include "content/public/common/menu_item.h" | 30 #include "content/public/common/menu_item.h" |
| 30 #include "content/public/common/page_state.h" | 31 #include "content/public/common/page_state.h" |
| 31 #include "content/public/common/page_zoom.h" | 32 #include "content/public/common/page_zoom.h" |
| 32 #include "content/public/common/referrer.h" | 33 #include "content/public/common/referrer.h" |
| 33 #include "content/public/common/renderer_preferences.h" | 34 #include "content/public/common/renderer_preferences.h" |
| 34 #include "content/public/common/stop_find_action.h" | 35 #include "content/public/common/stop_find_action.h" |
| (...skipping 117 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(localizedValue) |
| 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 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 381 // The route ID to associate with the worker. If MSG_ROUTING_NONE is passed, | 388 // The route ID to associate with the worker. If MSG_ROUTING_NONE is passed, |
| 382 // a new unique ID is created and assigned to the worker. | 389 // a new unique ID is created and assigned to the worker. |
| 383 IPC_STRUCT_MEMBER(int, route_id) | 390 IPC_STRUCT_MEMBER(int, route_id) |
| 384 | 391 |
| 385 // The ID of the appcache the main shared worker script resource was loaded | 392 // The ID of the appcache the main shared worker script resource was loaded |
| 386 // from, only valid for shared workers. | 393 // from, only valid for shared workers. |
| 387 IPC_STRUCT_MEMBER(int64, script_resource_appcache_id) | 394 IPC_STRUCT_MEMBER(int64, script_resource_appcache_id) |
| 388 IPC_STRUCT_END() | 395 IPC_STRUCT_END() |
| 389 | 396 |
| 390 IPC_STRUCT_BEGIN(ViewHostMsg_DateTimeDialogValue_Params) | 397 IPC_STRUCT_BEGIN(ViewHostMsg_DateTimeDialogValue_Params) |
| 391 IPC_STRUCT_MEMBER(int, dialog_type) | 398 IPC_STRUCT_MEMBER(ui::TextInputType, dialog_type) |
| 392 IPC_STRUCT_MEMBER(int, year) | 399 IPC_STRUCT_MEMBER(double, current_value) |
| 393 IPC_STRUCT_MEMBER(int, month) | |
| 394 IPC_STRUCT_MEMBER(int, day) | |
| 395 IPC_STRUCT_MEMBER(int, hour) | |
| 396 IPC_STRUCT_MEMBER(int, minute) | |
| 397 IPC_STRUCT_MEMBER(int, second) | |
| 398 IPC_STRUCT_MEMBER(int, milli) | |
| 399 IPC_STRUCT_MEMBER(int, week) | |
| 400 IPC_STRUCT_MEMBER(double, minimum) | 400 IPC_STRUCT_MEMBER(double, minimum) |
| 401 IPC_STRUCT_MEMBER(double, maximum) | 401 IPC_STRUCT_MEMBER(double, maximum) |
| 402 IPC_STRUCT_MEMBER(double, step) | 402 IPC_STRUCT_MEMBER(double, step) |
| 403 IPC_STRUCT_MEMBER(std::vector<content::DateTimeSuggestion>, suggestions) |
| 403 IPC_STRUCT_END() | 404 IPC_STRUCT_END() |
| 404 | 405 |
| 405 IPC_STRUCT_BEGIN(ViewHostMsg_DidFailProvisionalLoadWithError_Params) | 406 IPC_STRUCT_BEGIN(ViewHostMsg_DidFailProvisionalLoadWithError_Params) |
| 406 // The frame ID for the failure report. | 407 // The frame ID for the failure report. |
| 407 IPC_STRUCT_MEMBER(int64, frame_id) | 408 IPC_STRUCT_MEMBER(int64, frame_id) |
| 408 // True if this is the top-most frame. | 409 // True if this is the top-most frame. |
| 409 IPC_STRUCT_MEMBER(bool, is_main_frame) | 410 IPC_STRUCT_MEMBER(bool, is_main_frame) |
| 410 // Error code as reported in the DidFailProvisionalLoad callback. | 411 // Error code as reported in the DidFailProvisionalLoad callback. |
| 411 IPC_STRUCT_MEMBER(int, error_code) | 412 IPC_STRUCT_MEMBER(int, error_code) |
| 412 // An error message generated from the error_code. This can be an empty | 413 // An error message generated from the error_code. This can be an empty |
| (...skipping 525 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 938 IPC_MESSAGE_ROUTED1(ViewMsg_StopFinding, | 939 IPC_MESSAGE_ROUTED1(ViewMsg_StopFinding, |
| 939 content::StopFindAction /* action */) | 940 content::StopFindAction /* action */) |
| 940 | 941 |
| 941 // Informs the renderer about various statistics the browser has (e.g. | 942 // Informs the renderer about various statistics the browser has (e.g. |
| 942 // latency) regarding the frames that have been displayed. | 943 // latency) regarding the frames that have been displayed. |
| 943 IPC_MESSAGE_ROUTED1(ViewMsg_SetBrowserRenderingStats, | 944 IPC_MESSAGE_ROUTED1(ViewMsg_SetBrowserRenderingStats, |
| 944 content::BrowserRenderingStats /* stats */) | 945 content::BrowserRenderingStats /* stats */) |
| 945 | 946 |
| 946 // Replaces a date time input field. | 947 // Replaces a date time input field. |
| 947 IPC_MESSAGE_ROUTED1(ViewMsg_ReplaceDateTime, | 948 IPC_MESSAGE_ROUTED1(ViewMsg_ReplaceDateTime, |
| 948 ViewHostMsg_DateTimeDialogValue_Params /* value */) | 949 double /* value */) |
| 949 | 950 |
| 950 // Copies the image at location x, y to the clipboard (if there indeed is an | 951 // Copies the image at location x, y to the clipboard (if there indeed is an |
| 951 // image at that location). | 952 // image at that location). |
| 952 IPC_MESSAGE_ROUTED2(ViewMsg_CopyImageAt, | 953 IPC_MESSAGE_ROUTED2(ViewMsg_CopyImageAt, |
| 953 int /* x */, | 954 int /* x */, |
| 954 int /* y */) | 955 int /* y */) |
| 955 | 956 |
| 956 // Tells the renderer to perform the given action on the media player | 957 // Tells the renderer to perform the given action on the media player |
| 957 // located at the given point. | 958 // located at the given point. |
| 958 IPC_MESSAGE_ROUTED2(ViewMsg_MediaPlayerActionAt, | 959 IPC_MESSAGE_ROUTED2(ViewMsg_MediaPlayerActionAt, |
| (...skipping 1428 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2387 // synchronously (see crbug.com/120597). This IPC message sends the character | 2388 // synchronously (see crbug.com/120597). This IPC message sends the character |
| 2388 // bounds after every composition change to always have correct bound info. | 2389 // bounds after every composition change to always have correct bound info. |
| 2389 IPC_MESSAGE_ROUTED2(ViewHostMsg_ImeCompositionRangeChanged, | 2390 IPC_MESSAGE_ROUTED2(ViewHostMsg_ImeCompositionRangeChanged, |
| 2390 gfx::Range /* composition range */, | 2391 gfx::Range /* composition range */, |
| 2391 std::vector<gfx::Rect> /* character bounds */) | 2392 std::vector<gfx::Rect> /* character bounds */) |
| 2392 #endif | 2393 #endif |
| 2393 | 2394 |
| 2394 // Adding a new message? Stick to the sort order above: first platform | 2395 // Adding a new message? Stick to the sort order above: first platform |
| 2395 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform | 2396 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform |
| 2396 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. | 2397 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. |
| OLD | NEW |