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

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

Issue 1999423002: tyrbot test for commitText (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: SetHasCompositionTextToTrue Created 4 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
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 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 159
160 // This message sends a string being composed with an input method. 160 // This message sends a string being composed with an input method.
161 IPC_MESSAGE_ROUTED5( 161 IPC_MESSAGE_ROUTED5(
162 InputMsg_ImeSetComposition, 162 InputMsg_ImeSetComposition,
163 base::string16, /* text */ 163 base::string16, /* text */
164 std::vector<blink::WebCompositionUnderline>, /* underlines */ 164 std::vector<blink::WebCompositionUnderline>, /* underlines */
165 gfx::Range /* replacement_range */, 165 gfx::Range /* replacement_range */,
166 int, /* selectiont_start */ 166 int, /* selectiont_start */
167 int /* selection_end */) 167 int /* selection_end */)
168 168
169 // This message confirms an ongoing composition. 169 // This message deletes the current composition, inserts specified text, and
170 IPC_MESSAGE_ROUTED3(InputMsg_ImeConfirmComposition, 170 // moves the cursor.
171 IPC_MESSAGE_ROUTED3(InputMsg_ImeCommitText,
171 base::string16 /* text */, 172 base::string16 /* text */,
172 gfx::Range /* replacement_range */, 173 gfx::Range /* replacement_range */,
173 bool /* keep_selection */) 174 int /* relative_cursor_pos */)
175
176 // This message inserts the ongoing composition.
177 IPC_MESSAGE_ROUTED1(InputMsg_ImeFinishComposingText, bool /* keep_selection */)
174 178
175 // This message notifies the renderer that the next key event is bound to one 179 // This message notifies the renderer that the next key event is bound to one
176 // or more pre-defined edit commands. If the next key event is not handled 180 // or more pre-defined edit commands. If the next key event is not handled
177 // by webkit, the specified edit commands shall be executed against current 181 // by webkit, the specified edit commands shall be executed against current
178 // focused frame. 182 // focused frame.
179 // Parameters 183 // Parameters
180 // * edit_commands (see chrome/common/edit_command_types.h) 184 // * edit_commands (see chrome/common/edit_command_types.h)
181 // Contains one or more edit commands. 185 // Contains one or more edit commands.
182 // See third_party/WebKit/Source/WebCore/editing/EditorCommand.cpp for detailed 186 // See third_party/WebKit/Source/WebCore/editing/EditorCommand.cpp for detailed
183 // definition of webkit edit commands. 187 // definition of webkit edit commands.
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
306 // This IPC message sends the character bounds after every composition change 310 // This IPC message sends the character bounds after every composition change
307 // to always have correct bound info. 311 // to always have correct bound info.
308 IPC_MESSAGE_ROUTED2(InputHostMsg_ImeCompositionRangeChanged, 312 IPC_MESSAGE_ROUTED2(InputHostMsg_ImeCompositionRangeChanged,
309 gfx::Range /* composition range */, 313 gfx::Range /* composition range */,
310 std::vector<gfx::Rect> /* character bounds */) 314 std::vector<gfx::Rect> /* character bounds */)
311 315
312 // Adding a new message? Stick to the sort order above: first platform 316 // Adding a new message? Stick to the sort order above: first platform
313 // independent InputMsg, then ifdefs for platform specific InputMsg, then 317 // independent InputMsg, then ifdefs for platform specific InputMsg, then
314 // platform independent InputHostMsg, then ifdefs for platform specific 318 // platform independent InputHostMsg, then ifdefs for platform specific
315 // InputHostMsg. 319 // InputHostMsg.
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698