| 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 "CCRenderPass.h" | 10 #include "CCRenderPass.h" |
| (...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 255 void setHorizontalScrollbarLayer(CCScrollbarLayerImpl*); | 255 void setHorizontalScrollbarLayer(CCScrollbarLayerImpl*); |
| 256 | 256 |
| 257 CCScrollbarLayerImpl* verticalScrollbarLayer() const; | 257 CCScrollbarLayerImpl* verticalScrollbarLayer() const; |
| 258 void setVerticalScrollbarLayer(CCScrollbarLayerImpl*); | 258 void setVerticalScrollbarLayer(CCScrollbarLayerImpl*); |
| 259 | 259 |
| 260 protected: | 260 protected: |
| 261 explicit CCLayerImpl(int); | 261 explicit CCLayerImpl(int); |
| 262 | 262 |
| 263 void appendDebugBorderQuad(CCQuadSink&, const CCSharedQuadState*, CCAppendQu
adsData&) const; | 263 void appendDebugBorderQuad(CCQuadSink&, const CCSharedQuadState*, CCAppendQu
adsData&) const; |
| 264 | 264 |
| 265 IntRect layerRectToContentRect(const WebKit::WebRect& layerRect); |
| 266 |
| 265 virtual void dumpLayerProperties(std::string*, int indent) const; | 267 virtual void dumpLayerProperties(std::string*, int indent) const; |
| 266 static std::string indentString(int indent); | 268 static std::string indentString(int indent); |
| 267 | 269 |
| 268 private: | 270 private: |
| 269 void setParent(CCLayerImpl* parent) { m_parent = parent; } | 271 void setParent(CCLayerImpl* parent) { m_parent = parent; } |
| 270 friend class TreeSynchronizer; | 272 friend class TreeSynchronizer; |
| 271 void clearChildList(); // Warning: This does not preserve tree structure inv
ariants and so is only exposed to the tree synchronizer. | 273 void clearChildList(); // Warning: This does not preserve tree structure inv
ariants and so is only exposed to the tree synchronizer. |
| 272 | 274 |
| 273 void noteLayerPropertyChangedForSubtree(); | 275 void noteLayerPropertyChangedForSubtree(); |
| 274 | 276 |
| (...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 388 | 390 |
| 389 // Manages scrollbars for this layer | 391 // Manages scrollbars for this layer |
| 390 OwnPtr<CCScrollbarAnimationController> m_scrollbarAnimationController; | 392 OwnPtr<CCScrollbarAnimationController> m_scrollbarAnimationController; |
| 391 }; | 393 }; |
| 392 | 394 |
| 393 void sortLayers(Vector<CCLayerImpl*>::iterator first, Vector<CCLayerImpl*>::iter
ator end, CCLayerSorter*); | 395 void sortLayers(Vector<CCLayerImpl*>::iterator first, Vector<CCLayerImpl*>::iter
ator end, CCLayerSorter*); |
| 394 | 396 |
| 395 } | 397 } |
| 396 | 398 |
| 397 #endif // CCLayerImpl_h | 399 #endif // CCLayerImpl_h |
| OLD | NEW |