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

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: Update the test 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
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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 content::SyntheticPointerActionParams::Button, 64 content::SyntheticPointerActionParams::Button,
64 content::SyntheticPointerActionParams::Button::BUTTON_MAX) 65 content::SyntheticPointerActionParams::Button::BUTTON_MAX)
65 IPC_ENUM_TRAITS_MAX_VALUE(content::InputEventDispatchType, 66 IPC_ENUM_TRAITS_MAX_VALUE(content::InputEventDispatchType,
66 content::InputEventDispatchType::DISPATCH_TYPE_MAX) 67 content::InputEventDispatchType::DISPATCH_TYPE_MAX)
67 IPC_ENUM_TRAITS_MAX_VALUE(cc::TouchAction, cc::kTouchActionMax) 68 IPC_ENUM_TRAITS_MAX_VALUE(cc::TouchAction, cc::kTouchActionMax)
68 IPC_ENUM_TRAITS_MIN_MAX_VALUE(blink::WebPointerProperties::Button, 69 IPC_ENUM_TRAITS_MIN_MAX_VALUE(blink::WebPointerProperties::Button,
69 blink::WebPointerProperties::Button::kNoButton, 70 blink::WebPointerProperties::Button::kNoButton,
70 blink::WebPointerProperties::Button::kLastEntry) 71 blink::WebPointerProperties::Button::kLastEntry)
71 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebPointerProperties::PointerType, 72 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebPointerProperties::PointerType,
72 blink::WebPointerProperties::PointerType::kLastEntry) 73 blink::WebPointerProperties::PointerType::kLastEntry)
74 IPC_ENUM_TRAITS_MAX_VALUE(
75 cc::ScrollBoundaryBehavior::ScrollBoundaryBehaviorType,
76 cc::ScrollBoundaryBehavior::ScrollBoundaryBehaviorType::
77 kScrollBoundaryBehaviorTypeNone)
73 78
74 IPC_STRUCT_TRAITS_BEGIN(ui::DidOverscrollParams) 79 IPC_STRUCT_TRAITS_BEGIN(ui::DidOverscrollParams)
75 IPC_STRUCT_TRAITS_MEMBER(accumulated_overscroll) 80 IPC_STRUCT_TRAITS_MEMBER(accumulated_overscroll)
76 IPC_STRUCT_TRAITS_MEMBER(latest_overscroll_delta) 81 IPC_STRUCT_TRAITS_MEMBER(latest_overscroll_delta)
77 IPC_STRUCT_TRAITS_MEMBER(current_fling_velocity) 82 IPC_STRUCT_TRAITS_MEMBER(current_fling_velocity)
78 IPC_STRUCT_TRAITS_MEMBER(causal_event_viewport_point) 83 IPC_STRUCT_TRAITS_MEMBER(causal_event_viewport_point)
84 IPC_STRUCT_TRAITS_MEMBER(scroll_boundary_behavior)
85 IPC_STRUCT_TRAITS_END()
86
87 IPC_STRUCT_TRAITS_BEGIN(cc::ScrollBoundaryBehavior)
88 IPC_STRUCT_TRAITS_MEMBER(x)
89 IPC_STRUCT_TRAITS_MEMBER(y)
79 IPC_STRUCT_TRAITS_END() 90 IPC_STRUCT_TRAITS_END()
80 91
81 IPC_STRUCT_TRAITS_BEGIN(content::EditCommand) 92 IPC_STRUCT_TRAITS_BEGIN(content::EditCommand)
82 IPC_STRUCT_TRAITS_MEMBER(name) 93 IPC_STRUCT_TRAITS_MEMBER(name)
83 IPC_STRUCT_TRAITS_MEMBER(value) 94 IPC_STRUCT_TRAITS_MEMBER(value)
84 IPC_STRUCT_TRAITS_END() 95 IPC_STRUCT_TRAITS_END()
85 96
86 IPC_STRUCT_TRAITS_BEGIN(content::InputEvent) 97 IPC_STRUCT_TRAITS_BEGIN(content::InputEvent)
87 IPC_STRUCT_TRAITS_MEMBER(web_event) 98 IPC_STRUCT_TRAITS_MEMBER(web_event)
88 IPC_STRUCT_TRAITS_MEMBER(latency_info) 99 IPC_STRUCT_TRAITS_MEMBER(latency_info)
(...skipping 255 matching lines...) Expand 10 before | Expand all | Expand 10 after
344 // This IPC message sends the character bounds after every composition change 355 // This IPC message sends the character bounds after every composition change
345 // to always have correct bound info. 356 // to always have correct bound info.
346 IPC_MESSAGE_ROUTED2(InputHostMsg_ImeCompositionRangeChanged, 357 IPC_MESSAGE_ROUTED2(InputHostMsg_ImeCompositionRangeChanged,
347 gfx::Range /* composition range */, 358 gfx::Range /* composition range */,
348 std::vector<gfx::Rect> /* character bounds */) 359 std::vector<gfx::Rect> /* character bounds */)
349 360
350 // Adding a new message? Stick to the sort order above: first platform 361 // Adding a new message? Stick to the sort order above: first platform
351 // independent InputMsg, then ifdefs for platform specific InputMsg, then 362 // independent InputMsg, then ifdefs for platform specific InputMsg, then
352 // platform independent InputHostMsg, then ifdefs for platform specific 363 // platform independent InputHostMsg, then ifdefs for platform specific
353 // InputHostMsg. 364 // InputHostMsg.
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698