| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 ScrollPaintPropertyNode_h | 5 #ifndef ScrollPaintPropertyNode_h |
| 6 #define ScrollPaintPropertyNode_h | 6 #define ScrollPaintPropertyNode_h |
| 7 | 7 |
| 8 #include "platform/PlatformExport.h" | 8 #include "platform/PlatformExport.h" |
| 9 #include "platform/geometry/FloatSize.h" | 9 #include "platform/geometry/FloatSize.h" |
| 10 #include "platform/graphics/paint/TransformPaintPropertyNode.h" | 10 #include "platform/graphics/paint/TransformPaintPropertyNode.h" |
| 11 #include "wtf/PassRefPtr.h" | 11 #include "wtf/PassRefPtr.h" |
| 12 #include "wtf/RefCounted.h" | 12 #include "wtf/RefCounted.h" |
| 13 #include "wtf/RefPtr.h" | 13 #include "wtf/RefPtr.h" |
| 14 | 14 |
| 15 #include <iosfwd> | 15 #include <iosfwd> |
| 16 | 16 |
| 17 namespace blink { | 17 namespace blink { |
| 18 | 18 |
| 19 // A scroll node contains auxiliary scrolling information for compositor-thread | 19 // A scroll node contains auxiliary scrolling information such as how far an |
| 20 // scrolling and includes how far an area can be scrolled, which | 20 // area can be scrolled, which |TransformPaintPropertyNode| contains the scroll |
| 21 // |TransformPaintPropertyNode| contains the scroll offset, etc. | 21 // offset, etc. |
| 22 class PLATFORM_EXPORT ScrollPaintPropertyNode : public RefCounted<ScrollPaintPro
pertyNode> { | 22 class PLATFORM_EXPORT ScrollPaintPropertyNode : public RefCounted<ScrollPaintPro
pertyNode> { |
| 23 public: | 23 public: |
| 24 static PassRefPtr<ScrollPaintPropertyNode> create( | 24 static PassRefPtr<ScrollPaintPropertyNode> create( |
| 25 PassRefPtr<const ScrollPaintPropertyNode> parent, | 25 PassRefPtr<const ScrollPaintPropertyNode> parent, |
| 26 PassRefPtr<const TransformPaintPropertyNode> scrollOffsetTranslation, | 26 PassRefPtr<const TransformPaintPropertyNode> scrollOffsetTranslation, |
| 27 const IntSize& clip, | 27 const IntSize& clip, |
| 28 const IntSize& bounds, | 28 const IntSize& bounds, |
| 29 bool userScrollableHorizontal, | 29 bool userScrollableHorizontal, |
| 30 bool userScrollableVertical) | 30 bool userScrollableVertical) |
| 31 { | 31 { |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 88 // TODO(pdr): Add a bit for whether this is affected by page scale. | 88 // TODO(pdr): Add a bit for whether this is affected by page scale. |
| 89 }; | 89 }; |
| 90 | 90 |
| 91 // Redeclared here to avoid ODR issues. | 91 // Redeclared here to avoid ODR issues. |
| 92 // See platform/testing/PaintPrinters.h. | 92 // See platform/testing/PaintPrinters.h. |
| 93 void PrintTo(const ScrollPaintPropertyNode&, std::ostream*); | 93 void PrintTo(const ScrollPaintPropertyNode&, std::ostream*); |
| 94 | 94 |
| 95 } // namespace blink | 95 } // namespace blink |
| 96 | 96 |
| 97 #endif // ScrollPaintPropertyNode_h | 97 #endif // ScrollPaintPropertyNode_h |
| OLD | NEW |