summaryrefslogtreecommitdiffstats
path: root/cc/trees/layer_tree_host_impl.h
diff options
context:
space:
mode:
authorjdduke@chromium.org <jdduke@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-05-20 21:32:53 +0000
committerjdduke@chromium.org <jdduke@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-05-20 21:32:53 +0000
commita2b5ded72a23378831be3ea5fcd8712ef96c1d21 (patch)
tree65528ad919d8fc7ee0dbb1c6183695e130685401 /cc/trees/layer_tree_host_impl.h
parenta040b244d9bed66ba5a381a4e8e59684f901a8fe (diff)
downloadchromium_src-a2b5ded72a23378831be3ea5fcd8712ef96c1d21.zip
chromium_src-a2b5ded72a23378831be3ea5fcd8712ef96c1d21.tar.gz
chromium_src-a2b5ded72a23378831be3ea5fcd8712ef96c1d21.tar.bz2
Route compositor overscroll events to the input handler.
Various browser-side components may be interested in compositor overscroll events. This patch provides a way for routing such events from the compositor to the InputHandler for further dispatch. BUG=135975 NOTRY=true Review URL: https://chromiumcodereview.appspot.com/14499002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@201141 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/trees/layer_tree_host_impl.h')
-rw-r--r--cc/trees/layer_tree_host_impl.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/cc/trees/layer_tree_host_impl.h b/cc/trees/layer_tree_host_impl.h
index b4d9757..72b06b5 100644
--- a/cc/trees/layer_tree_host_impl.h
+++ b/cc/trees/layer_tree_host_impl.h
@@ -349,6 +349,13 @@ class CC_EXPORT LayerTreeHostImpl
skia::RefPtr<SkPicture> CapturePicture();
+ gfx::Vector2dF accumulated_root_overscroll() const {
+ return accumulated_root_overscroll_;
+ }
+ gfx::Vector2dF current_fling_velocity() const {
+ return current_fling_velocity_;
+ }
+
bool pinch_gesture_active() const { return pinch_gesture_active_; }
void SetTreePriority(TreePriority priority);
@@ -454,6 +461,7 @@ class CC_EXPORT LayerTreeHostImpl
bool visible_;
ManagedMemoryPolicy managed_memory_policy_;
+ gfx::Vector2dF accumulated_root_overscroll_;
gfx::Vector2dF current_fling_velocity_;
bool pinch_gesture_active_;