| OLD | NEW |
| 1 // Copyright 2010 The Chromium Authors. All rights reserved. | 1 // Copyright 2010 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 | 5 |
| 6 #ifndef LayerChromium_h | 6 #ifndef LayerChromium_h |
| 7 #define LayerChromium_h | 7 #define LayerChromium_h |
| 8 | 8 |
| 9 #if USE(ACCELERATED_COMPOSITING) | 9 #if USE(ACCELERATED_COMPOSITING) |
| 10 | 10 |
| (...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 127 void setVisibleContentRect(const IntRect& visibleContentRect) { m_visibleCon
tentRect = visibleContentRect; } | 127 void setVisibleContentRect(const IntRect& visibleContentRect) { m_visibleCon
tentRect = visibleContentRect; } |
| 128 | 128 |
| 129 void setScrollPosition(const IntPoint&); | 129 void setScrollPosition(const IntPoint&); |
| 130 const IntPoint& scrollPosition() const { return m_scrollPosition; } | 130 const IntPoint& scrollPosition() const { return m_scrollPosition; } |
| 131 | 131 |
| 132 void setMaxScrollPosition(const IntSize&); | 132 void setMaxScrollPosition(const IntSize&); |
| 133 const IntSize& maxScrollPosition() const { return m_maxScrollPosition; } | 133 const IntSize& maxScrollPosition() const { return m_maxScrollPosition; } |
| 134 | 134 |
| 135 void setScrollable(bool); | 135 void setScrollable(bool); |
| 136 bool scrollable() const { return m_scrollable; } | 136 bool scrollable() const { return m_scrollable; } |
| 137 |
| 137 void setShouldScrollOnMainThread(bool); | 138 void setShouldScrollOnMainThread(bool); |
| 139 bool shouldScrollOnMainThread() const { return m_shouldScrollOnMainThread; } |
| 140 |
| 138 void setHaveWheelEventHandlers(bool); | 141 void setHaveWheelEventHandlers(bool); |
| 139 const Region& nonFastScrollableRegion() { return m_nonFastScrollableRegion;
} | 142 bool haveWheelEventHandlers() const { return m_haveWheelEventHandlers; } |
| 143 |
| 140 void setNonFastScrollableRegion(const Region&); | 144 void setNonFastScrollableRegion(const Region&); |
| 141 void setNonFastScrollableRegionChanged() { m_nonFastScrollableRegionChanged
= true; } | 145 void setNonFastScrollableRegionChanged() { m_nonFastScrollableRegionChanged
= true; } |
| 146 const Region& nonFastScrollableRegion() const { return m_nonFastScrollableRe
gion; } |
| 147 |
| 142 void setLayerScrollClient(WebKit::WebLayerScrollClient* layerScrollClient) {
m_layerScrollClient = layerScrollClient; } | 148 void setLayerScrollClient(WebKit::WebLayerScrollClient* layerScrollClient) {
m_layerScrollClient = layerScrollClient; } |
| 143 | 149 |
| 144 void setDrawCheckerboardForMissingTiles(bool); | 150 void setDrawCheckerboardForMissingTiles(bool); |
| 145 bool drawCheckerboardForMissingTiles() const { return m_drawCheckerboardForM
issingTiles; } | 151 bool drawCheckerboardForMissingTiles() const { return m_drawCheckerboardForM
issingTiles; } |
| 146 | 152 |
| 147 bool forceRenderSurface() const { return m_forceRenderSurface; } | 153 bool forceRenderSurface() const { return m_forceRenderSurface; } |
| 148 void setForceRenderSurface(bool); | 154 void setForceRenderSurface(bool); |
| 149 | 155 |
| 150 IntSize scrollDelta() const { return IntSize(); } | 156 IntSize scrollDelta() const { return IntSize(); } |
| 151 | 157 |
| (...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 366 WebKit::WebAnimationDelegate* m_layerAnimationDelegate; | 372 WebKit::WebAnimationDelegate* m_layerAnimationDelegate; |
| 367 WebKit::WebLayerScrollClient* m_layerScrollClient; | 373 WebKit::WebLayerScrollClient* m_layerScrollClient; |
| 368 }; | 374 }; |
| 369 | 375 |
| 370 void sortLayers(Vector<RefPtr<LayerChromium> >::iterator, Vector<RefPtr<LayerChr
omium> >::iterator, void*); | 376 void sortLayers(Vector<RefPtr<LayerChromium> >::iterator, Vector<RefPtr<LayerChr
omium> >::iterator, void*); |
| 371 | 377 |
| 372 } | 378 } |
| 373 #endif // USE(ACCELERATED_COMPOSITING) | 379 #endif // USE(ACCELERATED_COMPOSITING) |
| 374 | 380 |
| 375 #endif | 381 #endif |
| OLD | NEW |