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

Unified Diff: content/child/webthemeengine_impl_default.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
Index: content/child/webthemeengine_impl_default.cc
diff --git a/content/child/webthemeengine_impl_default.cc b/content/child/webthemeengine_impl_default.cc
index d55bea603310f74659ac9c358ac27951ff60680a..169f96952c08e75c5c6b97b7771f2c7b9ca62cdb 100644
--- a/content/child/webthemeengine_impl_default.cc
+++ b/content/child/webthemeengine_impl_default.cc
@@ -9,6 +9,7 @@
#include "third_party/WebKit/public/platform/WebRect.h"
#include "third_party/WebKit/public/platform/WebSize.h"
#include "ui/native_theme/native_theme.h"
+#include "ui/native_theme/overlay_scrollbar_constants_aura.h"
using blink::WebCanvas;
using blink::WebColor;
@@ -243,6 +244,15 @@ void WebThemeEngineImpl::paint(
native_theme_extra_params);
}
+void WebThemeEngineImpl::getOverlayScrollbarStyle(ScrollbarStyle* style) {
+ style->fadeOutDelaySeconds = ui::kOverlayScrollbarFadeOutDelay.InSecondsF();
+ style->fadeOutDurationSeconds =
+ ui::kOverlayScrollbarFadeOutDuration.InSecondsF();
+ // The other fields in this struct are used only on Android to draw solid
+ // color scrollbars. On other platforms the scrollbars are painted in
+ // NativeTheme so these fields are unused.
+}
+
#if defined(OS_WIN)
// static
void WebThemeEngineImpl::cacheScrollBarMetrics(

Powered by Google App Engine
This is Rietveld 408576698