Chromium Code Reviews| 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 #ifndef CC_LAYER_H_ | 5 #ifndef CC_LAYER_H_ |
| 6 #define CC_LAYER_H_ | 6 #define CC_LAYER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 113 | 113 |
| 114 void setPosition(const gfx::PointF&); | 114 void setPosition(const gfx::PointF&); |
| 115 gfx::PointF position() const { return m_position; } | 115 gfx::PointF position() const { return m_position; } |
| 116 | 116 |
| 117 void setIsContainerForFixedPositionLayers(bool); | 117 void setIsContainerForFixedPositionLayers(bool); |
| 118 bool isContainerForFixedPositionLayers() const { return m_isContainerForFixe dPositionLayers; } | 118 bool isContainerForFixedPositionLayers() const { return m_isContainerForFixe dPositionLayers; } |
| 119 | 119 |
| 120 void setFixedToContainerLayer(bool); | 120 void setFixedToContainerLayer(bool); |
| 121 bool fixedToContainerLayer() const { return m_fixedToContainerLayer; } | 121 bool fixedToContainerLayer() const { return m_fixedToContainerLayer; } |
| 122 | 122 |
| 123 void setFixedToRightEdge(bool); | |
|
jamesr
2013/03/07 21:56:01
Do we need this today? I think it's nice to have
| |
| 124 bool fixedToRightEdge() const { return m_fixedToRightEdge; } | |
| 125 | |
| 126 void setFixedToBottomEdge(bool); | |
| 127 bool fixedToBottomEdge() const { return m_fixedToBottomEdge; } | |
| 128 | |
| 123 void setSublayerTransform(const gfx::Transform&); | 129 void setSublayerTransform(const gfx::Transform&); |
| 124 const gfx::Transform& sublayerTransform() const { return m_sublayerTransform ; } | 130 const gfx::Transform& sublayerTransform() const { return m_sublayerTransform ; } |
| 125 | 131 |
| 126 void setTransform(const gfx::Transform&); | 132 void setTransform(const gfx::Transform&); |
| 127 const gfx::Transform& transform() const; | 133 const gfx::Transform& transform() const; |
| 128 bool transformIsAnimating() const; | 134 bool transformIsAnimating() const; |
| 129 | 135 |
| 130 DrawProperties<Layer, RenderSurface>& drawProperties() { return m_drawProper ties; } | 136 DrawProperties<Layer, RenderSurface>& drawProperties() { return m_drawProper ties; } |
| 131 const DrawProperties<Layer, RenderSurface>& drawProperties() const { return m_drawProperties; } | 137 const DrawProperties<Layer, RenderSurface>& drawProperties() const { return m_drawProperties; } |
| 132 | 138 |
| (...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 370 gfx::PointF m_anchorPoint; | 376 gfx::PointF m_anchorPoint; |
| 371 SkColor m_backgroundColor; | 377 SkColor m_backgroundColor; |
| 372 std::string m_debugName; | 378 std::string m_debugName; |
| 373 float m_opacity; | 379 float m_opacity; |
| 374 skia::RefPtr<SkImageFilter> m_filter; | 380 skia::RefPtr<SkImageFilter> m_filter; |
| 375 WebKit::WebFilterOperations m_filters; | 381 WebKit::WebFilterOperations m_filters; |
| 376 WebKit::WebFilterOperations m_backgroundFilters; | 382 WebKit::WebFilterOperations m_backgroundFilters; |
| 377 float m_anchorPointZ; | 383 float m_anchorPointZ; |
| 378 bool m_isContainerForFixedPositionLayers; | 384 bool m_isContainerForFixedPositionLayers; |
| 379 bool m_fixedToContainerLayer; | 385 bool m_fixedToContainerLayer; |
| 386 bool m_fixedToRightEdge; | |
| 387 bool m_fixedToBottomEdge; | |
| 380 bool m_isDrawable; | 388 bool m_isDrawable; |
| 381 bool m_masksToBounds; | 389 bool m_masksToBounds; |
| 382 bool m_contentsOpaque; | 390 bool m_contentsOpaque; |
| 383 bool m_doubleSided; | 391 bool m_doubleSided; |
| 384 bool m_preserves3D; | 392 bool m_preserves3D; |
| 385 bool m_useParentBackfaceVisibility; | 393 bool m_useParentBackfaceVisibility; |
| 386 bool m_drawCheckerboardForMissingTiles; | 394 bool m_drawCheckerboardForMissingTiles; |
| 387 bool m_forceRenderSurface; | 395 bool m_forceRenderSurface; |
| 388 | 396 |
| 389 gfx::Transform m_transform; | 397 gfx::Transform m_transform; |
| (...skipping 13 matching lines...) Expand all Loading... | |
| 403 WebKit::WebLayerScrollClient* m_layerScrollClient; | 411 WebKit::WebLayerScrollClient* m_layerScrollClient; |
| 404 | 412 |
| 405 DrawProperties<Layer, RenderSurface> m_drawProperties; | 413 DrawProperties<Layer, RenderSurface> m_drawProperties; |
| 406 }; | 414 }; |
| 407 | 415 |
| 408 void sortLayers(std::vector<scoped_refptr<Layer> >::iterator, std::vector<scoped _refptr<Layer> >::iterator, void*); | 416 void sortLayers(std::vector<scoped_refptr<Layer> >::iterator, std::vector<scoped _refptr<Layer> >::iterator, void*); |
| 409 | 417 |
| 410 } // namespace cc | 418 } // namespace cc |
| 411 | 419 |
| 412 #endif // CC_LAYER_H_ | 420 #endif // CC_LAYER_H_ |
| OLD | NEW |