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 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
94 | 94 |
95 void willDestroyScrollableArea(ScrollableArea*); | 95 void willDestroyScrollableArea(ScrollableArea*); |
96 // Returns true if the coordinator handled this change. | 96 // Returns true if the coordinator handled this change. |
97 bool scrollableAreaScrollLayerDidChange(ScrollableArea*); | 97 bool scrollableAreaScrollLayerDidChange(ScrollableArea*); |
98 void scrollableAreaScrollbarLayerDidChange(ScrollableArea*, ScrollbarOrienta
tion); | 98 void scrollableAreaScrollbarLayerDidChange(ScrollableArea*, ScrollbarOrienta
tion); |
99 void setLayerIsContainerForFixedPositionLayers(GraphicsLayer*, bool); | 99 void setLayerIsContainerForFixedPositionLayers(GraphicsLayer*, bool); |
100 void updateLayerPositionConstraint(RenderLayer*); | 100 void updateLayerPositionConstraint(RenderLayer*); |
101 void touchEventTargetRectsDidChange(const Document*); | 101 void touchEventTargetRectsDidChange(const Document*); |
102 void willDestroyRenderLayer(RenderLayer*); | 102 void willDestroyRenderLayer(RenderLayer*); |
103 | 103 |
| 104 void updateScrollParentForLayer(RenderLayer* child, RenderLayer* parent); |
| 105 void updateClipParentForLayer(RenderLayer* child, RenderLayer* parent); |
| 106 |
104 static String mainThreadScrollingReasonsAsText(MainThreadScrollingReasons); | 107 static String mainThreadScrollingReasonsAsText(MainThreadScrollingReasons); |
105 String mainThreadScrollingReasonsAsText() const; | 108 String mainThreadScrollingReasonsAsText() const; |
106 Region computeShouldHandleScrollGestureOnMainThreadRegion(const Frame*, cons
t IntPoint& frameLocation) const; | 109 Region computeShouldHandleScrollGestureOnMainThreadRegion(const Frame*, cons
t IntPoint& frameLocation) const; |
107 | 110 |
108 protected: | 111 protected: |
109 explicit ScrollingCoordinator(Page*); | 112 explicit ScrollingCoordinator(Page*); |
110 | 113 |
111 static GraphicsLayer* scrollLayerForScrollableArea(ScrollableArea*); | 114 static GraphicsLayer* scrollLayerForScrollableArea(ScrollableArea*); |
112 static GraphicsLayer* horizontalScrollbarLayerForScrollableArea(ScrollableAr
ea*); | 115 static GraphicsLayer* horizontalScrollbarLayerForScrollableArea(ScrollableAr
ea*); |
113 static GraphicsLayer* verticalScrollbarLayerForScrollableArea(ScrollableArea
*); | 116 static GraphicsLayer* verticalScrollbarLayerForScrollableArea(ScrollableArea
*); |
(...skipping 27 matching lines...) Expand all Loading... |
141 | 144 |
142 typedef HashMap<ScrollableArea*, OwnPtr<WebKit::WebScrollbarLayer> > Scrollb
arMap; | 145 typedef HashMap<ScrollableArea*, OwnPtr<WebKit::WebScrollbarLayer> > Scrollb
arMap; |
143 ScrollbarMap m_horizontalScrollbars; | 146 ScrollbarMap m_horizontalScrollbars; |
144 ScrollbarMap m_verticalScrollbars; | 147 ScrollbarMap m_verticalScrollbars; |
145 HashSet<const RenderLayer*> m_layersWithTouchRects; | 148 HashSet<const RenderLayer*> m_layersWithTouchRects; |
146 }; | 149 }; |
147 | 150 |
148 } // namespace WebCore | 151 } // namespace WebCore |
149 | 152 |
150 #endif // ScrollingCoordinator_h | 153 #endif // ScrollingCoordinator_h |
OLD | NEW |