Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(106)

Side by Side Diff: third_party/WebKit/Source/core/page/scrolling/ScrollState.h

Issue 1686483002: Oilpan: Remove most WillBe types from the code base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 RefCountedWillBeGarbageCollectedFin alized<ScrollState>, public ScriptWrappable { 16 class CORE_EXPORT ScrollState final : public GarbageCollectedFinalized<ScrollSta te>, public ScriptWrappable {
17 DEFINE_WRAPPERTYPEINFO(); 17 DEFINE_WRAPPERTYPEINFO();
18 18
19 public: 19 public:
20 static PassRefPtrWillBeRawPtr<ScrollState> create( 20 static RawPtr<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
27 static PassRefPtrWillBeRawPtr<ScrollState> create(PassOwnPtr<WebScrollStateD ata>); 27 static RawPtr<ScrollState> create(PassOwnPtr<WebScrollStateData>);
28 28
29 ~ScrollState() 29 ~ScrollState()
30 { 30 {
31 } 31 }
32 32
33 // Web exposed methods. 33 // Web exposed methods.
34 34
35 // Reduce deltas by x, y. 35 // Reduce deltas by x, y.
36 void consumeDelta(double x, double y, ExceptionState&); 36 void consumeDelta(double x, double y, ExceptionState&);
37 // Pops the first element off of |m_scrollChain| and calls |distributeScroll | on it. 37 // Pops the first element off of |m_scrollChain| and calls |distributeScroll | on it.
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698