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

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: Update the test Created 3 years, 6 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
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/trees/swap_promise_monitor.h" 18 #include "cc/trees/swap_promise_monitor.h"
18 19
19 namespace gfx { 20 namespace gfx {
20 class Point; 21 class Point;
21 class ScrollOffset; 22 class ScrollOffset;
22 class SizeF; 23 class SizeF;
23 class Vector2dF; 24 class Vector2dF;
24 } 25 }
(...skipping 12 matching lines...) Expand all
37 bool did_scroll; 38 bool did_scroll;
38 // Was any of the scroll delta argument to this ScrollBy call not used? 39 // Was any of the scroll delta argument to this ScrollBy call not used?
39 bool did_overscroll_root; 40 bool did_overscroll_root;
40 // The total overscroll that has been accumulated by all ScrollBy calls that 41 // The total overscroll that has been accumulated by all ScrollBy calls that
41 // have had overscroll since the last ScrollBegin call. This resets upon a 42 // have had overscroll since the last ScrollBegin call. This resets upon a
42 // ScrollBy with no overscroll. 43 // ScrollBy with no overscroll.
43 gfx::Vector2dF accumulated_root_overscroll; 44 gfx::Vector2dF accumulated_root_overscroll;
44 // The amount of the scroll delta argument to this ScrollBy call that was not 45 // The amount of the scroll delta argument to this ScrollBy call that was not
45 // used for scrolling. 46 // used for scrolling.
46 gfx::Vector2dF unused_scroll_delta; 47 gfx::Vector2dF unused_scroll_delta;
48 // How the browser should handle the overscroll navigation based on the css
49 // property scroll-boundary-behavior.
50 ScrollBoundaryBehavior scroll_boundary_behavior;
47 }; 51 };
48 52
49 class CC_EXPORT InputHandlerClient { 53 class CC_EXPORT InputHandlerClient {
50 public: 54 public:
51 virtual ~InputHandlerClient() {} 55 virtual ~InputHandlerClient() {}
52 56
53 virtual void WillShutdown() = 0; 57 virtual void WillShutdown() = 0;
54 virtual void Animate(base::TimeTicks time) = 0; 58 virtual void Animate(base::TimeTicks time) = 0;
55 virtual void MainThreadHasStoppedFlinging() = 0; 59 virtual void MainThreadHasStoppedFlinging() = 0;
56 virtual void ReconcileElasticOverscrollAndRootScroll() = 0; 60 virtual void ReconcileElasticOverscrollAndRootScroll() = 0;
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
224 InputHandler() {} 228 InputHandler() {}
225 virtual ~InputHandler() {} 229 virtual ~InputHandler() {}
226 230
227 private: 231 private:
228 DISALLOW_COPY_AND_ASSIGN(InputHandler); 232 DISALLOW_COPY_AND_ASSIGN(InputHandler);
229 }; 233 };
230 234
231 } // namespace cc 235 } // namespace cc
232 236
233 #endif // CC_INPUT_INPUT_HANDLER_H_ 237 #endif // CC_INPUT_INPUT_HANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698