Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(173)

Side by Side Diff: content/common/browser_plugin/browser_plugin_messages.h

Issue 444813002: Remove BrowserPlugin's -internal-attach method (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Updated comment Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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"
11 #include "base/values.h"
12 #include "content/common/content_export.h" 11 #include "content/common/content_export.h"
13 #include "content/common/content_param_traits.h" 12 #include "content/common/content_param_traits.h"
14 #include "content/common/cursors/webcursor.h" 13 #include "content/common/cursors/webcursor.h"
15 #include "content/common/edit_command.h" 14 #include "content/common/edit_command.h"
16 #include "content/common/frame_param_macros.h" 15 #include "content/common/frame_param_macros.h"
17 #include "content/public/common/common_param_traits.h" 16 #include "content/public/common/common_param_traits.h"
18 #include "content/public/common/drop_data.h" 17 #include "content/public/common/drop_data.h"
19 #include "ipc/ipc_channel_handle.h" 18 #include "ipc/ipc_channel_handle.h"
20 #include "ipc/ipc_message_macros.h" 19 #include "ipc/ipc_message_macros.h"
21 #include "ipc/ipc_message_utils.h" 20 #include "ipc/ipc_message_utils.h"
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 IPC_MESSAGE_ROUTED3(BrowserPluginHostMsg_ExtendSelectionAndDelete, 112 IPC_MESSAGE_ROUTED3(BrowserPluginHostMsg_ExtendSelectionAndDelete,
114 int /* instance_id */, 113 int /* instance_id */,
115 int /* before */, 114 int /* before */,
116 int /* after */) 115 int /* after */)
117 116
118 // This message is sent to the browser process to indicate that a BrowserPlugin 117 // This message is sent to the browser process to indicate that a BrowserPlugin
119 // has taken ownership of the lifetime of the guest of the given |instance_id|. 118 // has taken ownership of the lifetime of the guest of the given |instance_id|.
120 // |params| is the state of the BrowserPlugin taking ownership of 119 // |params| is the state of the BrowserPlugin taking ownership of
121 // the guest. If a guest doesn't already exist with the given |instance_id|, 120 // the guest. If a guest doesn't already exist with the given |instance_id|,
122 // a new one will be created. 121 // a new one will be created.
123 IPC_MESSAGE_ROUTED3(BrowserPluginHostMsg_Attach, 122 IPC_MESSAGE_ROUTED2(BrowserPluginHostMsg_Attach,
124 int /* instance_id */, 123 int /* instance_id */,
125 BrowserPluginHostMsg_Attach_Params /* params */, 124 BrowserPluginHostMsg_Attach_Params /* params */)
126 base::DictionaryValue /* extra_params */)
127 125
128 // Tells the guest to focus or defocus itself. 126 // Tells the guest to focus or defocus itself.
129 IPC_MESSAGE_ROUTED2(BrowserPluginHostMsg_SetFocus, 127 IPC_MESSAGE_ROUTED2(BrowserPluginHostMsg_SetFocus,
130 int /* instance_id */, 128 int /* instance_id */,
131 bool /* enable */) 129 bool /* enable */)
132 130
133 // Sends an input event to the guest. 131 // Sends an input event to the guest.
134 IPC_MESSAGE_ROUTED3(BrowserPluginHostMsg_HandleInputEvent, 132 IPC_MESSAGE_ROUTED3(BrowserPluginHostMsg_HandleInputEvent,
135 int /* instance_id */, 133 int /* instance_id */,
136 gfx::Rect /* guest_window_rect */, 134 gfx::Rect /* guest_window_rect */,
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
191 // according to the new size. 189 // according to the new size.
192 IPC_MESSAGE_ROUTED2(BrowserPluginHostMsg_ResizeGuest, 190 IPC_MESSAGE_ROUTED2(BrowserPluginHostMsg_ResizeGuest,
193 int /* instance_id*/, 191 int /* instance_id*/,
194 BrowserPluginHostMsg_ResizeGuest_Params) 192 BrowserPluginHostMsg_ResizeGuest_Params)
195 193
196 // ----------------------------------------------------------------------------- 194 // -----------------------------------------------------------------------------
197 // These messages are from the browser process to the embedder. 195 // These messages are from the browser process to the embedder.
198 196
199 // This message is sent in response to a completed attachment of a guest 197 // This message is sent in response to a completed attachment of a guest
200 // to a BrowserPlugin. 198 // to a BrowserPlugin.
201 IPC_MESSAGE_CONTROL1(BrowserPluginMsg_Attach_ACK, int /* instance_id */) 199 IPC_MESSAGE_CONTROL1(BrowserPluginMsg_Attach_ACK,
200 int /* instance_id */)
202 201
203 // Once the swapped out guest RenderView has been created in the embedder render 202 // Once the swapped out guest RenderView has been created in the embedder render
204 // process, the browser process informs the embedder of its routing ID. 203 // process, the browser process informs the embedder of its routing ID.
205 IPC_MESSAGE_CONTROL2(BrowserPluginMsg_GuestContentWindowReady, 204 IPC_MESSAGE_CONTROL2(BrowserPluginMsg_GuestContentWindowReady,
206 int /* instance_id */, 205 int /* instance_id */,
207 int /* source_routing_id */) 206 int /* source_routing_id */)
208 207
209 // When the guest crashes, the browser process informs the embedder through this 208 // When the guest crashes, the browser process informs the embedder through this
210 // message. 209 // message.
211 IPC_MESSAGE_CONTROL1(BrowserPluginMsg_GuestGone, 210 IPC_MESSAGE_CONTROL1(BrowserPluginMsg_GuestGone,
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
261 // See comment about BrowserPluginMsg_BuffersSwapped and 260 // See comment about BrowserPluginMsg_BuffersSwapped and
262 // BrowserPluginMsg_CompositorFrameSwapped for how these related 261 // BrowserPluginMsg_CompositorFrameSwapped for how these related
263 // to the FrameHostMsg variants. 262 // to the FrameHostMsg variants.
264 IPC_MESSAGE_ROUTED1(BrowserPluginHostMsg_BuffersSwappedACK, 263 IPC_MESSAGE_ROUTED1(BrowserPluginHostMsg_BuffersSwappedACK,
265 FrameHostMsg_BuffersSwappedACK_Params /* params */) 264 FrameHostMsg_BuffersSwappedACK_Params /* params */)
266 265
267 // Acknowledge that we presented an ubercomp frame. 266 // Acknowledge that we presented an ubercomp frame.
268 IPC_MESSAGE_ROUTED2(BrowserPluginHostMsg_CompositorFrameSwappedACK, 267 IPC_MESSAGE_ROUTED2(BrowserPluginHostMsg_CompositorFrameSwappedACK,
269 int /* instance_id */, 268 int /* instance_id */,
270 FrameHostMsg_CompositorFrameSwappedACK_Params /* params */) 269 FrameHostMsg_CompositorFrameSwappedACK_Params /* params */)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698