1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
// Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "cc/input/scroll_state_data.h"
namespace cc {
ScrollStateData::ScrollStateData(double delta_x,
double delta_y,
int start_position_x,
int start_position_y,
double velocity_x,
double velocity_y,
bool is_beginning,
bool is_in_inertial_phase,
bool is_ending,
bool should_propagate,
bool delta_consumed_for_scroll_sequence,
bool is_direct_manipulation)
: delta_x(delta_x),
delta_y(delta_y),
start_position_x(start_position_x),
start_position_y(start_position_y),
velocity_x(velocity_x),
velocity_y(velocity_y),
is_beginning(is_beginning),
is_in_inertial_phase(is_in_inertial_phase),
is_ending(is_ending),
should_propagate(should_propagate),
current_native_scrolling_layer(nullptr),
delta_consumed_for_scroll_sequence(delta_consumed_for_scroll_sequence),
is_direct_manipulation(is_direct_manipulation),
caused_scroll_x(false),
caused_scroll_y(false) {}
ScrollStateData::ScrollStateData()
: ScrollStateData(0,
0,
0,
0,
0,
0,
false,
false,
false,
true,
false,
false) {}
} // namespace cc
|