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

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

Issue 2210533004: Revert of Do not calculate composition bounds until IME requests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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 244 matching lines...) Expand 10 before | Expand all | Expand 10 after
255 #if defined(OS_ANDROID) 255 #if defined(OS_ANDROID)
256 // Sent by the browser as ACK to ViewHostMsg_TextInputState when necessary. 256 // Sent by the browser as ACK to ViewHostMsg_TextInputState when necessary.
257 // NOTE: ImeEventAck and other Ime* messages should be of the same type, 257 // NOTE: ImeEventAck and other Ime* messages should be of the same type,
258 // otherwise a race condition can happen. 258 // otherwise a race condition can happen.
259 IPC_MESSAGE_ROUTED0(InputMsg_ImeEventAck) 259 IPC_MESSAGE_ROUTED0(InputMsg_ImeEventAck)
260 260
261 // Request from browser to update text input state. 261 // Request from browser to update text input state.
262 IPC_MESSAGE_ROUTED0(InputMsg_RequestTextInputStateUpdate) 262 IPC_MESSAGE_ROUTED0(InputMsg_RequestTextInputStateUpdate)
263 #endif 263 #endif
264 264
265 // Request from browser to update the cursor and composition information.
266 IPC_MESSAGE_ROUTED2(InputMsg_RequestCompositionUpdate,
267 bool /* immediate request */,
268 bool /* monitor request */)
269
270 IPC_MESSAGE_ROUTED0(InputMsg_SyntheticGestureCompleted) 265 IPC_MESSAGE_ROUTED0(InputMsg_SyntheticGestureCompleted)
271 266
272 // ----------------------------------------------------------------------------- 267 // -----------------------------------------------------------------------------
273 // Messages sent from the renderer to the browser. 268 // Messages sent from the renderer to the browser.
274 269
275 // Acknowledges receipt of a InputMsg_HandleInputEvent message. 270 // Acknowledges receipt of a InputMsg_HandleInputEvent message.
276 IPC_MESSAGE_ROUTED1(InputHostMsg_HandleInputEvent_ACK, 271 IPC_MESSAGE_ROUTED1(InputHostMsg_HandleInputEvent_ACK,
277 content::InputEventAck /* ack */) 272 content::InputEventAck /* ack */)
278 273
279 IPC_MESSAGE_ROUTED1(InputHostMsg_QueueSyntheticGesture, 274 IPC_MESSAGE_ROUTED1(InputHostMsg_QueueSyntheticGesture,
(...skipping 26 matching lines...) Expand all
306 // This IPC message sends the character bounds after every composition change 301 // This IPC message sends the character bounds after every composition change
307 // to always have correct bound info. 302 // to always have correct bound info.
308 IPC_MESSAGE_ROUTED2(InputHostMsg_ImeCompositionRangeChanged, 303 IPC_MESSAGE_ROUTED2(InputHostMsg_ImeCompositionRangeChanged,
309 gfx::Range /* composition range */, 304 gfx::Range /* composition range */,
310 std::vector<gfx::Rect> /* character bounds */) 305 std::vector<gfx::Rect> /* character bounds */)
311 306
312 // 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
313 // independent InputMsg, then ifdefs for platform specific InputMsg, then 308 // independent InputMsg, then ifdefs for platform specific InputMsg, then
314 // platform independent InputHostMsg, then ifdefs for platform specific 309 // platform independent InputHostMsg, then ifdefs for platform specific
315 // InputHostMsg. 310 // InputHostMsg.
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698