Changeset 107285 in webkit
- Timestamp:
- Feb 9, 2012, 1:31:33 PM (15 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 3 edited
-
ChangeLog (modified) (1 diff)
-
page/scrolling/mac/ScrollingTreeNodeMac.h (modified) (2 diffs)
-
page/scrolling/mac/ScrollingTreeNodeMac.mm (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r107282 r107285 1 2012-02-09 Anders Carlsson <andersca@apple.com> 2 3 ScrollingTreeNodeMac should implement ScrollElasticityController 4 https://bugs.webkit.org/show_bug.cgi?id=78277 5 6 Reviewed by Andreas Kling. 7 8 Add stubbed out implementations of the ScrollElasticityController member functions. 9 10 * page/scrolling/mac/ScrollingTreeNodeMac.h: 11 (ScrollingTreeNodeMac): 12 * page/scrolling/mac/ScrollingTreeNodeMac.mm: 13 (WebCore::ScrollingTreeNodeMac::allowsHorizontalStretching): 14 (WebCore): 15 (WebCore::ScrollingTreeNodeMac::allowsVerticalStretching): 16 (WebCore::ScrollingTreeNodeMac::stretchAmount): 17 (WebCore::ScrollingTreeNodeMac::pinnedInDirection): 18 (WebCore::ScrollingTreeNodeMac::canScrollHorizontally): 19 (WebCore::ScrollingTreeNodeMac::canScrollVertically): 20 (WebCore::ScrollingTreeNodeMac::shouldRubberBandInDirection): 21 (WebCore::ScrollingTreeNodeMac::absoluteScrollPosition): 22 (WebCore::ScrollingTreeNodeMac::immediateScrollBy): 23 (WebCore::ScrollingTreeNodeMac::immediateScrollByWithoutContentEdgeConstraints): 24 (WebCore::ScrollingTreeNodeMac::startSnapRubberbandTimer): 25 (WebCore::ScrollingTreeNodeMac::stopSnapRubberbandTimer): 26 1 27 2012-02-09 Adrienne Walker <enne@google.com> 2 28 -
trunk/Source/WebCore/page/scrolling/mac/ScrollingTreeNodeMac.h
r106720 r107285 29 29 #if ENABLE(THREADED_SCROLLING) 30 30 31 #include "ScrollElasticityController.h" 31 32 #include "ScrollingTreeNode.h" 32 33 #include <wtf/RetainPtr.h> … … 36 37 namespace WebCore { 37 38 38 class ScrollingTreeNodeMac : public ScrollingTreeNode {39 class ScrollingTreeNodeMac : public ScrollingTreeNode, private ScrollElasticityControllerClient { 39 40 public: 40 41 explicit ScrollingTreeNodeMac(ScrollingTree*); 41 42 42 43 private: 44 // ScrollingTreeNode member functions. 43 45 virtual void update(ScrollingTreeState*) OVERRIDE; 44 46 virtual void handleWheelEvent(const PlatformWheelEvent&) OVERRIDE; 47 48 // ScrollElasticityController member functions. 49 virtual bool allowsHorizontalStretching() OVERRIDE; 50 virtual bool allowsVerticalStretching() OVERRIDE; 51 virtual IntSize stretchAmount() OVERRIDE; 52 virtual bool pinnedInDirection(const FloatSize&) OVERRIDE; 53 virtual bool canScrollHorizontally() OVERRIDE; 54 virtual bool canScrollVertically() OVERRIDE; 55 virtual bool shouldRubberBandInDirection(ScrollDirection) OVERRIDE; 56 virtual IntPoint absoluteScrollPosition() OVERRIDE; 57 virtual void immediateScrollBy(const FloatSize&) OVERRIDE; 58 virtual void immediateScrollByWithoutContentEdgeConstraints(const FloatSize&) OVERRIDE; 59 virtual void startSnapRubberbandTimer() OVERRIDE; 60 virtual void stopSnapRubberbandTimer() OVERRIDE; 45 61 46 62 IntPoint scrollPosition() const; -
trunk/Source/WebCore/page/scrolling/mac/ScrollingTreeNodeMac.mm
r106750 r107285 59 59 } 60 60 61 bool ScrollingTreeNodeMac::allowsHorizontalStretching() 62 { 63 // FIXME: Implement. 64 return false; 65 } 66 67 bool ScrollingTreeNodeMac::allowsVerticalStretching() 68 { 69 // FIXME: Implement. 70 return false; 71 } 72 73 IntSize ScrollingTreeNodeMac::stretchAmount() 74 { 75 // FIXME: Implement. 76 return IntSize(); 77 } 78 79 bool ScrollingTreeNodeMac::pinnedInDirection(const FloatSize&) 80 { 81 // FIXME: Implement. 82 return false; 83 } 84 85 bool ScrollingTreeNodeMac::canScrollHorizontally() 86 { 87 // FIXME: Implement. 88 return false; 89 } 90 91 bool ScrollingTreeNodeMac::canScrollVertically() 92 { 93 // FIXME: Implement. 94 return false; 95 } 96 97 bool ScrollingTreeNodeMac::shouldRubberBandInDirection(ScrollDirection) 98 { 99 // FIXME: Implement. 100 return false; 101 } 102 103 IntPoint ScrollingTreeNodeMac::absoluteScrollPosition() 104 { 105 // FIXME: Implement. 106 return IntPoint(); 107 } 108 109 void ScrollingTreeNodeMac::immediateScrollBy(const FloatSize&) 110 { 111 // FIXME: Implement. 112 } 113 114 void ScrollingTreeNodeMac::immediateScrollByWithoutContentEdgeConstraints(const FloatSize&) 115 { 116 // FIXME: Implement. 117 } 118 119 void ScrollingTreeNodeMac::startSnapRubberbandTimer() 120 { 121 // FIXME: Implement. 122 } 123 124 void ScrollingTreeNodeMac::stopSnapRubberbandTimer() 125 { 126 // FIXME: Implement. 127 } 128 61 129 IntPoint ScrollingTreeNodeMac::scrollPosition() const 62 130 {
Note:
See TracChangeset
for help on using the changeset viewer.