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

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

Issue 310503002: Highlighting on UAOS - alternate approach (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 static PassOwnPtr<ScrollingCoordinator> create(Page*); 57 static PassOwnPtr<ScrollingCoordinator> create(Page*);
58 58
59 void willBeDestroyed(); 59 void willBeDestroyed();
60 60
61 // Return whether this scrolling coordinator handles scrolling for the given frame view. 61 // Return whether this scrolling coordinator handles scrolling for the given frame view.
62 bool coordinatesScrollingForFrameView(FrameView*) const; 62 bool coordinatesScrollingForFrameView(FrameView*) const;
63 63
64 // Called when any frame has done its layout. 64 // Called when any frame has done its layout.
65 void notifyLayoutUpdated(); 65 void notifyLayoutUpdated();
66 66
67 bool hasScrollChildren(GraphicsLayer*);
68
67 // Should be called after compositing has been updated. 69 // Should be called after compositing has been updated.
68 void updateAfterCompositingChange(); 70 void updateAfterCompositingChange();
69 71
70 bool needsToUpdateAfterCompositingChange() const { return m_scrollGestureReg ionIsDirty || m_touchEventTargetRectsAreDirty || frameViewIsDirty(); } 72 bool needsToUpdateAfterCompositingChange() const { return m_scrollGestureReg ionIsDirty || m_touchEventTargetRectsAreDirty || frameViewIsDirty(); }
71 73
72 void updateHaveWheelEventHandlers(); 74 void updateHaveWheelEventHandlers();
73 void updateHaveScrollEventHandlers(); 75 void updateHaveScrollEventHandlers();
74 76
75 // Should be called whenever the slow repaint objects counter changes betwee n zero and one. 77 // Should be called whenever the slow repaint objects counter changes betwee n zero and one.
76 void frameViewHasSlowRepaintObjectsDidChange(FrameView*); 78 void frameViewHasSlowRepaintObjectsDidChange(FrameView*);
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
153 HashSet<const RenderLayer*> m_layersWithTouchRects; 155 HashSet<const RenderLayer*> m_layersWithTouchRects;
154 bool m_wasFrameScrollable; 156 bool m_wasFrameScrollable;
155 157
156 // This is retained for testing. 158 // This is retained for testing.
157 MainThreadScrollingReasons m_lastMainThreadScrollingReasons; 159 MainThreadScrollingReasons m_lastMainThreadScrollingReasons;
158 }; 160 };
159 161
160 } // namespace WebCore 162 } // namespace WebCore
161 163
162 #endif // ScrollingCoordinator_h 164 #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