diff options
Diffstat (limited to 'ui/views/controls/scrollbar/bitmap_scroll_bar.cc')
-rw-r--r-- | ui/views/controls/scrollbar/bitmap_scroll_bar.cc | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/ui/views/controls/scrollbar/bitmap_scroll_bar.cc b/ui/views/controls/scrollbar/bitmap_scroll_bar.cc index aa614ea..ee2ea4a 100644 --- a/ui/views/controls/scrollbar/bitmap_scroll_bar.cc +++ b/ui/views/controls/scrollbar/bitmap_scroll_bar.cc @@ -134,25 +134,25 @@ class BitmapScrollBarThumb : public BaseScrollBarThumb { } private: - // Returns the image rendered at the start of the thumb. - gfx::ImageSkia* start_cap_bitmap() const { + // Returns the bitmap rendered at the start of the thumb. + SkBitmap* start_cap_bitmap() const { return scroll_bar_->images_[BitmapScrollBar::THUMB_START_CAP][GetState()]; } - // Returns the image rendered at the end of the thumb. - gfx::ImageSkia* end_cap_bitmap() const { + // Returns the bitmap rendered at the end of the thumb. + SkBitmap* end_cap_bitmap() const { return scroll_bar_->images_[BitmapScrollBar::THUMB_END_CAP][GetState()]; } - // Returns the image that is tiled in the background of the thumb between + // Returns the bitmap that is tiled in the background of the thumb between // the start and the end caps. - gfx::ImageSkia* background_bitmap() const { + SkBitmap* background_bitmap() const { return scroll_bar_->images_[BitmapScrollBar::THUMB_MIDDLE][GetState()]; } - // Returns the image that is rendered in the middle of the thumb + // Returns the bitmap that is rendered in the middle of the thumb // transparently over the background bitmap. - gfx::ImageSkia* grippy_bitmap() const { + SkBitmap* grippy_bitmap() const { return scroll_bar_->images_[BitmapScrollBar::THUMB_GRIPPY] [CustomButton::BS_NORMAL]; } @@ -188,22 +188,22 @@ BitmapScrollBar::BitmapScrollBar(bool horizontal, bool show_scroll_buttons) void BitmapScrollBar::SetImage(ScrollBarPart part, CustomButton::ButtonState state, - gfx::ImageSkia* image_skia) { + SkBitmap* bitmap) { DCHECK(part < PART_COUNT); DCHECK(state < CustomButton::BS_COUNT); switch (part) { case PREV_BUTTON: - prev_button_->SetImage(state, image_skia); + prev_button_->SetImage(state, bitmap); break; case NEXT_BUTTON: - next_button_->SetImage(state, image_skia); + next_button_->SetImage(state, bitmap); break; case THUMB_START_CAP: case THUMB_MIDDLE: case THUMB_END_CAP: case THUMB_GRIPPY: case THUMB_TRACK: - images_[part][state] = image_skia; + images_[part][state] = bitmap; break; } } |