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

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

Issue 138453004: Pinch/Zoom Infrastructure & Plumbing CL (Prequel) (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Use setContentsRect() instead of directly accessing contentLayer bounds. Created 6 years, 11 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
« no previous file with comments | « no previous file | Source/core/page/scrolling/ScrollingCoordinator.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 bool m_touchEventTargetRectsAreDirty; 138 bool m_touchEventTargetRectsAreDirty;
139 139
140 private: 140 private:
141 void recomputeWheelEventHandlerCountForFrameView(FrameView*); 141 void recomputeWheelEventHandlerCountForFrameView(FrameView*);
142 void setShouldUpdateScrollLayerPositionOnMainThread(MainThreadScrollingReaso ns); 142 void setShouldUpdateScrollLayerPositionOnMainThread(MainThreadScrollingReaso ns);
143 143
144 bool hasVisibleSlowRepaintViewportConstrainedObjects(FrameView*) const; 144 bool hasVisibleSlowRepaintViewportConstrainedObjects(FrameView*) const;
145 void updateShouldUpdateScrollLayerPositionOnMainThread(); 145 void updateShouldUpdateScrollLayerPositionOnMainThread();
146 146
147 static blink::WebLayer* scrollingWebLayerForScrollableArea(ScrollableArea*); 147 static blink::WebLayer* scrollingWebLayerForScrollableArea(ScrollableArea*);
148 static blink::WebLayer* containerWebLayerForScrollableArea(ScrollableArea*);
148 149
149 bool touchHitTestingEnabled() const; 150 bool touchHitTestingEnabled() const;
150 void setShouldHandleScrollGestureOnMainThreadRegion(const Region&); 151 void setShouldHandleScrollGestureOnMainThreadRegion(const Region&);
151 void setTouchEventTargetRects(const LayerHitTestRects&); 152 void setTouchEventTargetRects(const LayerHitTestRects&);
152 void computeTouchEventTargetRects(LayerHitTestRects&); 153 void computeTouchEventTargetRects(LayerHitTestRects&);
153 void setWheelEventHandlerCount(unsigned); 154 void setWheelEventHandlerCount(unsigned);
154 155
155 blink::WebScrollbarLayer* addWebScrollbarLayer(ScrollableArea*, ScrollbarOri entation, PassOwnPtr<blink::WebScrollbarLayer>); 156 blink::WebScrollbarLayer* addWebScrollbarLayer(ScrollableArea*, ScrollbarOri entation, PassOwnPtr<blink::WebScrollbarLayer>);
156 blink::WebScrollbarLayer* getWebScrollbarLayer(ScrollableArea*, ScrollbarOri entation); 157 blink::WebScrollbarLayer* getWebScrollbarLayer(ScrollableArea*, ScrollbarOri entation);
157 void removeWebScrollbarLayer(ScrollableArea*, ScrollbarOrientation); 158 void removeWebScrollbarLayer(ScrollableArea*, ScrollbarOrientation);
158 159
159 bool frameViewIsScrollableIsDirty() const; 160 bool frameViewIsScrollableIsDirty() const;
160 161
161 typedef HashMap<ScrollableArea*, OwnPtr<blink::WebScrollbarLayer> > Scrollba rMap; 162 typedef HashMap<ScrollableArea*, OwnPtr<blink::WebScrollbarLayer> > Scrollba rMap;
162 ScrollbarMap m_horizontalScrollbars; 163 ScrollbarMap m_horizontalScrollbars;
163 ScrollbarMap m_verticalScrollbars; 164 ScrollbarMap m_verticalScrollbars;
164 HashSet<const RenderLayer*> m_layersWithTouchRects; 165 HashSet<const RenderLayer*> m_layersWithTouchRects;
165 bool m_wasFrameScrollable; 166 bool m_wasFrameScrollable;
166 167
167 // This is retained for testing. 168 // This is retained for testing.
168 MainThreadScrollingReasons m_lastMainThreadScrollingReasons; 169 MainThreadScrollingReasons m_lastMainThreadScrollingReasons;
169 }; 170 };
170 171
171 } // namespace WebCore 172 } // namespace WebCore
172 173
173 #endif // ScrollingCoordinator_h 174 #endif // ScrollingCoordinator_h
OLDNEW
« no previous file with comments | « no previous file | Source/core/page/scrolling/ScrollingCoordinator.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698