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

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: Fixed the comments Created 3 years, 7 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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
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_MAX_VALUE(
69 cc::ScrollBoundaryBehavior::ScrollBoundaryBehaviorType,
70 cc::ScrollBoundaryBehavior::ScrollBoundaryBehaviorType::
71 kScrollBoundaryBehaviorTypeNone)
67 72
68 IPC_STRUCT_TRAITS_BEGIN(ui::DidOverscrollParams) 73 IPC_STRUCT_TRAITS_BEGIN(ui::DidOverscrollParams)
69 IPC_STRUCT_TRAITS_MEMBER(accumulated_overscroll) 74 IPC_STRUCT_TRAITS_MEMBER(accumulated_overscroll)
70 IPC_STRUCT_TRAITS_MEMBER(latest_overscroll_delta) 75 IPC_STRUCT_TRAITS_MEMBER(latest_overscroll_delta)
71 IPC_STRUCT_TRAITS_MEMBER(current_fling_velocity) 76 IPC_STRUCT_TRAITS_MEMBER(current_fling_velocity)
72 IPC_STRUCT_TRAITS_MEMBER(causal_event_viewport_point) 77 IPC_STRUCT_TRAITS_MEMBER(causal_event_viewport_point)
78 IPC_STRUCT_TRAITS_MEMBER(scroll_boundary_behavior)
79 IPC_STRUCT_TRAITS_END()
80
81 IPC_STRUCT_TRAITS_BEGIN(cc::ScrollBoundaryBehavior)
82 IPC_STRUCT_TRAITS_MEMBER(x)
83 IPC_STRUCT_TRAITS_MEMBER(y)
73 IPC_STRUCT_TRAITS_END() 84 IPC_STRUCT_TRAITS_END()
74 85
75 IPC_STRUCT_TRAITS_BEGIN(content::EditCommand) 86 IPC_STRUCT_TRAITS_BEGIN(content::EditCommand)
76 IPC_STRUCT_TRAITS_MEMBER(name) 87 IPC_STRUCT_TRAITS_MEMBER(name)
77 IPC_STRUCT_TRAITS_MEMBER(value) 88 IPC_STRUCT_TRAITS_MEMBER(value)
78 IPC_STRUCT_TRAITS_END() 89 IPC_STRUCT_TRAITS_END()
79 90
80 IPC_STRUCT_TRAITS_BEGIN(content::InputEvent) 91 IPC_STRUCT_TRAITS_BEGIN(content::InputEvent)
81 IPC_STRUCT_TRAITS_MEMBER(web_event) 92 IPC_STRUCT_TRAITS_MEMBER(web_event)
82 IPC_STRUCT_TRAITS_MEMBER(latency_info) 93 IPC_STRUCT_TRAITS_MEMBER(latency_info)
(...skipping 255 matching lines...) Expand 10 before | Expand all | Expand 10 after
338 // This IPC message sends the character bounds after every composition change 349 // This IPC message sends the character bounds after every composition change
339 // to always have correct bound info. 350 // to always have correct bound info.
340 IPC_MESSAGE_ROUTED2(InputHostMsg_ImeCompositionRangeChanged, 351 IPC_MESSAGE_ROUTED2(InputHostMsg_ImeCompositionRangeChanged,
341 gfx::Range /* composition range */, 352 gfx::Range /* composition range */,
342 std::vector<gfx::Rect> /* character bounds */) 353 std::vector<gfx::Rect> /* character bounds */)
343 354
344 // Adding a new message? Stick to the sort order above: first platform 355 // Adding a new message? Stick to the sort order above: first platform
345 // independent InputMsg, then ifdefs for platform specific InputMsg, then 356 // independent InputMsg, then ifdefs for platform specific InputMsg, then
346 // platform independent InputHostMsg, then ifdefs for platform specific 357 // platform independent InputHostMsg, then ifdefs for platform specific
347 // InputHostMsg. 358 // InputHostMsg.
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698