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

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

Issue 367173003: [Android] Implementation of overscroll effect for Android L (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Code review Created 6 years, 4 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
« no previous file with comments | « no previous file | cc/trees/layer_tree_host_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2011 The Chromium Authors. All rights reserved. 1 // Copyright 2011 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 #ifndef CC_INPUT_INPUT_HANDLER_H_ 5 #ifndef CC_INPUT_INPUT_HANDLER_H_
6 #define CC_INPUT_INPUT_HANDLER_H_ 6 #define CC_INPUT_INPUT_HANDLER_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/time/time.h" 9 #include "base/time/time.h"
10 #include "cc/base/cc_export.h" 10 #include "cc/base/cc_export.h"
(...skipping 17 matching lines...) Expand all
28 public: 28 public:
29 virtual ~InputHandlerClient() {} 29 virtual ~InputHandlerClient() {}
30 30
31 virtual void WillShutdown() = 0; 31 virtual void WillShutdown() = 0;
32 virtual void Animate(base::TimeTicks time) = 0; 32 virtual void Animate(base::TimeTicks time) = 0;
33 virtual void MainThreadHasStoppedFlinging() = 0; 33 virtual void MainThreadHasStoppedFlinging() = 0;
34 34
35 // Called when scroll deltas reaching the root scrolling layer go unused. 35 // Called when scroll deltas reaching the root scrolling layer go unused.
36 // The accumulated overscroll is scoped by the most recent call to 36 // The accumulated overscroll is scoped by the most recent call to
37 // InputHandler::ScrollBegin. 37 // InputHandler::ScrollBegin.
38 virtual void DidOverscroll(const gfx::Vector2dF& accumulated_overscroll, 38 virtual void DidOverscroll(const gfx::PointF& causal_event_viewport_point,
39 const gfx::Vector2dF& accumulated_overscroll,
39 const gfx::Vector2dF& latest_overscroll_delta) = 0; 40 const gfx::Vector2dF& latest_overscroll_delta) = 0;
40 41
41 protected: 42 protected:
42 InputHandlerClient() {} 43 InputHandlerClient() {}
43 44
44 private: 45 private:
45 DISALLOW_COPY_AND_ASSIGN(InputHandlerClient); 46 DISALLOW_COPY_AND_ASSIGN(InputHandlerClient);
46 }; 47 };
47 48
48 // The InputHandler is a way for the embedders to interact with the impl thread 49 // The InputHandler is a way for the embedders to interact with the impl thread
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 InputHandler() {} 149 InputHandler() {}
149 virtual ~InputHandler() {} 150 virtual ~InputHandler() {}
150 151
151 private: 152 private:
152 DISALLOW_COPY_AND_ASSIGN(InputHandler); 153 DISALLOW_COPY_AND_ASSIGN(InputHandler);
153 }; 154 };
154 155
155 } // namespace cc 156 } // namespace cc
156 157
157 #endif // CC_INPUT_INPUT_HANDLER_H_ 158 #endif // CC_INPUT_INPUT_HANDLER_H_
OLDNEW
« no previous file with comments | « no previous file | cc/trees/layer_tree_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698