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

Unified Diff: Source/core/testing/Internals.cpp

Issue 1209183004: Expose scroll customization for touch to JS (behind REF). (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Clean up static map. Created 5 years, 5 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/testing/Internals.cpp
diff --git a/Source/core/testing/Internals.cpp b/Source/core/testing/Internals.cpp
index 60a01a4e2f0013f89047e12ae3a2f6c53e14426c..4071a1a49f1695e73334e2d67e4865a94cc17986 100644
--- a/Source/core/testing/Internals.cpp
+++ b/Source/core/testing/Internals.cpp
@@ -115,6 +115,7 @@
#include "core/page/NetworkStateNotifier.h"
#include "core/page/Page.h"
#include "core/page/PrintContext.h"
+#include "core/page/scrolling/ScrollState.h"
#include "core/paint/DeprecatedPaintLayer.h"
#include "core/plugins/testing/DictionaryPluginPlaceholder.h"
#include "core/plugins/testing/DocumentFragmentPluginPlaceholder.h"
@@ -2406,6 +2407,15 @@ void Internals::forcePluginPlaceholder(HTMLElement* element, const PluginPlaceho
toHTMLPlugInElement(element)->setPlaceholder(DictionaryPluginPlaceholder::create(element->document(), options));
}
+void Internals::setScrollChain(
+ ScrollState* scrollState, const WillBeHeapVector<RefPtrWillBeMember<Element>>& elements, ExceptionState&)
+{
+ WillBeHeapDeque<RefPtrWillBeMember<Element>> scrollChain;
+ for (size_t i = 0; i < elements.size(); ++i)
+ scrollChain.append(elements[i]);
+ scrollState->setScrollChain(scrollChain);
+}
+
void Internals::forceBlinkGCWithoutV8GC()
{
ThreadState::current()->setGCState(ThreadState::FullGCScheduled);

Powered by Google App Engine
This is Rietveld 408576698