| 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 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 88 | 88 |
| 89 enum MainThreadScrollingReasonFlags { | 89 enum MainThreadScrollingReasonFlags { |
| 90 HasSlowRepaintObjects = 1 << 0, | 90 HasSlowRepaintObjects = 1 << 0, |
| 91 HasViewportConstrainedObjectsWithoutSupportingFixedLayers = 1 << 1, | 91 HasViewportConstrainedObjectsWithoutSupportingFixedLayers = 1 << 1, |
| 92 HasNonLayerViewportConstrainedObjects = 1 << 2, | 92 HasNonLayerViewportConstrainedObjects = 1 << 2, |
| 93 }; | 93 }; |
| 94 | 94 |
| 95 MainThreadScrollingReasons mainThreadScrollingReasons() const; | 95 MainThreadScrollingReasons mainThreadScrollingReasons() const; |
| 96 bool shouldUpdateScrollLayerPositionOnMainThread() const { return mainThread
ScrollingReasons() != 0; } | 96 bool shouldUpdateScrollLayerPositionOnMainThread() const { return mainThread
ScrollingReasons() != 0; } |
| 97 | 97 |
| 98 PassOwnPtr<blink::WebScrollbarLayer> createSolidColorScrollbarLayer(Scrollba
rOrientation, int thumbThickness, bool isLeftSideVerticalScrollbar); | 98 PassOwnPtr<blink::WebScrollbarLayer> createSolidColorScrollbarLayer(Scrollba
rOrientation, int thumbThickness, int trackStart, bool isLeftSideVerticalScrollb
ar); |
| 99 | 99 |
| 100 void willDestroyScrollableArea(ScrollableArea*); | 100 void willDestroyScrollableArea(ScrollableArea*); |
| 101 // Returns true if the coordinator handled this change. | 101 // Returns true if the coordinator handled this change. |
| 102 bool scrollableAreaScrollLayerDidChange(ScrollableArea*); | 102 bool scrollableAreaScrollLayerDidChange(ScrollableArea*); |
| 103 void scrollableAreaScrollbarLayerDidChange(ScrollableArea*, ScrollbarOrienta
tion); | 103 void scrollableAreaScrollbarLayerDidChange(ScrollableArea*, ScrollbarOrienta
tion); |
| 104 void setLayerIsContainerForFixedPositionLayers(GraphicsLayer*, bool); | 104 void setLayerIsContainerForFixedPositionLayers(GraphicsLayer*, bool); |
| 105 void updateLayerPositionConstraint(RenderLayer*); | 105 void updateLayerPositionConstraint(RenderLayer*); |
| 106 void touchEventTargetRectsDidChange(); | 106 void touchEventTargetRectsDidChange(); |
| 107 void willDestroyRenderLayer(RenderLayer*); | 107 void willDestroyRenderLayer(RenderLayer*); |
| 108 | 108 |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 159 HashSet<const RenderLayer*> m_layersWithTouchRects; | 159 HashSet<const RenderLayer*> m_layersWithTouchRects; |
| 160 bool m_wasFrameScrollable; | 160 bool m_wasFrameScrollable; |
| 161 | 161 |
| 162 // This is retained for testing. | 162 // This is retained for testing. |
| 163 MainThreadScrollingReasons m_lastMainThreadScrollingReasons; | 163 MainThreadScrollingReasons m_lastMainThreadScrollingReasons; |
| 164 }; | 164 }; |
| 165 | 165 |
| 166 } // namespace WebCore | 166 } // namespace WebCore |
| 167 | 167 |
| 168 #endif // ScrollingCoordinator_h | 168 #endif // ScrollingCoordinator_h |
| OLD | NEW |