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

Side by Side Diff: ui/views/controls/scrollbar/overlay_scroll_bar.h

Issue 2837863004: Use base::OneShotTimer instead of base::Timer(false, false)
Patch Set: rebase Created 3 years, 7 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 unified diff | Download patch
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « remoting/protocol/ssl_hmac_channel_authenticator_unittest.cc ('k') | ui/views/controls/scrollbar/overlay_scroll_bar.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698