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

Unified Diff: cc/CCLayerImpl.h

Issue 10916279: Chromium compositor change implementing page-scale driven pinch-zoom. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 3 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/CCLayerImpl.cpp » ('j') | cc/CCLayerTreeHost.cpp » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/CCLayerImpl.h
===================================================================
--- cc/CCLayerImpl.h (revision 156389)
+++ cc/CCLayerImpl.h (working copy)
@@ -174,13 +174,20 @@
const FloatSize& scrollDelta() const { return m_scrollDelta; }
void setScrollDelta(const FloatSize&);
+ const FloatSize& localOffset() const { return m_localOffset; }
+ void setLocalOffset(const FloatSize&);
+
float pageScaleDelta() const { return m_pageScaleDelta; }
void setPageScaleDelta(float);
+ float pageScaleFactor() const { return m_pageScaleFactor; }
+ void setPageScaleFactor(float scale) { m_pageScaleFactor = scale; }
+
const IntSize& sentScrollDelta() const { return m_sentScrollDelta; }
void setSentScrollDelta(const IntSize& sentScrollDelta) { m_sentScrollDelta = sentScrollDelta; }
- void scrollBy(const FloatSize& scroll);
+ // Returns the delta of the scroll that was outside of the bounds of the initial scroll
+ FloatSize scrollBy(const FloatSize& scroll);
bool scrollable() const { return m_scrollable; }
void setScrollable(bool scrollable) { m_scrollable = scrollable; }
@@ -333,6 +340,8 @@
IntSize m_sentScrollDelta;
IntSize m_maxScrollPosition;
float m_pageScaleDelta;
+ float m_pageScaleFactor;
+ FloatSize m_localOffset;
// The layer whose coordinate space this layer draws into. This can be
// either the same layer (m_renderTarget == this) or an ancestor of this
« no previous file with comments | « no previous file | cc/CCLayerImpl.cpp » ('j') | cc/CCLayerTreeHost.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698