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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 IPC_MESSAGE_ROUTED3(BrowserPluginHostMsg_UpdateRect_ACK, | 47 IPC_MESSAGE_ROUTED3(BrowserPluginHostMsg_UpdateRect_ACK, |
48 int /* instance_id */, | 48 int /* instance_id */, |
49 int /* message_id */, | 49 int /* message_id */, |
50 gfx::Size /* repaint_view_size */) | 50 gfx::Size /* repaint_view_size */) |
51 | 51 |
52 // A BrowserPlugin sends this to the browser process when it wants to navigate | 52 // A BrowserPlugin sends this to the browser process when it wants to navigate |
53 // to a given src URL. If a guest WebContents already exists, it will navigate | 53 // to a given src URL. If a guest WebContents already exists, it will navigate |
54 // that WebContents. If not, it will create the WebContents, associate it with | 54 // that WebContents. If not, it will create the WebContents, associate it with |
55 // the BrowserPlugin's browser-side BrowserPluginHost as a guest, and navigate | 55 // the BrowserPlugin's browser-side BrowserPluginHost as a guest, and navigate |
56 // it to the requested URL. | 56 // it to the requested URL. |
57 IPC_MESSAGE_ROUTED3(BrowserPluginHostMsg_NavigateOrCreateGuest, | 57 IPC_MESSAGE_ROUTED4(BrowserPluginHostMsg_NavigateGuest, |
58 int /* instance_id*/, | 58 int /* instance_id*/, |
59 long long /* frame_id */, | 59 int64 /* frame_id */, |
60 std::string /* src */) | 60 std::string /* src */, |
| 61 gfx::Size /* size */) |
61 | 62 |
62 // When a BrowserPlugin has been removed from the embedder's DOM, it informs | 63 // When a BrowserPlugin has been removed from the embedder's DOM, it informs |
63 // the browser process to cleanup the guest. | 64 // the browser process to cleanup the guest. |
64 IPC_MESSAGE_ROUTED1(BrowserPluginHostMsg_PluginDestroyed, | 65 IPC_MESSAGE_ROUTED1(BrowserPluginHostMsg_PluginDestroyed, |
65 int /* instance_id */) | 66 int /* instance_id */) |
66 | 67 |
67 // ----------------------------------------------------------------------------- | 68 // ----------------------------------------------------------------------------- |
68 // These messages are from the guest renderer to the browser process | 69 // These messages are from the guest renderer to the browser process |
69 | 70 |
70 IPC_STRUCT_BEGIN(BrowserPluginHostMsg_ResizeGuest_Params) | 71 IPC_STRUCT_BEGIN(BrowserPluginHostMsg_ResizeGuest_Params) |
71 // A handle to the new buffer to use to transport damage to the | 72 // A handle to the new buffer to use to transport damage to the |
72 // embedder renderer process. | 73 // embedder renderer process. |
73 IPC_STRUCT_MEMBER(TransportDIB::Id, damage_buffer_id) | 74 IPC_STRUCT_MEMBER(TransportDIB::Id, damage_buffer_id) |
| 75 #if defined(OS_WIN) |
| 76 // The size of the damage buffer because this information is not available |
| 77 // on Windows. |
| 78 IPC_STRUCT_MEMBER(int, damage_buffer_size) |
| 79 #endif |
74 // The new width of the plugin container. | 80 // The new width of the plugin container. |
75 IPC_STRUCT_MEMBER(int, width) | 81 IPC_STRUCT_MEMBER(int, width) |
76 // The new height of the plugin container. | 82 // The new height of the plugin container. |
77 IPC_STRUCT_MEMBER(int, height) | 83 IPC_STRUCT_MEMBER(int, height) |
78 // Indicates whether the embedder is currently waiting on a ACK from the | 84 // Indicates whether the embedder is currently waiting on a ACK from the |
79 // guest for a previous resize request. | 85 // guest for a previous resize request. |
80 IPC_STRUCT_MEMBER(bool, resize_pending) | 86 IPC_STRUCT_MEMBER(bool, resize_pending) |
81 // Indicates the scale factor of the embedder WebView. | 87 // Indicates the scale factor of the embedder WebView. |
82 IPC_STRUCT_MEMBER(float, scale_factor) | 88 IPC_STRUCT_MEMBER(float, scale_factor) |
83 IPC_STRUCT_END() | 89 IPC_STRUCT_END() |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
143 IPC_MESSAGE_CONTROL2(BrowserPluginMsg_AdvanceFocus, | 149 IPC_MESSAGE_CONTROL2(BrowserPluginMsg_AdvanceFocus, |
144 int /* instance_id */, | 150 int /* instance_id */, |
145 bool /* reverse */) | 151 bool /* reverse */) |
146 | 152 |
147 // The guest has damage it wants to convey to the embedder so that it can | 153 // The guest has damage it wants to convey to the embedder so that it can |
148 // update its backing store. | 154 // update its backing store. |
149 IPC_MESSAGE_CONTROL3(BrowserPluginMsg_UpdateRect, | 155 IPC_MESSAGE_CONTROL3(BrowserPluginMsg_UpdateRect, |
150 int /* instance_id */, | 156 int /* instance_id */, |
151 int /* message_id */, | 157 int /* message_id */, |
152 BrowserPluginMsg_UpdateRect_Params) | 158 BrowserPluginMsg_UpdateRect_Params) |
OLD | NEW |