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 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
102 // progress. If auto-resize is enabled, this should update the corresponding | 102 // progress. If auto-resize is enabled, this should update the corresponding |
103 // view size. | 103 // view size. |
104 IPC_STRUCT_MEMBER(gfx::Size, view_size) | 104 IPC_STRUCT_MEMBER(gfx::Size, view_size) |
105 | 105 |
106 // All the above coordinates are in DIP. This is the scale factor needed | 106 // All the above coordinates are in DIP. This is the scale factor needed |
107 // to convert them to pixels. | 107 // to convert them to pixels. |
108 IPC_STRUCT_MEMBER(float, scale_factor) | 108 IPC_STRUCT_MEMBER(float, scale_factor) |
109 | 109 |
110 // Is this UpdateRect an ACK to a resize request? | 110 // Is this UpdateRect an ACK to a resize request? |
111 IPC_STRUCT_MEMBER(bool, is_resize_ack) | 111 IPC_STRUCT_MEMBER(bool, is_resize_ack) |
| 112 |
| 113 // Used in HW accelerated case to switch between sending an UpdateRect_ACK |
| 114 // with the new size or just resizing. |
| 115 IPC_STRUCT_MEMBER(bool, needs_ack) |
112 IPC_STRUCT_END() | 116 IPC_STRUCT_END() |
113 | 117 |
114 // Browser plugin messages | 118 // Browser plugin messages |
115 | 119 |
116 // ----------------------------------------------------------------------------- | 120 // ----------------------------------------------------------------------------- |
117 // These messages are from the embedder to the browser process. | 121 // These messages are from the embedder to the browser process. |
118 | 122 |
119 // This message is sent to the browser process to enable or disable autosize | 123 // This message is sent to the browser process to enable or disable autosize |
120 // mode. | 124 // mode. |
121 IPC_MESSAGE_ROUTED3( | 125 IPC_MESSAGE_ROUTED3( |
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
322 // Guest renders into an FBO with textures provided by the embedder. | 326 // Guest renders into an FBO with textures provided by the embedder. |
323 // When HW accelerated buffers are swapped in the guest, the message | 327 // When HW accelerated buffers are swapped in the guest, the message |
324 // is forwarded to the embedder to notify it of a new texture | 328 // is forwarded to the embedder to notify it of a new texture |
325 // available for compositing. | 329 // available for compositing. |
326 IPC_MESSAGE_ROUTED5(BrowserPluginMsg_BuffersSwapped, | 330 IPC_MESSAGE_ROUTED5(BrowserPluginMsg_BuffersSwapped, |
327 int /* instance_id */, | 331 int /* instance_id */, |
328 gfx::Size /* size */, | 332 gfx::Size /* size */, |
329 std::string /* mailbox_name */, | 333 std::string /* mailbox_name */, |
330 int /* route_id */, | 334 int /* route_id */, |
331 int /* gpu_host_id */) | 335 int /* gpu_host_id */) |
OLD | NEW |