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

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

Issue 7863003: Mouse lock implementation, including the renderer side and the Windows version of the browser side. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 3 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/common_param_traits.h" 10 #include "content/common/common_param_traits.h"
(...skipping 1314 matching lines...) Expand 10 before | Expand all | Expand 10 after
1325 std::vector<FilePath> /* paths of local copy */, 1325 std::vector<FilePath> /* paths of local copy */,
1326 FilePath /* local directory path */) 1326 FilePath /* local directory path */)
1327 1327
1328 // Sends updated information about the client firewall traversal policy. 1328 // Sends updated information about the client firewall traversal policy.
1329 // |traversal_data| is a json string containing policy information. 1329 // |traversal_data| is a json string containing policy information.
1330 // Sent due to a policy change or in response to a 1330 // Sent due to a policy change or in response to a
1331 // ViewHostMsg_RequestRemoteAccessClientFirewallTraversal message. 1331 // ViewHostMsg_RequestRemoteAccessClientFirewallTraversal message.
1332 IPC_MESSAGE_ROUTED1(ViewMsg_UpdateRemoteAccessClientFirewallTraversal, 1332 IPC_MESSAGE_ROUTED1(ViewMsg_UpdateRemoteAccessClientFirewallTraversal,
1333 std::string /* traversal_data */) 1333 std::string /* traversal_data */)
1334 1334
1335 // Tells the render side that a ViewHostMsg_LockMouse message has been
1336 // processed. |succeeded| indicates whether the mouse has been successfully
1337 // locked or not.
1338 IPC_MESSAGE_ROUTED1(ViewMsg_LockMouse_ACK,
1339 bool /* succeeded */)
1340 // Tells the render side that the mouse has been unlocked.
1341 IPC_MESSAGE_ROUTED0(ViewMsg_MouseLockLost);
1342
1335 // These three messages are sent to the parent RenderViewHost to display the 1343 // These three messages are sent to the parent RenderViewHost to display the
1336 // page/widget that was created by 1344 // page/widget that was created by
1337 // CreateWindow/CreateWidget/CreateFullscreenWidget. routing_id 1345 // CreateWindow/CreateWidget/CreateFullscreenWidget. routing_id
1338 // refers to the id that was returned from the Create message above. 1346 // refers to the id that was returned from the Create message above.
1339 // The initial_position parameter is a rectangle in screen coordinates. 1347 // The initial_position parameter is a rectangle in screen coordinates.
1340 // 1348 //
1341 // FUTURE: there will probably be flags here to control if the result is 1349 // FUTURE: there will probably be flags here to control if the result is
1342 // in a new window. 1350 // in a new window.
1343 IPC_MESSAGE_ROUTED4(ViewHostMsg_ShowView, 1351 IPC_MESSAGE_ROUTED4(ViewHostMsg_ShowView,
1344 int /* route_id */, 1352 int /* route_id */,
(...skipping 552 matching lines...) Expand 10 before | Expand all | Expand 10 after
1897 // other pages in the site and is saved, otherwise it only applies to this 1905 // other pages in the site and is saved, otherwise it only applies to this
1898 // tab. 1906 // tab.
1899 IPC_MESSAGE_ROUTED3(ViewHostMsg_UpdateZoomLimits, 1907 IPC_MESSAGE_ROUTED3(ViewHostMsg_UpdateZoomLimits,
1900 int /* minimum_percent */, 1908 int /* minimum_percent */,
1901 int /* maximum_percent */, 1909 int /* maximum_percent */,
1902 bool /* remember */) 1910 bool /* remember */)
1903 1911
1904 // Asks the browser to create a block of shared memory for the renderer to 1912 // Asks the browser to create a block of shared memory for the renderer to
1905 // fill in and pass back to the browser. 1913 // fill in and pass back to the browser.
1906 IPC_SYNC_MESSAGE_CONTROL1_1(ViewHostMsg_AllocateSharedMemoryBuffer, 1914 IPC_SYNC_MESSAGE_CONTROL1_1(ViewHostMsg_AllocateSharedMemoryBuffer,
1907 uint32 /* buffer size */, 1915 uint32 /* buffer size */,
1908 base::SharedMemoryHandle /* browser handle */) 1916 base::SharedMemoryHandle /* browser handle */)
1909 1917
1910 // Notify the browser that this render process can or can't be suddenly 1918 // Notify the browser that this render process can or can't be suddenly
1911 // terminated. 1919 // terminated.
1912 IPC_MESSAGE_CONTROL1(ViewHostMsg_SuddenTerminationChanged, 1920 IPC_MESSAGE_CONTROL1(ViewHostMsg_SuddenTerminationChanged,
1913 bool /* enabled */) 1921 bool /* enabled */)
1914 1922
1915 #if defined(OS_MACOSX) 1923 #if defined(OS_MACOSX)
1916 // On OSX, we cannot allocated shared memory from within the sandbox, so 1924 // On OSX, we cannot allocated shared memory from within the sandbox, so
1917 // this call exists for the renderer to ask the browser to allocate memory 1925 // this call exists for the renderer to ask the browser to allocate memory
1918 // on its behalf. We return a file descriptor to the POSIX shared memory. 1926 // on its behalf. We return a file descriptor to the POSIX shared memory.
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after
2125 int32 /* complete status */) 2133 int32 /* complete status */)
2126 2134
2127 // Request updated information about the client firewall traversal policy. 2135 // Request updated information about the client firewall traversal policy.
2128 // Will result in a ViewMsg_UpdateRemoteAccessClientFirewallTraversal message 2136 // Will result in a ViewMsg_UpdateRemoteAccessClientFirewallTraversal message
2129 // being sent back. 2137 // being sent back.
2130 IPC_MESSAGE_ROUTED0(ViewHostMsg_RequestRemoteAccessClientFirewallTraversal) 2138 IPC_MESSAGE_ROUTED0(ViewHostMsg_RequestRemoteAccessClientFirewallTraversal)
2131 2139
2132 // Notifies the browser of an event occurring in the media pipeline. 2140 // Notifies the browser of an event occurring in the media pipeline.
2133 IPC_MESSAGE_CONTROL1(ViewHostMsg_MediaLogEvent, 2141 IPC_MESSAGE_CONTROL1(ViewHostMsg_MediaLogEvent,
2134 media::MediaLogEvent /* event */) 2142 media::MediaLogEvent /* event */)
2143
2144 // Requests to lock the mouse. Will result in a ViewMsg_LockMouse_ACK message
2145 // being sent back.
2146 IPC_MESSAGE_ROUTED0(ViewHostMsg_LockMouse)
2147
2148 // Requests to unlock the mouse. A ViewMsg_MouseLockLost message will be sent
2149 // whenever the mouse is unlocked (which may or may not be caused by
2150 // ViewHostMsg_UnlockMouse).
2151 IPC_MESSAGE_ROUTED0(ViewHostMsg_UnlockMouse)
2152
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698