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

Unified Diff: cc/layers/viewport.h

Issue 1146053009: Added experiment for changing viewport scroll ordering. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: aelias review 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | cc/layers/viewport.cc » ('j') | content/public/common/content_switches.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/viewport.h
diff --git a/cc/layers/viewport.h b/cc/layers/viewport.h
index 25528af02a48b43706e6b9ccfa236ffa26e217b4..794df21be679cb513065dc609601f663b5892b58 100644
--- a/cc/layers/viewport.h
+++ b/cc/layers/viewport.h
@@ -28,11 +28,16 @@ class CC_EXPORT Viewport {
static scoped_ptr<Viewport> Create(LayerTreeHostImpl* host_impl);
+ // Differs from scrolling in that only the visual viewport is moved, without
+ // affecting the top controls or outer viewport.
+ void Pan(const gfx::Vector2dF& delta);
+
// Scrolls the viewport, applying the unique bubbling between the inner and
// outer viewport. Scrolls can be consumed by top controls.
ScrollResult ScrollBy(const gfx::Vector2dF& delta,
const gfx::Point& viewport_point,
- bool is_wheel_scroll);
+ bool is_wheel_scroll,
+ bool affect_top_controls);
private:
explicit Viewport(LayerTreeHostImpl* host_impl);
« no previous file with comments | « no previous file | cc/layers/viewport.cc » ('j') | content/public/common/content_switches.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698