| 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 1418 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1429 // tab. | 1429 // tab. |
| 1430 IPC_MESSAGE_ROUTED2(ViewHostMsg_UpdateZoomLimits, | 1430 IPC_MESSAGE_ROUTED2(ViewHostMsg_UpdateZoomLimits, |
| 1431 int /* minimum_percent */, | 1431 int /* minimum_percent */, |
| 1432 int /* maximum_percent */) | 1432 int /* maximum_percent */) |
| 1433 | 1433 |
| 1434 // Notify the browser that this render process can or can't be suddenly | 1434 // Notify the browser that this render process can or can't be suddenly |
| 1435 // terminated. | 1435 // terminated. |
| 1436 IPC_MESSAGE_CONTROL1(ViewHostMsg_SuddenTerminationChanged, | 1436 IPC_MESSAGE_CONTROL1(ViewHostMsg_SuddenTerminationChanged, |
| 1437 bool /* enabled */) | 1437 bool /* enabled */) |
| 1438 | 1438 |
| 1439 IPC_MESSAGE_ROUTED2(ViewHostMsg_SwapCompositorFrame, | 1439 IPC_MESSAGE_ROUTED3( |
| 1440 uint32 /* output_surface_id */, | 1440 ViewHostMsg_SwapCompositorFrame, |
| 1441 cc::CompositorFrame /* frame */) | 1441 uint32 /* output_surface_id */, |
| 1442 cc::CompositorFrame /* frame */, |
| 1443 std::vector<IPC::Message> /* messages_to_deliver_with_frame */) |
| 1442 | 1444 |
| 1443 // Sent by the compositor when a flinging animation is stopped. | 1445 // Sent by the compositor when a flinging animation is stopped. |
| 1444 IPC_MESSAGE_ROUTED0(ViewHostMsg_DidStopFlinging) | 1446 IPC_MESSAGE_ROUTED0(ViewHostMsg_DidStopFlinging) |
| 1445 | 1447 |
| 1446 //--------------------------------------------------------------------------- | 1448 //--------------------------------------------------------------------------- |
| 1447 // Request for cryptographic operation messages: | 1449 // Request for cryptographic operation messages: |
| 1448 // These are messages from the renderer to the browser to perform a | 1450 // These are messages from the renderer to the browser to perform a |
| 1449 // cryptographic operation. | 1451 // cryptographic operation. |
| 1450 | 1452 |
| 1451 // Asks the browser process to generate a keypair for grabbing a client | 1453 // Asks the browser process to generate a keypair for grabbing a client |
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1551 | 1553 |
| 1552 // Notifies the browser that document has parsed the body. This is used by the | 1554 // Notifies the browser that document has parsed the body. This is used by the |
| 1553 // ResourceScheduler as an indication that bandwidth contention won't block | 1555 // ResourceScheduler as an indication that bandwidth contention won't block |
| 1554 // first paint. | 1556 // first paint. |
| 1555 IPC_MESSAGE_ROUTED0(ViewHostMsg_WillInsertBody) | 1557 IPC_MESSAGE_ROUTED0(ViewHostMsg_WillInsertBody) |
| 1556 | 1558 |
| 1557 // Notification that the urls for the favicon of a site has been determined. | 1559 // Notification that the urls for the favicon of a site has been determined. |
| 1558 IPC_MESSAGE_ROUTED1(ViewHostMsg_UpdateFaviconURL, | 1560 IPC_MESSAGE_ROUTED1(ViewHostMsg_UpdateFaviconURL, |
| 1559 std::vector<content::FaviconURL> /* candidates */) | 1561 std::vector<content::FaviconURL> /* candidates */) |
| 1560 | 1562 |
| 1561 // Sent once a paint happens after the first non empty layout. In other words | |
| 1562 // after the page has painted something. | |
| 1563 IPC_MESSAGE_ROUTED0(ViewHostMsg_DidFirstVisuallyNonEmptyPaint) | |
| 1564 | |
| 1565 // Sent by the renderer to the browser to start a vibration with the given | 1563 // Sent by the renderer to the browser to start a vibration with the given |
| 1566 // duration. | 1564 // duration. |
| 1567 IPC_MESSAGE_CONTROL1(ViewHostMsg_Vibrate, | 1565 IPC_MESSAGE_CONTROL1(ViewHostMsg_Vibrate, |
| 1568 int64 /* milliseconds */) | 1566 int64 /* milliseconds */) |
| 1569 | 1567 |
| 1570 // Sent by the renderer to the browser to cancel the currently running | 1568 // Sent by the renderer to the browser to cancel the currently running |
| 1571 // vibration, if there is one. | 1569 // vibration, if there is one. |
| 1572 IPC_MESSAGE_CONTROL0(ViewHostMsg_CancelVibration) | 1570 IPC_MESSAGE_CONTROL0(ViewHostMsg_CancelVibration) |
| 1573 | 1571 |
| 1574 // Message sent from renderer to the browser when the element that is focused | 1572 // Message sent from renderer to the browser when the element that is focused |
| (...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1682 // Since the browser keeps handles to the allocated transport DIBs, this | 1680 // Since the browser keeps handles to the allocated transport DIBs, this |
| 1683 // message is sent to tell the browser that it may release them when the | 1681 // message is sent to tell the browser that it may release them when the |
| 1684 // renderer is finished with them. | 1682 // renderer is finished with them. |
| 1685 IPC_MESSAGE_CONTROL1(ViewHostMsg_FreeTransportDIB, | 1683 IPC_MESSAGE_CONTROL1(ViewHostMsg_FreeTransportDIB, |
| 1686 TransportDIB::Id /* DIB id */) | 1684 TransportDIB::Id /* DIB id */) |
| 1687 #endif | 1685 #endif |
| 1688 | 1686 |
| 1689 // Adding a new message? Stick to the sort order above: first platform | 1687 // Adding a new message? Stick to the sort order above: first platform |
| 1690 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform | 1688 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform |
| 1691 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. | 1689 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. |
| OLD | NEW |