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

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

Issue 1646603004: Move scroll event handlers from layer to layer tree view. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master_cc_listeners
Patch Set: Rebase Created 4 years, 10 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
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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 // Return whether this scrolling coordinator handles scrolling for the given frame view. 69 // Return whether this scrolling coordinator handles scrolling for the given frame view.
70 bool coordinatesScrollingForFrameView(FrameView*) const; 70 bool coordinatesScrollingForFrameView(FrameView*) const;
71 71
72 // Called when any frame has done its layout or compositing has changed. 72 // Called when any frame has done its layout or compositing has changed.
73 void notifyGeometryChanged(); 73 void notifyGeometryChanged();
74 // Called when any frame recalculates its overflows after style change. 74 // Called when any frame recalculates its overflows after style change.
75 void notifyOverflowUpdated(); 75 void notifyOverflowUpdated();
76 76
77 void updateAfterCompositingChangeIfNeeded(); 77 void updateAfterCompositingChangeIfNeeded();
78 78
79 void updateHaveScrollEventHandlers();
80
81 // Should be called whenever a scrollable area is added or removed, or gains /loses a composited layer. 79 // Should be called whenever a scrollable area is added or removed, or gains /loses a composited layer.
82 void scrollableAreasDidChange(); 80 void scrollableAreasDidChange();
83 81
84 // Should be called whenever the slow repaint objects counter changes betwee n zero and one. 82 // Should be called whenever the slow repaint objects counter changes betwee n zero and one.
85 void frameViewHasBackgroundAttachmentFixedObjectsDidChange(FrameView*); 83 void frameViewHasBackgroundAttachmentFixedObjectsDidChange(FrameView*);
86 84
87 // Should be called whenever the set of fixed objects changes. 85 // Should be called whenever the set of fixed objects changes.
88 void frameViewFixedObjectsDidChange(FrameView*); 86 void frameViewFixedObjectsDidChange(FrameView*);
89 87
90 // Should be called whenever the root layer for the given frame view changes . 88 // Should be called whenever the root layer for the given frame view changes .
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 ScrollbarMap m_verticalScrollbars; 158 ScrollbarMap m_verticalScrollbars;
161 HashSet<const PaintLayer*> m_layersWithTouchRects; 159 HashSet<const PaintLayer*> m_layersWithTouchRects;
162 bool m_wasFrameScrollable; 160 bool m_wasFrameScrollable;
163 161
164 MainThreadScrollingReasons m_lastMainThreadScrollingReasons; 162 MainThreadScrollingReasons m_lastMainThreadScrollingReasons;
165 }; 163 };
166 164
167 } // namespace blink 165 } // namespace blink
168 166
169 #endif // ScrollingCoordinator_h 167 #endif // ScrollingCoordinator_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698