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

Unified Diff: cc/layers/scrollbar_layer_impl.h

Issue 17550008: Make IsSolidColor() a property on CC scrollbar layers. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address Jochen's comments. Created 7 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: cc/layers/scrollbar_layer_impl.h
diff --git a/cc/layers/scrollbar_layer_impl.h b/cc/layers/scrollbar_layer_impl.h
index dbbbe480e453fc014c7299deb10e7ef181d7b4de..b0aa9f87729407afe9b76ebd0b7bb17667aa66e6 100644
--- a/cc/layers/scrollbar_layer_impl.h
+++ b/cc/layers/scrollbar_layer_impl.h
@@ -19,7 +19,8 @@ class CC_EXPORT ScrollbarLayerImpl : public LayerImpl {
static scoped_ptr<ScrollbarLayerImpl> Create(
LayerTreeImpl* tree_impl,
int id,
- ScrollbarOrientation orientation);
+ ScrollbarOrientation orientation,
+ bool is_solid_color);
virtual ~ScrollbarLayerImpl();
// LayerImpl implementation.
@@ -39,6 +40,8 @@ class CC_EXPORT ScrollbarLayerImpl : public LayerImpl {
void set_scroll_layer_id(int id) { scroll_layer_id_ = id; }
ScrollbarOrientation Orientation() const;
+ bool is_solid_color() const;
+ void set_is_solid_color(bool is_solid_color);
jamesr 2013/07/03 21:26:24 inline these if you're going to use hacker_style n
float CurrentPos() const;
int Maximum() const;
@@ -75,7 +78,8 @@ class CC_EXPORT ScrollbarLayerImpl : public LayerImpl {
protected:
ScrollbarLayerImpl(LayerTreeImpl* tree_impl,
int id,
- ScrollbarOrientation orientation);
+ ScrollbarOrientation orientation,
+ bool is_solid_color);
private:
virtual const char* LayerTypeAsString() const OVERRIDE;
@@ -106,6 +110,7 @@ class CC_EXPORT ScrollbarLayerImpl : public LayerImpl {
bool enabled_;
bool is_custom_scrollbar_;
bool is_overlay_scrollbar_;
+ bool is_solid_color_;
DISALLOW_COPY_AND_ASSIGN(ScrollbarLayerImpl);
};

Powered by Google App Engine
This is Rietveld 408576698