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

Unified Diff: cc/input/scroll_state.h

Issue 1646663002: Refactor Scroll Customization to share cc::ScrollStateData with blink. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix linking. Created 4 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | cc/input/scroll_state.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/input/scroll_state.h
diff --git a/cc/input/scroll_state.h b/cc/input/scroll_state.h
index d704ecb55be91dccbffc3e08077a80836aaffd98..4d84fac364e06c01dbbccea8b054bcd4ddede049 100644
--- a/cc/input/scroll_state.h
+++ b/cc/input/scroll_state.h
@@ -21,30 +21,6 @@ class LayerImpl;
// here: https://goo.gl/1ipTpP.
class CC_EXPORT ScrollState {
public:
- static scoped_ptr<ScrollState> Create(const gfx::Vector2dF& scroll_delta,
- const gfx::Point& viewport_point,
- const gfx::Vector2dF& scroll_velocity,
- bool is_beginning,
- bool is_in_inertial_phase,
- bool is_ending) {
- return make_scoped_ptr(new ScrollState(
- scroll_delta.x(), scroll_delta.y(), viewport_point.x(),
- viewport_point.y(), scroll_velocity.x(), scroll_velocity.y(),
- is_beginning, is_in_inertial_phase, is_ending));
- }
-
- ScrollState(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 = false,
- bool delta_consumed_for_scroll_sequence = false,
- bool is_direct_manipulation = false);
explicit ScrollState(ScrollStateData data);
~ScrollState();
@@ -89,11 +65,11 @@ class CC_EXPORT ScrollState {
}
void set_current_native_scrolling_layer(LayerImpl* layer) {
- data_.current_native_scrolling_layer = layer;
+ data_.set_current_native_scrolling_layer(layer);
}
LayerImpl* current_native_scrolling_layer() const {
- return data_.current_native_scrolling_layer;
+ return data_.current_native_scrolling_layer();
}
bool delta_consumed_for_scroll_sequence() const {
« no previous file with comments | « no previous file | cc/input/scroll_state.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698