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

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

Issue 10443045: Silent mouse lock after unlock by target (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Update for silent mouse relock Created 8 years, 6 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 // 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"
11 #include "content/common/css_colors.h" 11 #include "content/common/css_colors.h"
12 #include "content/common/edit_command.h" 12 #include "content/common/edit_command.h"
13 #include "content/common/mouse_lock.h"
13 #include "content/common/navigation_gesture.h" 14 #include "content/common/navigation_gesture.h"
14 #include "content/common/view_message_enums.h" 15 #include "content/common/view_message_enums.h"
15 #include "content/public/common/common_param_traits.h" 16 #include "content/public/common/common_param_traits.h"
16 #include "content/public/common/context_menu_params.h" 17 #include "content/public/common/context_menu_params.h"
17 #include "content/public/common/file_chooser_params.h" 18 #include "content/public/common/file_chooser_params.h"
18 #include "content/public/common/frame_navigate_params.h" 19 #include "content/public/common/frame_navigate_params.h"
19 #include "content/public/common/page_zoom.h" 20 #include "content/public/common/page_zoom.h"
20 #include "content/public/common/referrer.h" 21 #include "content/public/common/referrer.h"
21 #include "content/public/common/renderer_preferences.h" 22 #include "content/public/common/renderer_preferences.h"
22 #include "content/public/common/selected_file_info.h" 23 #include "content/public/common/selected_file_info.h"
(...skipping 2021 matching lines...) Expand 10 before | Expand all | Expand 10 after
2044 GURL /* frame's url */, 2045 GURL /* frame's url */,
2045 std::string /* data buffer */, 2046 std::string /* data buffer */,
2046 int32 /* complete status */) 2047 int32 /* complete status */)
2047 2048
2048 // Notifies the browser of an event occurring in the media pipeline. 2049 // Notifies the browser of an event occurring in the media pipeline.
2049 IPC_MESSAGE_CONTROL1(ViewHostMsg_MediaLogEvent, 2050 IPC_MESSAGE_CONTROL1(ViewHostMsg_MediaLogEvent,
2050 media::MediaLogEvent /* event */) 2051 media::MediaLogEvent /* event */)
2051 2052
2052 // Requests to lock the mouse. Will result in a ViewMsg_LockMouse_ACK message 2053 // Requests to lock the mouse. Will result in a ViewMsg_LockMouse_ACK message
2053 // being sent back. 2054 // being sent back.
2054 IPC_MESSAGE_ROUTED1(ViewHostMsg_LockMouse, 2055 IPC_MESSAGE_ROUTED2(ViewHostMsg_LockMouse,
2055 bool /* user_gesture */) 2056 content::MouseLockSource /* lock_source */,
2057 content::MouseUnlockSource /* previous_unlock_source */)
2056 2058
2057 // Requests to unlock the mouse. A ViewMsg_MouseLockLost message will be sent 2059 // Requests to unlock the mouse. A ViewMsg_MouseLockLost message will be sent
2058 // whenever the mouse is unlocked (which may or may not be caused by 2060 // whenever the mouse is unlocked (which may or may not be caused by
2059 // ViewHostMsg_UnlockMouse). 2061 // ViewHostMsg_UnlockMouse).
2060 IPC_MESSAGE_ROUTED0(ViewHostMsg_UnlockMouse) 2062 IPC_MESSAGE_ROUTED0(ViewHostMsg_UnlockMouse)
2061 2063
2062 // Following message is used to communicate the values received by the 2064 // Following message is used to communicate the values received by the
2063 // callback binding the JS to Cpp. 2065 // callback binding the JS to Cpp.
2064 // An instance of browser that has an automation host listening to it can 2066 // An instance of browser that has an automation host listening to it can
2065 // have a javascript send a native value (string, number, boolean) to the 2067 // have a javascript send a native value (string, number, boolean) to the
2066 // listener in Cpp. (DomAutomationController) 2068 // listener in Cpp. (DomAutomationController)
2067 IPC_MESSAGE_ROUTED2(ViewHostMsg_DomOperationResponse, 2069 IPC_MESSAGE_ROUTED2(ViewHostMsg_DomOperationResponse,
2068 std::string /* json_string */, 2070 std::string /* json_string */,
2069 int /* automation_id */) 2071 int /* automation_id */)
2070 2072
2071 // Sent to the browser when the renderer detects it is blocked on a pepper 2073 // Sent to the browser when the renderer detects it is blocked on a pepper
2072 // plugin message for too long. This is also sent when it becomes unhung 2074 // plugin message for too long. This is also sent when it becomes unhung
2073 // (according to the value of is_hung). The browser can give the user the 2075 // (according to the value of is_hung). The browser can give the user the
2074 // option of killing the plugin. 2076 // option of killing the plugin.
2075 IPC_MESSAGE_ROUTED3(ViewHostMsg_PepperPluginHung, 2077 IPC_MESSAGE_ROUTED3(ViewHostMsg_PepperPluginHung,
2076 int /* plugin_child_id */, 2078 int /* plugin_child_id */,
2077 FilePath /* path */, 2079 FilePath /* path */,
2078 bool /* is_hung */) 2080 bool /* is_hung */)
2079 2081
2080 // Screen was rotated. Dispatched to the onorientationchange javascript API. 2082 // Screen was rotated. Dispatched to the onorientationchange javascript API.
2081 IPC_MESSAGE_ROUTED1(ViewMsg_OrientationChangeEvent, 2083 IPC_MESSAGE_ROUTED1(ViewMsg_OrientationChangeEvent,
2082 int /* orientation */) 2084 int /* orientation */)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698