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

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

Issue 1063853005: Unify Android Webview and Chrome's fling (Closed) Base URL: https://chromium.googlesource.com/a/chromium/src.git@master
Patch Set: add proguard Created 5 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
« no previous file with comments | « android_webview/native/aw_contents.cc ('k') | cc/input/layer_scroll_offset_delegate.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 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 // NOTE: This should only called after a valid delegate was set via a call to 129 // NOTE: This should only called after a valid delegate was set via a call to
130 // SetRootLayerScrollOffsetDelegate. 130 // SetRootLayerScrollOffsetDelegate.
131 virtual void OnRootLayerDelegatedScrollOffsetChanged() = 0; 131 virtual void OnRootLayerDelegatedScrollOffsetChanged() = 0;
132 132
133 virtual void PinchGestureBegin() = 0; 133 virtual void PinchGestureBegin() = 0;
134 virtual void PinchGestureUpdate(float magnify_delta, 134 virtual void PinchGestureUpdate(float magnify_delta,
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 SetNeedsAnimateInput() = 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 146
147 // Whether the page should be given the opportunity to suppress scrolling by 147 // Whether the page should be given the opportunity to suppress scrolling by
148 // consuming touch events that started at |viewport_point|. 148 // consuming touch events that started at |viewport_point|.
149 virtual bool DoTouchEventsBlockScrollAt(const gfx::Point& viewport_point) = 0; 149 virtual bool DoTouchEventsBlockScrollAt(const gfx::Point& viewport_point) = 0;
(...skipping 12 matching lines...) Expand all
162 InputHandler() {} 162 InputHandler() {}
163 virtual ~InputHandler() {} 163 virtual ~InputHandler() {}
164 164
165 private: 165 private:
166 DISALLOW_COPY_AND_ASSIGN(InputHandler); 166 DISALLOW_COPY_AND_ASSIGN(InputHandler);
167 }; 167 };
168 168
169 } // namespace cc 169 } // namespace cc
170 170
171 #endif // CC_INPUT_INPUT_HANDLER_H_ 171 #endif // CC_INPUT_INPUT_HANDLER_H_
OLDNEW
« no previous file with comments | « android_webview/native/aw_contents.cc ('k') | cc/input/layer_scroll_offset_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698