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

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: 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 d921b2d2da5ffc99455b6c1fbf51ea7aba599a2b..8126029a7457f44ce1316525131df816d9003dff 100644
--- a/third_party/WebKit/Source/platform/scroll/ScrollableArea.h
+++ b/third_party/WebKit/Source/platform/scroll/ScrollableArea.h
@@ -252,6 +252,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; }
@@ -397,6 +402,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