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

Side by Side Diff: third_party/WebKit/Source/platform/scroll/ScrollAnimatorBase.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 /* 1 /*
2 * Copyright (c) 2010, Google Inc. All rights reserved. 2 * Copyright (c) 2010, Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 30 matching lines...) Expand all
41 #include "wtf/Forward.h" 41 #include "wtf/Forward.h"
42 42
43 namespace blink { 43 namespace blink {
44 44
45 class ScrollableArea; 45 class ScrollableArea;
46 class Scrollbar; 46 class Scrollbar;
47 class WebCompositorAnimationTimeline; 47 class WebCompositorAnimationTimeline;
48 48
49 class PLATFORM_EXPORT ScrollAnimatorBase : public ScrollAnimatorCompositorCoordi nator { 49 class PLATFORM_EXPORT ScrollAnimatorBase : public ScrollAnimatorCompositorCoordi nator {
50 public: 50 public:
51 static PassOwnPtrWillBeRawPtr<ScrollAnimatorBase> create(ScrollableArea*); 51 static RawPtr<ScrollAnimatorBase> create(ScrollableArea*);
52 52
53 virtual ~ScrollAnimatorBase(); 53 virtual ~ScrollAnimatorBase();
54 54
55 virtual void dispose() { } 55 virtual void dispose() { }
56 56
57 // Computes a scroll destination for the given parameters. The returned 57 // Computes a scroll destination for the given parameters. The returned
58 // ScrollResultOneDimensional will have didScroll set to false if already at 58 // ScrollResultOneDimensional will have didScroll set to false if already at
59 // the destination. Otherwise, starts scrolling towards the destination and 59 // the destination. Otherwise, starts scrolling towards the destination and
60 // didScroll is true. Scrolling may be immediate or animated. The base 60 // didScroll is true. Scrolling may be immediate or animated. The base
61 // class implementation always scrolls immediately, never animates. 61 // class implementation always scrolls immediately, never animates.
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 113
114 DECLARE_VIRTUAL_TRACE(); 114 DECLARE_VIRTUAL_TRACE();
115 115
116 protected: 116 protected:
117 explicit ScrollAnimatorBase(ScrollableArea*); 117 explicit ScrollAnimatorBase(ScrollableArea*);
118 118
119 virtual void notifyPositionChanged(); 119 virtual void notifyPositionChanged();
120 120
121 float clampScrollPosition(ScrollbarOrientation, float) const; 121 float clampScrollPosition(ScrollbarOrientation, float) const;
122 122
123 RawPtrWillBeMember<ScrollableArea> m_scrollableArea; 123 Member<ScrollableArea> m_scrollableArea;
124 float m_currentPosX; // We avoid using a FloatPoint in order to reduce 124 float m_currentPosX; // We avoid using a FloatPoint in order to reduce
125 float m_currentPosY; // subclass code complexity. 125 float m_currentPosY; // subclass code complexity.
126 }; 126 };
127 127
128 } // namespace blink 128 } // namespace blink
129 129
130 #endif // ScrollAnimatorBase_h 130 #endif // ScrollAnimatorBase_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698