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

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

Issue 657803002: Update touch selection to only modify one selection point at a time. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 6 years, 1 month 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
« no previous file with comments | « content/browser/web_contents/web_contents_impl.cc ('k') | content/common/view_messages.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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 input events and other messages that require processing in 5 // IPC messages for input events and other messages that require processing in
6 // order relative to input events. 6 // order relative to input events.
7 // Multiply-included message file, hence no include guard. 7 // Multiply-included message file, hence no include guard.
8 8
9 #include "base/strings/string16.h" 9 #include "base/strings/string16.h"
10 #include "content/common/content_export.h" 10 #include "content/common/content_export.h"
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after
192 IPC_MESSAGE_ROUTED1(InputMsg_ReplaceMisspelling, 192 IPC_MESSAGE_ROUTED1(InputMsg_ReplaceMisspelling,
193 base::string16) 193 base::string16)
194 IPC_MESSAGE_ROUTED0(InputMsg_Delete) 194 IPC_MESSAGE_ROUTED0(InputMsg_Delete)
195 IPC_MESSAGE_ROUTED0(InputMsg_SelectAll) 195 IPC_MESSAGE_ROUTED0(InputMsg_SelectAll)
196 196
197 IPC_MESSAGE_ROUTED0(InputMsg_Unselect) 197 IPC_MESSAGE_ROUTED0(InputMsg_Unselect)
198 198
199 // Requests the renderer to select the region between two points. 199 // Requests the renderer to select the region between two points.
200 // Expects a SelectRange_ACK message when finished. 200 // Expects a SelectRange_ACK message when finished.
201 IPC_MESSAGE_ROUTED2(InputMsg_SelectRange, 201 IPC_MESSAGE_ROUTED2(InputMsg_SelectRange,
202 gfx::Point /* start */, 202 gfx::Point /* base */,
203 gfx::Point /* end */) 203 gfx::Point /* extent */)
204
205 // Requests the renderer to move the selection extent point to a new position.
206 // Expects a MoveRangeSelectionExtent_ACK message when finished.
207 IPC_MESSAGE_ROUTED1(InputMsg_MoveRangeSelectionExtent,
208 gfx::Point /* extent */)
204 209
205 // Requests the renderer to move the caret selection toward the point. 210 // Requests the renderer to move the caret selection toward the point.
206 // Expects a MoveCaret_ACK message when finished. 211 // Expects a MoveCaret_ACK message when finished.
207 IPC_MESSAGE_ROUTED1(InputMsg_MoveCaret, 212 IPC_MESSAGE_ROUTED1(InputMsg_MoveCaret,
208 gfx::Point /* location */) 213 gfx::Point /* location */)
209 214
210 #if defined(OS_ANDROID) 215 #if defined(OS_ANDROID)
211 // Sent when the user clicks on the find result bar to activate a find result. 216 // Sent when the user clicks on the find result bar to activate a find result.
212 // The point (x,y) is in fractions of the content document's width and height. 217 // The point (x,y) is in fractions of the content document's width and height.
213 IPC_MESSAGE_ROUTED3(InputMsg_ActivateNearestFindResult, 218 IPC_MESSAGE_ROUTED3(InputMsg_ActivateNearestFindResult,
(...skipping 16 matching lines...) Expand all
230 235
231 // Notifies the allowed touch actions for a new touch point. 236 // Notifies the allowed touch actions for a new touch point.
232 IPC_MESSAGE_ROUTED1(InputHostMsg_SetTouchAction, 237 IPC_MESSAGE_ROUTED1(InputHostMsg_SetTouchAction,
233 content::TouchAction /* touch_action */) 238 content::TouchAction /* touch_action */)
234 239
235 // Sent by the compositor when input scroll events are dropped due to bounds 240 // Sent by the compositor when input scroll events are dropped due to bounds
236 // restrictions on the root scroll offset. 241 // restrictions on the root scroll offset.
237 IPC_MESSAGE_ROUTED1(InputHostMsg_DidOverscroll, 242 IPC_MESSAGE_ROUTED1(InputHostMsg_DidOverscroll,
238 content::DidOverscrollParams /* params */) 243 content::DidOverscrollParams /* params */)
239 244
245 // Acknowledges receipt of a InputMsg_MoveCaret message.
246 IPC_MESSAGE_ROUTED0(InputHostMsg_MoveCaret_ACK)
247
248 // Acknowledges receipt of a InputMsg_MoveRangeSelectionExtent message.
249 IPC_MESSAGE_ROUTED0(InputHostMsg_MoveRangeSelectionExtent_ACK)
250
251 // Acknowledges receipt of a InputMsg_SelectRange message.
252 IPC_MESSAGE_ROUTED0(InputHostMsg_SelectRange_ACK)
253
240 // Required for cancelling an ongoing input method composition. 254 // Required for cancelling an ongoing input method composition.
241 IPC_MESSAGE_ROUTED0(InputHostMsg_ImeCancelComposition) 255 IPC_MESSAGE_ROUTED0(InputHostMsg_ImeCancelComposition)
242 256
243 #if defined(OS_MACOSX) || defined(USE_AURA) || defined(OS_ANDROID) 257 #if defined(OS_MACOSX) || defined(USE_AURA) || defined(OS_ANDROID)
244 // On Mac and Aura IME can request composition character bounds 258 // On Mac and Aura IME can request composition character bounds
245 // synchronously (see crbug.com/120597). This IPC message sends the character 259 // synchronously (see crbug.com/120597). This IPC message sends the character
246 // bounds after every composition change to always have correct bound info. 260 // bounds after every composition change to always have correct bound info.
247 // This IPC message is also used on Android 5.0 and above. 261 // This IPC message is also used on Android 5.0 and above.
248 IPC_MESSAGE_ROUTED2(InputHostMsg_ImeCompositionRangeChanged, 262 IPC_MESSAGE_ROUTED2(InputHostMsg_ImeCompositionRangeChanged,
249 gfx::Range /* composition range */, 263 gfx::Range /* composition range */,
250 std::vector<gfx::Rect> /* character bounds */) 264 std::vector<gfx::Rect> /* character bounds */)
251 #endif 265 #endif
252 266
253 // Adding a new message? Stick to the sort order above: first platform 267 // Adding a new message? Stick to the sort order above: first platform
254 // independent InputMsg, then ifdefs for platform specific InputMsg, then 268 // independent InputMsg, then ifdefs for platform specific InputMsg, then
255 // platform independent InputHostMsg, then ifdefs for platform specific 269 // platform independent InputHostMsg, then ifdefs for platform specific
256 // InputHostMsg. 270 // InputHostMsg.
OLDNEW
« no previous file with comments | « content/browser/web_contents/web_contents_impl.cc ('k') | content/common/view_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698