diff options
author | ccameron <ccameron@chromium.org> | 2014-11-06 19:18:50 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-11-07 03:19:02 +0000 |
commit | 36d091feca1a3621430a61091ff2a527972a8e79 (patch) | |
tree | 3286e93b1b78c07b05b8031166fdad02f0c7993e /cc/input/input_handler.cc | |
parent | a4a32af218cf03ac89db4a27d12681f8a1ba9108 (diff) | |
download | chromium_src-36d091feca1a3621430a61091ff2a527972a8e79.zip chromium_src-36d091feca1a3621430a61091ff2a527972a8e79.tar.gz chromium_src-36d091feca1a3621430a61091ff2a527972a8e79.tar.bz2 |
Return overscroll data from cc::InputHandler::ScrollBy
Whether or not a cc::InputHandler::ScrollBy resulted in some scrolling
happening is returned as a bool from the function, but whether or not
all of the input scroll delta was used is made available through a callback
to the cc::InputHandlerClient::DidOverscroll function. All of this information
should be made available in the return value.
Make ScrollBy return a struct that contains information about if a scroll
happened, if an overscroll happened, and how much of an overscroll
happened.
The overscroll effect on Mac will require knowledge of exactly what
happened with scroll (was there any extra overscroll, etc) at the point
where the scroll is attempted.
BUG=133097
Review URL: https://codereview.chromium.org/701343002
Cr-Commit-Position: refs/heads/master@{#303172}
Diffstat (limited to 'cc/input/input_handler.cc')
-rw-r--r-- | cc/input/input_handler.cc | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/cc/input/input_handler.cc b/cc/input/input_handler.cc new file mode 100644 index 0000000..336d0d4 --- /dev/null +++ b/cc/input/input_handler.cc @@ -0,0 +1,13 @@ +// Copyright 2014 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#include "cc/input/input_handler.h" + +namespace cc { + +InputHandlerScrollResult::InputHandlerScrollResult() + : did_scroll(false), did_overscroll_root(false) { +} + +} // namespace cc |