| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 ScrollState_h | 5 #ifndef ScrollState_h |
| 6 #define ScrollState_h | 6 #define ScrollState_h |
| 7 | 7 |
| 8 #include "bindings/core/v8/ExceptionState.h" | 8 #include "bindings/core/v8/ExceptionState.h" |
| 9 #include "bindings/core/v8/ScriptWrappable.h" | 9 #include "bindings/core/v8/ScriptWrappable.h" |
| 10 #include "core/CoreExport.h" | 10 #include "core/CoreExport.h" |
| 11 #include "core/dom/Element.h" | 11 #include "core/dom/Element.h" |
| 12 #include "public/platform/WebScrollStateData.h" | 12 #include "public/platform/WebScrollStateData.h" |
| 13 | 13 |
| 14 namespace blink { | 14 namespace blink { |
| 15 | 15 |
| 16 class CORE_EXPORT ScrollState final : public RefCountedWillBeGarbageCollected<Sc
rollState>, public ScriptWrappable { | 16 class CORE_EXPORT ScrollState final : public RefCountedWillBeGarbageCollectedFin
alized<ScrollState>, public ScriptWrappable { |
| 17 DEFINE_WRAPPERTYPEINFO(); | 17 DEFINE_WRAPPERTYPEINFO(); |
| 18 | 18 |
| 19 public: | 19 public: |
| 20 static PassRefPtrWillBeRawPtr<ScrollState> create( | 20 static PassRefPtrWillBeRawPtr<ScrollState> create( |
| 21 double deltaX, double deltaY, double deltaGranularity, double velocityX, | 21 double deltaX, double deltaY, double deltaGranularity, double velocityX, |
| 22 double velocityY, bool inInertialPhase, | 22 double velocityY, bool inInertialPhase, |
| 23 bool isBeginning = false, bool isEnding = false, | 23 bool isBeginning = false, bool isEnding = false, |
| 24 bool fromUserInput = false, bool shouldPropagate = true, | 24 bool fromUserInput = false, bool shouldPropagate = true, |
| 25 bool deltaConsumedForScrollSequence = false); | 25 bool deltaConsumedForScrollSequence = false); |
| 26 | 26 |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 109 private: | 109 private: |
| 110 ScrollState(); | 110 ScrollState(); |
| 111 ScrollState(PassOwnPtr<WebScrollStateData>); | 111 ScrollState(PassOwnPtr<WebScrollStateData>); |
| 112 PassOwnPtr<WebScrollStateData> m_data; | 112 PassOwnPtr<WebScrollStateData> m_data; |
| 113 std::deque<int> m_scrollChain; | 113 std::deque<int> m_scrollChain; |
| 114 }; | 114 }; |
| 115 | 115 |
| 116 } // namespace blink | 116 } // namespace blink |
| 117 | 117 |
| 118 #endif // ScrollState_h | 118 #endif // ScrollState_h |
| OLD | NEW |