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

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

Issue 1236913004: Expose scroll customization for touch to JS (behind REF). (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Change map value to WeakMember, remove Document hack. Created 5 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
Index: Source/core/dom/Element.h
diff --git a/Source/core/dom/Element.h b/Source/core/dom/Element.h
index dce3454562c6bd32ca41d2e0319f4ffc5fe56a8a..83c7da711c325e46f896e0fada9afafcf7af3daf 100644
--- a/Source/core/dom/Element.h
+++ b/Source/core/dom/Element.h
@@ -62,6 +62,7 @@ class MutableStylePropertySet;
class PropertySetCSSStyleDeclaration;
class PseudoElement;
class ScrollState;
+class ScrollStateCallback;
class ScrollToOptions;
class ShadowRoot;
class ShadowRootInit;
@@ -172,9 +173,6 @@ public:
void scrollIntoView(bool alignToTop = true);
void scrollIntoViewIfNeeded(bool centerIfNeeded = true);
- void distributeScroll(ScrollState&);
- void applyScroll(ScrollState&);
-
int offsetLeft();
int offsetTop();
int offsetWidth();
@@ -380,6 +378,17 @@ public:
virtual void focus(bool restorePreviousSelection = true, WebFocusType = WebFocusTypeNone, InputDeviceCapabilities* sourceCapabilities = nullptr);
virtual void updateFocusAppearance(bool restorePreviousSelection);
virtual void blur();
+
+ static void removeScrollCustomizationCallbacksForDocument(Document*);
haraken 2015/08/27 00:49:40 Can we remove this now?
tdresser 2015/08/27 20:48:40 Done.
+
+ void setDistributeScroll(ScrollStateCallback*, String nativeScrollBehavior);
+ void nativeDistributeScroll(ScrollState&);
+ void setApplyScroll(ScrollStateCallback*, String nativeScrollBehavior);
+ void nativeApplyScroll(ScrollState&);
+
+ void callDistributeScroll(ScrollState&);
+ void callApplyScroll(ScrollState&);
+
// Whether this element can receive focus at all. Most elements are not
// focusable but some elements, such as form controls and links, are. Unlike
// layoutObjectIsFocusable(), this method may be called when layout is not up to
« no previous file with comments | « Source/core/core.gypi ('k') | Source/core/dom/Element.cpp » ('j') | Source/core/dom/Element.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698