| OLD | NEW |
| 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 Loading... |
| 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 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 223 InputHandler() {} | 227 InputHandler() {} |
| 224 virtual ~InputHandler() {} | 228 virtual ~InputHandler() {} |
| 225 | 229 |
| 226 private: | 230 private: |
| 227 DISALLOW_COPY_AND_ASSIGN(InputHandler); | 231 DISALLOW_COPY_AND_ASSIGN(InputHandler); |
| 228 }; | 232 }; |
| 229 | 233 |
| 230 } // namespace cc | 234 } // namespace cc |
| 231 | 235 |
| 232 #endif // CC_INPUT_INPUT_HANDLER_H_ | 236 #endif // CC_INPUT_INPUT_HANDLER_H_ |
| OLD | NEW |