| OLD | NEW |
| 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 CCScrollbarLayerImpl_h | 5 #ifndef CCScrollbarLayerImpl_h |
| 6 #define CCScrollbarLayerImpl_h | 6 #define CCScrollbarLayerImpl_h |
| 7 | 7 |
| 8 #include "cc/cc_export.h" |
| 8 #include "cc/layer_impl.h" | 9 #include "cc/layer_impl.h" |
| 9 #include "cc/scrollbar_geometry_fixed_thumb.h" | 10 #include "cc/scrollbar_geometry_fixed_thumb.h" |
| 10 #include <public/WebRect.h> | 11 #include <public/WebRect.h> |
| 11 #include <public/WebScrollbar.h> | 12 #include <public/WebScrollbar.h> |
| 12 #include <public/WebVector.h> | 13 #include <public/WebVector.h> |
| 13 | 14 |
| 14 namespace cc { | 15 namespace cc { |
| 15 | 16 |
| 16 class ScrollView; | 17 class ScrollView; |
| 17 | 18 |
| 18 class ScrollbarLayerImpl : public LayerImpl { | 19 class CC_EXPORT ScrollbarLayerImpl : public LayerImpl { |
| 19 public: | 20 public: |
| 20 static scoped_ptr<ScrollbarLayerImpl> create(int id); | 21 static scoped_ptr<ScrollbarLayerImpl> create(int id); |
| 21 virtual ~ScrollbarLayerImpl(); | 22 virtual ~ScrollbarLayerImpl(); |
| 22 | 23 |
| 23 ScrollbarGeometryFixedThumb* scrollbarGeometry() const { return m_geometry.g
et(); } | 24 ScrollbarGeometryFixedThumb* scrollbarGeometry() const { return m_geometry.g
et(); } |
| 24 void setScrollbarGeometry(scoped_ptr<ScrollbarGeometryFixedThumb>); | 25 void setScrollbarGeometry(scoped_ptr<ScrollbarGeometryFixedThumb>); |
| 25 void setScrollbarData(WebKit::WebScrollbar*); | 26 void setScrollbarData(WebKit::WebScrollbar*); |
| 26 | 27 |
| 27 void setBackTrackResourceId(ResourceProvider::ResourceId id) { m_backTrackRe
sourceId = id; } | 28 void setBackTrackResourceId(ResourceProvider::ResourceId id) { m_backTrackRe
sourceId = id; } |
| 28 void setForeTrackResourceId(ResourceProvider::ResourceId id) { m_foreTrackRe
sourceId = id; } | 29 void setForeTrackResourceId(ResourceProvider::ResourceId id) { m_foreTrackRe
sourceId = id; } |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 101 | 102 |
| 102 bool m_isScrollableAreaActive; | 103 bool m_isScrollableAreaActive; |
| 103 bool m_isScrollViewScrollbar; | 104 bool m_isScrollViewScrollbar; |
| 104 bool m_enabled; | 105 bool m_enabled; |
| 105 bool m_isCustomScrollbar; | 106 bool m_isCustomScrollbar; |
| 106 bool m_isOverlayScrollbar; | 107 bool m_isOverlayScrollbar; |
| 107 }; | 108 }; |
| 108 | 109 |
| 109 } | 110 } |
| 110 #endif | 111 #endif |
| OLD | NEW |