| 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" |
| (...skipping 2004 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2015 // terminated. | 2015 // terminated. |
| 2016 IPC_MESSAGE_CONTROL1(ViewHostMsg_SuddenTerminationChanged, | 2016 IPC_MESSAGE_CONTROL1(ViewHostMsg_SuddenTerminationChanged, |
| 2017 bool /* enabled */) | 2017 bool /* enabled */) |
| 2018 | 2018 |
| 2019 // Informs the browser of updated frame names. | 2019 // Informs the browser of updated frame names. |
| 2020 IPC_MESSAGE_ROUTED3(ViewHostMsg_UpdateFrameName, | 2020 IPC_MESSAGE_ROUTED3(ViewHostMsg_UpdateFrameName, |
| 2021 int /* frame_id */, | 2021 int /* frame_id */, |
| 2022 bool /* is_top_level */, | 2022 bool /* is_top_level */, |
| 2023 std::string /* name */) | 2023 std::string /* name */) |
| 2024 | 2024 |
| 2025 |
| 2026 IPC_STRUCT_BEGIN(ViewHostMsg_CompositorSurfaceBuffersSwapped_Params) |
| 2027 IPC_STRUCT_MEMBER(int32, surface_id) |
| 2028 IPC_STRUCT_MEMBER(uint64, surface_handle) |
| 2029 IPC_STRUCT_MEMBER(int32, route_id) |
| 2030 IPC_STRUCT_MEMBER(gfx::Size, size) |
| 2031 IPC_STRUCT_MEMBER(float, scale_factor) |
| 2032 IPC_STRUCT_MEMBER(int32, gpu_process_host_id) |
| 2033 IPC_STRUCT_END() |
| 2034 |
| 2025 // This message is synthesized by GpuProcessHost to pass through a swap message | 2035 // This message is synthesized by GpuProcessHost to pass through a swap message |
| 2026 // to the RenderWidgetHelper. This allows GetBackingStore to block for either a | 2036 // to the RenderWidgetHelper. This allows GetBackingStore to block for either a |
| 2027 // software or GPU frame. | 2037 // software or GPU frame. |
| 2028 IPC_MESSAGE_ROUTED5(ViewHostMsg_CompositorSurfaceBuffersSwapped, | 2038 IPC_MESSAGE_ROUTED1( |
| 2029 int32 /* surface id */, | 2039 ViewHostMsg_CompositorSurfaceBuffersSwapped, |
| 2030 uint64 /* surface_handle */, | 2040 ViewHostMsg_CompositorSurfaceBuffersSwapped_Params /* params */) |
| 2031 int32 /* route_id */, | |
| 2032 gfx::Size /* size */, | |
| 2033 int32 /* gpu_process_host_id */) | |
| 2034 | 2041 |
| 2035 IPC_MESSAGE_ROUTED1(ViewHostMsg_SwapCompositorFrame, | 2042 IPC_MESSAGE_ROUTED1(ViewHostMsg_SwapCompositorFrame, |
| 2036 cc::CompositorFrame /* frame */) | 2043 cc::CompositorFrame /* frame */) |
| 2037 | 2044 |
| 2038 // Sent by the compositor when input scroll events are dropped due to bounds | 2045 // Sent by the compositor when input scroll events are dropped due to bounds |
| 2039 // restricions on the root scroll offset. | 2046 // restricions on the root scroll offset. |
| 2040 IPC_MESSAGE_ROUTED2(ViewHostMsg_DidOverscroll, | 2047 IPC_MESSAGE_ROUTED2(ViewHostMsg_DidOverscroll, |
| 2041 gfx::Vector2dF /* accumulated_overscroll */, | 2048 gfx::Vector2dF /* accumulated_overscroll */, |
| 2042 gfx::Vector2dF /* current_fling_velocity */) | 2049 gfx::Vector2dF /* current_fling_velocity */) |
| 2043 | 2050 |
| (...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2300 // Since the browser keeps handles to the allocated transport DIBs, this | 2307 // Since the browser keeps handles to the allocated transport DIBs, this |
| 2301 // message is sent to tell the browser that it may release them when the | 2308 // message is sent to tell the browser that it may release them when the |
| 2302 // renderer is finished with them. | 2309 // renderer is finished with them. |
| 2303 IPC_MESSAGE_CONTROL1(ViewHostMsg_FreeTransportDIB, | 2310 IPC_MESSAGE_CONTROL1(ViewHostMsg_FreeTransportDIB, |
| 2304 TransportDIB::Id /* DIB id */) | 2311 TransportDIB::Id /* DIB id */) |
| 2305 #endif | 2312 #endif |
| 2306 | 2313 |
| 2307 // Adding a new message? Stick to the sort order above: first platform | 2314 // Adding a new message? Stick to the sort order above: first platform |
| 2308 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform | 2315 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform |
| 2309 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. | 2316 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. |
| OLD | NEW |