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" |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 content::SyntheticGestureParams::GESTURE_SOURCE_TYPE_MAX) | 49 content::SyntheticGestureParams::GESTURE_SOURCE_TYPE_MAX) |
50 IPC_ENUM_TRAITS_MAX_VALUE( | 50 IPC_ENUM_TRAITS_MAX_VALUE( |
51 content::SyntheticGestureParams::GestureType, | 51 content::SyntheticGestureParams::GestureType, |
52 content::SyntheticGestureParams::SYNTHETIC_GESTURE_TYPE_MAX) | 52 content::SyntheticGestureParams::SYNTHETIC_GESTURE_TYPE_MAX) |
53 IPC_ENUM_TRAITS_MAX_VALUE( | 53 IPC_ENUM_TRAITS_MAX_VALUE( |
54 content::SyntheticPointerActionParams::PointerActionType, | 54 content::SyntheticPointerActionParams::PointerActionType, |
55 content::SyntheticPointerActionParams::PointerActionType:: | 55 content::SyntheticPointerActionParams::PointerActionType:: |
56 POINTER_ACTION_TYPE_MAX) | 56 POINTER_ACTION_TYPE_MAX) |
57 IPC_ENUM_TRAITS_MAX_VALUE(content::InputEventDispatchType, | 57 IPC_ENUM_TRAITS_MAX_VALUE(content::InputEventDispatchType, |
58 content::InputEventDispatchType::DISPATCH_TYPE_MAX) | 58 content::InputEventDispatchType::DISPATCH_TYPE_MAX) |
59 IPC_ENUM_TRAITS_VALIDATE(content::TouchAction, ( | 59 IPC_ENUM_TRAITS_MAX_VALUE(content::TouchAction, content::TOUCH_ACTION_MAX) |
60 value >= 0 && | |
61 value <= content::TOUCH_ACTION_MAX && | |
62 (!(value & content::TOUCH_ACTION_NONE) || | |
63 (value == content::TOUCH_ACTION_NONE)) && | |
64 (!(value & content::TOUCH_ACTION_PINCH_ZOOM) || | |
65 (value == content::TOUCH_ACTION_MANIPULATION)))) | |
66 | 60 |
67 IPC_STRUCT_TRAITS_BEGIN(ui::DidOverscrollParams) | 61 IPC_STRUCT_TRAITS_BEGIN(ui::DidOverscrollParams) |
68 IPC_STRUCT_TRAITS_MEMBER(accumulated_overscroll) | 62 IPC_STRUCT_TRAITS_MEMBER(accumulated_overscroll) |
69 IPC_STRUCT_TRAITS_MEMBER(latest_overscroll_delta) | 63 IPC_STRUCT_TRAITS_MEMBER(latest_overscroll_delta) |
70 IPC_STRUCT_TRAITS_MEMBER(current_fling_velocity) | 64 IPC_STRUCT_TRAITS_MEMBER(current_fling_velocity) |
71 IPC_STRUCT_TRAITS_MEMBER(causal_event_viewport_point) | 65 IPC_STRUCT_TRAITS_MEMBER(causal_event_viewport_point) |
72 IPC_STRUCT_TRAITS_END() | 66 IPC_STRUCT_TRAITS_END() |
73 | 67 |
74 IPC_STRUCT_TRAITS_BEGIN(content::EditCommand) | 68 IPC_STRUCT_TRAITS_BEGIN(content::EditCommand) |
75 IPC_STRUCT_TRAITS_MEMBER(name) | 69 IPC_STRUCT_TRAITS_MEMBER(name) |
(...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
313 // This IPC message sends the character bounds after every composition change | 307 // This IPC message sends the character bounds after every composition change |
314 // to always have correct bound info. | 308 // to always have correct bound info. |
315 IPC_MESSAGE_ROUTED2(InputHostMsg_ImeCompositionRangeChanged, | 309 IPC_MESSAGE_ROUTED2(InputHostMsg_ImeCompositionRangeChanged, |
316 gfx::Range /* composition range */, | 310 gfx::Range /* composition range */, |
317 std::vector<gfx::Rect> /* character bounds */) | 311 std::vector<gfx::Rect> /* character bounds */) |
318 | 312 |
319 // Adding a new message? Stick to the sort order above: first platform | 313 // Adding a new message? Stick to the sort order above: first platform |
320 // independent InputMsg, then ifdefs for platform specific InputMsg, then | 314 // independent InputMsg, then ifdefs for platform specific InputMsg, then |
321 // platform independent InputHostMsg, then ifdefs for platform specific | 315 // platform independent InputHostMsg, then ifdefs for platform specific |
322 // InputHostMsg. | 316 // InputHostMsg. |
OLD | NEW |