Chromium Code Reviews| 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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 83 enum MainThreadScrollingReasonFlags { | 83 enum MainThreadScrollingReasonFlags { |
| 84 HasSlowRepaintObjects = 1 << 0, | 84 HasSlowRepaintObjects = 1 << 0, |
| 85 HasViewportConstrainedObjectsWithoutSupportingFixedLayers = 1 << 1, | 85 HasViewportConstrainedObjectsWithoutSupportingFixedLayers = 1 << 1, |
| 86 HasNonLayerViewportConstrainedObjects = 1 << 2, | 86 HasNonLayerViewportConstrainedObjects = 1 << 2, |
| 87 }; | 87 }; |
| 88 | 88 |
| 89 MainThreadScrollingReasons mainThreadScrollingReasons() const; | 89 MainThreadScrollingReasons mainThreadScrollingReasons() const; |
| 90 bool shouldUpdateScrollLayerPositionOnMainThread() const { return mainThread ScrollingReasons() != 0; } | 90 bool shouldUpdateScrollLayerPositionOnMainThread() const { return mainThread ScrollingReasons() != 0; } |
| 91 | 91 |
| 92 void willDestroyScrollableArea(ScrollableArea*); | 92 void willDestroyScrollableArea(ScrollableArea*); |
| 93 void scrollableAreaScrollLayerDidChange(ScrollableArea*); | 93 // Returns true iff the coordinator handled this change. |
|
jamesr
2013/07/09 23:39:38
while iff is more precise than if, i don't think i
enne (OOO)
2013/07/09 23:43:47
Iff you say so. Done.
| |
| 94 bool scrollableAreaScrollLayerDidChange(ScrollableArea*); | |
| 94 void scrollableAreaScrollbarLayerDidChange(ScrollableArea*, ScrollbarOrienta tion); | 95 void scrollableAreaScrollbarLayerDidChange(ScrollableArea*, ScrollbarOrienta tion); |
| 95 void setLayerIsContainerForFixedPositionLayers(GraphicsLayer*, bool); | 96 void setLayerIsContainerForFixedPositionLayers(GraphicsLayer*, bool); |
| 96 void updateLayerPositionConstraint(RenderLayer*); | 97 void updateLayerPositionConstraint(RenderLayer*); |
| 97 void touchEventTargetRectsDidChange(const Document*); | 98 void touchEventTargetRectsDidChange(const Document*); |
| 98 | 99 |
| 99 void computeAbsoluteTouchEventTargetRects(const Document*, Vector<IntRect>&) ; | 100 void computeAbsoluteTouchEventTargetRects(const Document*, Vector<IntRect>&) ; |
| 100 | 101 |
| 101 static String mainThreadScrollingReasonsAsText(MainThreadScrollingReasons); | 102 static String mainThreadScrollingReasonsAsText(MainThreadScrollingReasons); |
| 102 String mainThreadScrollingReasonsAsText() const; | 103 String mainThreadScrollingReasonsAsText() const; |
| 103 Region computeShouldHandleScrollGestureOnMainThreadRegion(const Frame*, cons t IntPoint& frameLocation) const; | 104 Region computeShouldHandleScrollGestureOnMainThreadRegion(const Frame*, cons t IntPoint& frameLocation) const; |
| (...skipping 30 matching lines...) Expand all Loading... | |
| 134 | 135 |
| 135 typedef HashMap<ScrollableArea*, OwnPtr<WebKit::WebScrollbarLayer> > Scrollb arMap; | 136 typedef HashMap<ScrollableArea*, OwnPtr<WebKit::WebScrollbarLayer> > Scrollb arMap; |
| 136 ScrollbarMap m_horizontalScrollbars; | 137 ScrollbarMap m_horizontalScrollbars; |
| 137 ScrollbarMap m_verticalScrollbars; | 138 ScrollbarMap m_verticalScrollbars; |
| 138 | 139 |
| 139 }; | 140 }; |
| 140 | 141 |
| 141 } // namespace WebCore | 142 } // namespace WebCore |
| 142 | 143 |
| 143 #endif // ScrollingCoordinator_h | 144 #endif // ScrollingCoordinator_h |
| OLD | NEW |