Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(318)

Side by Side Diff: content/common/input_messages.h

Issue 2126323002: Add support for touch-action: pinch-zoom. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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(content::DidOverscrollParams) 61 IPC_STRUCT_TRAITS_BEGIN(content::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 225 matching lines...) Expand 10 before | Expand all | Expand 10 after
301 // This IPC message sends the character bounds after every composition change 295 // This IPC message sends the character bounds after every composition change
302 // to always have correct bound info. 296 // to always have correct bound info.
303 IPC_MESSAGE_ROUTED2(InputHostMsg_ImeCompositionRangeChanged, 297 IPC_MESSAGE_ROUTED2(InputHostMsg_ImeCompositionRangeChanged,
304 gfx::Range /* composition range */, 298 gfx::Range /* composition range */,
305 std::vector<gfx::Rect> /* character bounds */) 299 std::vector<gfx::Rect> /* character bounds */)
306 300
307 // Adding a new message? Stick to the sort order above: first platform 301 // Adding a new message? Stick to the sort order above: first platform
308 // independent InputMsg, then ifdefs for platform specific InputMsg, then 302 // independent InputMsg, then ifdefs for platform specific InputMsg, then
309 // platform independent InputHostMsg, then ifdefs for platform specific 303 // platform independent InputHostMsg, then ifdefs for platform specific
310 // InputHostMsg. 304 // InputHostMsg.
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698