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 MainThreadScrollingReasons mainThreadScrollingReasons() const; | 94 MainThreadScrollingReasons mainThreadScrollingReasons() const; |
95 bool shouldUpdateScrollLayerPositionOnMainThread() const { return mainThread
ScrollingReasons() != 0; } | 95 bool shouldUpdateScrollLayerPositionOnMainThread() const { return mainThread
ScrollingReasons() != 0; } |
96 | 96 |
97 void willDestroyScrollableArea(ScrollableArea*); | 97 void willDestroyScrollableArea(ScrollableArea*); |
98 void scrollableAreaScrollLayerDidChange(ScrollableArea*); | 98 void scrollableAreaScrollLayerDidChange(ScrollableArea*); |
99 void scrollableAreaScrollbarLayerDidChange(ScrollableArea*, ScrollbarOrienta
tion); | 99 void scrollableAreaScrollbarLayerDidChange(ScrollableArea*, ScrollbarOrienta
tion); |
100 void setLayerIsContainerForFixedPositionLayers(GraphicsLayer*, bool); | 100 void setLayerIsContainerForFixedPositionLayers(GraphicsLayer*, bool); |
101 void updateLayerPositionConstraint(RenderLayer*); | 101 void updateLayerPositionConstraint(RenderLayer*); |
102 void touchEventTargetRectsDidChange(const Document*); | 102 void touchEventTargetRectsDidChange(const Document*); |
103 | 103 |
| 104 #if ENABLE(TOUCH_EVENT_TRACKING) |
104 void computeAbsoluteTouchEventTargetRects(const Document*, Vector<IntRect>&)
; | 105 void computeAbsoluteTouchEventTargetRects(const Document*, Vector<IntRect>&)
; |
| 106 #endif |
105 | 107 |
106 static String mainThreadScrollingReasonsAsText(MainThreadScrollingReasons); | 108 static String mainThreadScrollingReasonsAsText(MainThreadScrollingReasons); |
107 String mainThreadScrollingReasonsAsText() const; | 109 String mainThreadScrollingReasonsAsText() const; |
108 | 110 |
109 Region computeNonFastScrollableRegion(const Frame*, const IntPoint& frameLoc
ation) const; | 111 Region computeNonFastScrollableRegion(const Frame*, const IntPoint& frameLoc
ation) const; |
110 | 112 |
111 protected: | 113 protected: |
112 explicit ScrollingCoordinator(Page*); | 114 explicit ScrollingCoordinator(Page*); |
113 | 115 |
114 static GraphicsLayer* scrollLayerForScrollableArea(ScrollableArea*); | 116 static GraphicsLayer* scrollLayerForScrollableArea(ScrollableArea*); |
(...skipping 25 matching lines...) Expand all Loading... |
140 | 142 |
141 typedef HashMap<ScrollableArea*, OwnPtr<WebKit::WebScrollbarLayer> > Scrollb
arMap; | 143 typedef HashMap<ScrollableArea*, OwnPtr<WebKit::WebScrollbarLayer> > Scrollb
arMap; |
142 ScrollbarMap m_horizontalScrollbars; | 144 ScrollbarMap m_horizontalScrollbars; |
143 ScrollbarMap m_verticalScrollbars; | 145 ScrollbarMap m_verticalScrollbars; |
144 | 146 |
145 }; | 147 }; |
146 | 148 |
147 } // namespace WebCore | 149 } // namespace WebCore |
148 | 150 |
149 #endif // ScrollingCoordinator_h | 151 #endif // ScrollingCoordinator_h |
OLD | NEW |