Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(53)

Side by Side Diff: Source/core/page/scrolling/ScrollingCoordinator.h

Issue 22419002: Set up clip and scroll parents on the blink side. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: . Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 void willDestroyRenderLayer(RenderLayer*); 100 void willDestroyRenderLayer(RenderLayer*);
101 101
102 void updateScrollParentForLayer(RenderLayer* child, RenderLayer* parent);
103 void updateClipParentForLayer(RenderLayer* child, RenderLayer* parent);
104
102 static String mainThreadScrollingReasonsAsText(MainThreadScrollingReasons); 105 static String mainThreadScrollingReasonsAsText(MainThreadScrollingReasons);
103 String mainThreadScrollingReasonsAsText() const; 106 String mainThreadScrollingReasonsAsText() const;
104 Region computeShouldHandleScrollGestureOnMainThreadRegion(const Frame*, cons t IntPoint& frameLocation) const; 107 Region computeShouldHandleScrollGestureOnMainThreadRegion(const Frame*, cons t IntPoint& frameLocation) const;
105 108
106 protected: 109 protected:
107 explicit ScrollingCoordinator(Page*); 110 explicit ScrollingCoordinator(Page*);
108 111
109 static GraphicsLayer* scrollLayerForScrollableArea(ScrollableArea*); 112 static GraphicsLayer* scrollLayerForScrollableArea(ScrollableArea*);
110 static GraphicsLayer* horizontalScrollbarLayerForScrollableArea(ScrollableAr ea*); 113 static GraphicsLayer* horizontalScrollbarLayerForScrollableArea(ScrollableAr ea*);
111 static GraphicsLayer* verticalScrollbarLayerForScrollableArea(ScrollableArea *); 114 static GraphicsLayer* verticalScrollbarLayerForScrollableArea(ScrollableArea *);
(...skipping 27 matching lines...) Expand all
139 142
140 typedef HashMap<ScrollableArea*, OwnPtr<WebKit::WebScrollbarLayer> > Scrollb arMap; 143 typedef HashMap<ScrollableArea*, OwnPtr<WebKit::WebScrollbarLayer> > Scrollb arMap;
141 ScrollbarMap m_horizontalScrollbars; 144 ScrollbarMap m_horizontalScrollbars;
142 ScrollbarMap m_verticalScrollbars; 145 ScrollbarMap m_verticalScrollbars;
143 HashSet<const RenderLayer*> m_layersWithTouchRects; 146 HashSet<const RenderLayer*> m_layersWithTouchRects;
144 }; 147 };
145 148
146 } // namespace WebCore 149 } // namespace WebCore
147 150
148 #endif // ScrollingCoordinator_h 151 #endif // ScrollingCoordinator_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698