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

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, 3 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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 (blink::WebGestureDevice::kWebGestureDeviceCount - 1)) 74 (blink::WebGestureDevice::kWebGestureDeviceCount - 1))
74 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebInputEvent::DispatchType, 75 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebInputEvent::DispatchType,
75 blink::WebInputEvent::DispatchType::kLastDispatchType) 76 blink::WebInputEvent::DispatchType::kLastDispatchType)
76 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebGestureEvent::ScrollUnits, 77 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebGestureEvent::ScrollUnits,
77 blink::WebGestureEvent::ScrollUnits::kLastScrollUnit) 78 blink::WebGestureEvent::ScrollUnits::kLastScrollUnit)
78 IPC_ENUM_TRAITS_MAX_VALUE( 79 IPC_ENUM_TRAITS_MAX_VALUE(
79 blink::WebGestureEvent::InertialPhaseState, 80 blink::WebGestureEvent::InertialPhaseState,
80 blink::WebGestureEvent::InertialPhaseState::kLastPhase) 81 blink::WebGestureEvent::InertialPhaseState::kLastPhase)
81 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebTouchPoint::State, 82 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebTouchPoint::State,
82 blink::WebTouchPoint::State::kStateMax) 83 blink::WebTouchPoint::State::kStateMax)
84 IPC_ENUM_TRAITS_MAX_VALUE(
85 cc::ScrollBoundaryBehavior::ScrollBoundaryBehaviorType,
86 cc::ScrollBoundaryBehavior::ScrollBoundaryBehaviorType::
87 kScrollBoundaryBehaviorTypeMax)
83 88
84 IPC_STRUCT_TRAITS_BEGIN(ui::DidOverscrollParams) 89 IPC_STRUCT_TRAITS_BEGIN(ui::DidOverscrollParams)
85 IPC_STRUCT_TRAITS_MEMBER(accumulated_overscroll) 90 IPC_STRUCT_TRAITS_MEMBER(accumulated_overscroll)
86 IPC_STRUCT_TRAITS_MEMBER(latest_overscroll_delta) 91 IPC_STRUCT_TRAITS_MEMBER(latest_overscroll_delta)
87 IPC_STRUCT_TRAITS_MEMBER(current_fling_velocity) 92 IPC_STRUCT_TRAITS_MEMBER(current_fling_velocity)
88 IPC_STRUCT_TRAITS_MEMBER(causal_event_viewport_point) 93 IPC_STRUCT_TRAITS_MEMBER(causal_event_viewport_point)
94 IPC_STRUCT_TRAITS_MEMBER(scroll_boundary_behavior)
95 IPC_STRUCT_TRAITS_END()
96
97 IPC_STRUCT_TRAITS_BEGIN(cc::ScrollBoundaryBehavior)
98 IPC_STRUCT_TRAITS_MEMBER(x)
99 IPC_STRUCT_TRAITS_MEMBER(y)
89 IPC_STRUCT_TRAITS_END() 100 IPC_STRUCT_TRAITS_END()
90 101
91 IPC_STRUCT_TRAITS_BEGIN(content::EditCommand) 102 IPC_STRUCT_TRAITS_BEGIN(content::EditCommand)
92 IPC_STRUCT_TRAITS_MEMBER(name) 103 IPC_STRUCT_TRAITS_MEMBER(name)
93 IPC_STRUCT_TRAITS_MEMBER(value) 104 IPC_STRUCT_TRAITS_MEMBER(value)
94 IPC_STRUCT_TRAITS_END() 105 IPC_STRUCT_TRAITS_END()
95 106
96 IPC_STRUCT_TRAITS_BEGIN(content::InputEvent) 107 IPC_STRUCT_TRAITS_BEGIN(content::InputEvent)
97 IPC_STRUCT_TRAITS_MEMBER(web_event) 108 IPC_STRUCT_TRAITS_MEMBER(web_event)
98 IPC_STRUCT_TRAITS_MEMBER(latency_info) 109 IPC_STRUCT_TRAITS_MEMBER(latency_info)
(...skipping 255 matching lines...) Expand 10 before | Expand all | Expand 10 after
354 // This IPC message sends the character bounds after every composition change 365 // This IPC message sends the character bounds after every composition change
355 // to always have correct bound info. 366 // to always have correct bound info.
356 IPC_MESSAGE_ROUTED2(InputHostMsg_ImeCompositionRangeChanged, 367 IPC_MESSAGE_ROUTED2(InputHostMsg_ImeCompositionRangeChanged,
357 gfx::Range /* composition range */, 368 gfx::Range /* composition range */,
358 std::vector<gfx::Rect> /* character bounds */) 369 std::vector<gfx::Rect> /* character bounds */)
359 370
360 // Adding a new message? Stick to the sort order above: first platform 371 // Adding a new message? Stick to the sort order above: first platform
361 // independent InputMsg, then ifdefs for platform specific InputMsg, then 372 // independent InputMsg, then ifdefs for platform specific InputMsg, then
362 // platform independent InputHostMsg, then ifdefs for platform specific 373 // platform independent InputHostMsg, then ifdefs for platform specific
363 // InputHostMsg. 374 // InputHostMsg.
OLDNEW
« no previous file with comments | « content/browser/android/overscroll_controller_android_unittest.cc ('k') | content/renderer/gpu/render_widget_compositor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698