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

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

Issue 2884423003: Use scroll-boundary-behavior to control overscroll-refresh/glow on android. (Closed)
Patch Set: rebase Created 3 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"
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
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 kScrollBoundaryBehaviorTypeNone)
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 259 matching lines...) Expand 10 before | Expand all | Expand 10 after
359 // This IPC message sends the character bounds after every composition change 370 // This IPC message sends the character bounds after every composition change
360 // to always have correct bound info. 371 // to always have correct bound info.
361 IPC_MESSAGE_ROUTED2(InputHostMsg_ImeCompositionRangeChanged, 372 IPC_MESSAGE_ROUTED2(InputHostMsg_ImeCompositionRangeChanged,
362 gfx::Range /* composition range */, 373 gfx::Range /* composition range */,
363 std::vector<gfx::Rect> /* character bounds */) 374 std::vector<gfx::Rect> /* character bounds */)
364 375
365 // Adding a new message? Stick to the sort order above: first platform 376 // Adding a new message? Stick to the sort order above: first platform
366 // independent InputMsg, then ifdefs for platform specific InputMsg, then 377 // independent InputMsg, then ifdefs for platform specific InputMsg, then
367 // platform independent InputHostMsg, then ifdefs for platform specific 378 // platform independent InputHostMsg, then ifdefs for platform specific
368 // InputHostMsg. 379 // InputHostMsg.
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698