OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_BITMAP_SCROLL_BAR_H_ | 5 #ifndef UI_VIEWS_CONTROLS_SCROLLBAR_BITMAP_SCROLL_BAR_H_ |
6 #define UI_VIEWS_CONTROLS_SCROLLBAR_BITMAP_SCROLL_BAR_H_ | 6 #define UI_VIEWS_CONTROLS_SCROLLBAR_BITMAP_SCROLL_BAR_H_ |
7 | 7 |
8 #include "ui/views/controls/scrollbar/base_scroll_bar.h" | 8 #include "ui/views/controls/scrollbar/base_scroll_bar.h" |
9 | 9 |
10 namespace views { | 10 namespace views { |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 // View overrides: | 62 // View overrides: |
63 virtual gfx::Size GetPreferredSize() OVERRIDE; | 63 virtual gfx::Size GetPreferredSize() OVERRIDE; |
64 virtual void Layout() OVERRIDE; | 64 virtual void Layout() OVERRIDE; |
65 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE; | 65 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE; |
66 | 66 |
67 // ScrollBar overrides: | 67 // ScrollBar overrides: |
68 virtual int GetLayoutSize() const OVERRIDE; | 68 virtual int GetLayoutSize() const OVERRIDE; |
69 | 69 |
70 // BaseButton::ButtonListener overrides: | 70 // BaseButton::ButtonListener overrides: |
71 virtual void ButtonPressed(Button* sender, | 71 virtual void ButtonPressed(Button* sender, |
72 const views::Event& event) OVERRIDE; | 72 const ui::Event& event) OVERRIDE; |
73 | 73 |
74 private: | 74 private: |
75 // Up/Down/Left/Right buttons. | 75 // Up/Down/Left/Right buttons. |
76 ImageButton* prev_button_; | 76 ImageButton* prev_button_; |
77 ImageButton* next_button_; | 77 ImageButton* next_button_; |
78 | 78 |
79 // The thumb needs to be able to access the part images. | 79 // The thumb needs to be able to access the part images. |
80 friend BitmapScrollBarThumb; | 80 friend BitmapScrollBarThumb; |
81 gfx::ImageSkia* images_[PART_COUNT][CustomButton::BS_COUNT]; | 81 gfx::ImageSkia* images_[PART_COUNT][CustomButton::BS_COUNT]; |
82 | 82 |
83 // True if the scroll buttons at each end of the scroll bar should be shown. | 83 // True if the scroll buttons at each end of the scroll bar should be shown. |
84 bool show_scroll_buttons_; | 84 bool show_scroll_buttons_; |
85 | 85 |
86 DISALLOW_COPY_AND_ASSIGN(BitmapScrollBar); | 86 DISALLOW_COPY_AND_ASSIGN(BitmapScrollBar); |
87 }; | 87 }; |
88 | 88 |
89 } // namespace views | 89 } // namespace views |
90 | 90 |
91 #endif // UI_VIEWS_CONTROLS_SCROLLBAR_BITMAP_SCROLL_BAR_H_ | 91 #endif // UI_VIEWS_CONTROLS_SCROLLBAR_BITMAP_SCROLL_BAR_H_ |
OLD | NEW |