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

Side by Side Diff: cc/test/fake_scrollbar.h

Issue 524373003: Scrollbar ThumbLength is not updated when window size is changed. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Modified Variable Name Created 6 years, 3 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 2012 The Chromium Authors. All rights reserved. 1 // Copyright 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 CC_TEST_FAKE_SCROLLBAR_H_ 5 #ifndef CC_TEST_FAKE_SCROLLBAR_H_
6 #define CC_TEST_FAKE_SCROLLBAR_H_ 6 #define CC_TEST_FAKE_SCROLLBAR_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "cc/input/scrollbar.h" 9 #include "cc/input/scrollbar.h"
10 #include "third_party/skia/include/core/SkColor.h" 10 #include "third_party/skia/include/core/SkColor.h"
(...skipping 18 matching lines...) Expand all
29 virtual void PaintPart(SkCanvas* canvas, 29 virtual void PaintPart(SkCanvas* canvas,
30 ScrollbarPart part, 30 ScrollbarPart part,
31 const gfx::Rect& content_rect) OVERRIDE; 31 const gfx::Rect& content_rect) OVERRIDE;
32 32
33 void set_location(const gfx::Point& location) { location_ = location; } 33 void set_location(const gfx::Point& location) { location_ = location; }
34 void set_track_rect(const gfx::Rect& track_rect) { track_rect_ = track_rect; } 34 void set_track_rect(const gfx::Rect& track_rect) { track_rect_ = track_rect; }
35 void set_thumb_thickness(int thumb_thickness) { 35 void set_thumb_thickness(int thumb_thickness) {
36 thumb_thickness_ = thumb_thickness; 36 thumb_thickness_ = thumb_thickness;
37 } 37 }
38 void set_thumb_length(int thumb_length) { thumb_length_ = thumb_length; } 38 void set_thumb_length(int thumb_length) { thumb_length_ = thumb_length; }
39 void set_has_thumb(bool has_thumb) { has_thumb_ = has_thumb; }
40
39 SkColor paint_fill_color() const { return SK_ColorBLACK | fill_color_; } 41 SkColor paint_fill_color() const { return SK_ColorBLACK | fill_color_; }
40 42
41 private: 43 private:
42 bool paint_; 44 bool paint_;
43 bool has_thumb_; 45 bool has_thumb_;
44 bool is_overlay_; 46 bool is_overlay_;
45 int thumb_thickness_; 47 int thumb_thickness_;
46 int thumb_length_; 48 int thumb_length_;
47 gfx::Point location_; 49 gfx::Point location_;
48 gfx::Rect track_rect_; 50 gfx::Rect track_rect_;
49 SkColor fill_color_; 51 SkColor fill_color_;
50 52
51 DISALLOW_COPY_AND_ASSIGN(FakeScrollbar); 53 DISALLOW_COPY_AND_ASSIGN(FakeScrollbar);
52 }; 54 };
53 55
54 } // namespace cc 56 } // namespace cc
55 57
56 #endif // CC_TEST_FAKE_SCROLLBAR_H_ 58 #endif // CC_TEST_FAKE_SCROLLBAR_H_
OLDNEW
« cc/layers/painted_scrollbar_layer.cc ('K') | « cc/layers/scrollbar_layer_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698