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 "content/common/content_export.h" | 10 #include "content/common/content_export.h" |
(...skipping 529 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
540 // New window locations for plugin child windows. | 540 // New window locations for plugin child windows. |
541 IPC_STRUCT_MEMBER(std::vector<webkit::npapi::WebPluginGeometry>, | 541 IPC_STRUCT_MEMBER(std::vector<webkit::npapi::WebPluginGeometry>, |
542 plugin_window_moves) | 542 plugin_window_moves) |
543 | 543 |
544 // The following describes the various bits that may be set in flags: | 544 // The following describes the various bits that may be set in flags: |
545 // | 545 // |
546 // ViewHostMsg_UpdateRect_Flags::IS_RESIZE_ACK | 546 // ViewHostMsg_UpdateRect_Flags::IS_RESIZE_ACK |
547 // Indicates that this is a response to a ViewMsg_Resize message. | 547 // Indicates that this is a response to a ViewMsg_Resize message. |
548 // | 548 // |
549 // ViewHostMsg_UpdateRect_Flags::IS_RESTORE_ACK | 549 // ViewHostMsg_UpdateRect_Flags::IS_RESTORE_ACK |
550 // Indicates that this is a response to a ViewMsg_WasRestored message. | 550 // Indicates that this is a response to a ViewMsg_WasShown message. |
551 // | 551 // |
552 // ViewHostMsg_UpdateRect_Flags::IS_REPAINT_ACK | 552 // ViewHostMsg_UpdateRect_Flags::IS_REPAINT_ACK |
553 // Indicates that this is a response to a ViewMsg_Repaint message. | 553 // Indicates that this is a response to a ViewMsg_Repaint message. |
554 // | 554 // |
555 // If flags is zero, then this message corresponds to an unsolicited paint | 555 // If flags is zero, then this message corresponds to an unsolicited paint |
556 // request by the render view. Any of the above bits may be set in flags, | 556 // request by the render view. Any of the above bits may be set in flags, |
557 // which would indicate that this paint message is an ACK for multiple | 557 // which would indicate that this paint message is an ACK for multiple |
558 // request messages. | 558 // request messages. |
559 IPC_STRUCT_MEMBER(int, flags) | 559 IPC_STRUCT_MEMBER(int, flags) |
560 | 560 |
(...skipping 278 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
839 | 839 |
840 // Sent to inform the view that it was hidden. This allows it to reduce its | 840 // Sent to inform the view that it was hidden. This allows it to reduce its |
841 // resource utilization. | 841 // resource utilization. |
842 IPC_MESSAGE_ROUTED0(ViewMsg_WasHidden) | 842 IPC_MESSAGE_ROUTED0(ViewMsg_WasHidden) |
843 | 843 |
844 // Tells the render view that it is no longer hidden (see WasHidden), and the | 844 // Tells the render view that it is no longer hidden (see WasHidden), and the |
845 // render view is expected to respond with a full repaint if needs_repainting | 845 // render view is expected to respond with a full repaint if needs_repainting |
846 // is true. In that case, the generated ViewHostMsg_PaintRect message will | 846 // is true. In that case, the generated ViewHostMsg_PaintRect message will |
847 // have the IS_RESTORE_ACK flag set. If needs_repainting is false, then this | 847 // have the IS_RESTORE_ACK flag set. If needs_repainting is false, then this |
848 // message does not trigger a message in response. | 848 // message does not trigger a message in response. |
849 IPC_MESSAGE_ROUTED1(ViewMsg_WasRestored, | 849 IPC_MESSAGE_ROUTED1(ViewMsg_WasShown, |
850 bool /* needs_repainting */) | 850 bool /* needs_repainting */) |
851 | 851 |
852 // Sent to inform the view that it was swapped out. This allows the process to | 852 // Sent to inform the view that it was swapped out. This allows the process to |
853 // exit if no other views are using it. | 853 // exit if no other views are using it. |
854 IPC_MESSAGE_ROUTED0(ViewMsg_WasSwappedOut) | 854 IPC_MESSAGE_ROUTED0(ViewMsg_WasSwappedOut) |
855 | 855 |
856 // Sent to render the view into the supplied transport DIB, resize | 856 // Sent to render the view into the supplied transport DIB, resize |
857 // the web widget to match the |page_size|, scale it by the | 857 // the web widget to match the |page_size|, scale it by the |
858 // appropriate scale to make it fit the |desired_size|, and return | 858 // appropriate scale to make it fit the |desired_size|, and return |
859 // it. In response to this message, the host generates a | 859 // it. In response to this message, the host generates a |
(...skipping 1307 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2167 // (according to the value of is_hung). The browser can give the user the | 2167 // (according to the value of is_hung). The browser can give the user the |
2168 // option of killing the plugin. | 2168 // option of killing the plugin. |
2169 IPC_MESSAGE_ROUTED3(ViewHostMsg_PepperPluginHung, | 2169 IPC_MESSAGE_ROUTED3(ViewHostMsg_PepperPluginHung, |
2170 int /* plugin_child_id */, | 2170 int /* plugin_child_id */, |
2171 FilePath /* path */, | 2171 FilePath /* path */, |
2172 bool /* is_hung */) | 2172 bool /* is_hung */) |
2173 | 2173 |
2174 // Screen was rotated. Dispatched to the onorientationchange javascript API. | 2174 // Screen was rotated. Dispatched to the onorientationchange javascript API. |
2175 IPC_MESSAGE_ROUTED1(ViewMsg_OrientationChangeEvent, | 2175 IPC_MESSAGE_ROUTED1(ViewMsg_OrientationChangeEvent, |
2176 int /* orientation */) | 2176 int /* orientation */) |
OLD | NEW |