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 // Multiply-included message header, no traditional include guard. | 5 // Multiply-included message header, no traditional include guard. |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
10 #include "base/process.h" | 10 #include "base/process.h" |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
50 | 50 |
51 // An ACK to the guest process letting it know that the embedder has handled | 51 // An ACK to the guest process letting it know that the embedder has handled |
52 // the previous frame and is ready for the next frame. If the guest sent the | 52 // the previous frame and is ready for the next frame. If the guest sent the |
53 // embedder a bitmap that does not match the size of the BrowserPlugin's | 53 // embedder a bitmap that does not match the size of the BrowserPlugin's |
54 // container, the BrowserPlugin requests a new size as well. | 54 // container, the BrowserPlugin requests a new size as well. |
55 IPC_MESSAGE_ROUTED3(BrowserPluginHostMsg_UpdateRect_ACK, | 55 IPC_MESSAGE_ROUTED3(BrowserPluginHostMsg_UpdateRect_ACK, |
56 int /* instance_id */, | 56 int /* instance_id */, |
57 int /* message_id */, | 57 int /* message_id */, |
58 gfx::Size /* repaint_view_size */) | 58 gfx::Size /* repaint_view_size */) |
59 | 59 |
60 // A BrowserPlugin sends this to the browser process when it wants to navigate | |
61 // to a given src URL. If a guest WebContents already exists, it will navigate | |
62 // that WebContents. If not, it will create the WebContents, associate it with | |
63 // the BrowserPlugin's browser-side BrowserPluginHost as a guest, and navigate | |
64 // it to the requested URL. | |
65 IPC_MESSAGE_ROUTED4(BrowserPluginHostMsg_NavigateGuest, | |
66 int /* instance_id*/, | |
67 int64 /* frame_id */, | |
68 std::string /* src */, | |
69 gfx::Size /* size */) | |
70 | |
71 // When a BrowserPlugin has been removed from the embedder's DOM, it informs | 60 // When a BrowserPlugin has been removed from the embedder's DOM, it informs |
72 // the browser process to cleanup the guest. | 61 // the browser process to cleanup the guest. |
73 IPC_MESSAGE_ROUTED1(BrowserPluginHostMsg_PluginDestroyed, | 62 IPC_MESSAGE_ROUTED1(BrowserPluginHostMsg_PluginDestroyed, |
74 int /* instance_id */) | 63 int /* instance_id */) |
75 | 64 |
76 // ----------------------------------------------------------------------------- | 65 // ----------------------------------------------------------------------------- |
77 // These messages are from the guest renderer to the browser process | 66 // These messages are from the guest renderer to the browser process |
78 | 67 |
79 IPC_STRUCT_BEGIN(BrowserPluginHostMsg_ResizeGuest_Params) | 68 IPC_STRUCT_BEGIN(BrowserPluginHostMsg_ResizeGuest_Params) |
80 // A handle to the new buffer to use to transport damage to the | 69 // A handle to the new buffer to use to transport damage to the |
81 // embedder renderer process. | 70 // embedder renderer process. |
82 IPC_STRUCT_MEMBER(TransportDIB::Id, damage_buffer_id) | 71 IPC_STRUCT_MEMBER(TransportDIB::Id, damage_buffer_id) |
83 #if defined(OS_WIN) | 72 #if defined(OS_WIN) |
84 // The size of the damage buffer because this information is not available | 73 // The size of the damage buffer because this information is not available |
85 // on Windows. | 74 // on Windows. |
86 IPC_STRUCT_MEMBER(int, damage_buffer_size) | 75 IPC_STRUCT_MEMBER(int, damage_buffer_size) |
87 #endif | 76 #endif |
88 // The new width of the plugin container. | 77 // The new width of the plugin container. |
89 IPC_STRUCT_MEMBER(int, width) | 78 IPC_STRUCT_MEMBER(int, width) |
90 // The new height of the plugin container. | 79 // The new height of the plugin container. |
91 IPC_STRUCT_MEMBER(int, height) | 80 IPC_STRUCT_MEMBER(int, height) |
92 // Indicates whether the embedder is currently waiting on a ACK from the | 81 // Indicates whether the embedder is currently waiting on a ACK from the |
93 // guest for a previous resize request. | 82 // guest for a previous resize request. |
94 IPC_STRUCT_MEMBER(bool, resize_pending) | 83 IPC_STRUCT_MEMBER(bool, resize_pending) |
95 // Indicates the scale factor of the embedder WebView. | 84 // Indicates the scale factor of the embedder WebView. |
96 IPC_STRUCT_MEMBER(float, scale_factor) | 85 IPC_STRUCT_MEMBER(float, scale_factor) |
97 IPC_STRUCT_END() | 86 IPC_STRUCT_END() |
98 | 87 |
88 // A BrowserPlugin sends this to the browser process when it wants to navigate | |
89 // to a given src URL. If a guest WebContents already exists, it will navigate | |
90 // that WebContents. If not, it will create the WebContents, associate it with | |
91 // the BrowserPlugin's browser-side BrowserPluginHost as a guest, and navigate | |
Fady Samuel
2012/09/24 22:16:58
This comment is out of date. Please update to ment
lazyboy
2012/09/25 17:57:22
Done.
| |
92 // it to the requested URL. | |
93 IPC_MESSAGE_ROUTED4(BrowserPluginHostMsg_NavigateGuest, | |
94 int /* instance_id*/, | |
95 int64 /* frame_id */, | |
96 std::string /* src */, | |
97 BrowserPluginHostMsg_ResizeGuest_Params /* resize_params */) | |
98 | |
99 // A embedder sends this message to the browser when it wants | 99 // A embedder sends this message to the browser when it wants |
100 // to resize a guest plugin container so that the guest is relaid out | 100 // to resize a guest plugin container so that the guest is relaid out |
101 // according to the new size. | 101 // according to the new size. |
102 IPC_SYNC_MESSAGE_ROUTED2_0(BrowserPluginHostMsg_ResizeGuest, | 102 IPC_SYNC_MESSAGE_ROUTED2_0(BrowserPluginHostMsg_ResizeGuest, |
103 int /* instance_id*/, | 103 int /* instance_id*/, |
104 BrowserPluginHostMsg_ResizeGuest_Params) | 104 BrowserPluginHostMsg_ResizeGuest_Params) |
105 | 105 |
106 // ----------------------------------------------------------------------------- | 106 // ----------------------------------------------------------------------------- |
107 // These messages are from the browser process to the embedder. | 107 // These messages are from the browser process to the embedder. |
108 | 108 |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
158 IPC_MESSAGE_CONTROL2(BrowserPluginMsg_AdvanceFocus, | 158 IPC_MESSAGE_CONTROL2(BrowserPluginMsg_AdvanceFocus, |
159 int /* instance_id */, | 159 int /* instance_id */, |
160 bool /* reverse */) | 160 bool /* reverse */) |
161 | 161 |
162 // The guest has damage it wants to convey to the embedder so that it can | 162 // The guest has damage it wants to convey to the embedder so that it can |
163 // update its backing store. | 163 // update its backing store. |
164 IPC_MESSAGE_CONTROL3(BrowserPluginMsg_UpdateRect, | 164 IPC_MESSAGE_CONTROL3(BrowserPluginMsg_UpdateRect, |
165 int /* instance_id */, | 165 int /* instance_id */, |
166 int /* message_id */, | 166 int /* message_id */, |
167 BrowserPluginMsg_UpdateRect_Params) | 167 BrowserPluginMsg_UpdateRect_Params) |
OLD | NEW |