| 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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 80 | 80 |
| 81 #if OS(MACOSX) | 81 #if OS(MACOSX) |
| 82 // Dispatched by the scrolling tree during handleWheelEvent. This is require
d as long as scrollbars are painted on the main thread. | 82 // Dispatched by the scrolling tree during handleWheelEvent. This is require
d as long as scrollbars are painted on the main thread. |
| 83 void handleWheelEventPhase(PlatformWheelEventPhase); | 83 void handleWheelEventPhase(PlatformWheelEventPhase); |
| 84 #endif | 84 #endif |
| 85 | 85 |
| 86 enum MainThreadScrollingReasonFlags { | 86 enum MainThreadScrollingReasonFlags { |
| 87 HasSlowRepaintObjects = 1 << 0, | 87 HasSlowRepaintObjects = 1 << 0, |
| 88 HasViewportConstrainedObjectsWithoutSupportingFixedLayers = 1 << 1, | 88 HasViewportConstrainedObjectsWithoutSupportingFixedLayers = 1 << 1, |
| 89 HasNonLayerViewportConstrainedObjects = 1 << 2, | 89 HasNonLayerViewportConstrainedObjects = 1 << 2, |
| 90 ThreadedScrollingDisabled = 1 << 3 |
| 90 }; | 91 }; |
| 91 | 92 |
| 92 MainThreadScrollingReasons mainThreadScrollingReasons() const; | 93 MainThreadScrollingReasons mainThreadScrollingReasons() const; |
| 93 bool shouldUpdateScrollLayerPositionOnMainThread() const { return mainThread
ScrollingReasons() != 0; } | 94 bool shouldUpdateScrollLayerPositionOnMainThread() const { return mainThread
ScrollingReasons() != 0; } |
| 94 | 95 |
| 95 PassOwnPtr<blink::WebScrollbarLayer> createSolidColorScrollbarLayer(Scrollba
rOrientation, int thumbThickness, int trackStart, bool isLeftSideVerticalScrollb
ar); | 96 PassOwnPtr<blink::WebScrollbarLayer> createSolidColorScrollbarLayer(Scrollba
rOrientation, int thumbThickness, int trackStart, bool isLeftSideVerticalScrollb
ar); |
| 96 | 97 |
| 97 void willDestroyScrollableArea(ScrollableArea*); | 98 void willDestroyScrollableArea(ScrollableArea*); |
| 98 // Returns true if the coordinator handled this change. | 99 // Returns true if the coordinator handled this change. |
| 99 bool scrollableAreaScrollLayerDidChange(ScrollableArea*); | 100 bool scrollableAreaScrollLayerDidChange(ScrollableArea*); |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 151 HashSet<const RenderLayer*> m_layersWithTouchRects; | 152 HashSet<const RenderLayer*> m_layersWithTouchRects; |
| 152 bool m_wasFrameScrollable; | 153 bool m_wasFrameScrollable; |
| 153 | 154 |
| 154 // This is retained for testing. | 155 // This is retained for testing. |
| 155 MainThreadScrollingReasons m_lastMainThreadScrollingReasons; | 156 MainThreadScrollingReasons m_lastMainThreadScrollingReasons; |
| 156 }; | 157 }; |
| 157 | 158 |
| 158 } // namespace blink | 159 } // namespace blink |
| 159 | 160 |
| 160 #endif // ScrollingCoordinator_h | 161 #endif // ScrollingCoordinator_h |
| OLD | NEW |