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

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

Issue 2915783003: Add validation to a few WebPointerProperties. (Closed)
Patch Set: Created 3 years, 6 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
« no previous file with comments | « content/common/DEPS ('k') | third_party/WebKit/public/platform/WebPointerProperties.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 10 matching lines...) Expand all
21 #include "content/common/input/synthetic_gesture_packet.h" 21 #include "content/common/input/synthetic_gesture_packet.h"
22 #include "content/common/input/synthetic_gesture_params.h" 22 #include "content/common/input/synthetic_gesture_params.h"
23 #include "content/common/input/synthetic_pinch_gesture_params.h" 23 #include "content/common/input/synthetic_pinch_gesture_params.h"
24 #include "content/common/input/synthetic_pointer_action_list_params.h" 24 #include "content/common/input/synthetic_pointer_action_list_params.h"
25 #include "content/common/input/synthetic_pointer_action_params.h" 25 #include "content/common/input/synthetic_pointer_action_params.h"
26 #include "content/common/input/synthetic_smooth_drag_gesture_params.h" 26 #include "content/common/input/synthetic_smooth_drag_gesture_params.h"
27 #include "content/common/input/synthetic_smooth_scroll_gesture_params.h" 27 #include "content/common/input/synthetic_smooth_scroll_gesture_params.h"
28 #include "content/common/input/synthetic_tap_gesture_params.h" 28 #include "content/common/input/synthetic_tap_gesture_params.h"
29 #include "ipc/ipc_message_macros.h" 29 #include "ipc/ipc_message_macros.h"
30 #include "third_party/WebKit/public/platform/WebInputEvent.h" 30 #include "third_party/WebKit/public/platform/WebInputEvent.h"
31 #include "third_party/WebKit/public/platform/WebPointerProperties.h"
31 #include "ui/events/blink/did_overscroll_params.h" 32 #include "ui/events/blink/did_overscroll_params.h"
32 #include "ui/gfx/geometry/point.h" 33 #include "ui/gfx/geometry/point.h"
33 #include "ui/gfx/geometry/rect.h" 34 #include "ui/gfx/geometry/rect.h"
34 #include "ui/gfx/geometry/vector2d_f.h" 35 #include "ui/gfx/geometry/vector2d_f.h"
35 #include "ui/gfx/ipc/gfx_param_traits.h" 36 #include "ui/gfx/ipc/gfx_param_traits.h"
36 #include "ui/gfx/ipc/skia/gfx_skia_param_traits.h" 37 #include "ui/gfx/ipc/skia/gfx_skia_param_traits.h"
37 #include "ui/gfx/range/range.h" 38 #include "ui/gfx/range/range.h"
38 #include "ui/latency/ipc/latency_info_param_traits.h" 39 #include "ui/latency/ipc/latency_info_param_traits.h"
39 40
40 #undef IPC_MESSAGE_EXPORT 41 #undef IPC_MESSAGE_EXPORT
(...skipping 16 matching lines...) Expand all
57 IPC_ENUM_TRAITS_MAX_VALUE( 58 IPC_ENUM_TRAITS_MAX_VALUE(
58 content::SyntheticPointerActionParams::PointerActionType, 59 content::SyntheticPointerActionParams::PointerActionType,
59 content::SyntheticPointerActionParams::PointerActionType:: 60 content::SyntheticPointerActionParams::PointerActionType::
60 POINTER_ACTION_TYPE_MAX) 61 POINTER_ACTION_TYPE_MAX)
61 IPC_ENUM_TRAITS_MAX_VALUE( 62 IPC_ENUM_TRAITS_MAX_VALUE(
62 content::SyntheticPointerActionParams::Button, 63 content::SyntheticPointerActionParams::Button,
63 content::SyntheticPointerActionParams::Button::BUTTON_MAX) 64 content::SyntheticPointerActionParams::Button::BUTTON_MAX)
64 IPC_ENUM_TRAITS_MAX_VALUE(content::InputEventDispatchType, 65 IPC_ENUM_TRAITS_MAX_VALUE(content::InputEventDispatchType,
65 content::InputEventDispatchType::DISPATCH_TYPE_MAX) 66 content::InputEventDispatchType::DISPATCH_TYPE_MAX)
66 IPC_ENUM_TRAITS_MAX_VALUE(cc::TouchAction, cc::kTouchActionMax) 67 IPC_ENUM_TRAITS_MAX_VALUE(cc::TouchAction, cc::kTouchActionMax)
68 IPC_ENUM_TRAITS_MIN_MAX_VALUE(blink::WebPointerProperties::Button,
69 blink::WebPointerProperties::Button::kNoButton,
70 blink::WebPointerProperties::Button::kLastEntry)
71 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebPointerProperties::PointerType,
72 blink::WebPointerProperties::PointerType::kLastEntry)
67 73
68 IPC_STRUCT_TRAITS_BEGIN(ui::DidOverscrollParams) 74 IPC_STRUCT_TRAITS_BEGIN(ui::DidOverscrollParams)
69 IPC_STRUCT_TRAITS_MEMBER(accumulated_overscroll) 75 IPC_STRUCT_TRAITS_MEMBER(accumulated_overscroll)
70 IPC_STRUCT_TRAITS_MEMBER(latest_overscroll_delta) 76 IPC_STRUCT_TRAITS_MEMBER(latest_overscroll_delta)
71 IPC_STRUCT_TRAITS_MEMBER(current_fling_velocity) 77 IPC_STRUCT_TRAITS_MEMBER(current_fling_velocity)
72 IPC_STRUCT_TRAITS_MEMBER(causal_event_viewport_point) 78 IPC_STRUCT_TRAITS_MEMBER(causal_event_viewport_point)
73 IPC_STRUCT_TRAITS_END() 79 IPC_STRUCT_TRAITS_END()
74 80
75 IPC_STRUCT_TRAITS_BEGIN(content::EditCommand) 81 IPC_STRUCT_TRAITS_BEGIN(content::EditCommand)
76 IPC_STRUCT_TRAITS_MEMBER(name) 82 IPC_STRUCT_TRAITS_MEMBER(name)
(...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after
338 // This IPC message sends the character bounds after every composition change 344 // This IPC message sends the character bounds after every composition change
339 // to always have correct bound info. 345 // to always have correct bound info.
340 IPC_MESSAGE_ROUTED2(InputHostMsg_ImeCompositionRangeChanged, 346 IPC_MESSAGE_ROUTED2(InputHostMsg_ImeCompositionRangeChanged,
341 gfx::Range /* composition range */, 347 gfx::Range /* composition range */,
342 std::vector<gfx::Rect> /* character bounds */) 348 std::vector<gfx::Rect> /* character bounds */)
343 349
344 // Adding a new message? Stick to the sort order above: first platform 350 // Adding a new message? Stick to the sort order above: first platform
345 // independent InputMsg, then ifdefs for platform specific InputMsg, then 351 // independent InputMsg, then ifdefs for platform specific InputMsg, then
346 // platform independent InputHostMsg, then ifdefs for platform specific 352 // platform independent InputHostMsg, then ifdefs for platform specific
347 // InputHostMsg. 353 // InputHostMsg.
OLDNEW
« no previous file with comments | « content/common/DEPS ('k') | third_party/WebKit/public/platform/WebPointerProperties.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698