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

Unified Diff: ui/native_theme/overlay_scrollbar_constants_aura.h

Issue 2716453005: Aura Overlay Scrollbars appear when mouse hovers over scroller edge (Closed)
Patch Set: rename fade in to show Created 3 years, 10 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
« no previous file with comments | « content/renderer/gpu/render_widget_compositor.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/native_theme/overlay_scrollbar_constants_aura.h
diff --git a/ui/native_theme/overlay_scrollbar_constants_aura.h b/ui/native_theme/overlay_scrollbar_constants_aura.h
index 4022705dcb5971e6e2f1ef4d8a1db0082372506f..65537995792dd13f5387a16e2a9c6a92f7ef2926 100644
--- a/ui/native_theme/overlay_scrollbar_constants_aura.h
+++ b/ui/native_theme/overlay_scrollbar_constants_aura.h
@@ -14,6 +14,10 @@ constexpr int kOverlayScrollbarThumbWidthNormal = 6;
constexpr int kOverlayScrollbarThumbWidthHovered = 10;
constexpr int kOverlayScrollbarThumbWidthPressed = 10;
+// kOverlayScrollbarShowDelay is only for the case where the mouse hovers near
+// the screen edge.
+constexpr base::TimeDelta kOverlayScrollbarShowDelay =
+ base::TimeDelta::FromMilliseconds(1000);
constexpr base::TimeDelta kOverlayScrollbarFadeOutDelay =
base::TimeDelta::FromMilliseconds(1000);
constexpr base::TimeDelta kOverlayScrollbarFadeOutDuration =
@@ -22,6 +26,6 @@ constexpr base::TimeDelta kOverlayScrollbarFadeOutDuration =
constexpr base::TimeDelta kOverlayScrollbarThinningDuration =
base::TimeDelta::FromMilliseconds(200);
-} // namespace ui
+} // namespace ui
-#endif // UI_NATIVE_THEME_OVERLAY_SCROLLBAR_CONSTANTS_AURA_H_
+#endif // UI_NATIVE_THEME_OVERLAY_SCROLLBAR_CONSTANTS_AURA_H_
« no previous file with comments | « content/renderer/gpu/render_widget_compositor.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698