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

Unified Diff: ui/native_theme/overlay_scrollbar_constants_aura.h

Issue 2421913002: Change Aura overlay scrollbars from solid color to painted scrollbars. (Closed)
Patch Set: Rebase 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
« no previous file with comments | « ui/native_theme/native_theme_base.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
new file mode 100644
index 0000000000000000000000000000000000000000..4022705dcb5971e6e2f1ef4d8a1db0082372506f
--- /dev/null
+++ b/ui/native_theme/overlay_scrollbar_constants_aura.h
@@ -0,0 +1,27 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef UI_NATIVE_THEME_OVERLAY_SCROLLBAR_CONSTANTS_AURA_H_
+#define UI_NATIVE_THEME_OVERLAY_SCROLLBAR_CONSTANTS_AURA_H_
+
+#include "base/time/time.h"
+#include "ui/gfx/skia_util.h"
+
+namespace ui {
+
+constexpr int kOverlayScrollbarThumbWidthNormal = 6;
+constexpr int kOverlayScrollbarThumbWidthHovered = 10;
+constexpr int kOverlayScrollbarThumbWidthPressed = 10;
+
+constexpr base::TimeDelta kOverlayScrollbarFadeOutDelay =
+ base::TimeDelta::FromMilliseconds(1000);
+constexpr base::TimeDelta kOverlayScrollbarFadeOutDuration =
+ base::TimeDelta::FromMilliseconds(200);
+// TODO(bokan): This is still undetermined. crbug.com/652520.
+constexpr base::TimeDelta kOverlayScrollbarThinningDuration =
+ base::TimeDelta::FromMilliseconds(200);
+
+} // namespace ui
+
+#endif // UI_NATIVE_THEME_OVERLAY_SCROLLBAR_CONSTANTS_AURA_H_
« no previous file with comments | « ui/native_theme/native_theme_base.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698