| OLD | NEW |
| 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 "content/common/content_export.h" | 10 #include "content/common/content_export.h" |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 IPC_STRUCT_TRAITS_END() | 65 IPC_STRUCT_TRAITS_END() |
| 66 | 66 |
| 67 IPC_STRUCT_TRAITS_BEGIN(content::EditCommand) | 67 IPC_STRUCT_TRAITS_BEGIN(content::EditCommand) |
| 68 IPC_STRUCT_TRAITS_MEMBER(name) | 68 IPC_STRUCT_TRAITS_MEMBER(name) |
| 69 IPC_STRUCT_TRAITS_MEMBER(value) | 69 IPC_STRUCT_TRAITS_MEMBER(value) |
| 70 IPC_STRUCT_TRAITS_END() | 70 IPC_STRUCT_TRAITS_END() |
| 71 | 71 |
| 72 IPC_STRUCT_TRAITS_BEGIN(content::InputEvent) | 72 IPC_STRUCT_TRAITS_BEGIN(content::InputEvent) |
| 73 IPC_STRUCT_TRAITS_MEMBER(web_event) | 73 IPC_STRUCT_TRAITS_MEMBER(web_event) |
| 74 IPC_STRUCT_TRAITS_MEMBER(latency_info) | 74 IPC_STRUCT_TRAITS_MEMBER(latency_info) |
| 75 IPC_STRUCT_TRAITS_MEMBER(is_keyboard_shortcut) | |
| 76 IPC_STRUCT_TRAITS_END() | 75 IPC_STRUCT_TRAITS_END() |
| 77 | 76 |
| 78 IPC_STRUCT_TRAITS_BEGIN(content::SyntheticGestureParams) | 77 IPC_STRUCT_TRAITS_BEGIN(content::SyntheticGestureParams) |
| 79 IPC_STRUCT_TRAITS_MEMBER(gesture_source_type) | 78 IPC_STRUCT_TRAITS_MEMBER(gesture_source_type) |
| 80 IPC_STRUCT_TRAITS_END() | 79 IPC_STRUCT_TRAITS_END() |
| 81 | 80 |
| 82 IPC_STRUCT_TRAITS_BEGIN(content::SyntheticSmoothDragGestureParams) | 81 IPC_STRUCT_TRAITS_BEGIN(content::SyntheticSmoothDragGestureParams) |
| 83 IPC_STRUCT_TRAITS_PARENT(content::SyntheticGestureParams) | 82 IPC_STRUCT_TRAITS_PARENT(content::SyntheticGestureParams) |
| 84 IPC_STRUCT_TRAITS_MEMBER(start_point) | 83 IPC_STRUCT_TRAITS_MEMBER(start_point) |
| 85 IPC_STRUCT_TRAITS_MEMBER(distances) | 84 IPC_STRUCT_TRAITS_MEMBER(distances) |
| (...skipping 23 matching lines...) Expand all Loading... |
| 109 | 108 |
| 110 IPC_STRUCT_TRAITS_BEGIN(content::InputEventAck) | 109 IPC_STRUCT_TRAITS_BEGIN(content::InputEventAck) |
| 111 IPC_STRUCT_TRAITS_MEMBER(type) | 110 IPC_STRUCT_TRAITS_MEMBER(type) |
| 112 IPC_STRUCT_TRAITS_MEMBER(state) | 111 IPC_STRUCT_TRAITS_MEMBER(state) |
| 113 IPC_STRUCT_TRAITS_MEMBER(latency) | 112 IPC_STRUCT_TRAITS_MEMBER(latency) |
| 114 IPC_STRUCT_TRAITS_MEMBER(overscroll) | 113 IPC_STRUCT_TRAITS_MEMBER(overscroll) |
| 115 IPC_STRUCT_TRAITS_MEMBER(unique_touch_event_id) | 114 IPC_STRUCT_TRAITS_MEMBER(unique_touch_event_id) |
| 116 IPC_STRUCT_TRAITS_END() | 115 IPC_STRUCT_TRAITS_END() |
| 117 | 116 |
| 118 // Sends an input event to the render widget. | 117 // Sends an input event to the render widget. |
| 119 IPC_MESSAGE_ROUTED3(InputMsg_HandleInputEvent, | 118 IPC_MESSAGE_ROUTED2(InputMsg_HandleInputEvent, |
| 120 IPC::WebInputEventPointer /* event */, | 119 IPC::WebInputEventPointer /* event */, |
| 121 ui::LatencyInfo /* latency_info */, | 120 ui::LatencyInfo /* latency_info */) |
| 122 bool /* is_keyboard_shortcut */) | |
| 123 | 121 |
| 124 // Sends the cursor visibility state to the render widget. | 122 // Sends the cursor visibility state to the render widget. |
| 125 IPC_MESSAGE_ROUTED1(InputMsg_CursorVisibilityChange, | 123 IPC_MESSAGE_ROUTED1(InputMsg_CursorVisibilityChange, |
| 126 bool /* is_visible */) | 124 bool /* is_visible */) |
| 127 | 125 |
| 128 // Sets the text composition to be between the given start and end offsets in | 126 // Sets the text composition to be between the given start and end offsets in |
| 129 // the currently focused editable field. | 127 // the currently focused editable field. |
| 130 IPC_MESSAGE_ROUTED3(InputMsg_SetCompositionFromExistingText, | 128 IPC_MESSAGE_ROUTED3(InputMsg_SetCompositionFromExistingText, |
| 131 int /* start */, | 129 int /* start */, |
| 132 int /* end */, | 130 int /* end */, |
| (...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 286 // This IPC message sends the character bounds after every composition change | 284 // This IPC message sends the character bounds after every composition change |
| 287 // to always have correct bound info. | 285 // to always have correct bound info. |
| 288 IPC_MESSAGE_ROUTED2(InputHostMsg_ImeCompositionRangeChanged, | 286 IPC_MESSAGE_ROUTED2(InputHostMsg_ImeCompositionRangeChanged, |
| 289 gfx::Range /* composition range */, | 287 gfx::Range /* composition range */, |
| 290 std::vector<gfx::Rect> /* character bounds */) | 288 std::vector<gfx::Rect> /* character bounds */) |
| 291 | 289 |
| 292 // Adding a new message? Stick to the sort order above: first platform | 290 // Adding a new message? Stick to the sort order above: first platform |
| 293 // independent InputMsg, then ifdefs for platform specific InputMsg, then | 291 // independent InputMsg, then ifdefs for platform specific InputMsg, then |
| 294 // platform independent InputHostMsg, then ifdefs for platform specific | 292 // platform independent InputHostMsg, then ifdefs for platform specific |
| 295 // InputHostMsg. | 293 // InputHostMsg. |
| OLD | NEW |