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

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

Issue 784463002: Add initial CC support for scroll-blocks-on (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: jdduke CR feedback Created 5 years, 10 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/blink/web_layer_impl.cc ('k') | cc/layers/layer.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 "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 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
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;
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_
OLDNEW
« no previous file with comments | « cc/blink/web_layer_impl.cc ('k') | cc/layers/layer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698