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/string16.h" | 10 #include "base/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/content_export.h" | 14 #include "content/common/content_export.h" |
14 #include "content/common/content_param_traits.h" | 15 #include "content/common/content_param_traits.h" |
15 #include "content/common/navigation_gesture.h" | 16 #include "content/common/navigation_gesture.h" |
16 #include "content/common/pepper_renderer_instance_data.h" | 17 #include "content/common/pepper_renderer_instance_data.h" |
17 #include "content/common/view_message_enums.h" | 18 #include "content/common/view_message_enums.h" |
18 #include "content/port/common/input_event_ack_state.h" | 19 #include "content/port/common/input_event_ack_state.h" |
19 #include "content/public/common/common_param_traits.h" | 20 #include "content/public/common/common_param_traits.h" |
20 #include "content/public/common/context_menu_params.h" | 21 #include "content/public/common/context_menu_params.h" |
21 #include "content/public/common/favicon_url.h" | 22 #include "content/public/common/favicon_url.h" |
22 #include "content/public/common/file_chooser_params.h" | 23 #include "content/public/common/file_chooser_params.h" |
(...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
288 IPC_STRUCT_TRAITS_MEMBER(params) | 289 IPC_STRUCT_TRAITS_MEMBER(params) |
289 IPC_STRUCT_TRAITS_MEMBER(time) | 290 IPC_STRUCT_TRAITS_MEMBER(time) |
290 IPC_STRUCT_TRAITS_END() | 291 IPC_STRUCT_TRAITS_END() |
291 | 292 |
292 IPC_STRUCT_TRAITS_BEGIN(ui::SelectedFileInfo) | 293 IPC_STRUCT_TRAITS_BEGIN(ui::SelectedFileInfo) |
293 IPC_STRUCT_TRAITS_MEMBER(file_path) | 294 IPC_STRUCT_TRAITS_MEMBER(file_path) |
294 IPC_STRUCT_TRAITS_MEMBER(local_path) | 295 IPC_STRUCT_TRAITS_MEMBER(local_path) |
295 IPC_STRUCT_TRAITS_MEMBER(display_name) | 296 IPC_STRUCT_TRAITS_MEMBER(display_name) |
296 IPC_STRUCT_TRAITS_END() | 297 IPC_STRUCT_TRAITS_END() |
297 | 298 |
| 299 IPC_STRUCT_TRAITS_BEGIN(content::BrowserRenderingStats) |
| 300 IPC_STRUCT_TRAITS_MEMBER(input_event_count) |
| 301 IPC_STRUCT_TRAITS_MEMBER(total_input_latency) |
| 302 IPC_STRUCT_TRAITS_END() |
| 303 |
298 IPC_STRUCT_BEGIN(ViewHostMsg_CreateWindow_Params) | 304 IPC_STRUCT_BEGIN(ViewHostMsg_CreateWindow_Params) |
299 // Routing ID of the view initiating the open. | 305 // Routing ID of the view initiating the open. |
300 IPC_STRUCT_MEMBER(int, opener_id) | 306 IPC_STRUCT_MEMBER(int, opener_id) |
301 | 307 |
302 // True if this open request came in the context of a user gesture. | 308 // True if this open request came in the context of a user gesture. |
303 IPC_STRUCT_MEMBER(bool, user_gesture) | 309 IPC_STRUCT_MEMBER(bool, user_gesture) |
304 | 310 |
305 // Type of window requested. | 311 // Type of window requested. |
306 IPC_STRUCT_MEMBER(WindowContainerType, window_container_type) | 312 IPC_STRUCT_MEMBER(WindowContainerType, window_container_type) |
307 | 313 |
(...skipping 593 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
901 IPC_MESSAGE_ROUTED3(ViewMsg_Find, | 907 IPC_MESSAGE_ROUTED3(ViewMsg_Find, |
902 int /* request_id */, | 908 int /* request_id */, |
903 string16 /* search_text */, | 909 string16 /* search_text */, |
904 WebKit::WebFindOptions) | 910 WebKit::WebFindOptions) |
905 | 911 |
906 // This message notifies the renderer that the user has closed the FindInPage | 912 // This message notifies the renderer that the user has closed the FindInPage |
907 // window (and what action to take regarding the selection). | 913 // window (and what action to take regarding the selection). |
908 IPC_MESSAGE_ROUTED1(ViewMsg_StopFinding, | 914 IPC_MESSAGE_ROUTED1(ViewMsg_StopFinding, |
909 content::StopFindAction /* action */) | 915 content::StopFindAction /* action */) |
910 | 916 |
| 917 // Informs the renderer about various statistics the browser has (e.g. |
| 918 // latency) regarding the frames that have been displayed. |
| 919 IPC_MESSAGE_ROUTED1(ViewMsg_SetBrowserRenderingStats, |
| 920 content::BrowserRenderingStats /* stats */) |
| 921 |
911 // Replaces a date time input field. | 922 // Replaces a date time input field. |
912 IPC_MESSAGE_ROUTED1(ViewMsg_ReplaceDateTime, | 923 IPC_MESSAGE_ROUTED1(ViewMsg_ReplaceDateTime, |
913 ViewHostMsg_DateTimeDialogValue_Params /* value */) | 924 ViewHostMsg_DateTimeDialogValue_Params /* value */) |
914 | 925 |
915 // Copies the image at location x, y to the clipboard (if there indeed is an | 926 // Copies the image at location x, y to the clipboard (if there indeed is an |
916 // image at that location). | 927 // image at that location). |
917 IPC_MESSAGE_ROUTED2(ViewMsg_CopyImageAt, | 928 IPC_MESSAGE_ROUTED2(ViewMsg_CopyImageAt, |
918 int /* x */, | 929 int /* x */, |
919 int /* y */) | 930 int /* y */) |
920 | 931 |
(...skipping 1389 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2310 // Since the browser keeps handles to the allocated transport DIBs, this | 2321 // Since the browser keeps handles to the allocated transport DIBs, this |
2311 // message is sent to tell the browser that it may release them when the | 2322 // message is sent to tell the browser that it may release them when the |
2312 // renderer is finished with them. | 2323 // renderer is finished with them. |
2313 IPC_MESSAGE_CONTROL1(ViewHostMsg_FreeTransportDIB, | 2324 IPC_MESSAGE_CONTROL1(ViewHostMsg_FreeTransportDIB, |
2314 TransportDIB::Id /* DIB id */) | 2325 TransportDIB::Id /* DIB id */) |
2315 #endif | 2326 #endif |
2316 | 2327 |
2317 // Adding a new message? Stick to the sort order above: first platform | 2328 // Adding a new message? Stick to the sort order above: first platform |
2318 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform | 2329 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform |
2319 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. | 2330 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. |
OLD | NEW |