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

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

Issue 2568093003: Support parsing BackgroundSpans and UnderlineSpans in Android IME's commitText() (Closed)
Patch Set: Don't try to add default underline for commitText(), attempt to fix Mac builds Created 4 years 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 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 IPC_MESSAGE_ROUTED5( 165 IPC_MESSAGE_ROUTED5(
166 InputMsg_ImeSetComposition, 166 InputMsg_ImeSetComposition,
167 base::string16, /* text */ 167 base::string16, /* text */
168 std::vector<blink::WebCompositionUnderline>, /* underlines */ 168 std::vector<blink::WebCompositionUnderline>, /* underlines */
169 gfx::Range /* replacement_range */, 169 gfx::Range /* replacement_range */,
170 int, /* selectiont_start */ 170 int, /* selectiont_start */
171 int /* selection_end */) 171 int /* selection_end */)
172 172
173 // This message deletes the current composition, inserts specified text, and 173 // This message deletes the current composition, inserts specified text, and
174 // moves the cursor. 174 // moves the cursor.
175 IPC_MESSAGE_ROUTED3(InputMsg_ImeCommitText, 175 IPC_MESSAGE_ROUTED4(
176 base::string16 /* text */, 176 InputMsg_ImeCommitText,
177 gfx::Range /* replacement_range */, 177 base::string16 /* text */,
178 int /* relative_cursor_pos */) 178 std::vector<blink::WebCompositionUnderline>, /* underlines */
179 gfx::Range /* replacement_range */,
180 int /* relative_cursor_pos */)
179 181
180 // This message inserts the ongoing composition. 182 // This message inserts the ongoing composition.
181 IPC_MESSAGE_ROUTED1(InputMsg_ImeFinishComposingText, bool /* keep_selection */) 183 IPC_MESSAGE_ROUTED1(InputMsg_ImeFinishComposingText, bool /* keep_selection */)
182 184
183 // This message notifies the renderer that the next key event is bound to one 185 // This message notifies the renderer that the next key event is bound to one
184 // or more pre-defined edit commands. If the next key event is not handled 186 // or more pre-defined edit commands. If the next key event is not handled
185 // by webkit, the specified edit commands shall be executed against current 187 // by webkit, the specified edit commands shall be executed against current
186 // focused frame. 188 // focused frame.
187 // Parameters 189 // Parameters
188 // * edit_commands (see chrome/common/edit_command_types.h) 190 // * edit_commands (see chrome/common/edit_command_types.h)
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
309 // This IPC message sends the character bounds after every composition change 311 // This IPC message sends the character bounds after every composition change
310 // to always have correct bound info. 312 // to always have correct bound info.
311 IPC_MESSAGE_ROUTED2(InputHostMsg_ImeCompositionRangeChanged, 313 IPC_MESSAGE_ROUTED2(InputHostMsg_ImeCompositionRangeChanged,
312 gfx::Range /* composition range */, 314 gfx::Range /* composition range */,
313 std::vector<gfx::Rect> /* character bounds */) 315 std::vector<gfx::Rect> /* character bounds */)
314 316
315 // Adding a new message? Stick to the sort order above: first platform 317 // Adding a new message? Stick to the sort order above: first platform
316 // independent InputMsg, then ifdefs for platform specific InputMsg, then 318 // independent InputMsg, then ifdefs for platform specific InputMsg, then
317 // platform independent InputHostMsg, then ifdefs for platform specific 319 // platform independent InputHostMsg, then ifdefs for platform specific
318 // InputHostMsg. 320 // InputHostMsg.
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698