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

Unified Diff: third_party/WebKit/Source/platform/scroll/ScrollableArea.h

Issue 2453553003: Disable overlay scrollbars in Blink when hidden by the compositor. (Closed)
Patch Set: Rebase Created 4 years, 2 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: third_party/WebKit/Source/platform/scroll/ScrollableArea.h
diff --git a/third_party/WebKit/Source/platform/scroll/ScrollableArea.h b/third_party/WebKit/Source/platform/scroll/ScrollableArea.h
index 17802ed6a3ff26305b8a23f95e16c7a16e7fe54c..f92a1452535f92f51bd36b7a627cfe147a10025c 100644
--- a/third_party/WebKit/Source/platform/scroll/ScrollableArea.h
+++ b/third_party/WebKit/Source/platform/scroll/ScrollableArea.h
@@ -253,6 +253,11 @@ class PLATFORM_EXPORT ScrollableArea : public GarbageCollectedMixin {
virtual bool usesCompositedScrolling() const { return false; }
virtual bool shouldScrollOnMainThread() const;
+ // Overlay scrollbars can "fade-out" when inactive.
+ virtual bool scrollbarsHidden() const;
+ virtual void setScrollbarsHidden(bool);
+ virtual void didChangeScrollbarsHidden(){};
+
// Returns true if the GraphicsLayer tree needs to be rebuilt.
virtual bool updateAfterCompositingChange() { return false; }
@@ -398,6 +403,7 @@ class PLATFORM_EXPORT ScrollableArea : public GarbageCollectedMixin {
unsigned m_horizontalScrollbarNeedsPaintInvalidation : 1;
unsigned m_verticalScrollbarNeedsPaintInvalidation : 1;
unsigned m_scrollCornerNeedsPaintInvalidation : 1;
+ unsigned m_scrollbarsHidden : 1;
// There are 6 possible combinations of writing mode and direction. Scroll
// origin will be non-zero in the x or y axis if there is any reversed

Powered by Google App Engine
This is Rietveld 408576698