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 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
117 | 117 |
118 // For testing purposes only. This ScrollingCoordinator is reused between la
yout test, and must be reset | 118 // For testing purposes only. This ScrollingCoordinator is reused between la
yout test, and must be reset |
119 // for the results to be valid. | 119 // for the results to be valid. |
120 void reset(); | 120 void reset(); |
121 | 121 |
122 protected: | 122 protected: |
123 explicit ScrollingCoordinator(Page*); | 123 explicit ScrollingCoordinator(Page*); |
124 | 124 |
125 bool isForMainFrame(ScrollableArea*) const; | 125 bool isForMainFrame(ScrollableArea*) const; |
126 | 126 |
127 GraphicsLayer* scrollLayerForFrameView(FrameView*); | |
128 GraphicsLayer* counterScrollingLayerForFrameView(FrameView*); | |
129 | |
130 Page* m_page; | 127 Page* m_page; |
131 | 128 |
132 // Dirty flags used to idenfity what really needs to be computed after compo
siting is updated. | 129 // Dirty flags used to idenfity what really needs to be computed after compo
siting is updated. |
133 bool m_scrollGestureRegionIsDirty; | 130 bool m_scrollGestureRegionIsDirty; |
134 bool m_touchEventTargetRectsAreDirty; | 131 bool m_touchEventTargetRectsAreDirty; |
135 bool m_shouldScrollOnMainThreadDirty; | 132 bool m_shouldScrollOnMainThreadDirty; |
136 | 133 |
137 private: | 134 private: |
138 void setShouldUpdateScrollLayerPositionOnMainThread(MainThreadScrollingReaso
ns); | 135 void setShouldUpdateScrollLayerPositionOnMainThread(MainThreadScrollingReaso
ns); |
139 | 136 |
(...skipping 16 matching lines...) Expand all Loading... |
156 HashSet<const RenderLayer*> m_layersWithTouchRects; | 153 HashSet<const RenderLayer*> m_layersWithTouchRects; |
157 bool m_wasFrameScrollable; | 154 bool m_wasFrameScrollable; |
158 | 155 |
159 // This is retained for testing. | 156 // This is retained for testing. |
160 MainThreadScrollingReasons m_lastMainThreadScrollingReasons; | 157 MainThreadScrollingReasons m_lastMainThreadScrollingReasons; |
161 }; | 158 }; |
162 | 159 |
163 } // namespace WebCore | 160 } // namespace WebCore |
164 | 161 |
165 #endif // ScrollingCoordinator_h | 162 #endif // ScrollingCoordinator_h |
OLD | NEW |