Chromium Code Reviews| 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/basictypes.h" | |
| 9 #include "base/strings/string16.h" | 10 #include "base/strings/string16.h" |
| 10 #include "content/common/content_export.h" | 11 #include "content/common/content_export.h" |
| 11 #include "content/common/content_param_traits.h" | 12 #include "content/common/content_param_traits.h" |
| 12 #include "content/common/edit_command.h" | 13 #include "content/common/edit_command.h" |
| 13 #include "content/common/input/did_overscroll_params.h" | 14 #include "content/common/input/did_overscroll_params.h" |
| 14 #include "content/common/input/input_event.h" | 15 #include "content/common/input/input_event.h" |
| 15 #include "content/common/input/input_event_ack_state.h" | 16 #include "content/common/input/input_event_ack_state.h" |
| 16 #include "content/common/input/input_param_traits.h" | 17 #include "content/common/input/input_param_traits.h" |
| 17 #include "content/common/input/synthetic_gesture_packet.h" | 18 #include "content/common/input/synthetic_gesture_packet.h" |
| 18 #include "content/common/input/synthetic_gesture_params.h" | 19 #include "content/common/input/synthetic_gesture_params.h" |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 103 IPC_STRUCT_TRAITS_BEGIN(content::SyntheticTapGestureParams) | 104 IPC_STRUCT_TRAITS_BEGIN(content::SyntheticTapGestureParams) |
| 104 IPC_STRUCT_TRAITS_PARENT(content::SyntheticGestureParams) | 105 IPC_STRUCT_TRAITS_PARENT(content::SyntheticGestureParams) |
| 105 IPC_STRUCT_TRAITS_MEMBER(position) | 106 IPC_STRUCT_TRAITS_MEMBER(position) |
| 106 IPC_STRUCT_TRAITS_MEMBER(duration_ms) | 107 IPC_STRUCT_TRAITS_MEMBER(duration_ms) |
| 107 IPC_STRUCT_TRAITS_END() | 108 IPC_STRUCT_TRAITS_END() |
| 108 | 109 |
| 109 IPC_STRUCT_BEGIN(InputHostMsg_HandleInputEvent_ACK_Params) | 110 IPC_STRUCT_BEGIN(InputHostMsg_HandleInputEvent_ACK_Params) |
| 110 IPC_STRUCT_MEMBER(blink::WebInputEvent::Type, type) | 111 IPC_STRUCT_MEMBER(blink::WebInputEvent::Type, type) |
| 111 IPC_STRUCT_MEMBER(content::InputEventAckState, state) | 112 IPC_STRUCT_MEMBER(content::InputEventAckState, state) |
| 112 IPC_STRUCT_MEMBER(ui::LatencyInfo, latency) | 113 IPC_STRUCT_MEMBER(ui::LatencyInfo, latency) |
| 113 // TODO(jdduke): Use Optional<T> type to avoid heap alloc, crbug.com/375002. | 114 // TODO(jdduke): Use Optional<T> type to avoid heap alloc, crbug.com/375002. |
|
jdduke (slow)
2015/03/13 15:31:59
So, for some time I've been meaning to make the ac
| |
| 114 IPC_STRUCT_MEMBER(scoped_ptr<content::DidOverscrollParams>, overscroll) | 115 IPC_STRUCT_MEMBER(scoped_ptr<content::DidOverscrollParams>, overscroll) |
| 116 IPC_STRUCT_MEMBER(uint64, unique_event_id) | |
| 115 IPC_STRUCT_END() | 117 IPC_STRUCT_END() |
| 116 | 118 |
| 117 // Sends an input event to the render widget. | 119 // Sends an input event to the render widget. |
| 118 IPC_MESSAGE_ROUTED3(InputMsg_HandleInputEvent, | 120 IPC_MESSAGE_ROUTED3(InputMsg_HandleInputEvent, |
| 119 IPC::WebInputEventPointer /* event */, | 121 IPC::WebInputEventPointer /* event */, |
| 120 ui::LatencyInfo /* latency_info */, | 122 ui::LatencyInfo /* latency_info */, |
| 121 bool /* is_keyboard_shortcut */) | 123 bool /* is_keyboard_shortcut */) |
| 122 | 124 |
| 123 // Sends the cursor visibility state to the render widget. | 125 // Sends the cursor visibility state to the render widget. |
| 124 IPC_MESSAGE_ROUTED1(InputMsg_CursorVisibilityChange, | 126 IPC_MESSAGE_ROUTED1(InputMsg_CursorVisibilityChange, |
| (...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 268 // This IPC message sends the character bounds after every composition change | 270 // This IPC message sends the character bounds after every composition change |
| 269 // to always have correct bound info. | 271 // to always have correct bound info. |
| 270 IPC_MESSAGE_ROUTED2(InputHostMsg_ImeCompositionRangeChanged, | 272 IPC_MESSAGE_ROUTED2(InputHostMsg_ImeCompositionRangeChanged, |
| 271 gfx::Range /* composition range */, | 273 gfx::Range /* composition range */, |
| 272 std::vector<gfx::Rect> /* character bounds */) | 274 std::vector<gfx::Rect> /* character bounds */) |
| 273 | 275 |
| 274 // Adding a new message? Stick to the sort order above: first platform | 276 // Adding a new message? Stick to the sort order above: first platform |
| 275 // independent InputMsg, then ifdefs for platform specific InputMsg, then | 277 // independent InputMsg, then ifdefs for platform specific InputMsg, then |
| 276 // platform independent InputHostMsg, then ifdefs for platform specific | 278 // platform independent InputHostMsg, then ifdefs for platform specific |
| 277 // InputHostMsg. | 279 // InputHostMsg. |
| OLD | NEW |