| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_BLINK_WEB_SCROLLBAR_LAYER_IMPL_H_ | 5 #ifndef CC_BLINK_WEB_SCROLLBAR_LAYER_IMPL_H_ |
| 6 #define CC_BLINK_WEB_SCROLLBAR_LAYER_IMPL_H_ | 6 #define CC_BLINK_WEB_SCROLLBAR_LAYER_IMPL_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 | 21 |
| 22 class WebLayerImpl; | 22 class WebLayerImpl; |
| 23 | 23 |
| 24 class WebScrollbarLayerImpl : public blink::WebScrollbarLayer { | 24 class WebScrollbarLayerImpl : public blink::WebScrollbarLayer { |
| 25 public: | 25 public: |
| 26 CC_BLINK_EXPORT WebScrollbarLayerImpl( | 26 CC_BLINK_EXPORT WebScrollbarLayerImpl( |
| 27 std::unique_ptr<blink::WebScrollbar> scrollbar, | 27 std::unique_ptr<blink::WebScrollbar> scrollbar, |
| 28 blink::WebScrollbarThemePainter painter, | 28 blink::WebScrollbarThemePainter painter, |
| 29 std::unique_ptr<blink::WebScrollbarThemeGeometry> geometry); | 29 std::unique_ptr<blink::WebScrollbarThemeGeometry> geometry); |
| 30 CC_BLINK_EXPORT WebScrollbarLayerImpl( | 30 CC_BLINK_EXPORT WebScrollbarLayerImpl( |
| 31 std::unique_ptr<blink::WebScrollbar> scrollbar, |
| 32 blink::WebScrollbarThemePainter painter, |
| 33 std::unique_ptr<blink::WebScrollbarThemeGeometry> geometry, |
| 34 bool temp); |
| 35 CC_BLINK_EXPORT WebScrollbarLayerImpl( |
| 31 blink::WebScrollbar::Orientation orientation, | 36 blink::WebScrollbar::Orientation orientation, |
| 32 int thumb_thickness, | 37 int thumb_thickness, |
| 33 int track_start, | 38 int track_start, |
| 34 bool is_left_side_vertical_scrollbar); | 39 bool is_left_side_vertical_scrollbar); |
| 35 ~WebScrollbarLayerImpl() override; | 40 ~WebScrollbarLayerImpl() override; |
| 36 | 41 |
| 37 // blink::WebScrollbarLayer implementation. | 42 // blink::WebScrollbarLayer implementation. |
| 38 blink::WebLayer* layer() override; | 43 blink::WebLayer* layer() override; |
| 39 void setScrollLayer(blink::WebLayer* layer) override; | 44 void setScrollLayer(blink::WebLayer* layer) override; |
| 40 | 45 |
| 41 private: | 46 private: |
| 42 std::unique_ptr<WebLayerImpl> layer_; | 47 std::unique_ptr<WebLayerImpl> layer_; |
| 43 | 48 |
| 44 DISALLOW_COPY_AND_ASSIGN(WebScrollbarLayerImpl); | 49 DISALLOW_COPY_AND_ASSIGN(WebScrollbarLayerImpl); |
| 45 }; | 50 }; |
| 46 | 51 |
| 47 } // namespace cc_blink | 52 } // namespace cc_blink |
| 48 | 53 |
| 49 #endif // CC_BLINK_WEB_SCROLLBAR_LAYER_IMPL_H_ | 54 #endif // CC_BLINK_WEB_SCROLLBAR_LAYER_IMPL_H_ |
| OLD | NEW |