forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
/
overlay_scrollbar_constants_aura.h
31 lines (23 loc) · 1.13 KB
/
overlay_scrollbar_constants_aura.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
// 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 kOverlayScrollbarStrokeWidth = 1;
constexpr int kOverlayScrollbarThumbWidthPressed = 10;
constexpr float kOverlayScrollbarThumbNormalAlpha = 0.5f;
constexpr float kOverlayScrollbarThumbHoverAlpha = 0.7f;
constexpr float kOverlayScrollbarStrokeNormalAlpha = 0.3f;
constexpr float kOverlayScrollbarStrokeHoverAlpha = 0.5f;
constexpr base::TimeDelta kOverlayScrollbarFadeDelay =
base::TimeDelta::FromMilliseconds(500);
constexpr base::TimeDelta kOverlayScrollbarFadeDuration =
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_