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 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
110 IPC_MESSAGE_ROUTED3(BrowserPluginHostMsg_NavigateGuest, | 110 IPC_MESSAGE_ROUTED3(BrowserPluginHostMsg_NavigateGuest, |
111 int /* instance_id*/, | 111 int /* instance_id*/, |
112 std::string /* src */, | 112 std::string /* src */, |
113 BrowserPluginHostMsg_ResizeGuest_Params /* resize_params */) | 113 BrowserPluginHostMsg_ResizeGuest_Params /* resize_params */) |
114 | 114 |
115 // When a BrowserPlugin has been removed from the embedder's DOM, it informs | 115 // When a BrowserPlugin has been removed from the embedder's DOM, it informs |
116 // the browser process to cleanup the guest. | 116 // the browser process to cleanup the guest. |
117 IPC_MESSAGE_ROUTED1(BrowserPluginHostMsg_PluginDestroyed, | 117 IPC_MESSAGE_ROUTED1(BrowserPluginHostMsg_PluginDestroyed, |
118 int /* instance_id */) | 118 int /* instance_id */) |
119 | 119 |
| 120 // Tells the guest it has been shown or hidden. |
| 121 IPC_MESSAGE_ROUTED2(BrowserPluginHostMsg_SetVisibility, |
| 122 int /* instance_id */, |
| 123 bool /* visible */) |
| 124 |
120 // ----------------------------------------------------------------------------- | 125 // ----------------------------------------------------------------------------- |
121 // These messages are from the guest renderer to the browser process | 126 // These messages are from the guest renderer to the browser process |
122 | 127 |
123 // A embedder sends this message to the browser when it wants | 128 // A embedder sends this message to the browser when it wants |
124 // to resize a guest plugin container so that the guest is relaid out | 129 // to resize a guest plugin container so that the guest is relaid out |
125 // according to the new size. | 130 // according to the new size. |
126 IPC_SYNC_MESSAGE_ROUTED2_0(BrowserPluginHostMsg_ResizeGuest, | 131 IPC_SYNC_MESSAGE_ROUTED2_0(BrowserPluginHostMsg_ResizeGuest, |
127 int /* instance_id*/, | 132 int /* instance_id*/, |
128 BrowserPluginHostMsg_ResizeGuest_Params) | 133 BrowserPluginHostMsg_ResizeGuest_Params) |
129 | 134 |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
213 IPC_MESSAGE_CONTROL2(BrowserPluginMsg_ShouldAcceptTouchEvents, | 218 IPC_MESSAGE_CONTROL2(BrowserPluginMsg_ShouldAcceptTouchEvents, |
214 int /* instance_id */, | 219 int /* instance_id */, |
215 bool /* accept */) | 220 bool /* accept */) |
216 | 221 |
217 // The guest has damage it wants to convey to the embedder so that it can | 222 // The guest has damage it wants to convey to the embedder so that it can |
218 // update its backing store. | 223 // update its backing store. |
219 IPC_MESSAGE_CONTROL3(BrowserPluginMsg_UpdateRect, | 224 IPC_MESSAGE_CONTROL3(BrowserPluginMsg_UpdateRect, |
220 int /* instance_id */, | 225 int /* instance_id */, |
221 int /* message_id */, | 226 int /* message_id */, |
222 BrowserPluginMsg_UpdateRect_Params) | 227 BrowserPluginMsg_UpdateRect_Params) |
OLD | NEW |