OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef UI_VIEWS_CONTROLS_SCROLLBAR_OVERLAY_SCROLL_BAR_H_ | 5 #ifndef UI_VIEWS_CONTROLS_SCROLLBAR_OVERLAY_SCROLL_BAR_H_ |
6 #define UI_VIEWS_CONTROLS_SCROLLBAR_OVERLAY_SCROLL_BAR_H_ | 6 #define UI_VIEWS_CONTROLS_SCROLLBAR_OVERLAY_SCROLL_BAR_H_ |
7 | 7 |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
9 #include "ui/views/controls/scrollbar/base_scroll_bar.h" | 9 #include "ui/views/controls/scrollbar/base_scroll_bar.h" |
10 #include "ui/views/controls/scrollbar/base_scroll_bar_thumb.h" | 10 #include "ui/views/controls/scrollbar/base_scroll_bar_thumb.h" |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 }; | 52 }; |
53 friend class Thumb; | 53 friend class Thumb; |
54 | 54 |
55 // Shows this (effectively, the thumb) without delay. | 55 // Shows this (effectively, the thumb) without delay. |
56 void Show(); | 56 void Show(); |
57 // Hides this with a delay. | 57 // Hides this with a delay. |
58 void Hide(); | 58 void Hide(); |
59 // Starts a countdown that hides this when it fires. | 59 // Starts a countdown that hides this when it fires. |
60 void StartHideCountdown(); | 60 void StartHideCountdown(); |
61 | 61 |
62 base::Timer hide_timer_; | 62 base::OneShotTimer hide_timer_; |
63 | 63 |
64 DISALLOW_COPY_AND_ASSIGN(OverlayScrollBar); | 64 DISALLOW_COPY_AND_ASSIGN(OverlayScrollBar); |
65 }; | 65 }; |
66 | 66 |
67 } // namespace views | 67 } // namespace views |
68 | 68 |
69 #endif // UI_VIEWS_CONTROLS_SCROLLBAR_OVERLAY_SCROLL_BAR_H_ | 69 #endif // UI_VIEWS_CONTROLS_SCROLLBAR_OVERLAY_SCROLL_BAR_H_ |
OLD | NEW |