Chromium Code Reviews| 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 extensions GuestViews. | |
| 6 // Multiply-included message file, hence no include guard. | |
| 7 | |
| 8 #include <string> | |
| 9 | |
| 10 #include "base/values.h" | |
|
lazyboy
2015/04/20 23:37:56
Remove.
Fady Samuel
2015/04/21 15:59:41
Done.
| |
| 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 ExtensionsGuestViewMsgStart | |
| 16 // Messages sent from the browser to the renderer. | |
| 17 | |
| 18 // The ACK for GuestViewHostMsg_CreateMimeHandlerViewGuest. | |
| 19 IPC_MESSAGE_CONTROL1(ExtensionsGuestViewMsg_CreateMimeHandlerViewGuestACK, | |
| 20 int /* element_instance_id */) | |
| 21 | |
| 22 // Once a MimeHandlerView guest's JavaScript onload function has been called, | |
| 23 // this IPC is sent to the container to notify it. | |
| 24 IPC_MESSAGE_CONTROL1(ExtensionsGuestViewMsg_MimeHandlerViewGuestOnLoadCompleted, | |
| 25 int /* element_instance_id */) | |
| 26 | |
| 27 // Messages sent from the renderer to the browser. | |
| 28 | |
| 29 // Tells the browser to create a mime handler guest view for a plugin. | |
| 30 IPC_MESSAGE_CONTROL4(ExtensionsGuestViewHostMsg_CreateMimeHandlerViewGuest, | |
| 31 int /* render_frame_id */, | |
| 32 std::string /* view_id */, | |
| 33 int /* element_instance_id */, | |
| 34 gfx::Size /* element_size */) | |
| 35 | |
| 36 // A renderer sends this message when it wants to resize a guest. | |
| 37 IPC_MESSAGE_CONTROL3(ExtensionsGuestViewHostMsg_ResizeGuest, | |
| 38 int /* routing_id */, | |
| 39 int /* element_instance_id*/, | |
| 40 gfx::Size /* new_size */) | |
| 41 | |
| 42 IPC_SYNC_MESSAGE_CONTROL2_1( | |
| 43 ExtensionsGuestViewHostMsg_CanExecuteContentScriptSync, | |
| 44 int /* routing_id */, | |
| 45 int /* script_id */, | |
| 46 bool /* allowed */) | |
| OLD | NEW |