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

Unified Diff: content/child/webthemeengine_impl_android.cc

Issue 2467693002: Implement overlay scrollbar fade out for non-composited scrollers. (Closed)
Patch Set: sigh....git cl format Created 4 years, 1 month 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
« no previous file with comments | « no previous file | content/child/webthemeengine_impl_default.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/webthemeengine_impl_android.cc
diff --git a/content/child/webthemeengine_impl_android.cc b/content/child/webthemeengine_impl_android.cc
index 7db2ef4317423a779c9b28dac2cc5406c0bedc1b..fa693b3cf9cb828de50d999ba530dc43c3a85629 100644
--- a/content/child/webthemeengine_impl_android.cc
+++ b/content/child/webthemeengine_impl_android.cc
@@ -173,6 +173,12 @@ blink::WebSize WebThemeEngineImpl::getSize(WebThemeEngine::Part part) {
}
void WebThemeEngineImpl::getOverlayScrollbarStyle(ScrollbarStyle* style) {
+ // TODO(bokan): Android scrollbars on non-composited scrollers don't
+ // currently fade out so the fadeOutDuration and Delay Now that this has
+ // been added into Blink for other platforms we should plumb that through for
+ // Android as well.
+ style->fadeOutDelaySeconds = 0;
+ style->fadeOutDurationSeconds = 0;
if (getMajorVersion() >= kVersionLollipop) {
style->thumbThickness = 4;
style->scrollbarMargin = 0;
« no previous file with comments | « no previous file | content/child/webthemeengine_impl_default.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698