| 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/layer_impl.h" | 8 #include "cc/layer_impl.h" |
| 9 #include "cc/scrollbar_geometry_fixed_thumb.h" | 9 #include "cc/scrollbar_geometry_fixed_thumb.h" |
| 10 #include <public/WebRect.h> | 10 #include <public/WebRect.h> |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 virtual WebScrollbar::Orientation orientation() const; | 70 virtual WebScrollbar::Orientation orientation() const; |
| 71 virtual bool isCustomScrollbar() const; | 71 virtual bool isCustomScrollbar() const; |
| 72 | 72 |
| 73 private: | 73 private: |
| 74 ScrollbarLayerImpl* m_owner; | 74 ScrollbarLayerImpl* m_owner; |
| 75 | 75 |
| 76 }; | 76 }; |
| 77 | 77 |
| 78 virtual const char* layerTypeAsString() const OVERRIDE; | 78 virtual const char* layerTypeAsString() const OVERRIDE; |
| 79 | 79 |
| 80 IntRect scrollbarLayerRectToContentRect(const WebKit::WebRect& layerRect) co
nst; |
| 81 |
| 80 Scrollbar m_scrollbar; | 82 Scrollbar m_scrollbar; |
| 81 | 83 |
| 82 ResourceProvider::ResourceId m_backTrackResourceId; | 84 ResourceProvider::ResourceId m_backTrackResourceId; |
| 83 ResourceProvider::ResourceId m_foreTrackResourceId; | 85 ResourceProvider::ResourceId m_foreTrackResourceId; |
| 84 ResourceProvider::ResourceId m_thumbResourceId; | 86 ResourceProvider::ResourceId m_thumbResourceId; |
| 85 | 87 |
| 86 scoped_ptr<ScrollbarGeometryFixedThumb> m_geometry; | 88 scoped_ptr<ScrollbarGeometryFixedThumb> m_geometry; |
| 87 | 89 |
| 88 // Data to implement Scrollbar | 90 // Data to implement Scrollbar |
| 89 WebKit::WebScrollbar::ScrollbarOverlayStyle m_scrollbarOverlayStyle; | 91 WebKit::WebScrollbar::ScrollbarOverlayStyle m_scrollbarOverlayStyle; |
| 90 WebKit::WebVector<WebKit::WebRect> m_tickmarks; | 92 WebKit::WebVector<WebKit::WebRect> m_tickmarks; |
| 91 WebKit::WebScrollbar::Orientation m_orientation; | 93 WebKit::WebScrollbar::Orientation m_orientation; |
| 92 WebKit::WebScrollbar::ScrollbarControlSize m_controlSize; | 94 WebKit::WebScrollbar::ScrollbarControlSize m_controlSize; |
| 93 WebKit::WebScrollbar::ScrollbarPart m_pressedPart; | 95 WebKit::WebScrollbar::ScrollbarPart m_pressedPart; |
| 94 WebKit::WebScrollbar::ScrollbarPart m_hoveredPart; | 96 WebKit::WebScrollbar::ScrollbarPart m_hoveredPart; |
| 95 | 97 |
| 96 float m_currentPos; | 98 float m_currentPos; |
| 97 int m_totalSize; | 99 int m_totalSize; |
| 98 int m_maximum; | 100 int m_maximum; |
| 99 | 101 |
| 100 bool m_isScrollableAreaActive; | 102 bool m_isScrollableAreaActive; |
| 101 bool m_isScrollViewScrollbar; | 103 bool m_isScrollViewScrollbar; |
| 102 bool m_enabled; | 104 bool m_enabled; |
| 103 bool m_isCustomScrollbar; | 105 bool m_isCustomScrollbar; |
| 104 bool m_isOverlayScrollbar; | 106 bool m_isOverlayScrollbar; |
| 105 }; | 107 }; |
| 106 | 108 |
| 107 } | 109 } |
| 108 #endif | 110 #endif |
| OLD | NEW |