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 #include "config.h" | 5 #include "config.h" |
6 | 6 |
7 #include "CCScrollbarLayerImpl.h" | 7 #include "CCScrollbarLayerImpl.h" |
8 | 8 |
9 #include "CCQuadSink.h" | 9 #include "CCQuadSink.h" |
10 #include "CCScrollbarAnimationController.h" | 10 #include "CCScrollbarAnimationController.h" |
(...skipping 25 matching lines...) Expand all Loading... |
36 , m_enabled(false) | 36 , m_enabled(false) |
37 , m_isCustomScrollbar(false) | 37 , m_isCustomScrollbar(false) |
38 , m_isOverlayScrollbar(false) | 38 , m_isOverlayScrollbar(false) |
39 { | 39 { |
40 } | 40 } |
41 | 41 |
42 CCScrollbarLayerImpl::~CCScrollbarLayerImpl() | 42 CCScrollbarLayerImpl::~CCScrollbarLayerImpl() |
43 { | 43 { |
44 } | 44 } |
45 | 45 |
46 void CCScrollbarLayerImpl::setScrollbarGeometry(PassOwnPtr<CCScrollbarGeometryFi
xedThumb> geometry) | 46 void CCScrollbarLayerImpl::setScrollbarGeometry(scoped_ptr<CCScrollbarGeometryFi
xedThumb> geometry) |
47 { | 47 { |
48 m_geometry = geometry; | 48 m_geometry = geometry.Pass(); |
49 } | 49 } |
50 | 50 |
51 void CCScrollbarLayerImpl::setScrollbarData(WebScrollbar* scrollbar) | 51 void CCScrollbarLayerImpl::setScrollbarData(WebScrollbar* scrollbar) |
52 { | 52 { |
53 m_scrollbarOverlayStyle = scrollbar->scrollbarOverlayStyle(); | 53 m_scrollbarOverlayStyle = scrollbar->scrollbarOverlayStyle(); |
54 m_orientation = scrollbar->orientation(); | 54 m_orientation = scrollbar->orientation(); |
55 m_controlSize = scrollbar->controlSize(); | 55 m_controlSize = scrollbar->controlSize(); |
56 m_pressedPart = scrollbar->pressedPart(); | 56 m_pressedPart = scrollbar->pressedPart(); |
57 m_hoveredPart = scrollbar->hoveredPart(); | 57 m_hoveredPart = scrollbar->hoveredPart(); |
58 m_isScrollableAreaActive = scrollbar->isScrollableAreaActive(); | 58 m_isScrollableAreaActive = scrollbar->isScrollableAreaActive(); |
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
193 { | 193 { |
194 return m_owner->m_isCustomScrollbar; | 194 return m_owner->m_isCustomScrollbar; |
195 } | 195 } |
196 | 196 |
197 const char* CCScrollbarLayerImpl::layerTypeAsString() const | 197 const char* CCScrollbarLayerImpl::layerTypeAsString() const |
198 { | 198 { |
199 return "ScrollbarLayer"; | 199 return "ScrollbarLayer"; |
200 } | 200 } |
201 | 201 |
202 } | 202 } |
OLD | NEW |