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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 | 71 |
72 void updateAfterCompositingChangeIfNeeded(); | 72 void updateAfterCompositingChangeIfNeeded(); |
73 | 73 |
74 void updateHaveWheelEventHandlers(); | 74 void updateHaveWheelEventHandlers(); |
75 void updateHaveScrollEventHandlers(); | 75 void updateHaveScrollEventHandlers(); |
76 | 76 |
77 // Should be called whenever a scrollable area is added or removed, or gains
/loses a composited layer. | 77 // Should be called whenever a scrollable area is added or removed, or gains
/loses a composited layer. |
78 void scrollableAreasDidChange(); | 78 void scrollableAreasDidChange(); |
79 | 79 |
80 // Should be called whenever the slow repaint objects counter changes betwee
n zero and one. | 80 // Should be called whenever the slow repaint objects counter changes betwee
n zero and one. |
81 void frameViewHasSlowRepaintObjectsDidChange(FrameView*); | 81 void frameViewHasBackgroundAttachmentFixedObjectsDidChange(FrameView*); |
82 | 82 |
83 // Should be called whenever the set of fixed objects changes. | 83 // Should be called whenever the set of fixed objects changes. |
84 void frameViewFixedObjectsDidChange(FrameView*); | 84 void frameViewFixedObjectsDidChange(FrameView*); |
85 | 85 |
86 // Should be called whenever the root layer for the given frame view changes
. | 86 // Should be called whenever the root layer for the given frame view changes
. |
87 void frameViewRootLayerDidChange(FrameView*); | 87 void frameViewRootLayerDidChange(FrameView*); |
88 | 88 |
89 #if OS(MACOSX) | 89 #if OS(MACOSX) |
90 // Dispatched by the scrolling tree during handleWheelEvent. This is require
d as long as scrollbars are painted on the main thread. | 90 // Dispatched by the scrolling tree during handleWheelEvent. This is require
d as long as scrollbars are painted on the main thread. |
91 void handleWheelEventPhase(PlatformWheelEventPhase); | 91 void handleWheelEventPhase(PlatformWheelEventPhase); |
92 #endif | 92 #endif |
93 | 93 |
94 enum MainThreadScrollingReasonFlags { | 94 enum MainThreadScrollingReasonFlags { |
95 HasSlowRepaintObjects = 1 << 0, | 95 HasBackgroundAttachmentFixedObjects = 1 << 0, |
96 HasNonLayerViewportConstrainedObjects = 1 << 1, | 96 HasNonLayerViewportConstrainedObjects = 1 << 1, |
97 ThreadedScrollingDisabled = 1 << 2 | 97 ThreadedScrollingDisabled = 1 << 2 |
98 }; | 98 }; |
99 | 99 |
100 MainThreadScrollingReasons mainThreadScrollingReasons() const; | 100 MainThreadScrollingReasons mainThreadScrollingReasons() const; |
101 bool shouldUpdateScrollLayerPositionOnMainThread() const { return mainThread
ScrollingReasons() != 0; } | 101 bool shouldUpdateScrollLayerPositionOnMainThread() const { return mainThread
ScrollingReasons() != 0; } |
102 | 102 |
103 PassOwnPtr<WebScrollbarLayer> createSolidColorScrollbarLayer(ScrollbarOrient
ation, int thumbThickness, int trackStart, bool isLeftSideVerticalScrollbar); | 103 PassOwnPtr<WebScrollbarLayer> createSolidColorScrollbarLayer(ScrollbarOrient
ation, int thumbThickness, int trackStart, bool isLeftSideVerticalScrollbar); |
104 | 104 |
105 void willDestroyScrollableArea(ScrollableArea*); | 105 void willDestroyScrollableArea(ScrollableArea*); |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
162 ScrollbarMap m_verticalScrollbars; | 162 ScrollbarMap m_verticalScrollbars; |
163 HashSet<const PaintLayer*> m_layersWithTouchRects; | 163 HashSet<const PaintLayer*> m_layersWithTouchRects; |
164 bool m_wasFrameScrollable; | 164 bool m_wasFrameScrollable; |
165 | 165 |
166 MainThreadScrollingReasons m_lastMainThreadScrollingReasons; | 166 MainThreadScrollingReasons m_lastMainThreadScrollingReasons; |
167 }; | 167 }; |
168 | 168 |
169 } // namespace blink | 169 } // namespace blink |
170 | 170 |
171 #endif // ScrollingCoordinator_h | 171 #endif // ScrollingCoordinator_h |
OLD | NEW |