| 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; | 80 gfx::Rect scrollbarLayerRectToContentRect(const gfx::Rect& layerRect) const; |
| 81 | 81 |
| 82 Scrollbar m_scrollbar; | 82 Scrollbar m_scrollbar; |
| 83 | 83 |
| 84 ResourceProvider::ResourceId m_backTrackResourceId; | 84 ResourceProvider::ResourceId m_backTrackResourceId; |
| 85 ResourceProvider::ResourceId m_foreTrackResourceId; | 85 ResourceProvider::ResourceId m_foreTrackResourceId; |
| 86 ResourceProvider::ResourceId m_thumbResourceId; | 86 ResourceProvider::ResourceId m_thumbResourceId; |
| 87 | 87 |
| 88 scoped_ptr<ScrollbarGeometryFixedThumb> m_geometry; | 88 scoped_ptr<ScrollbarGeometryFixedThumb> m_geometry; |
| 89 | 89 |
| 90 // Data to implement Scrollbar | 90 // Data to implement Scrollbar |
| (...skipping 10 matching lines...) Expand all Loading... |
| 101 | 101 |
| 102 bool m_isScrollableAreaActive; | 102 bool m_isScrollableAreaActive; |
| 103 bool m_isScrollViewScrollbar; | 103 bool m_isScrollViewScrollbar; |
| 104 bool m_enabled; | 104 bool m_enabled; |
| 105 bool m_isCustomScrollbar; | 105 bool m_isCustomScrollbar; |
| 106 bool m_isOverlayScrollbar; | 106 bool m_isOverlayScrollbar; |
| 107 }; | 107 }; |
| 108 | 108 |
| 109 } | 109 } |
| 110 #endif | 110 #endif |
| OLD | NEW |