| Index: content/common/input_messages.h
|
| diff --git a/content/common/input_messages.h b/content/common/input_messages.h
|
| index 7221f95d3d31c18cd2cfd6877c938d8ccab62dbe..3435e6dc9fddb7558c098c2b705f904cb94b5da0 100644
|
| --- a/content/common/input_messages.h
|
| +++ b/content/common/input_messages.h
|
| @@ -28,6 +28,7 @@
|
| #include "content/common/input/touch_action.h"
|
| #include "ipc/ipc_message_macros.h"
|
| #include "third_party/WebKit/public/platform/WebInputEvent.h"
|
| +#include "third_party/WebKit/public/web/WebTextSuggestionInfo.h"
|
| #include "ui/events/blink/did_overscroll_params.h"
|
| #include "ui/events/ipc/latency_info_param_traits.h"
|
| #include "ui/gfx/geometry/point.h"
|
| @@ -135,6 +136,18 @@ IPC_STRUCT_TRAITS_BEGIN(content::InputEventAck)
|
| IPC_STRUCT_TRAITS_MEMBER(unique_touch_event_id)
|
| IPC_STRUCT_TRAITS_END()
|
|
|
| +IPC_STRUCT_TRAITS_BEGIN(blink::WebTextSuggestionInfo)
|
| + IPC_STRUCT_TRAITS_MEMBER(documentMarkerID)
|
| + IPC_STRUCT_TRAITS_MEMBER(suggestionStart)
|
| + IPC_STRUCT_TRAITS_MEMBER(suggestionEnd)
|
| + IPC_STRUCT_TRAITS_MEMBER(spanStart)
|
| + IPC_STRUCT_TRAITS_MEMBER(spanEnd)
|
| + IPC_STRUCT_TRAITS_MEMBER(suggestionIndex)
|
| + IPC_STRUCT_TRAITS_MEMBER(prefix)
|
| + IPC_STRUCT_TRAITS_MEMBER(suggestion)
|
| + IPC_STRUCT_TRAITS_MEMBER(suffix)
|
| +IPC_STRUCT_TRAITS_END()
|
| +
|
| // Sends an input event to the render widget. The input event in general
|
| // contains a list of coalesced events and one event that is representative of
|
| // all those events (https://w3c.github.io/pointerevents/extension.html).
|
| @@ -183,6 +196,14 @@ IPC_MESSAGE_ROUTED5(
|
| int, /* selectiont_start */
|
| int /* selection_end */)
|
|
|
| +IPC_MESSAGE_ROUTED2(InputMsg_ApplySuggestionReplacement,
|
| + int /* document_marker_ID */,
|
| + int /* suggestion_index */)
|
| +
|
| +IPC_MESSAGE_ROUTED0(InputMsg_DeleteSuggestionHighlight)
|
| +
|
| +IPC_MESSAGE_ROUTED0(InputMsg_SuggestionMenuClosed)
|
| +
|
| // This message deletes the current composition, inserts specified text, and
|
| // moves the cursor.
|
| IPC_MESSAGE_ROUTED4(
|
| @@ -327,6 +348,9 @@ IPC_MESSAGE_ROUTED2(InputHostMsg_ImeCompositionRangeChanged,
|
| gfx::Range /* composition range */,
|
| std::vector<gfx::Rect> /* character bounds */)
|
|
|
| +IPC_MESSAGE_ROUTED1(InputHostMsg_ShowTextSuggestionMenu,
|
| + std::vector<blink::WebTextSuggestionInfo>)
|
| +
|
| // Adding a new message? Stick to the sort order above: first platform
|
| // independent InputMsg, then ifdefs for platform specific InputMsg, then
|
| // platform independent InputHostMsg, then ifdefs for platform specific
|
|
|