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 19 matching lines...) Expand all Loading... |
30 #include "url/gurl.h" | 30 #include "url/gurl.h" |
31 | 31 |
32 #undef IPC_MESSAGE_EXPORT | 32 #undef IPC_MESSAGE_EXPORT |
33 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT | 33 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT |
34 | 34 |
35 #define IPC_MESSAGE_START BrowserPluginMsgStart | 35 #define IPC_MESSAGE_START BrowserPluginMsgStart |
36 | 36 |
37 | 37 |
38 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebDragStatus, blink::WebDragStatusLast) | 38 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebDragStatus, blink::WebDragStatusLast) |
39 | 39 |
40 IPC_STRUCT_BEGIN(BrowserPluginHostMsg_AutoSize_Params) | |
41 IPC_STRUCT_MEMBER(bool, enable) | |
42 IPC_STRUCT_MEMBER(gfx::Size, max_size) | |
43 IPC_STRUCT_MEMBER(gfx::Size, min_size) | |
44 IPC_STRUCT_END() | |
45 | |
46 IPC_STRUCT_BEGIN(BrowserPluginHostMsg_ResizeGuest_Params) | 40 IPC_STRUCT_BEGIN(BrowserPluginHostMsg_ResizeGuest_Params) |
47 // Indicates whether the parameters have been populated or not. | 41 // Indicates whether the parameters have been populated or not. |
48 IPC_STRUCT_MEMBER(bool, size_changed) | 42 IPC_STRUCT_MEMBER(bool, size_changed) |
49 // The new size of guest view. | 43 // The new size of guest view. |
50 IPC_STRUCT_MEMBER(gfx::Size, view_size) | 44 IPC_STRUCT_MEMBER(gfx::Size, view_size) |
51 // Indicates the scale factor of the embedder WebView. | 45 // Indicates the scale factor of the embedder WebView. |
52 IPC_STRUCT_MEMBER(float, scale_factor) | 46 IPC_STRUCT_MEMBER(float, scale_factor) |
53 // Indicates a request for a full repaint of the page. | 47 // Indicates a request for a full repaint of the page. |
54 // This is required for switching from compositing to the software | 48 // This is required for switching from compositing to the software |
55 // rendering path. | 49 // rendering path. |
56 IPC_STRUCT_MEMBER(bool, repaint) | 50 IPC_STRUCT_MEMBER(bool, repaint) |
57 IPC_STRUCT_END() | 51 IPC_STRUCT_END() |
58 | 52 |
59 IPC_STRUCT_BEGIN(BrowserPluginHostMsg_Attach_Params) | 53 IPC_STRUCT_BEGIN(BrowserPluginHostMsg_Attach_Params) |
60 IPC_STRUCT_MEMBER(bool, focused) | 54 IPC_STRUCT_MEMBER(bool, focused) |
61 IPC_STRUCT_MEMBER(bool, visible) | 55 IPC_STRUCT_MEMBER(bool, visible) |
62 IPC_STRUCT_MEMBER(bool, opaque) | 56 IPC_STRUCT_MEMBER(bool, opaque) |
63 IPC_STRUCT_MEMBER(BrowserPluginHostMsg_AutoSize_Params, auto_size_params) | |
64 IPC_STRUCT_MEMBER(BrowserPluginHostMsg_ResizeGuest_Params, | 57 IPC_STRUCT_MEMBER(BrowserPluginHostMsg_ResizeGuest_Params, |
65 resize_guest_params) | 58 resize_guest_params) |
66 IPC_STRUCT_MEMBER(gfx::Point, origin) | 59 IPC_STRUCT_MEMBER(gfx::Point, origin) |
67 IPC_STRUCT_END() | 60 IPC_STRUCT_END() |
68 | 61 |
69 IPC_STRUCT_BEGIN(BrowserPluginMsg_UpdateRect_Params) | 62 IPC_STRUCT_BEGIN(BrowserPluginMsg_UpdateRect_Params) |
70 // The size of the RenderView when this message was generated. This is | 63 // The size of the RenderView when this message was generated. This is |
71 // included so the host knows how large the view is from the perspective of | 64 // included so the host knows how large the view is from the perspective of |
72 // the renderer process. This is necessary in case a resize operation is in | 65 // the renderer process. This is necessary in case a resize operation is in |
73 // progress. If auto-resize is enabled, this should update the corresponding | 66 // progress. If auto-resize is enabled, this should update the corresponding |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
115 std::string /* text */, | 108 std::string /* text */, |
116 bool /* keep selection */) | 109 bool /* keep selection */) |
117 | 110 |
118 // Deletes the current selection plus the specified number of characters before | 111 // Deletes the current selection plus the specified number of characters before |
119 // and after the selection or caret. | 112 // and after the selection or caret. |
120 IPC_MESSAGE_ROUTED3(BrowserPluginHostMsg_ExtendSelectionAndDelete, | 113 IPC_MESSAGE_ROUTED3(BrowserPluginHostMsg_ExtendSelectionAndDelete, |
121 int /* instance_id */, | 114 int /* instance_id */, |
122 int /* before */, | 115 int /* before */, |
123 int /* after */) | 116 int /* after */) |
124 | 117 |
125 // This message is sent to the browser process to enable or disable autosize | |
126 // mode. | |
127 IPC_MESSAGE_ROUTED3( | |
128 BrowserPluginHostMsg_SetAutoSize, | |
129 int /* instance_id */, | |
130 BrowserPluginHostMsg_AutoSize_Params /* auto_size_params */, | |
131 BrowserPluginHostMsg_ResizeGuest_Params /* resize_guest_params */) | |
132 | |
133 // This message is sent to the browser process to indicate that a BrowserPlugin | 118 // This message is sent to the browser process to indicate that a BrowserPlugin |
134 // has taken ownership of the lifetime of the guest of the given |instance_id|. | 119 // has taken ownership of the lifetime of the guest of the given |instance_id|. |
135 // |params| is the state of the BrowserPlugin taking ownership of | 120 // |params| is the state of the BrowserPlugin taking ownership of |
136 // the guest. If a guest doesn't already exist with the given |instance_id|, | 121 // the guest. If a guest doesn't already exist with the given |instance_id|, |
137 // a new one will be created. | 122 // a new one will be created. |
138 IPC_MESSAGE_ROUTED3(BrowserPluginHostMsg_Attach, | 123 IPC_MESSAGE_ROUTED3(BrowserPluginHostMsg_Attach, |
139 int /* instance_id */, | 124 int /* instance_id */, |
140 BrowserPluginHostMsg_Attach_Params /* params */, | 125 BrowserPluginHostMsg_Attach_Params /* params */, |
141 base::DictionaryValue /* extra_params */) | 126 base::DictionaryValue /* extra_params */) |
142 | 127 |
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
276 // See comment about BrowserPluginMsg_BuffersSwapped and | 261 // See comment about BrowserPluginMsg_BuffersSwapped and |
277 // BrowserPluginMsg_CompositorFrameSwapped for how these related | 262 // BrowserPluginMsg_CompositorFrameSwapped for how these related |
278 // to the FrameHostMsg variants. | 263 // to the FrameHostMsg variants. |
279 IPC_MESSAGE_ROUTED1(BrowserPluginHostMsg_BuffersSwappedACK, | 264 IPC_MESSAGE_ROUTED1(BrowserPluginHostMsg_BuffersSwappedACK, |
280 FrameHostMsg_BuffersSwappedACK_Params /* params */) | 265 FrameHostMsg_BuffersSwappedACK_Params /* params */) |
281 | 266 |
282 // Acknowledge that we presented an ubercomp frame. | 267 // Acknowledge that we presented an ubercomp frame. |
283 IPC_MESSAGE_ROUTED2(BrowserPluginHostMsg_CompositorFrameSwappedACK, | 268 IPC_MESSAGE_ROUTED2(BrowserPluginHostMsg_CompositorFrameSwappedACK, |
284 int /* instance_id */, | 269 int /* instance_id */, |
285 FrameHostMsg_CompositorFrameSwappedACK_Params /* params */) | 270 FrameHostMsg_CompositorFrameSwappedACK_Params /* params */) |
OLD | NEW |