OLD | NEW |
(Empty) | |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 // IPC messages for GuestViews. |
| 6 // Multiply-included message file, hence no include guard. |
| 7 |
| 8 #include <string> |
| 9 |
| 10 #include "base/values.h" |
| 11 #include "ipc/ipc_message_macros.h" |
| 12 #include "ui/gfx/geometry/size.h" |
| 13 #include "ui/gfx/ipc/gfx_param_traits.h" |
| 14 |
| 15 #define IPC_MESSAGE_START GuestViewMsgStart |
| 16 |
| 17 // Messages sent from the browser to the renderer. |
| 18 |
| 19 // The ACK for GuestViewHostMsg_CreateMimeHandlerViewGuest. |
| 20 IPC_MESSAGE_CONTROL1(GuestViewMsg_CreateMimeHandlerViewGuestACK, |
| 21 int /* element_instance_id */) |
| 22 |
| 23 // Once a MimeHandlerView guest's JavaScript onload function has been called, |
| 24 // this IPC is sent to the container to notify it. |
| 25 IPC_MESSAGE_CONTROL1(GuestViewMsg_MimeHandlerViewGuestOnLoadCompleted, |
| 26 int /* element_instance_id */) |
| 27 |
| 28 // Once a RenderView proxy has been created for the guest in the embedder render |
| 29 // process, this IPC informs the embedder of the proxy's routing ID. |
| 30 IPC_MESSAGE_CONTROL2(GuestViewMsg_GuestAttached, |
| 31 int /* element_instance_id */, |
| 32 int /* source_routing_id */) |
| 33 |
| 34 // This IPC tells the browser process to detach the provided |
| 35 // |element_instance_id| from a GuestViewBase if it is attached to one. |
| 36 // In other words, routing of input and graphics will no longer flow through |
| 37 // the container associated with the provided ID. |
| 38 IPC_MESSAGE_CONTROL1(GuestViewMsg_GuestDetached, |
| 39 int /* element_instance_id*/) |
| 40 |
| 41 // Messages sent from the renderer to the browser. |
| 42 |
| 43 // Sent by the renderer to set initialization parameters of a Browser Plugin |
| 44 // that is identified by |element_instance_id|. |
| 45 IPC_MESSAGE_CONTROL4(GuestViewHostMsg_AttachGuest, |
| 46 int /* routing_id */, |
| 47 int /* element_instance_id */, |
| 48 int /* guest_instance_id */, |
| 49 base::DictionaryValue /* attach_params */) |
| 50 |
| 51 // Tells the browser to create a mime handler guest view for a plugin. |
| 52 IPC_MESSAGE_CONTROL4(GuestViewHostMsg_CreateMimeHandlerViewGuest, |
| 53 int /* render_frame_id */, |
| 54 std::string /* view_id */, |
| 55 int /* element_instance_id */, |
| 56 gfx::Size /* element_size */) |
| 57 |
OLD | NEW |