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

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

Issue 2884423003: Use scroll-boundary-behavior to control overscroll-refresh/glow on android. (Closed)
Patch Set: Rebase Created 3 years, 3 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 | « cc/BUILD.gn ('k') | cc/input/scroll_boundary_behavior.h » ('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 <memory> 8 #include <memory>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
11 #include "base/time/time.h" 11 #include "base/time/time.h"
12 #include "cc/cc_export.h" 12 #include "cc/cc_export.h"
13 #include "cc/input/event_listener_properties.h" 13 #include "cc/input/event_listener_properties.h"
14 #include "cc/input/main_thread_scrolling_reason.h" 14 #include "cc/input/main_thread_scrolling_reason.h"
15 #include "cc/input/scroll_boundary_behavior.h"
15 #include "cc/input/scroll_state.h" 16 #include "cc/input/scroll_state.h"
16 #include "cc/input/scrollbar.h" 17 #include "cc/input/scrollbar.h"
17 #include "cc/input/touch_action.h" 18 #include "cc/input/touch_action.h"
18 #include "cc/trees/swap_promise_monitor.h" 19 #include "cc/trees/swap_promise_monitor.h"
19 20
20 namespace gfx { 21 namespace gfx {
21 class Point; 22 class Point;
22 class ScrollOffset; 23 class ScrollOffset;
23 class SizeF; 24 class SizeF;
24 class Vector2dF; 25 class Vector2dF;
(...skipping 13 matching lines...) Expand all
38 bool did_scroll; 39 bool did_scroll;
39 // Was any of the scroll delta argument to this ScrollBy call not used? 40 // Was any of the scroll delta argument to this ScrollBy call not used?
40 bool did_overscroll_root; 41 bool did_overscroll_root;
41 // The total overscroll that has been accumulated by all ScrollBy calls that 42 // The total overscroll that has been accumulated by all ScrollBy calls that
42 // have had overscroll since the last ScrollBegin call. This resets upon a 43 // have had overscroll since the last ScrollBegin call. This resets upon a
43 // ScrollBy with no overscroll. 44 // ScrollBy with no overscroll.
44 gfx::Vector2dF accumulated_root_overscroll; 45 gfx::Vector2dF accumulated_root_overscroll;
45 // The amount of the scroll delta argument to this ScrollBy call that was not 46 // The amount of the scroll delta argument to this ScrollBy call that was not
46 // used for scrolling. 47 // used for scrolling.
47 gfx::Vector2dF unused_scroll_delta; 48 gfx::Vector2dF unused_scroll_delta;
49 // How the browser should handle the overscroll navigation based on the css
50 // property scroll-boundary-behavior.
51 ScrollBoundaryBehavior scroll_boundary_behavior;
48 }; 52 };
49 53
50 class CC_EXPORT InputHandlerClient { 54 class CC_EXPORT InputHandlerClient {
51 public: 55 public:
52 virtual ~InputHandlerClient() {} 56 virtual ~InputHandlerClient() {}
53 57
54 virtual void WillShutdown() = 0; 58 virtual void WillShutdown() = 0;
55 virtual void Animate(base::TimeTicks time) = 0; 59 virtual void Animate(base::TimeTicks time) = 0;
56 virtual void MainThreadHasStoppedFlinging() = 0; 60 virtual void MainThreadHasStoppedFlinging() = 0;
57 virtual void ReconcileElasticOverscrollAndRootScroll() = 0; 61 virtual void ReconcileElasticOverscrollAndRootScroll() = 0;
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after
231 InputHandler() {} 235 InputHandler() {}
232 virtual ~InputHandler() {} 236 virtual ~InputHandler() {}
233 237
234 private: 238 private:
235 DISALLOW_COPY_AND_ASSIGN(InputHandler); 239 DISALLOW_COPY_AND_ASSIGN(InputHandler);
236 }; 240 };
237 241
238 } // namespace cc 242 } // namespace cc
239 243
240 #endif // CC_INPUT_INPUT_HANDLER_H_ 244 #endif // CC_INPUT_INPUT_HANDLER_H_
OLDNEW
« no previous file with comments | « cc/BUILD.gn ('k') | cc/input/scroll_boundary_behavior.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698