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) | |
105 void computeAbsoluteTouchEventTargetRects(const Document*, Vector<IntRect>&)
; | 104 void computeAbsoluteTouchEventTargetRects(const Document*, Vector<IntRect>&)
; |
106 #endif | |
107 | 105 |
108 static String mainThreadScrollingReasonsAsText(MainThreadScrollingReasons); | 106 static String mainThreadScrollingReasonsAsText(MainThreadScrollingReasons); |
109 String mainThreadScrollingReasonsAsText() const; | 107 String mainThreadScrollingReasonsAsText() const; |
110 | 108 |
111 Region computeNonFastScrollableRegion(const Frame*, const IntPoint& frameLoc
ation) const; | 109 Region computeNonFastScrollableRegion(const Frame*, const IntPoint& frameLoc
ation) const; |
112 | 110 |
113 protected: | 111 protected: |
114 explicit ScrollingCoordinator(Page*); | 112 explicit ScrollingCoordinator(Page*); |
115 | 113 |
116 static GraphicsLayer* scrollLayerForScrollableArea(ScrollableArea*); | 114 static GraphicsLayer* scrollLayerForScrollableArea(ScrollableArea*); |
(...skipping 25 matching lines...) Expand all Loading... |
142 | 140 |
143 typedef HashMap<ScrollableArea*, OwnPtr<WebKit::WebScrollbarLayer> > Scrollb
arMap; | 141 typedef HashMap<ScrollableArea*, OwnPtr<WebKit::WebScrollbarLayer> > Scrollb
arMap; |
144 ScrollbarMap m_horizontalScrollbars; | 142 ScrollbarMap m_horizontalScrollbars; |
145 ScrollbarMap m_verticalScrollbars; | 143 ScrollbarMap m_verticalScrollbars; |
146 | 144 |
147 }; | 145 }; |
148 | 146 |
149 } // namespace WebCore | 147 } // namespace WebCore |
150 | 148 |
151 #endif // ScrollingCoordinator_h | 149 #endif // ScrollingCoordinator_h |
OLD | NEW |