| 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/process.h" | 10 #include "base/process/process.h" |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 IPC_STRUCT_END() | 59 IPC_STRUCT_END() |
| 60 | 60 |
| 61 IPC_STRUCT_BEGIN(BrowserPluginMsg_UpdateRect_Params) | 61 IPC_STRUCT_BEGIN(BrowserPluginMsg_UpdateRect_Params) |
| 62 // The size of the RenderView when this message was generated. This is | 62 // The size of the RenderView when this message was generated. This is |
| 63 // included so the host knows how large the view is from the perspective of | 63 // included so the host knows how large the view is from the perspective of |
| 64 // the renderer process. This is necessary in case a resize operation is in | 64 // the renderer process. This is necessary in case a resize operation is in |
| 65 // progress. If auto-resize is enabled, this should update the corresponding | 65 // progress. If auto-resize is enabled, this should update the corresponding |
| 66 // view size. | 66 // view size. |
| 67 IPC_STRUCT_MEMBER(gfx::Size, view_size) | 67 IPC_STRUCT_MEMBER(gfx::Size, view_size) |
| 68 | 68 |
| 69 // All the above coordinates are in DIP. This is the scale factor needed | |
| 70 // to convert them to pixels. | |
| 71 IPC_STRUCT_MEMBER(float, scale_factor) | |
| 72 | |
| 73 // Is this UpdateRect an ACK to a resize request? | 69 // Is this UpdateRect an ACK to a resize request? |
| 74 IPC_STRUCT_MEMBER(bool, is_resize_ack) | 70 IPC_STRUCT_MEMBER(bool, is_resize_ack) |
| 75 IPC_STRUCT_END() | 71 IPC_STRUCT_END() |
| 76 | 72 |
| 77 // Browser plugin messages | 73 // Browser plugin messages |
| 78 | 74 |
| 79 // ----------------------------------------------------------------------------- | 75 // ----------------------------------------------------------------------------- |
| 80 // These messages are from the embedder to the browser process. | 76 // These messages are from the embedder to the browser process. |
| 81 | 77 |
| 82 // This message is sent from BrowserPlugin to BrowserPluginGuest to issue an | 78 // This message is sent from BrowserPlugin to BrowserPluginGuest to issue an |
| (...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 260 // See comment about BrowserPluginMsg_BuffersSwapped and | 256 // See comment about BrowserPluginMsg_BuffersSwapped and |
| 261 // BrowserPluginMsg_CompositorFrameSwapped for how these related | 257 // BrowserPluginMsg_CompositorFrameSwapped for how these related |
| 262 // to the FrameHostMsg variants. | 258 // to the FrameHostMsg variants. |
| 263 IPC_MESSAGE_ROUTED1(BrowserPluginHostMsg_BuffersSwappedACK, | 259 IPC_MESSAGE_ROUTED1(BrowserPluginHostMsg_BuffersSwappedACK, |
| 264 FrameHostMsg_BuffersSwappedACK_Params /* params */) | 260 FrameHostMsg_BuffersSwappedACK_Params /* params */) |
| 265 | 261 |
| 266 // Acknowledge that we presented an ubercomp frame. | 262 // Acknowledge that we presented an ubercomp frame. |
| 267 IPC_MESSAGE_ROUTED2(BrowserPluginHostMsg_CompositorFrameSwappedACK, | 263 IPC_MESSAGE_ROUTED2(BrowserPluginHostMsg_CompositorFrameSwappedACK, |
| 268 int /* browser_plugin_instance_id */, | 264 int /* browser_plugin_instance_id */, |
| 269 FrameHostMsg_CompositorFrameSwappedACK_Params /* params */) | 265 FrameHostMsg_CompositorFrameSwappedACK_Params /* params */) |
| OLD | NEW |