Changeset 160742 in webkit
- Timestamp:
- Dec 17, 2013, 6:00:45 PM (11 years ago)
- Location:
- trunk/Source
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r160739 r160742 1 2013-12-17 Simon Fraser <simon.fraser@apple.com> 2 3 Rename "canRubberBands" to "canRubberBand" 4 https://bugs.webkit.org/show_bug.cgi?id=125897 5 6 Reviewed by Anders Carlsson. 7 8 Rename "canRubberBands" to "canRubberBand" in various places. 9 10 * page/scrolling/ScrollingTree.cpp: 11 (WebCore::ScrollingTree::setCanRubberBandState): 12 * page/scrolling/ScrollingTree.h: 13 1 14 2013-12-17 Jer Noble <jer.noble@apple.com> 2 15 -
trunk/Source/WebCore/page/scrolling/ScrollingTree.cpp
r158893 r160742 279 279 } 280 280 281 void ScrollingTree::setCanRubberBandState(bool canRubberBand sAtLeft, bool canRubberBandsAtRight, bool canRubberBandsAtTop, bool canRubberBandsAtBottom)281 void ScrollingTree::setCanRubberBandState(bool canRubberBandAtLeft, bool canRubberBandAtRight, bool canRubberBandAtTop, bool canRubberBandAtBottom) 282 282 { 283 283 MutexLocker locker(m_swipeStateMutex); 284 284 285 m_rubberBandsAtLeft = canRubberBand sAtLeft;286 m_rubberBandsAtRight = canRubberBand sAtRight;287 m_rubberBandsAtTop = canRubberBand sAtTop;288 m_rubberBandsAtBottom = canRubberBand sAtBottom;285 m_rubberBandsAtLeft = canRubberBandAtLeft; 286 m_rubberBandsAtRight = canRubberBandAtRight; 287 m_rubberBandsAtTop = canRubberBandAtTop; 288 m_rubberBandsAtBottom = canRubberBandAtBottom; 289 289 } 290 290 -
trunk/Source/WebCore/page/scrolling/ScrollingTree.h
r156924 r160742 93 93 94 94 // Can be called from any thread. Will update what edges allow rubber-banding. 95 void setCanRubberBandState(bool canRubberBand sAtLeft, bool canRubberBandsAtRight, bool canRubberBandsAtTop, bool canRubberBandsAtBottom);95 void setCanRubberBandState(bool canRubberBandAtLeft, bool canRubberBandAtRight, bool canRubberBandAtTop, bool canRubberBandAtBottom); 96 96 97 97 bool rubberBandsAtLeft(); -
trunk/Source/WebKit2/ChangeLog
r160740 r160742 1 2013-12-17 Simon Fraser <simon.fraser@apple.com> 2 3 Rename "canRubberBands" to "canRubberBand" 4 https://bugs.webkit.org/show_bug.cgi?id=125897 5 6 Reviewed by Anders Carlsson. 7 8 Rename "canRubberBands" to "canRubberBand" in various places. 9 10 * WebProcess/WebPage/EventDispatcher.cpp: 11 (WebKit::EventDispatcher::wheelEvent): 12 * WebProcess/WebPage/EventDispatcher.h: 13 * WebProcess/WebPage/EventDispatcher.messages.in: 14 1 15 2013-12-17 Tim Horton <timothy_horton@apple.com> 2 16 -
trunk/Source/WebKit2/WebProcess/WebPage/EventDispatcher.cpp
r159001 r160742 85 85 } 86 86 87 void EventDispatcher::wheelEvent(uint64_t pageID, const WebWheelEvent& wheelEvent, bool canRubberBand sAtLeft, bool canRubberBandsAtRight, bool canRubberBandsAtTop, bool canRubberBandsAtBottom)87 void EventDispatcher::wheelEvent(uint64_t pageID, const WebWheelEvent& wheelEvent, bool canRubberBandAtLeft, bool canRubberBandAtRight, bool canRubberBandAtTop, bool canRubberBandAtBottom) 88 88 { 89 89 #if ENABLE(THREADED_SCROLLING) … … 97 97 // We only need to do this at the beginning of the gesture. 98 98 if (platformWheelEvent.phase() == PlatformWheelEventPhaseBegan) 99 ScrollingThread::dispatch(bind(&ScrollingTree::setCanRubberBandState, scrollingTree, canRubberBand sAtLeft, canRubberBandsAtRight, canRubberBandsAtTop, canRubberBandsAtBottom));99 ScrollingThread::dispatch(bind(&ScrollingTree::setCanRubberBandState, scrollingTree, canRubberBandAtLeft, canRubberBandAtRight, canRubberBandAtTop, canRubberBandAtBottom)); 100 100 101 101 ScrollingTree::EventResult result = scrollingTree->tryToHandleWheelEvent(platformWheelEvent); … … 106 106 } 107 107 #else 108 UNUSED_PARAM(canRubberBand sAtLeft);109 UNUSED_PARAM(canRubberBand sAtRight);110 UNUSED_PARAM(canRubberBand sAtTop);111 UNUSED_PARAM(canRubberBand sAtBottom);108 UNUSED_PARAM(canRubberBandAtLeft); 109 UNUSED_PARAM(canRubberBandAtRight); 110 UNUSED_PARAM(canRubberBandAtTop); 111 UNUSED_PARAM(canRubberBandAtBottom); 112 112 #endif 113 113 -
trunk/Source/WebKit2/WebProcess/WebPage/EventDispatcher.h
r157319 r160742 62 62 63 63 // Message handlers 64 void wheelEvent(uint64_t pageID, const WebWheelEvent&, bool canRubberBand sAtLeft, bool canRubberBandsAtRight, bool canRubberBandsAtTop, bool canRubberBandsAtBottom);64 void wheelEvent(uint64_t pageID, const WebWheelEvent&, bool canRubberBandAtLeft, bool canRubberBandAtRight, bool canRubberBandAtTop, bool canRubberBandAtBottom); 65 65 66 66 // This is called on the main thread. -
trunk/Source/WebKit2/WebProcess/WebPage/EventDispatcher.messages.in
r157319 r160742 22 22 23 23 messages -> EventDispatcher { 24 WheelEvent(uint64_t pageID, WebKit::WebWheelEvent event, bool canRubberBand sAtLeft, bool canRubberBandsAtRight, bool canRubberBandsAtTop, bool canRubberBandsAtBottom)24 WheelEvent(uint64_t pageID, WebKit::WebWheelEvent event, bool canRubberBandAtLeft, bool canRubberBandAtRight, bool canRubberBandAtTop, bool canRubberBandAtBottom) 25 25 }
Note:
See TracChangeset
for help on using the changeset viewer.