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

Side by Side Diff: content/common/view_messages.h

Issue 9924026: Browser side implementation of browser plugin (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Updated RenderProcessHostImpl Created 8 years, 8 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 | Annotate | Revision Log
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 // IPC messages for page rendering. 5 // IPC messages for page rendering.
6 // Multiply-included message file, hence no include guard. 6 // Multiply-included message file, hence no include guard.
7 7
8 #include "base/process.h" 8 #include "base/process.h"
9 #include "base/shared_memory.h" 9 #include "base/shared_memory.h"
10 #include "content/common/content_export.h" 10 #include "content/common/content_export.h"
(...skipping 1236 matching lines...) Expand 10 before | Expand all | Expand 10 after
1247 int /* route_id */) 1247 int /* route_id */)
1248 1248
1249 // This message is sent after ViewHostMsg_ShowView to cause the RenderView 1249 // This message is sent after ViewHostMsg_ShowView to cause the RenderView
1250 // to run in a modal fashion until it is closed. 1250 // to run in a modal fashion until it is closed.
1251 IPC_SYNC_MESSAGE_ROUTED0_0(ViewHostMsg_RunModal) 1251 IPC_SYNC_MESSAGE_ROUTED0_0(ViewHostMsg_RunModal)
1252 1252
1253 // Indicates the renderer is ready in response to a ViewMsg_New or 1253 // Indicates the renderer is ready in response to a ViewMsg_New or
1254 // a ViewMsg_CreatingNew_ACK. 1254 // a ViewMsg_CreatingNew_ACK.
1255 IPC_MESSAGE_ROUTED0(ViewHostMsg_RenderViewReady) 1255 IPC_MESSAGE_ROUTED0(ViewHostMsg_RenderViewReady)
1256 1256
1257 // A guest instance is ready to be placed.
1258 IPC_MESSAGE_ROUTED3(ViewMsg_GuestReady,
1259 int /* instance id */,
1260 base::ProcessHandle /* plugin_process_handle */,
1261 IPC::ChannelHandle /* handle to channel */)
1262
1257 // Indicates the renderer process is gone. This actually is sent by the 1263 // Indicates the renderer process is gone. This actually is sent by the
1258 // browser process to itself, but keeps the interface cleaner. 1264 // browser process to itself, but keeps the interface cleaner.
1259 IPC_MESSAGE_ROUTED2(ViewHostMsg_RenderViewGone, 1265 IPC_MESSAGE_ROUTED2(ViewHostMsg_RenderViewGone,
1260 int, /* this really is base::TerminationStatus */ 1266 int, /* this really is base::TerminationStatus */
1261 int /* exit_code */) 1267 int /* exit_code */)
1262 1268
1263 // Sent by the renderer process to request that the browser close the view. 1269 // Sent by the renderer process to request that the browser close the view.
1264 // This corresponds to the window.close() API, and the browser may ignore 1270 // This corresponds to the window.close() API, and the browser may ignore
1265 // this message. Otherwise, the browser will generates a ViewMsg_Close 1271 // this message. Otherwise, the browser will generates a ViewMsg_Close
1266 // message to close the view. 1272 // message to close the view.
(...skipping 379 matching lines...) Expand 10 before | Expand all | Expand 10 after
1646 // A renderer sends this to the browser process when it wants to 1652 // A renderer sends this to the browser process when it wants to
1647 // create a ppapi plugin. The browser will create the plugin process if 1653 // create a ppapi plugin. The browser will create the plugin process if
1648 // necessary, and will return a handle to the channel on success. 1654 // necessary, and will return a handle to the channel on success.
1649 // On error an empty string is returned. 1655 // On error an empty string is returned.
1650 IPC_SYNC_MESSAGE_CONTROL1_2(ViewHostMsg_OpenChannelToPepperPlugin, 1656 IPC_SYNC_MESSAGE_CONTROL1_2(ViewHostMsg_OpenChannelToPepperPlugin,
1651 FilePath /* path */, 1657 FilePath /* path */,
1652 base::ProcessHandle /* plugin_process_handle */, 1658 base::ProcessHandle /* plugin_process_handle */,
1653 IPC::ChannelHandle /* handle to channel */) 1659 IPC::ChannelHandle /* handle to channel */)
1654 1660
1655 // A renderer sends this to the browser process when it wants to 1661 // A renderer sends this to the browser process when it wants to
1662 // create a browser plugin. The browser will create the plugin process if
1663 // necessary, and will return a handle to the channel on success.
1664 IPC_MESSAGE_CONTROL5(ViewHostMsg_OpenChannelToBrowserPlugin,
1665 int /* host routing id */,
1666 int /* plugin instance id*/,
1667 long long /* frame id */,
1668 std::string /* src */,
1669 gfx::Size /* size */)
1670
1671 // A renderer sends this to the browser process when it wants to
1656 // create a ppapi broker. The browser will create the broker process 1672 // create a ppapi broker. The browser will create the broker process
1657 // if necessary, and will return a handle to the channel on success. 1673 // if necessary, and will return a handle to the channel on success.
1658 // On error an empty string is returned. 1674 // On error an empty string is returned.
1659 // The browser will respond with ViewMsg_PpapiBrokerChannelCreated. 1675 // The browser will respond with ViewMsg_PpapiBrokerChannelCreated.
1660 IPC_MESSAGE_CONTROL3(ViewHostMsg_OpenChannelToPpapiBroker, 1676 IPC_MESSAGE_CONTROL3(ViewHostMsg_OpenChannelToPpapiBroker,
1661 int /* routing_id */, 1677 int /* routing_id */,
1662 int /* request_id */, 1678 int /* request_id */,
1663 FilePath /* path */) 1679 FilePath /* path */)
1664 1680
1665 #if defined(USE_X11) 1681 #if defined(USE_X11)
(...skipping 311 matching lines...) Expand 10 before | Expand all | Expand 10 after
1977 1993
1978 // Requests to lock the mouse. Will result in a ViewMsg_LockMouse_ACK message 1994 // Requests to lock the mouse. Will result in a ViewMsg_LockMouse_ACK message
1979 // being sent back. 1995 // being sent back.
1980 IPC_MESSAGE_ROUTED0(ViewHostMsg_LockMouse) 1996 IPC_MESSAGE_ROUTED0(ViewHostMsg_LockMouse)
1981 1997
1982 // Requests to unlock the mouse. A ViewMsg_MouseLockLost message will be sent 1998 // Requests to unlock the mouse. A ViewMsg_MouseLockLost message will be sent
1983 // whenever the mouse is unlocked (which may or may not be caused by 1999 // whenever the mouse is unlocked (which may or may not be caused by
1984 // ViewHostMsg_UnlockMouse). 2000 // ViewHostMsg_UnlockMouse).
1985 IPC_MESSAGE_ROUTED0(ViewHostMsg_UnlockMouse) 2001 IPC_MESSAGE_ROUTED0(ViewHostMsg_UnlockMouse)
1986 2002
2003
2004 IPC_MESSAGE_ROUTED2(ViewHostMsg_ResizeGuest,
jam 2012/03/30 05:44:11 nit: put all the guest ViewHostMsg's beside each o
Fady Samuel 2012/04/03 17:01:45 Done.
2005 int32, /* width */
2006 int32 /* height */);
1987 // Following message is used to communicate the values received by the 2007 // Following message is used to communicate the values received by the
1988 // callback binding the JS to Cpp. 2008 // callback binding the JS to Cpp.
1989 // An instance of browser that has an automation host listening to it can 2009 // An instance of browser that has an automation host listening to it can
1990 // have a javascript send a native value (string, number, boolean) to the 2010 // have a javascript send a native value (string, number, boolean) to the
1991 // listener in Cpp. (DomAutomationController) 2011 // listener in Cpp. (DomAutomationController)
1992 IPC_MESSAGE_ROUTED2(ViewHostMsg_DomOperationResponse, 2012 IPC_MESSAGE_ROUTED2(ViewHostMsg_DomOperationResponse,
1993 std::string /* json_string */, 2013 std::string /* json_string */,
1994 int /* automation_id */) 2014 int /* automation_id */)
1995 2015
1996 // Enable or disable inverting of web content pixels, for users who prefer 2016 // Enable or disable inverting of web content pixels, for users who prefer
1997 // white-on-black. 2017 // white-on-black.
1998 IPC_MESSAGE_ROUTED1(ViewMsg_InvertWebContent, 2018 IPC_MESSAGE_ROUTED1(ViewMsg_InvertWebContent,
1999 bool /* invert */) 2019 bool /* invert */)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698