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" |
(...skipping 517 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
528 IPC_STRUCT_MEMBER(ViewMsg_Resize_Params, initial_size) | 528 IPC_STRUCT_MEMBER(ViewMsg_Resize_Params, initial_size) |
529 | 529 |
530 // Whether to enable auto-resize. | 530 // Whether to enable auto-resize. |
531 IPC_STRUCT_MEMBER(bool, enable_auto_resize) | 531 IPC_STRUCT_MEMBER(bool, enable_auto_resize) |
532 | 532 |
533 // The minimum size to layout the page if auto-resize is enabled. | 533 // The minimum size to layout the page if auto-resize is enabled. |
534 IPC_STRUCT_MEMBER(gfx::Size, min_size) | 534 IPC_STRUCT_MEMBER(gfx::Size, min_size) |
535 | 535 |
536 // The maximum size to layout the page if auto-resize is enabled. | 536 // The maximum size to layout the page if auto-resize is enabled. |
537 IPC_STRUCT_MEMBER(gfx::Size, max_size) | 537 IPC_STRUCT_MEMBER(gfx::Size, max_size) |
| 538 |
| 539 // Namespace for the compositor to generate surface sequences. |
| 540 IPC_STRUCT_MEMBER(uint32_t, surface_id_namespace) |
538 IPC_STRUCT_END() | 541 IPC_STRUCT_END() |
539 | 542 |
540 // Messages sent from the browser to the renderer. | 543 // Messages sent from the browser to the renderer. |
541 | 544 |
542 #if defined(OS_ANDROID) | 545 #if defined(OS_ANDROID) |
543 // Tells the renderer to cancel an opened date/time dialog. | 546 // Tells the renderer to cancel an opened date/time dialog. |
544 IPC_MESSAGE_ROUTED0(ViewMsg_CancelDateTimeDialog) | 547 IPC_MESSAGE_ROUTED0(ViewMsg_CancelDateTimeDialog) |
545 | 548 |
546 // Replaces a date time input field. | 549 // Replaces a date time input field. |
547 IPC_MESSAGE_ROUTED1(ViewMsg_ReplaceDateTime, | 550 IPC_MESSAGE_ROUTED1(ViewMsg_ReplaceDateTime, |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
583 | 586 |
584 // Tells the renderer to create a new view. | 587 // Tells the renderer to create a new view. |
585 // This message is slightly different, the view it takes (via | 588 // This message is slightly different, the view it takes (via |
586 // ViewMsg_New_Params) is the view to create, the message itself is sent as a | 589 // ViewMsg_New_Params) is the view to create, the message itself is sent as a |
587 // non-view control message. | 590 // non-view control message. |
588 IPC_MESSAGE_CONTROL1(ViewMsg_New, | 591 IPC_MESSAGE_CONTROL1(ViewMsg_New, |
589 ViewMsg_New_Params) | 592 ViewMsg_New_Params) |
590 | 593 |
591 // Reply in response to ViewHostMsg_ShowView or ViewHostMsg_ShowWidget. | 594 // Reply in response to ViewHostMsg_ShowView or ViewHostMsg_ShowWidget. |
592 // similar to the new command, but used when the renderer created a view | 595 // similar to the new command, but used when the renderer created a view |
593 // first, and we need to update it. | 596 // first, and we need to update it. |surface_id_namespace| provides a |
594 IPC_MESSAGE_ROUTED0(ViewMsg_CreatingNew_ACK) | 597 // namespace for the RenderWidget's compositor to use to issue surface |
| 598 // sequences. |
| 599 IPC_MESSAGE_ROUTED1(ViewMsg_CreatingNew_ACK, |
| 600 uint32_t /* surface_id_namespace */) |
595 | 601 |
596 // Sends updated preferences to the renderer. | 602 // Sends updated preferences to the renderer. |
597 IPC_MESSAGE_ROUTED1(ViewMsg_SetRendererPrefs, | 603 IPC_MESSAGE_ROUTED1(ViewMsg_SetRendererPrefs, |
598 content::RendererPreferences) | 604 content::RendererPreferences) |
599 | 605 |
600 // This passes a set of webkit preferences down to the renderer. | 606 // This passes a set of webkit preferences down to the renderer. |
601 IPC_MESSAGE_ROUTED1(ViewMsg_UpdateWebPreferences, | 607 IPC_MESSAGE_ROUTED1(ViewMsg_UpdateWebPreferences, |
602 content::WebPreferences) | 608 content::WebPreferences) |
603 | 609 |
604 // Informs the renderer that the timezone has changed along with a new | 610 // Informs the renderer that the timezone has changed along with a new |
(...skipping 369 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
974 IPC_MESSAGE_ROUTED2(ViewMsg_SwapCompositorFrameAck, | 980 IPC_MESSAGE_ROUTED2(ViewMsg_SwapCompositorFrameAck, |
975 uint32 /* output_surface_id */, | 981 uint32 /* output_surface_id */, |
976 cc::CompositorFrameAck /* ack */) | 982 cc::CompositorFrameAck /* ack */) |
977 | 983 |
978 // Sent by browser to tell renderer compositor that some resources that were | 984 // Sent by browser to tell renderer compositor that some resources that were |
979 // given to the browser in a swap are not being used anymore. | 985 // given to the browser in a swap are not being used anymore. |
980 IPC_MESSAGE_ROUTED2(ViewMsg_ReclaimCompositorResources, | 986 IPC_MESSAGE_ROUTED2(ViewMsg_ReclaimCompositorResources, |
981 uint32 /* output_surface_id */, | 987 uint32 /* output_surface_id */, |
982 cc::CompositorFrameAck /* ack */) | 988 cc::CompositorFrameAck /* ack */) |
983 | 989 |
| 990 // Sent by browser to give renderer compositor a new namespace ID for any |
| 991 // SurfaceSequences it has to create. |
| 992 IPC_MESSAGE_ROUTED1(ViewMsg_UpdateSurfaceIdNamespace, |
| 993 uint32_t /* surface_id_namespace */) |
| 994 |
984 IPC_MESSAGE_ROUTED0(ViewMsg_SelectWordAroundCaret) | 995 IPC_MESSAGE_ROUTED0(ViewMsg_SelectWordAroundCaret) |
985 | 996 |
986 // Sent by the browser to ask the renderer to redraw. | 997 // Sent by the browser to ask the renderer to redraw. |
987 // If |request_id| is not zero, it is added to the forced frame's latency info | 998 // If |request_id| is not zero, it is added to the forced frame's latency info |
988 // as ui::WINDOW_SNAPSHOT_FRAME_NUMBER_COMPONENT. | 999 // as ui::WINDOW_SNAPSHOT_FRAME_NUMBER_COMPONENT. |
989 IPC_MESSAGE_ROUTED1(ViewMsg_ForceRedraw, | 1000 IPC_MESSAGE_ROUTED1(ViewMsg_ForceRedraw, |
990 int /* request_id */) | 1001 int /* request_id */) |
991 | 1002 |
992 // Sent by the browser when the renderer should generate a new frame. | 1003 // Sent by the browser when the renderer should generate a new frame. |
993 IPC_MESSAGE_ROUTED1(ViewMsg_BeginFrame, | 1004 IPC_MESSAGE_ROUTED1(ViewMsg_BeginFrame, |
(...skipping 613 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1607 // cached by the OS. Please see RenderMessageFilter::OnPreCacheFontCharacters | 1618 // cached by the OS. Please see RenderMessageFilter::OnPreCacheFontCharacters |
1608 // for details. | 1619 // for details. |
1609 IPC_SYNC_MESSAGE_CONTROL2_0(ViewHostMsg_PreCacheFontCharacters, | 1620 IPC_SYNC_MESSAGE_CONTROL2_0(ViewHostMsg_PreCacheFontCharacters, |
1610 LOGFONT /* font_data */, | 1621 LOGFONT /* font_data */, |
1611 base::string16 /* characters */) | 1622 base::string16 /* characters */) |
1612 #endif | 1623 #endif |
1613 | 1624 |
1614 // Adding a new message? Stick to the sort order above: first platform | 1625 // Adding a new message? Stick to the sort order above: first platform |
1615 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform | 1626 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform |
1616 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. | 1627 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. |
OLD | NEW |