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

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

Issue 1889053003: Fix InputConnection.deleteSurroundingText() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: change back to patch set #25 Created 4 years, 2 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 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 int /* start */, 138 int /* start */,
139 int /* end */, 139 int /* end */,
140 std::vector<blink::WebCompositionUnderline> /* underlines */) 140 std::vector<blink::WebCompositionUnderline> /* underlines */)
141 141
142 // Deletes the current selection plus the specified number of characters before 142 // Deletes the current selection plus the specified number of characters before
143 // and after the selection or caret. 143 // and after the selection or caret.
144 IPC_MESSAGE_ROUTED2(InputMsg_ExtendSelectionAndDelete, 144 IPC_MESSAGE_ROUTED2(InputMsg_ExtendSelectionAndDelete,
145 int /* before */, 145 int /* before */,
146 int /* after */) 146 int /* after */)
147 147
148 // Deletes text before and after the current cursor position, excluding the
149 // selection.
150 IPC_MESSAGE_ROUTED2(InputMsg_DeleteSurroundingText,
151 int /* before */,
152 int /* after */)
153
148 // Selects between the given start and end offsets in the currently focused 154 // Selects between the given start and end offsets in the currently focused
149 // editable field. 155 // editable field.
150 IPC_MESSAGE_ROUTED2(InputMsg_SetEditableSelectionOffsets, 156 IPC_MESSAGE_ROUTED2(InputMsg_SetEditableSelectionOffsets,
151 int /* start */, 157 int /* start */,
152 int /* end */) 158 int /* end */)
153 159
154 // This message sends a string being composed with an input method. 160 // This message sends a string being composed with an input method.
155 IPC_MESSAGE_ROUTED5( 161 IPC_MESSAGE_ROUTED5(
156 InputMsg_ImeSetComposition, 162 InputMsg_ImeSetComposition,
157 base::string16, /* text */ 163 base::string16, /* text */
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
307 // This IPC message sends the character bounds after every composition change 313 // This IPC message sends the character bounds after every composition change
308 // to always have correct bound info. 314 // to always have correct bound info.
309 IPC_MESSAGE_ROUTED2(InputHostMsg_ImeCompositionRangeChanged, 315 IPC_MESSAGE_ROUTED2(InputHostMsg_ImeCompositionRangeChanged,
310 gfx::Range /* composition range */, 316 gfx::Range /* composition range */,
311 std::vector<gfx::Rect> /* character bounds */) 317 std::vector<gfx::Rect> /* character bounds */)
312 318
313 // Adding a new message? Stick to the sort order above: first platform 319 // Adding a new message? Stick to the sort order above: first platform
314 // independent InputMsg, then ifdefs for platform specific InputMsg, then 320 // independent InputMsg, then ifdefs for platform specific InputMsg, then
315 // platform independent InputHostMsg, then ifdefs for platform specific 321 // platform independent InputHostMsg, then ifdefs for platform specific
316 // InputHostMsg. 322 // InputHostMsg.
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698