Chromium Code Reviews| 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 | |
|
nasko
2015/05/13 13:51:24
nit: No need for extra empty line here.
kenrb
2015/05/13 19:57:08
Done.
| |
| 538 IPC_STRUCT_END() | 539 IPC_STRUCT_END() |
| 539 | 540 |
| 540 // Messages sent from the browser to the renderer. | 541 // Messages sent from the browser to the renderer. |
| 541 | 542 |
| 542 #if defined(OS_ANDROID) | 543 #if defined(OS_ANDROID) |
| 543 // Tells the renderer to cancel an opened date/time dialog. | 544 // Tells the renderer to cancel an opened date/time dialog. |
| 544 IPC_MESSAGE_ROUTED0(ViewMsg_CancelDateTimeDialog) | 545 IPC_MESSAGE_ROUTED0(ViewMsg_CancelDateTimeDialog) |
| 545 | 546 |
| 546 // Replaces a date time input field. | 547 // Replaces a date time input field. |
| 547 IPC_MESSAGE_ROUTED1(ViewMsg_ReplaceDateTime, | 548 IPC_MESSAGE_ROUTED1(ViewMsg_ReplaceDateTime, |
| (...skipping 426 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 974 IPC_MESSAGE_ROUTED2(ViewMsg_SwapCompositorFrameAck, | 975 IPC_MESSAGE_ROUTED2(ViewMsg_SwapCompositorFrameAck, |
| 975 uint32 /* output_surface_id */, | 976 uint32 /* output_surface_id */, |
| 976 cc::CompositorFrameAck /* ack */) | 977 cc::CompositorFrameAck /* ack */) |
| 977 | 978 |
| 978 // Sent by browser to tell renderer compositor that some resources that were | 979 // 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. | 980 // given to the browser in a swap are not being used anymore. |
| 980 IPC_MESSAGE_ROUTED2(ViewMsg_ReclaimCompositorResources, | 981 IPC_MESSAGE_ROUTED2(ViewMsg_ReclaimCompositorResources, |
| 981 uint32 /* output_surface_id */, | 982 uint32 /* output_surface_id */, |
| 982 cc::CompositorFrameAck /* ack */) | 983 cc::CompositorFrameAck /* ack */) |
| 983 | 984 |
| 985 // Sent by browser to give renderer compositor a new namespace ID for any | |
| 986 // SurfaceSequences it has to create. | |
| 987 IPC_MESSAGE_ROUTED1(ViewMsg_SetSurfaceIdNamespace, | |
| 988 uint32_t /* surface_id_namespace */) | |
| 989 | |
| 984 IPC_MESSAGE_ROUTED0(ViewMsg_SelectWordAroundCaret) | 990 IPC_MESSAGE_ROUTED0(ViewMsg_SelectWordAroundCaret) |
| 985 | 991 |
| 986 // Sent by the browser to ask the renderer to redraw. | 992 // 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 | 993 // If |request_id| is not zero, it is added to the forced frame's latency info |
| 988 // as ui::WINDOW_SNAPSHOT_FRAME_NUMBER_COMPONENT. | 994 // as ui::WINDOW_SNAPSHOT_FRAME_NUMBER_COMPONENT. |
| 989 IPC_MESSAGE_ROUTED1(ViewMsg_ForceRedraw, | 995 IPC_MESSAGE_ROUTED1(ViewMsg_ForceRedraw, |
| 990 int /* request_id */) | 996 int /* request_id */) |
| 991 | 997 |
| 992 // Sent by the browser when the renderer should generate a new frame. | 998 // Sent by the browser when the renderer should generate a new frame. |
| 993 IPC_MESSAGE_ROUTED1(ViewMsg_BeginFrame, | 999 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 | 1613 // cached by the OS. Please see RenderMessageFilter::OnPreCacheFontCharacters |
| 1608 // for details. | 1614 // for details. |
| 1609 IPC_SYNC_MESSAGE_CONTROL2_0(ViewHostMsg_PreCacheFontCharacters, | 1615 IPC_SYNC_MESSAGE_CONTROL2_0(ViewHostMsg_PreCacheFontCharacters, |
| 1610 LOGFONT /* font_data */, | 1616 LOGFONT /* font_data */, |
| 1611 base::string16 /* characters */) | 1617 base::string16 /* characters */) |
| 1612 #endif | 1618 #endif |
| 1613 | 1619 |
| 1614 // Adding a new message? Stick to the sort order above: first platform | 1620 // Adding a new message? Stick to the sort order above: first platform |
| 1615 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform | 1621 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform |
| 1616 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. | 1622 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. |
| OLD | NEW |