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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 enum MainThreadScrollingReasonFlags { | 83 enum MainThreadScrollingReasonFlags { |
84 HasSlowRepaintObjects = 1 << 0, | 84 HasSlowRepaintObjects = 1 << 0, |
85 HasViewportConstrainedObjectsWithoutSupportingFixedLayers = 1 << 1, | 85 HasViewportConstrainedObjectsWithoutSupportingFixedLayers = 1 << 1, |
86 HasNonLayerViewportConstrainedObjects = 1 << 2, | 86 HasNonLayerViewportConstrainedObjects = 1 << 2, |
87 }; | 87 }; |
88 | 88 |
89 MainThreadScrollingReasons mainThreadScrollingReasons() const; | 89 MainThreadScrollingReasons mainThreadScrollingReasons() const; |
90 bool shouldUpdateScrollLayerPositionOnMainThread() const { return mainThread
ScrollingReasons() != 0; } | 90 bool shouldUpdateScrollLayerPositionOnMainThread() const { return mainThread
ScrollingReasons() != 0; } |
91 | 91 |
92 void willDestroyScrollableArea(ScrollableArea*); | 92 void willDestroyScrollableArea(ScrollableArea*); |
93 void scrollableAreaScrollLayerDidChange(ScrollableArea*); | 93 // Returns true if the coordinator handled this change. |
| 94 bool scrollableAreaScrollLayerDidChange(ScrollableArea*); |
94 void scrollableAreaScrollbarLayerDidChange(ScrollableArea*, ScrollbarOrienta
tion); | 95 void scrollableAreaScrollbarLayerDidChange(ScrollableArea*, ScrollbarOrienta
tion); |
95 void setLayerIsContainerForFixedPositionLayers(GraphicsLayer*, bool); | 96 void setLayerIsContainerForFixedPositionLayers(GraphicsLayer*, bool); |
96 void updateLayerPositionConstraint(RenderLayer*); | 97 void updateLayerPositionConstraint(RenderLayer*); |
97 void touchEventTargetRectsDidChange(const Document*); | 98 void touchEventTargetRectsDidChange(const Document*); |
98 | 99 |
99 void computeAbsoluteTouchEventTargetRects(const Document*, Vector<IntRect>&)
; | 100 void computeAbsoluteTouchEventTargetRects(const Document*, Vector<IntRect>&)
; |
100 | 101 |
101 static String mainThreadScrollingReasonsAsText(MainThreadScrollingReasons); | 102 static String mainThreadScrollingReasonsAsText(MainThreadScrollingReasons); |
102 String mainThreadScrollingReasonsAsText() const; | 103 String mainThreadScrollingReasonsAsText() const; |
103 Region computeShouldHandleScrollGestureOnMainThreadRegion(const Frame*, cons
t IntPoint& frameLocation) const; | 104 Region computeShouldHandleScrollGestureOnMainThreadRegion(const Frame*, cons
t IntPoint& frameLocation) const; |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
135 | 136 |
136 typedef HashMap<ScrollableArea*, OwnPtr<WebKit::WebScrollbarLayer> > Scrollb
arMap; | 137 typedef HashMap<ScrollableArea*, OwnPtr<WebKit::WebScrollbarLayer> > Scrollb
arMap; |
137 ScrollbarMap m_horizontalScrollbars; | 138 ScrollbarMap m_horizontalScrollbars; |
138 ScrollbarMap m_verticalScrollbars; | 139 ScrollbarMap m_verticalScrollbars; |
139 | 140 |
140 }; | 141 }; |
141 | 142 |
142 } // namespace WebCore | 143 } // namespace WebCore |
143 | 144 |
144 #endif // ScrollingCoordinator_h | 145 #endif // ScrollingCoordinator_h |
OLD | NEW |