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

Unified Diff: Source/core/dom/ElementRareData.h

Issue 1057603002: Expose scroll customization for touch to JS (behind REF). (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Address haraken's comments. 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
Index: Source/core/dom/ElementRareData.h
diff --git a/Source/core/dom/ElementRareData.h b/Source/core/dom/ElementRareData.h
index bcd739cf05d7d796782502e1998914bdb2390157..8f215d553a24564a6f81be8d38bfa5536397128c 100644
--- a/Source/core/dom/ElementRareData.h
+++ b/Source/core/dom/ElementRareData.h
@@ -31,6 +31,7 @@
#include "core/dom/custom/CustomElementDefinition.h"
#include "core/dom/shadow/ElementShadow.h"
#include "core/html/ClassList.h"
+#include "core/page/scrolling/ScrollStateCallback.h"
#include "core/style/StyleInheritedData.h"
#include "platform/heap/Handle.h"
#include "wtf/OwnPtr.h"
@@ -121,6 +122,14 @@ public:
void setCustomElementDefinition(PassRefPtrWillBeRawPtr<CustomElementDefinition> definition) { m_customElementDefinition = definition; }
CustomElementDefinition* customElementDefinition() const { return m_customElementDefinition.get(); }
+ void setDistributeScroll(ScrollStateCallback* scrollStateCallback) { m_distributeScroll = scrollStateCallback; }
+
+ ScrollStateCallback* getDistributeScroll() { return m_distributeScroll.get(); }
haraken 2015/06/30 07:08:30 Nit: Blink normally doesn't use a "get" prefix.
+
+ void setApplyScroll(ScrollStateCallback* scrollStateCallback) { m_applyScroll = scrollStateCallback; }
+
+ ScrollStateCallback* getApplyScroll() { return m_applyScroll.get(); }
haraken 2015/06/30 07:08:30 Ditto.
+
AttrNodeList& ensureAttrNodeList();
AttrNodeList* attrNodeList() { return m_attrNodeList.get(); }
void removeAttrNodeList() { m_attrNodeList.clear(); }
@@ -152,6 +161,9 @@ private:
RefPtrWillBeMember<PseudoElement> m_generatedFirstLetter;
RefPtrWillBeMember<PseudoElement> m_backdrop;
+ PersistentWillBeMember<ScrollStateCallback> m_applyScroll;
+ PersistentWillBeMember<ScrollStateCallback> m_distributeScroll;
+
explicit ElementRareData(LayoutObject*);
};

Powered by Google App Engine
This is Rietveld 408576698