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 "ui/gfx/animation/slide_animation.h" | 9 #include "ui/gfx/animation/slide_animation.h" |
9 #include "ui/views/controls/scrollbar/base_scroll_bar.h" | 10 #include "ui/views/controls/scrollbar/base_scroll_bar.h" |
10 | 11 |
11 namespace views { | 12 namespace views { |
12 | 13 |
13 // The transparent scrollbar which overlays its contents. | 14 // The transparent scrollbar which overlays its contents. |
14 class VIEWS_EXPORT OverlayScrollBar : public BaseScrollBar { | 15 class VIEWS_EXPORT OverlayScrollBar : public BaseScrollBar { |
15 public: | 16 public: |
16 explicit OverlayScrollBar(bool horizontal); | 17 explicit OverlayScrollBar(bool horizontal); |
17 ~OverlayScrollBar() override; | 18 ~OverlayScrollBar() override; |
(...skipping 15 matching lines...) Expand all Loading... |
33 void OnPaint(gfx::Canvas* canvas) override; | 34 void OnPaint(gfx::Canvas* canvas) override; |
34 | 35 |
35 private: | 36 private: |
36 gfx::SlideAnimation animation_; | 37 gfx::SlideAnimation animation_; |
37 DISALLOW_COPY_AND_ASSIGN(OverlayScrollBar); | 38 DISALLOW_COPY_AND_ASSIGN(OverlayScrollBar); |
38 }; | 39 }; |
39 | 40 |
40 } // namespace views | 41 } // namespace views |
41 | 42 |
42 #endif // UI_VIEWS_CONTROLS_SCROLLBAR_OVERLAY_SCROLL_BAR_H_ | 43 #endif // UI_VIEWS_CONTROLS_SCROLLBAR_OVERLAY_SCROLL_BAR_H_ |
OLD | NEW |