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

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

Issue 2617443002: Implement ThreadedInputConnection.deleteSurroundingTextInCodePoints() (Closed)
Patch Set: Add some DCHECK Created 3 years, 10 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) 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 "build/build_config.h" 10 #include "build/build_config.h"
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 int /* end */, 156 int /* end */,
157 std::vector<blink::WebCompositionUnderline> /* underlines */) 157 std::vector<blink::WebCompositionUnderline> /* underlines */)
158 158
159 // Deletes the current selection plus the specified number of characters before 159 // Deletes the current selection plus the specified number of characters before
160 // and after the selection or caret. 160 // and after the selection or caret.
161 IPC_MESSAGE_ROUTED2(InputMsg_ExtendSelectionAndDelete, 161 IPC_MESSAGE_ROUTED2(InputMsg_ExtendSelectionAndDelete,
162 int /* before */, 162 int /* before */,
163 int /* after */) 163 int /* after */)
164 164
165 // Deletes text before and after the current cursor position, excluding the 165 // Deletes text before and after the current cursor position, excluding the
166 // selection. 166 // selection. The lengths are supplied in Java chars (UTF-16 Code Unit), not in
167 // code points or in glyphs.
167 IPC_MESSAGE_ROUTED2(InputMsg_DeleteSurroundingText, 168 IPC_MESSAGE_ROUTED2(InputMsg_DeleteSurroundingText,
168 int /* before */, 169 int /* before */,
169 int /* after */) 170 int /* after */)
170 171
172 // Deletes text before and after the current cursor position, excluding the
173 // selection. The lengths are supplied in code points, not in Java chars (UTF-16
174 // Code Unit) or in glyphs. Do nothing if there are one or more invalid
dcheng 2017/02/25 07:37:03 Nit: Do nothing => Does nothing
yabinh 2017/02/27 02:04:33 Done.
175 // surrogate pairs in the requested range
176 IPC_MESSAGE_ROUTED2(InputMsg_DeleteSurroundingTextInCodePoints,
177 int /* before */,
178 int /* after */)
179
171 // Selects between the given start and end offsets in the currently focused 180 // Selects between the given start and end offsets in the currently focused
172 // editable field. 181 // editable field.
173 IPC_MESSAGE_ROUTED2(InputMsg_SetEditableSelectionOffsets, 182 IPC_MESSAGE_ROUTED2(InputMsg_SetEditableSelectionOffsets,
174 int /* start */, 183 int /* start */,
175 int /* end */) 184 int /* end */)
176 185
177 // This message sends a string being composed with an input method. 186 // This message sends a string being composed with an input method.
178 IPC_MESSAGE_ROUTED5( 187 IPC_MESSAGE_ROUTED5(
179 InputMsg_ImeSetComposition, 188 InputMsg_ImeSetComposition,
180 base::string16, /* text */ 189 base::string16, /* text */
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
324 // This IPC message sends the character bounds after every composition change 333 // This IPC message sends the character bounds after every composition change
325 // to always have correct bound info. 334 // to always have correct bound info.
326 IPC_MESSAGE_ROUTED2(InputHostMsg_ImeCompositionRangeChanged, 335 IPC_MESSAGE_ROUTED2(InputHostMsg_ImeCompositionRangeChanged,
327 gfx::Range /* composition range */, 336 gfx::Range /* composition range */,
328 std::vector<gfx::Rect> /* character bounds */) 337 std::vector<gfx::Rect> /* character bounds */)
329 338
330 // Adding a new message? Stick to the sort order above: first platform 339 // Adding a new message? Stick to the sort order above: first platform
331 // independent InputMsg, then ifdefs for platform specific InputMsg, then 340 // independent InputMsg, then ifdefs for platform specific InputMsg, then
332 // platform independent InputHostMsg, then ifdefs for platform specific 341 // platform independent InputHostMsg, then ifdefs for platform specific
333 // InputHostMsg. 342 // InputHostMsg.
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698