OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2011 Apple Inc. All rights reserved. | 2 * Copyright (C) 2011 Apple 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 | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
103 | 103 |
104 void willDestroyScrollableArea(ScrollableArea*); | 104 void willDestroyScrollableArea(ScrollableArea*); |
105 // Returns true if the coordinator handled this change. | 105 // Returns true if the coordinator handled this change. |
106 bool scrollableAreaScrollLayerDidChange(ScrollableArea*); | 106 bool scrollableAreaScrollLayerDidChange(ScrollableArea*); |
107 void scrollableAreaScrollbarLayerDidChange(ScrollableArea*, ScrollbarOrienta
tion); | 107 void scrollableAreaScrollbarLayerDidChange(ScrollableArea*, ScrollbarOrienta
tion); |
108 void setLayerIsContainerForFixedPositionLayers(GraphicsLayer*, bool); | 108 void setLayerIsContainerForFixedPositionLayers(GraphicsLayer*, bool); |
109 void updateLayerPositionConstraint(PaintLayer*); | 109 void updateLayerPositionConstraint(PaintLayer*); |
110 void touchEventTargetRectsDidChange(); | 110 void touchEventTargetRectsDidChange(); |
111 void willDestroyLayer(PaintLayer*); | 111 void willDestroyLayer(PaintLayer*); |
112 | 112 |
113 void updateScrollParentForGraphicsLayer(GraphicsLayer* child, PaintLayer* pa
rent); | 113 void updateScrollParentForGraphicsLayer(GraphicsLayer* child, const PaintLay
er* parent); |
114 void updateClipParentForGraphicsLayer(GraphicsLayer* child, PaintLayer* pare
nt); | 114 void updateClipParentForGraphicsLayer(GraphicsLayer* child, const PaintLayer
* parent); |
115 | 115 |
116 static String mainThreadScrollingReasonsAsText(MainThreadScrollingReasons); | 116 static String mainThreadScrollingReasonsAsText(MainThreadScrollingReasons); |
117 String mainThreadScrollingReasonsAsText() const; | 117 String mainThreadScrollingReasonsAsText() const; |
118 Region computeShouldHandleScrollGestureOnMainThreadRegion(const LocalFrame*,
const IntPoint& frameLocation) const; | 118 Region computeShouldHandleScrollGestureOnMainThreadRegion(const LocalFrame*,
const IntPoint& frameLocation) const; |
119 | 119 |
120 void updateTouchEventTargetRectsIfNeeded(); | 120 void updateTouchEventTargetRectsIfNeeded(); |
121 | 121 |
122 // For testing purposes only. This ScrollingCoordinator is reused between la
yout test, and must be reset | 122 // For testing purposes only. This ScrollingCoordinator is reused between la
yout test, and must be reset |
123 // for the results to be valid. | 123 // for the results to be valid. |
124 void reset(); | 124 void reset(); |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
161 ScrollbarMap m_verticalScrollbars; | 161 ScrollbarMap m_verticalScrollbars; |
162 HashSet<const PaintLayer*> m_layersWithTouchRects; | 162 HashSet<const PaintLayer*> m_layersWithTouchRects; |
163 bool m_wasFrameScrollable; | 163 bool m_wasFrameScrollable; |
164 | 164 |
165 MainThreadScrollingReasons m_lastMainThreadScrollingReasons; | 165 MainThreadScrollingReasons m_lastMainThreadScrollingReasons; |
166 }; | 166 }; |
167 | 167 |
168 } // namespace blink | 168 } // namespace blink |
169 | 169 |
170 #endif // ScrollingCoordinator_h | 170 #endif // ScrollingCoordinator_h |
OLD | NEW |