Chromium Code Reviews| Index: third_party/WebKit/Source/core/testing/Internals.cpp |
| diff --git a/third_party/WebKit/Source/core/testing/Internals.cpp b/third_party/WebKit/Source/core/testing/Internals.cpp |
| index 895adc8ff1ba4a99288bd717643f53dd16453813..fe976250d46dcfbfa0804560e6dc433851fb83f0 100644 |
| --- a/third_party/WebKit/Source/core/testing/Internals.cpp |
| +++ b/third_party/WebKit/Source/core/testing/Internals.cpp |
| @@ -136,6 +136,7 @@ |
| #include "platform/graphics/GraphicsLayer.h" |
| #include "platform/heap/Handle.h" |
| #include "platform/inspector_protocol/FrontendChannel.h" |
| +#include "platform/scroll/ProgrammaticScrollAnimator.h" |
| #include "platform/weborigin/SchemeRegistry.h" |
| #include "public/platform/Platform.h" |
| #include "public/platform/WebConnectionType.h" |
| @@ -2572,4 +2573,11 @@ int Internals::getScrollAnimationState(Node* node) const |
| return -1; |
| } |
| +int Internals::getProgrammaticScrollAnimationState(Node* node) const |
| +{ |
| + if (ScrollableArea* scrollableArea = scrollableAreaForNode(node)) |
| + return static_cast<int>(scrollableArea->programmaticScrollAnimator().m_runState); |
|
jbroman
2016/03/14 17:35:32
This seems super-internal, even for Internals. It'
ymalik
2016/03/14 21:45:40
Done. Will change it above in a follow up CL to no
|
| + return -1; |
| +} |
| + |
| } // namespace blink |