| 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 #if USE(ACCELERATED_COMPOSITING) | 8 #if USE(ACCELERATED_COMPOSITING) |
| 9 | 9 |
| 10 #include "CCLayerImpl.h" | 10 #include "CCLayerImpl.h" |
| 11 #include "CCScrollbarGeometryFixedThumb.h" | 11 #include "CCScrollbarGeometryFixedThumb.h" |
| 12 #include <public/WebRect.h> | 12 #include <public/WebRect.h> |
| 13 #include <public/WebScrollbar.h> | 13 #include <public/WebScrollbar.h> |
| 14 #include <public/WebVector.h> | 14 #include <public/WebVector.h> |
| 15 | 15 |
| 16 namespace WebCore { | 16 namespace cc { |
| 17 | 17 |
| 18 class ScrollView; | 18 class ScrollView; |
| 19 | 19 |
| 20 class CCScrollbarLayerImpl : public CCLayerImpl { | 20 class CCScrollbarLayerImpl : public CCLayerImpl { |
| 21 public: | 21 public: |
| 22 static PassOwnPtr<CCScrollbarLayerImpl> create(int id); | 22 static PassOwnPtr<CCScrollbarLayerImpl> create(int id); |
| 23 | 23 |
| 24 CCScrollbarGeometryFixedThumb* scrollbarGeometry() const { return m_geometry
.get(); } | 24 CCScrollbarGeometryFixedThumb* scrollbarGeometry() const { return m_geometry
.get(); } |
| 25 void setScrollbarGeometry(PassOwnPtr<CCScrollbarGeometryFixedThumb>); | 25 void setScrollbarGeometry(PassOwnPtr<CCScrollbarGeometryFixedThumb>); |
| 26 void setScrollbarData(WebKit::WebScrollbar*); | 26 void setScrollbarData(WebKit::WebScrollbar*); |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 100 bool m_isScrollViewScrollbar; | 100 bool m_isScrollViewScrollbar; |
| 101 bool m_enabled; | 101 bool m_enabled; |
| 102 bool m_isCustomScrollbar; | 102 bool m_isCustomScrollbar; |
| 103 bool m_isOverlayScrollbar; | 103 bool m_isOverlayScrollbar; |
| 104 }; | 104 }; |
| 105 | 105 |
| 106 } | 106 } |
| 107 #endif // USE(ACCELERATED_COMPOSITING) | 107 #endif // USE(ACCELERATED_COMPOSITING) |
| 108 | 108 |
| 109 #endif | 109 #endif |
| OLD | NEW |