OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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_KENNEDY_SCROLL_BAR_H_ | 5 #ifndef UI_VIEWS_CONTROLS_SCROLLBAR_KENNEDY_SCROLL_BAR_H_ |
6 #define UI_VIEWS_CONTROLS_SCROLLBAR_KENNEDY_SCROLL_BAR_H_ | 6 #define UI_VIEWS_CONTROLS_SCROLLBAR_KENNEDY_SCROLL_BAR_H_ |
7 | 7 |
| 8 #include "base/macros.h" |
8 #include "ui/views/controls/scrollbar/base_scroll_bar.h" | 9 #include "ui/views/controls/scrollbar/base_scroll_bar.h" |
9 | 10 |
10 namespace views { | 11 namespace views { |
11 | 12 |
12 // The scrollbar of kennedy style. Transparent track and grey rectangle | 13 // The scrollbar of kennedy style. Transparent track and grey rectangle |
13 // thumb. Right now it doesn't have the way to share the background, | 14 // thumb. Right now it doesn't have the way to share the background, |
14 // so it will accept the background color instead. | 15 // so it will accept the background color instead. |
15 class VIEWS_EXPORT KennedyScrollBar : public BaseScrollBar { | 16 class VIEWS_EXPORT KennedyScrollBar : public BaseScrollBar { |
16 public: | 17 public: |
17 explicit KennedyScrollBar(bool horizontal); | 18 explicit KennedyScrollBar(bool horizontal); |
(...skipping 11 matching lines...) Expand all Loading... |
29 void Layout() override; | 30 void Layout() override; |
30 void OnPaint(gfx::Canvas* canvas) override; | 31 void OnPaint(gfx::Canvas* canvas) override; |
31 | 32 |
32 private: | 33 private: |
33 DISALLOW_COPY_AND_ASSIGN(KennedyScrollBar); | 34 DISALLOW_COPY_AND_ASSIGN(KennedyScrollBar); |
34 }; | 35 }; |
35 | 36 |
36 } // namespace views | 37 } // namespace views |
37 | 38 |
38 #endif // UI_VIEWS_CONTROLS_SCROLLBAR_KENNEDY_SCROLL_BAR_H_ | 39 #endif // UI_VIEWS_CONTROLS_SCROLLBAR_KENNEDY_SCROLL_BAR_H_ |
OLD | NEW |