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

Side by Side Diff: cc/input/scroll_elasticity_controller.h

Issue 704463003: Move overscroll bounce to impl thread (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month 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
« no previous file with comments | « cc/input/input_handler.h ('k') | cc/trees/layer_tree_host_impl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CC_INPUT_SCROLL_ELASTICITY_CONTROLLER_H_
6 #define CC_INPUT_SCROLL_ELASTICITY_CONTROLLER_H_
7
8 #include "base/time/time.h"
9 #include "cc/base/cc_export.h"
10 #include "ui/gfx/geometry/vector2d_f.h"
11
12 namespace cc {
13
14 class CC_EXPORT ScrollElasticityController {
15 public:
16 virtual void WillShutdown() = 0;
17 virtual void Animate(base::TimeTicks time) = 0;
18 };
19
20 class CC_EXPORT ScrollElasticityControllerClient {
21 public:
22 virtual void BindToController(ScrollElasticityController* controller) = 0;
23
24 virtual bool allowsHorizontalStretching() const = 0;
25 virtual bool allowsVerticalStretching() const = 0;
26 virtual gfx::Vector2dF stretchAmount() const = 0;
27 virtual bool pinnedInDirection(const gfx::Vector2dF& delta) const = 0;
28 virtual bool canScrollHorizontally() const = 0;
29 virtual bool canScrollVertically() const = 0;
30 virtual gfx::Vector2dF absoluteScrollPosition() const = 0;
31
32 virtual void immediateScrollBy(const gfx::Vector2dF& delta) = 0;
33 virtual void immediateScrollByWithoutContentEdgeConstraints(const gfx::Vector2 dF& delta) = 0;
34 virtual void startSnapRubberbandTimer() = 0;
35 virtual void stopSnapRubberbandTimer() = 0;
36
37 virtual void adjustScrollPositionToBoundsIfNecessary() = 0;
38 };
39
40 } // namespace cc
41
42 #endif // CC_INPUT_SCROLL_ELASTICITY_CONTROLLER_H_
OLDNEW
« no previous file with comments | « cc/input/input_handler.h ('k') | cc/trees/layer_tree_host_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698