| OLD | NEW |
| 1 // Copyright 2011 The Chromium Authors. All rights reserved. | 1 // Copyright 2011 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 CCLayerImpl_h | 5 #ifndef CCLayerImpl_h |
| 6 #define CCLayerImpl_h | 6 #define CCLayerImpl_h |
| 7 | 7 |
| 8 #include "CCInputHandler.h" | 8 #include "CCInputHandler.h" |
| 9 #include "CCLayerAnimationController.h" | 9 #include "CCLayerAnimationController.h" |
| 10 #include "CCRenderSurface.h" | 10 #include "CCRenderSurface.h" |
| (...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 250 void setHorizontalScrollbarLayer(CCScrollbarLayerImpl*); | 250 void setHorizontalScrollbarLayer(CCScrollbarLayerImpl*); |
| 251 | 251 |
| 252 CCScrollbarLayerImpl* verticalScrollbarLayer() const; | 252 CCScrollbarLayerImpl* verticalScrollbarLayer() const; |
| 253 void setVerticalScrollbarLayer(CCScrollbarLayerImpl*); | 253 void setVerticalScrollbarLayer(CCScrollbarLayerImpl*); |
| 254 | 254 |
| 255 protected: | 255 protected: |
| 256 explicit CCLayerImpl(int); | 256 explicit CCLayerImpl(int); |
| 257 | 257 |
| 258 void appendDebugBorderQuad(CCQuadSink&, const CCSharedQuadState*, CCAppendQu
adsData&) const; | 258 void appendDebugBorderQuad(CCQuadSink&, const CCSharedQuadState*, CCAppendQu
adsData&) const; |
| 259 | 259 |
| 260 IntRect layerRectToContentRect(const WebKit::WebRect& layerRect); |
| 261 |
| 260 virtual void dumpLayerProperties(std::string*, int indent) const; | 262 virtual void dumpLayerProperties(std::string*, int indent) const; |
| 261 static std::string indentString(int indent); | 263 static std::string indentString(int indent); |
| 262 | 264 |
| 263 private: | 265 private: |
| 264 void setParent(CCLayerImpl* parent) { m_parent = parent; } | 266 void setParent(CCLayerImpl* parent) { m_parent = parent; } |
| 265 friend class TreeSynchronizer; | 267 friend class TreeSynchronizer; |
| 266 void clearChildList(); // Warning: This does not preserve tree structure inv
ariants and so is only exposed to the tree synchronizer. | 268 void clearChildList(); // Warning: This does not preserve tree structure inv
ariants and so is only exposed to the tree synchronizer. |
| 267 | 269 |
| 268 void noteLayerPropertyChangedForSubtree(); | 270 void noteLayerPropertyChangedForSubtree(); |
| 269 | 271 |
| (...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 383 | 385 |
| 384 // Manages scrollbars for this layer | 386 // Manages scrollbars for this layer |
| 385 OwnPtr<CCScrollbarAnimationController> m_scrollbarAnimationController; | 387 OwnPtr<CCScrollbarAnimationController> m_scrollbarAnimationController; |
| 386 }; | 388 }; |
| 387 | 389 |
| 388 void sortLayers(Vector<CCLayerImpl*>::iterator first, Vector<CCLayerImpl*>::iter
ator end, CCLayerSorter*); | 390 void sortLayers(Vector<CCLayerImpl*>::iterator first, Vector<CCLayerImpl*>::iter
ator end, CCLayerSorter*); |
| 389 | 391 |
| 390 } | 392 } |
| 391 | 393 |
| 392 #endif // CCLayerImpl_h | 394 #endif // CCLayerImpl_h |
| OLD | NEW |