Chromium Code Reviews| 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 "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "base/time/time.h" | 10 #include "base/time/time.h" |
| (...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 135 const gfx::Point& anchor) = 0; | 135 const gfx::Point& anchor) = 0; |
| 136 virtual void PinchGestureEnd() = 0; | 136 virtual void PinchGestureEnd() = 0; |
| 137 | 137 |
| 138 // Request another callback to InputHandlerClient::Animate(). | 138 // Request another callback to InputHandlerClient::Animate(). |
| 139 virtual void SetNeedsAnimate() = 0; | 139 virtual void SetNeedsAnimate() = 0; |
| 140 | 140 |
| 141 // Whether the layer under |viewport_point| is the currently scrolling layer. | 141 // Whether the layer under |viewport_point| is the currently scrolling layer. |
| 142 virtual bool IsCurrentlyScrollingLayerAt(const gfx::Point& viewport_point, | 142 virtual bool IsCurrentlyScrollingLayerAt(const gfx::Point& viewport_point, |
| 143 ScrollInputType type) = 0; | 143 ScrollInputType type) = 0; |
| 144 | 144 |
| 145 virtual bool HaveWheelEventHandlersAt(const gfx::Point& viewport_point) = 0; | 145 virtual bool HaveWheelEventHandlersAt(const gfx::Point& viewport_point) = 0; |
|
jdduke (slow)
2015/02/03 16:43:34
Now that "blocks on" is the phrasing used for both
Rick Byers
2015/02/05 04:35:53
Yeah I considered changing this but the semantics
| |
| 146 virtual bool HaveTouchEventHandlersAt(const gfx::Point& viewport_point) = 0; | 146 |
| 147 // Whether the page should be given the opportunity to suppress scrolling by | |
| 148 // consuming touch events that started at |viewport_point|. | |
| 149 virtual bool DoTouchEventsBlockScrollAt(const gfx::Point& viewport_point) = 0; | |
| 147 | 150 |
| 148 // Calling CreateLatencyInfoSwapPromiseMonitor() to get a scoped | 151 // Calling CreateLatencyInfoSwapPromiseMonitor() to get a scoped |
| 149 // LatencyInfoSwapPromiseMonitor. During the life time of the | 152 // LatencyInfoSwapPromiseMonitor. During the life time of the |
| 150 // LatencyInfoSwapPromiseMonitor, if SetNeedsRedraw() or SetNeedsRedrawRect() | 153 // LatencyInfoSwapPromiseMonitor, if SetNeedsRedraw() or SetNeedsRedrawRect() |
| 151 // is called on LayerTreeHostImpl, the original latency info will be turned | 154 // is called on LayerTreeHostImpl, the original latency info will be turned |
| 152 // into a LatencyInfoSwapPromise. | 155 // into a LatencyInfoSwapPromise. |
| 153 virtual scoped_ptr<SwapPromiseMonitor> CreateLatencyInfoSwapPromiseMonitor( | 156 virtual scoped_ptr<SwapPromiseMonitor> CreateLatencyInfoSwapPromiseMonitor( |
| 154 ui::LatencyInfo* latency) = 0; | 157 ui::LatencyInfo* latency) = 0; |
| 155 | 158 |
| 156 virtual ScrollElasticityHelper* CreateScrollElasticityHelper() = 0; | 159 virtual ScrollElasticityHelper* CreateScrollElasticityHelper() = 0; |
| 157 | 160 |
| 158 protected: | 161 protected: |
| 159 InputHandler() {} | 162 InputHandler() {} |
| 160 virtual ~InputHandler() {} | 163 virtual ~InputHandler() {} |
| 161 | 164 |
| 162 private: | 165 private: |
| 163 DISALLOW_COPY_AND_ASSIGN(InputHandler); | 166 DISALLOW_COPY_AND_ASSIGN(InputHandler); |
| 164 }; | 167 }; |
| 165 | 168 |
| 166 } // namespace cc | 169 } // namespace cc |
| 167 | 170 |
| 168 #endif // CC_INPUT_INPUT_HANDLER_H_ | 171 #endif // CC_INPUT_INPUT_HANDLER_H_ |
| OLD | NEW |