| 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 1423 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1434 // tab. | 1434 // tab. |
| 1435 IPC_MESSAGE_ROUTED2(ViewHostMsg_UpdateZoomLimits, | 1435 IPC_MESSAGE_ROUTED2(ViewHostMsg_UpdateZoomLimits, |
| 1436 int /* minimum_percent */, | 1436 int /* minimum_percent */, |
| 1437 int /* maximum_percent */) | 1437 int /* maximum_percent */) |
| 1438 | 1438 |
| 1439 // Notify the browser that this render process can or can't be suddenly | 1439 // Notify the browser that this render process can or can't be suddenly |
| 1440 // terminated. | 1440 // terminated. |
| 1441 IPC_MESSAGE_CONTROL1(ViewHostMsg_SuddenTerminationChanged, | 1441 IPC_MESSAGE_CONTROL1(ViewHostMsg_SuddenTerminationChanged, |
| 1442 bool /* enabled */) | 1442 bool /* enabled */) |
| 1443 | 1443 |
| 1444 IPC_STRUCT_BEGIN(ViewHostMsg_CompositorSurfaceBuffersSwapped_Params) | |
| 1445 IPC_STRUCT_MEMBER(int32, surface_id) | |
| 1446 IPC_STRUCT_MEMBER(uint64, surface_handle) | |
| 1447 IPC_STRUCT_MEMBER(int32, route_id) | |
| 1448 IPC_STRUCT_MEMBER(gfx::Size, size) | |
| 1449 IPC_STRUCT_MEMBER(float, scale_factor) | |
| 1450 IPC_STRUCT_MEMBER(int32, gpu_process_host_id) | |
| 1451 IPC_STRUCT_MEMBER(std::vector<ui::LatencyInfo>, latency_info) | |
| 1452 IPC_STRUCT_END() | |
| 1453 | |
| 1454 // This message is synthesized by GpuProcessHost to pass through a swap message | |
| 1455 // to the RenderWidgetHelper. This allows GetBackingStore to block for either a | |
| 1456 // software or GPU frame. | |
| 1457 IPC_MESSAGE_ROUTED1( | |
| 1458 ViewHostMsg_CompositorSurfaceBuffersSwapped, | |
| 1459 ViewHostMsg_CompositorSurfaceBuffersSwapped_Params /* params */) | |
| 1460 | |
| 1461 IPC_MESSAGE_ROUTED2(ViewHostMsg_SwapCompositorFrame, | 1444 IPC_MESSAGE_ROUTED2(ViewHostMsg_SwapCompositorFrame, |
| 1462 uint32 /* output_surface_id */, | 1445 uint32 /* output_surface_id */, |
| 1463 cc::CompositorFrame /* frame */) | 1446 cc::CompositorFrame /* frame */) |
| 1464 | 1447 |
| 1465 // Sent by the compositor when a flinging animation is stopped. | 1448 // Sent by the compositor when a flinging animation is stopped. |
| 1466 IPC_MESSAGE_ROUTED0(ViewHostMsg_DidStopFlinging) | 1449 IPC_MESSAGE_ROUTED0(ViewHostMsg_DidStopFlinging) |
| 1467 | 1450 |
| 1468 //--------------------------------------------------------------------------- | 1451 //--------------------------------------------------------------------------- |
| 1469 // Request for cryptographic operation messages: | 1452 // Request for cryptographic operation messages: |
| 1470 // These are messages from the renderer to the browser to perform a | 1453 // These are messages from the renderer to the browser to perform a |
| (...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1703 // Since the browser keeps handles to the allocated transport DIBs, this | 1686 // Since the browser keeps handles to the allocated transport DIBs, this |
| 1704 // message is sent to tell the browser that it may release them when the | 1687 // message is sent to tell the browser that it may release them when the |
| 1705 // renderer is finished with them. | 1688 // renderer is finished with them. |
| 1706 IPC_MESSAGE_CONTROL1(ViewHostMsg_FreeTransportDIB, | 1689 IPC_MESSAGE_CONTROL1(ViewHostMsg_FreeTransportDIB, |
| 1707 TransportDIB::Id /* DIB id */) | 1690 TransportDIB::Id /* DIB id */) |
| 1708 #endif | 1691 #endif |
| 1709 | 1692 |
| 1710 // Adding a new message? Stick to the sort order above: first platform | 1693 // Adding a new message? Stick to the sort order above: first platform |
| 1711 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform | 1694 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform |
| 1712 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. | 1695 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. |
| OLD | NEW |