| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_LAYERS_PAINTED_SCROLLBAR_LAYER_H_ | 5 #ifndef CC_LAYERS_PAINTED_SCROLLBAR_LAYER_H_ |
| 6 #define CC_LAYERS_PAINTED_SCROLLBAR_LAYER_H_ | 6 #define CC_LAYERS_PAINTED_SCROLLBAR_LAYER_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "cc/base/cc_export.h" | 9 #include "cc/base/cc_export.h" |
| 10 #include "cc/input/scrollbar.h" | 10 #include "cc/input/scrollbar.h" |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 static scoped_refptr<PaintedScrollbarLayer> Create( | 23 static scoped_refptr<PaintedScrollbarLayer> Create( |
| 24 std::unique_ptr<Scrollbar> scrollbar, | 24 std::unique_ptr<Scrollbar> scrollbar, |
| 25 int scroll_layer_id); | 25 int scroll_layer_id); |
| 26 | 26 |
| 27 bool OpacityCanAnimateOnImplThread() const override; | 27 bool OpacityCanAnimateOnImplThread() const override; |
| 28 bool AlwaysUseActiveTreeOpacity() const override; | 28 bool AlwaysUseActiveTreeOpacity() const override; |
| 29 ScrollbarLayerInterface* ToScrollbarLayer() override; | 29 ScrollbarLayerInterface* ToScrollbarLayer() override; |
| 30 | 30 |
| 31 // ScrollbarLayerInterface | 31 // ScrollbarLayerInterface |
| 32 int ScrollLayerId() const override; | 32 int ScrollLayerId() const override; |
| 33 void SetScrollLayer(int layer_id) override; | |
| 34 | |
| 35 ScrollbarOrientation orientation() const override; | 33 ScrollbarOrientation orientation() const override; |
| 36 | 34 |
| 37 // Layer interface | 35 // Layer interface |
| 38 bool Update() override; | 36 bool Update() override; |
| 39 void SetLayerTreeHost(LayerTreeHost* host) override; | 37 void SetLayerTreeHost(LayerTreeHost* host) override; |
| 40 void PushPropertiesTo(LayerImpl* layer) override; | 38 void PushPropertiesTo(LayerImpl* layer) override; |
| 41 | 39 |
| 42 const gfx::Size& internal_content_bounds() const { | 40 const gfx::Size& internal_content_bounds() const { |
| 43 return internal_content_bounds_; | 41 return internal_content_bounds_; |
| 44 } | 42 } |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 94 std::unique_ptr<ScopedUIResource> thumb_resource_; | 92 std::unique_ptr<ScopedUIResource> thumb_resource_; |
| 95 | 93 |
| 96 float thumb_opacity_; | 94 float thumb_opacity_; |
| 97 | 95 |
| 98 DISALLOW_COPY_AND_ASSIGN(PaintedScrollbarLayer); | 96 DISALLOW_COPY_AND_ASSIGN(PaintedScrollbarLayer); |
| 99 }; | 97 }; |
| 100 | 98 |
| 101 } // namespace cc | 99 } // namespace cc |
| 102 | 100 |
| 103 #endif // CC_LAYERS_PAINTED_SCROLLBAR_LAYER_H_ | 101 #endif // CC_LAYERS_PAINTED_SCROLLBAR_LAYER_H_ |
| OLD | NEW |