| 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 554 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 565 IPC_STRUCT_END() | 565 IPC_STRUCT_END() |
| 566 | 566 |
| 567 // Tells the render view to change its size. A ViewHostMsg_UpdateRect message | 567 // Tells the render view to change its size. A ViewHostMsg_UpdateRect message |
| 568 // is generated in response provided new_size is not empty and not equal to | 568 // is generated in response provided new_size is not empty and not equal to |
| 569 // the view's current size. The generated ViewHostMsg_UpdateRect message will | 569 // the view's current size. The generated ViewHostMsg_UpdateRect message will |
| 570 // have the IS_RESIZE_ACK flag set. It also receives the resizer rect so that | 570 // have the IS_RESIZE_ACK flag set. It also receives the resizer rect so that |
| 571 // we don't have to fetch it every time WebKit asks for it. | 571 // we don't have to fetch it every time WebKit asks for it. |
| 572 IPC_MESSAGE_ROUTED1(ViewMsg_Resize, | 572 IPC_MESSAGE_ROUTED1(ViewMsg_Resize, |
| 573 ViewMsg_Resize_Params /* params */) | 573 ViewMsg_Resize_Params /* params */) |
| 574 | 574 |
| 575 // Sent to inform the renderer of its screen device color profile. An empty |
| 576 // profile tells the renderer use the default sRGB color profile. |
| 577 IPC_MESSAGE_ROUTED1(ViewMsg_ColorProfile, |
| 578 std::vector<char> /* color profile */) |
| 579 |
| 575 // Tells the render view that the resize rect has changed. | 580 // Tells the render view that the resize rect has changed. |
| 576 IPC_MESSAGE_ROUTED1(ViewMsg_ChangeResizeRect, | 581 IPC_MESSAGE_ROUTED1(ViewMsg_ChangeResizeRect, |
| 577 gfx::Rect /* resizer_rect */) | 582 gfx::Rect /* resizer_rect */) |
| 578 | 583 |
| 579 // Sent to inform the view that it was hidden. This allows it to reduce its | 584 // Sent to inform the view that it was hidden. This allows it to reduce its |
| 580 // resource utilization. | 585 // resource utilization. |
| 581 IPC_MESSAGE_ROUTED0(ViewMsg_WasHidden) | 586 IPC_MESSAGE_ROUTED0(ViewMsg_WasHidden) |
| 582 | 587 |
| 583 // Tells the render view that it is no longer hidden (see WasHidden), and the | 588 // Tells the render view that it is no longer hidden (see WasHidden), and the |
| 584 // render view is expected to respond with a full repaint if needs_repainting | 589 // render view is expected to respond with a full repaint if needs_repainting |
| (...skipping 1045 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1630 // Since the browser keeps handles to the allocated transport DIBs, this | 1635 // Since the browser keeps handles to the allocated transport DIBs, this |
| 1631 // message is sent to tell the browser that it may release them when the | 1636 // message is sent to tell the browser that it may release them when the |
| 1632 // renderer is finished with them. | 1637 // renderer is finished with them. |
| 1633 IPC_MESSAGE_CONTROL1(ViewHostMsg_FreeTransportDIB, | 1638 IPC_MESSAGE_CONTROL1(ViewHostMsg_FreeTransportDIB, |
| 1634 TransportDIB::Id /* DIB id */) | 1639 TransportDIB::Id /* DIB id */) |
| 1635 #endif | 1640 #endif |
| 1636 | 1641 |
| 1637 // Adding a new message? Stick to the sort order above: first platform | 1642 // Adding a new message? Stick to the sort order above: first platform |
| 1638 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform | 1643 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform |
| 1639 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. | 1644 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. |
| OLD | NEW |