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

Unified Diff: ui/compositor/compositor.h

Issue 2188133002: Scroll with Layers in views::ScrollView (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@20160728-MacViews-ScrollTrack
Patch Set: bugref, scale_delta DCHECK + comment Created 4 years, 4 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 | « chrome/browser/ui/views/extensions/extension_install_dialog_view.cc ('k') | ui/compositor/compositor.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/compositor/compositor.h
diff --git a/ui/compositor/compositor.h b/ui/compositor/compositor.h
index 1cceecc64cf4788fd89733139921d4c79bff4d81..629508f94d426749854812e7cd52747b402df586 100644
--- a/ui/compositor/compositor.h
+++ b/ui/compositor/compositor.h
@@ -52,6 +52,7 @@ class TaskGraphRunner;
namespace gfx {
class Rect;
+class ScrollOffset;
class Size;
}
@@ -268,6 +269,11 @@ class COMPOSITOR_EXPORT Compositor
// Gets the visibility of the underlying compositor.
bool IsVisible();
+ // Gets or sets the scroll offset for the given layer in step with the
+ // cc::InputHandler. Returns true if the layer is active on the impl side.
+ bool GetScrollOffsetForLayer(int layer_id, gfx::ScrollOffset* offset) const;
+ bool ScrollLayerTo(int layer_id, const gfx::ScrollOffset& offset);
+
// The "authoritative" vsync interval, if provided, will override interval
// reported from 3D context. This is typically the value reported by a more
// reliable source, e.g, the platform display configuration.
« no previous file with comments | « chrome/browser/ui/views/extensions/extension_install_dialog_view.cc ('k') | ui/compositor/compositor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698