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

Unified Diff: Source/platform/scroll/Scrollbar.cpp

Issue 246293006: Blink Support for Overlay Scrollbar Animation Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: fix try server compile error Created 6 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/platform/scroll/Scrollbar.cpp
diff --git a/Source/platform/scroll/Scrollbar.cpp b/Source/platform/scroll/Scrollbar.cpp
index 712d5c131b9540ea383a7c6de3ddeebf793842bb..2268cbba8ae7df1b38aaa6b90c6161af7b705f51 100644
--- a/Source/platform/scroll/Scrollbar.cpp
+++ b/Source/platform/scroll/Scrollbar.cpp
@@ -538,6 +538,33 @@ bool Scrollbar::isOverlayScrollbar() const
return m_theme->usesOverlayScrollbars();
}
+bool Scrollbar::isDuringStateTransitionAnimation() const
+{
+ return m_enabled && isOverlayScrollbar() && m_scrollableArea->isDuringStateTransitionAnimation();
+}
+
+double Scrollbar::stateTransitionProgress() const
+{
+ return m_stateTransitionProgress;
+}
+
+blink::WebThemeEngine::State Scrollbar::stateTransitionStartState() const
+{
+ return m_startState;
+}
+
+blink::WebThemeEngine::State Scrollbar::stateTransitionEndState() const
+{
+ return m_endState;
+}
+
+void Scrollbar::updateStateTransitionData(blink::WebThemeEngine::State startState, blink::WebThemeEngine::State endState, double progress)
+{
+ m_startState = startState;
+ m_endState = endState;
+ m_stateTransitionProgress = progress;
+ updateThumb();
+}
bool Scrollbar::shouldParticipateInHitTesting()
{
// Non-overlay scrollbars should always participate in hit testing.

Powered by Google App Engine
This is Rietveld 408576698