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

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

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.h
diff --git a/Source/platform/scroll/Scrollbar.h b/Source/platform/scroll/Scrollbar.h
index 58752638ad0f97d798f28e12f07f3d5e4d335dac..b09db7f9b89a88df407621f47128aea9bc401392 100644
--- a/Source/platform/scroll/Scrollbar.h
+++ b/Source/platform/scroll/Scrollbar.h
@@ -30,6 +30,7 @@
#include "platform/Widget.h"
#include "platform/scroll/ScrollTypes.h"
#include "platform/scroll/ScrollbarThemeClient.h"
+#include "public/platform/WebThemeEngine.h"
#include "wtf/MathExtras.h"
#include "wtf/PassRefPtr.h"
@@ -101,6 +102,8 @@ public:
// Called by the ScrollableArea when the scroll offset changes.
void offsetDidChange();
+ void updateStateTransitionData(blink::WebThemeEngine::State, blink::WebThemeEngine::State, double);
+
void disconnectFromScrollableArea() { m_scrollableArea = 0; }
ScrollableArea* scrollableArea() const { return m_scrollableArea; }
@@ -117,6 +120,11 @@ public:
virtual bool isOverlayScrollbar() const OVERRIDE;
bool shouldParticipateInHitTesting();
+ virtual bool isDuringStateTransitionAnimation() const OVERRIDE;
+ virtual double stateTransitionProgress() const OVERRIDE;
+ virtual blink::WebThemeEngine::State stateTransitionStartState() const OVERRIDE;
+ virtual blink::WebThemeEngine::State stateTransitionEndState() const OVERRIDE;
+
bool isWindowActive() const;
bool gestureEvent(const PlatformGestureEvent&);
@@ -190,6 +198,10 @@ protected:
bool m_isAlphaLocked;
+ double m_stateTransitionProgress;
+ blink::WebThemeEngine::State m_startState;
+ blink::WebThemeEngine::State m_endState;
+
private:
virtual bool isScrollbar() const OVERRIDE { return true; }

Powered by Google App Engine
This is Rietveld 408576698