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

Unified Diff: ui/compositor/layer.h

Issue 2197503002: Route Scroll events through a cc::InputHandler Base URL: https://chromium.googlesource.com/chromium/src.git@20160728-MacViews-ScrollWheelAsScrollEvent
Patch Set: Abandon DeliverInputForBeginFrame: will not help fix the header row Created 4 years 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 | « ui/compositor/compositor.cc ('k') | ui/compositor/layer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/compositor/layer.h
diff --git a/ui/compositor/layer.h b/ui/compositor/layer.h
index 4bb77d315bdc7e96014a88a6b7a7e7e874c27ae5..a338ec2cc0e23c491f14692f76891bb982bf470c 100644
--- a/ui/compositor/layer.h
+++ b/ui/compositor/layer.h
@@ -355,6 +355,10 @@ class COMPOSITOR_EXPORT Layer
// is invoked when scrolling performed by the cc::InputHandler is committed.
void SetScrollable(Layer* parent_clip_layer, const base::Closure& on_scroll);
+ // Gets the ElementId. For a ui::Layer, this has primaryId equal to the
+ // LayerImpl's id() and a secondaryId of 0.
+ cc::ElementId GetElementId() const;
+
// Gets and sets the current scroll offset of the layer.
gfx::ScrollOffset CurrentScrollOffset() const;
void SetScrollOffset(const gfx::ScrollOffset& offset);
« no previous file with comments | « ui/compositor/compositor.cc ('k') | ui/compositor/layer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698