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

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

Issue 1877073003: Respect the order of input messages from browser to renderer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add DCHECKs for thread Created 4 years, 6 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 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 int /* start */, 144 int /* start */,
145 int /* end */, 145 int /* end */,
146 std::vector<blink::WebCompositionUnderline> /* underlines */) 146 std::vector<blink::WebCompositionUnderline> /* underlines */)
147 147
148 // Deletes the current selection plus the specified number of characters before 148 // Deletes the current selection plus the specified number of characters before
149 // and after the selection or caret. 149 // and after the selection or caret.
150 IPC_MESSAGE_ROUTED2(InputMsg_ExtendSelectionAndDelete, 150 IPC_MESSAGE_ROUTED2(InputMsg_ExtendSelectionAndDelete,
151 int /* before */, 151 int /* before */,
152 int /* after */) 152 int /* after */)
153 153
154 // Selects between the given start and end offsets in the currently focused
155 // editable field.
156 IPC_MESSAGE_ROUTED2(InputMsg_SetEditableSelectionOffsets,
157 int /* start */,
158 int /* end */)
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 */
158 std::vector<blink::WebCompositionUnderline>, /* underlines */ 164 std::vector<blink::WebCompositionUnderline>, /* underlines */
159 gfx::Range /* replacement_range */, 165 gfx::Range /* replacement_range */,
160 int, /* selectiont_start */ 166 int, /* selectiont_start */
161 int /* selection_end */) 167 int /* selection_end */)
162 168
163 // This message confirms an ongoing composition. 169 // This message confirms an ongoing composition.
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
295 // This IPC message sends the character bounds after every composition change 301 // This IPC message sends the character bounds after every composition change
296 // to always have correct bound info. 302 // to always have correct bound info.
297 IPC_MESSAGE_ROUTED2(InputHostMsg_ImeCompositionRangeChanged, 303 IPC_MESSAGE_ROUTED2(InputHostMsg_ImeCompositionRangeChanged,
298 gfx::Range /* composition range */, 304 gfx::Range /* composition range */,
299 std::vector<gfx::Rect> /* character bounds */) 305 std::vector<gfx::Rect> /* character bounds */)
300 306
301 // Adding a new message? Stick to the sort order above: first platform 307 // Adding a new message? Stick to the sort order above: first platform
302 // independent InputMsg, then ifdefs for platform specific InputMsg, then 308 // independent InputMsg, then ifdefs for platform specific InputMsg, then
303 // platform independent InputHostMsg, then ifdefs for platform specific 309 // platform independent InputHostMsg, then ifdefs for platform specific
304 // InputHostMsg. 310 // InputHostMsg.
OLDNEW
« no previous file with comments | « content/common/frame_messages.h ('k') | content/public/android/javatests/src/org/chromium/content/browser/input/ImeTest.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698