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

Unified Diff: content/child/webthemeengine_impl_default.cc

Issue 2467693002: Implement overlay scrollbar fade out for non-composited scrollers. (Closed)
Patch Set: overlay-scrollbar-mouse-capture now works on Mac 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..07ca25b490de932916b8bc4ba53c53951b11b689 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,16 @@ void WebThemeEngineImpl::paint(
native_theme_extra_params);
}
+double WebThemeEngineImpl::getOverlayScrollbarFadeOutDelaySeconds()
+{
+ return ui::kOverlayScrollbarFadeOutDelay.InSecondsF();
+}
+
+double WebThemeEngineImpl::getOverlayScrollbarFadeOutDurationSeconds()
+{
+ return ui::kOverlayScrollbarFadeOutDuration.InSecondsF();
+}
+
#if defined(OS_WIN)
// static
void WebThemeEngineImpl::cacheScrollBarMetrics(

Powered by Google App Engine
This is Rietveld 408576698