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 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
91 bool shouldUpdateScrollLayerPositionOnMainThread() const { return mainThread
ScrollingReasons() != 0; } | 91 bool shouldUpdateScrollLayerPositionOnMainThread() const { return mainThread
ScrollingReasons() != 0; } |
92 | 92 |
93 void willDestroyScrollableArea(ScrollableArea*); | 93 void willDestroyScrollableArea(ScrollableArea*); |
94 // Returns true if the coordinator handled this change. | 94 // Returns true if the coordinator handled this change. |
95 bool scrollableAreaScrollLayerDidChange(ScrollableArea*); | 95 bool scrollableAreaScrollLayerDidChange(ScrollableArea*); |
96 void scrollableAreaScrollbarLayerDidChange(ScrollableArea*, ScrollbarOrienta
tion); | 96 void scrollableAreaScrollbarLayerDidChange(ScrollableArea*, ScrollbarOrienta
tion); |
97 void setLayerIsContainerForFixedPositionLayers(GraphicsLayer*, bool); | 97 void setLayerIsContainerForFixedPositionLayers(GraphicsLayer*, bool); |
98 void updateLayerPositionConstraint(RenderLayer*); | 98 void updateLayerPositionConstraint(RenderLayer*); |
99 void touchEventTargetRectsDidChange(const Document*); | 99 void touchEventTargetRectsDidChange(const Document*); |
100 | 100 |
| 101 void updateScrollParentForLayer(RenderLayer* child, RenderLayer* parent); |
| 102 void updateClipParentForLayer(RenderLayer* child, RenderLayer* parent); |
| 103 |
101 static String mainThreadScrollingReasonsAsText(MainThreadScrollingReasons); | 104 static String mainThreadScrollingReasonsAsText(MainThreadScrollingReasons); |
102 String mainThreadScrollingReasonsAsText() const; | 105 String mainThreadScrollingReasonsAsText() const; |
103 Region computeShouldHandleScrollGestureOnMainThreadRegion(const Frame*, cons
t IntPoint& frameLocation) const; | 106 Region computeShouldHandleScrollGestureOnMainThreadRegion(const Frame*, cons
t IntPoint& frameLocation) const; |
104 | 107 |
105 class TouchEventTargetRectsObserver { | 108 class TouchEventTargetRectsObserver { |
106 public: | 109 public: |
107 virtual void touchEventTargetRectsChanged(const LayerHitTestRects&) = 0; | 110 virtual void touchEventTargetRectsChanged(const LayerHitTestRects&) = 0; |
108 }; | 111 }; |
109 | 112 |
110 void addTouchEventTargetRectsObserver(TouchEventTargetRectsObserver*); | 113 void addTouchEventTargetRectsObserver(TouchEventTargetRectsObserver*); |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
147 typedef HashMap<ScrollableArea*, OwnPtr<WebKit::WebScrollbarLayer> > Scrollb
arMap; | 150 typedef HashMap<ScrollableArea*, OwnPtr<WebKit::WebScrollbarLayer> > Scrollb
arMap; |
148 ScrollbarMap m_horizontalScrollbars; | 151 ScrollbarMap m_horizontalScrollbars; |
149 ScrollbarMap m_verticalScrollbars; | 152 ScrollbarMap m_verticalScrollbars; |
150 | 153 |
151 HashSet<TouchEventTargetRectsObserver*> m_touchEventTargetRectsObservers; | 154 HashSet<TouchEventTargetRectsObserver*> m_touchEventTargetRectsObservers; |
152 }; | 155 }; |
153 | 156 |
154 } // namespace WebCore | 157 } // namespace WebCore |
155 | 158 |
156 #endif // ScrollingCoordinator_h | 159 #endif // ScrollingCoordinator_h |
OLD | NEW |