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 "build/build_config.h" | 10 #include "build/build_config.h" |
11 #include "cc/input/scroll_boundary_behavior.h" | |
11 #include "cc/input/touch_action.h" | 12 #include "cc/input/touch_action.h" |
12 #include "content/common/content_export.h" | 13 #include "content/common/content_export.h" |
13 #include "content/common/content_param_traits.h" | 14 #include "content/common/content_param_traits.h" |
14 #include "content/common/edit_command.h" | 15 #include "content/common/edit_command.h" |
15 #include "content/common/input/input_event.h" | 16 #include "content/common/input/input_event.h" |
16 #include "content/common/input/input_event_ack.h" | 17 #include "content/common/input/input_event_ack.h" |
17 #include "content/common/input/input_event_ack_source.h" | 18 #include "content/common/input/input_event_ack_source.h" |
18 #include "content/common/input/input_event_ack_state.h" | 19 #include "content/common/input/input_event_ack_state.h" |
19 #include "content/common/input/input_event_dispatch_type.h" | 20 #include "content/common/input/input_event_dispatch_type.h" |
20 #include "content/common/input/input_param_traits.h" | 21 #include "content/common/input/input_param_traits.h" |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
74 (blink::WebGestureDevice::kWebGestureDeviceCount - 1)) | 75 (blink::WebGestureDevice::kWebGestureDeviceCount - 1)) |
75 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebInputEvent::DispatchType, | 76 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebInputEvent::DispatchType, |
76 blink::WebInputEvent::DispatchType::kLastDispatchType) | 77 blink::WebInputEvent::DispatchType::kLastDispatchType) |
77 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebGestureEvent::ScrollUnits, | 78 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebGestureEvent::ScrollUnits, |
78 blink::WebGestureEvent::ScrollUnits::kLastScrollUnit) | 79 blink::WebGestureEvent::ScrollUnits::kLastScrollUnit) |
79 IPC_ENUM_TRAITS_MAX_VALUE( | 80 IPC_ENUM_TRAITS_MAX_VALUE( |
80 blink::WebGestureEvent::InertialPhaseState, | 81 blink::WebGestureEvent::InertialPhaseState, |
81 blink::WebGestureEvent::InertialPhaseState::kLastPhase) | 82 blink::WebGestureEvent::InertialPhaseState::kLastPhase) |
82 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebTouchPoint::State, | 83 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebTouchPoint::State, |
83 blink::WebTouchPoint::State::kStateMax) | 84 blink::WebTouchPoint::State::kStateMax) |
85 IPC_ENUM_TRAITS_MAX_VALUE( | |
86 cc::ScrollBoundaryBehavior::ScrollBoundaryBehaviorType, | |
87 cc::ScrollBoundaryBehavior::ScrollBoundaryBehaviorType:: | |
88 kScrollBoundaryBehaviorTypeContain) | |
dtapuska
2017/08/22 14:51:04
Can you add a max value in the enum value set? It
sunyunjia
2017/08/22 23:55:37
Done.
| |
84 | 89 |
85 IPC_STRUCT_TRAITS_BEGIN(ui::DidOverscrollParams) | 90 IPC_STRUCT_TRAITS_BEGIN(ui::DidOverscrollParams) |
86 IPC_STRUCT_TRAITS_MEMBER(accumulated_overscroll) | 91 IPC_STRUCT_TRAITS_MEMBER(accumulated_overscroll) |
87 IPC_STRUCT_TRAITS_MEMBER(latest_overscroll_delta) | 92 IPC_STRUCT_TRAITS_MEMBER(latest_overscroll_delta) |
88 IPC_STRUCT_TRAITS_MEMBER(current_fling_velocity) | 93 IPC_STRUCT_TRAITS_MEMBER(current_fling_velocity) |
89 IPC_STRUCT_TRAITS_MEMBER(causal_event_viewport_point) | 94 IPC_STRUCT_TRAITS_MEMBER(causal_event_viewport_point) |
95 IPC_STRUCT_TRAITS_MEMBER(scroll_boundary_behavior) | |
96 IPC_STRUCT_TRAITS_END() | |
97 | |
98 IPC_STRUCT_TRAITS_BEGIN(cc::ScrollBoundaryBehavior) | |
99 IPC_STRUCT_TRAITS_MEMBER(x) | |
100 IPC_STRUCT_TRAITS_MEMBER(y) | |
90 IPC_STRUCT_TRAITS_END() | 101 IPC_STRUCT_TRAITS_END() |
91 | 102 |
92 IPC_STRUCT_TRAITS_BEGIN(content::EditCommand) | 103 IPC_STRUCT_TRAITS_BEGIN(content::EditCommand) |
93 IPC_STRUCT_TRAITS_MEMBER(name) | 104 IPC_STRUCT_TRAITS_MEMBER(name) |
94 IPC_STRUCT_TRAITS_MEMBER(value) | 105 IPC_STRUCT_TRAITS_MEMBER(value) |
95 IPC_STRUCT_TRAITS_END() | 106 IPC_STRUCT_TRAITS_END() |
96 | 107 |
97 IPC_STRUCT_TRAITS_BEGIN(content::InputEvent) | 108 IPC_STRUCT_TRAITS_BEGIN(content::InputEvent) |
98 IPC_STRUCT_TRAITS_MEMBER(web_event) | 109 IPC_STRUCT_TRAITS_MEMBER(web_event) |
99 IPC_STRUCT_TRAITS_MEMBER(latency_info) | 110 IPC_STRUCT_TRAITS_MEMBER(latency_info) |
(...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
361 // This IPC message sends the character bounds after every composition change | 372 // This IPC message sends the character bounds after every composition change |
362 // to always have correct bound info. | 373 // to always have correct bound info. |
363 IPC_MESSAGE_ROUTED2(InputHostMsg_ImeCompositionRangeChanged, | 374 IPC_MESSAGE_ROUTED2(InputHostMsg_ImeCompositionRangeChanged, |
364 gfx::Range /* composition range */, | 375 gfx::Range /* composition range */, |
365 std::vector<gfx::Rect> /* character bounds */) | 376 std::vector<gfx::Rect> /* character bounds */) |
366 | 377 |
367 // Adding a new message? Stick to the sort order above: first platform | 378 // Adding a new message? Stick to the sort order above: first platform |
368 // independent InputMsg, then ifdefs for platform specific InputMsg, then | 379 // independent InputMsg, then ifdefs for platform specific InputMsg, then |
369 // platform independent InputHostMsg, then ifdefs for platform specific | 380 // platform independent InputHostMsg, then ifdefs for platform specific |
370 // InputHostMsg. | 381 // InputHostMsg. |
OLD | NEW |