summaryrefslogtreecommitdiffstats
path: root/chromium/cc/layers/solid_color_scrollbar_layer_impl.h
diff options
context:
space:
mode:
authorAndras Becsi <andras.becsi@digia.com>2013-12-11 21:33:03 +0100
committerAndras Becsi <andras.becsi@digia.com>2013-12-13 12:34:07 +0100
commitf2a33ff9cbc6d19943f1c7fbddd1f23d23975577 (patch)
tree0586a32aa390ade8557dfd6b4897f43a07449578 /chromium/cc/layers/solid_color_scrollbar_layer_impl.h
parent5362912cdb5eea702b68ebe23702468d17c3017a (diff)
Update Chromium to branch 1650 (31.0.1650.63)
Change-Id: I57d8c832eaec1eb2364e0a8e7352a6dd354db99f Reviewed-by: Jocelyn Turcotte <jocelyn.turcotte@digia.com>
Diffstat (limited to 'chromium/cc/layers/solid_color_scrollbar_layer_impl.h')
-rw-r--r--chromium/cc/layers/solid_color_scrollbar_layer_impl.h52
1 files changed, 52 insertions, 0 deletions
diff --git a/chromium/cc/layers/solid_color_scrollbar_layer_impl.h b/chromium/cc/layers/solid_color_scrollbar_layer_impl.h
new file mode 100644
index 00000000000..56cbacd888c
--- /dev/null
+++ b/chromium/cc/layers/solid_color_scrollbar_layer_impl.h
@@ -0,0 +1,52 @@
+// Copyright 2013 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CC_LAYERS_SOLID_COLOR_SCROLLBAR_LAYER_IMPL_H_
+#define CC_LAYERS_SOLID_COLOR_SCROLLBAR_LAYER_IMPL_H_
+
+#include "cc/base/cc_export.h"
+#include "cc/layers/scrollbar_layer_impl_base.h"
+
+namespace cc {
+
+class CC_EXPORT SolidColorScrollbarLayerImpl : public ScrollbarLayerImplBase {
+ public:
+ static scoped_ptr<SolidColorScrollbarLayerImpl> Create(
+ LayerTreeImpl* tree_impl,
+ int id,
+ ScrollbarOrientation orientation,
+ int thumb_thickness,
+ bool is_left_side_vertical_scrollbar);
+ virtual ~SolidColorScrollbarLayerImpl();
+
+ // LayerImpl overrides.
+ virtual scoped_ptr<LayerImpl> CreateLayerImpl(LayerTreeImpl* tree_impl)
+ OVERRIDE;
+ virtual void PushPropertiesTo(LayerImpl* layer) OVERRIDE;
+
+ virtual void AppendQuads(QuadSink* quad_sink,
+ AppendQuadsData* append_quads_data) OVERRIDE;
+
+
+ protected:
+ SolidColorScrollbarLayerImpl(LayerTreeImpl* tree_impl,
+ int id,
+ ScrollbarOrientation orientation,
+ int thumb_thickness,
+ bool is_left_side_vertical_scrollbar);
+
+ // ScrollbarLayerImplBase implementation.
+ virtual int ThumbThickness() const OVERRIDE;
+ virtual int ThumbLength() const OVERRIDE;
+ virtual float TrackLength() const OVERRIDE;
+ virtual int TrackStart() const OVERRIDE;
+
+ private:
+ int thumb_thickness_;
+ SkColor color_;
+};
+
+} // namespace cc
+
+#endif // CC_LAYERS_SOLID_COLOR_SCROLLBAR_LAYER_IMPL_H_