| // 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 |