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

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

Issue 1304063005: Make classes and structures in core/page fast-allocated. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 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
« no previous file with comments | « Source/core/page/scrolling/ScrollingConstraints.h ('k') | no next file » | 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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 class LocalFrame; 45 class LocalFrame;
46 class FrameView; 46 class FrameView;
47 class GraphicsLayer; 47 class GraphicsLayer;
48 class Page; 48 class Page;
49 class Region; 49 class Region;
50 class ScrollableArea; 50 class ScrollableArea;
51 class WebCompositorAnimationTimeline; 51 class WebCompositorAnimationTimeline;
52 52
53 class CORE_EXPORT ScrollingCoordinator final : public NoBaseWillBeGarbageCollect edFinalized<ScrollingCoordinator> { 53 class CORE_EXPORT ScrollingCoordinator final : public NoBaseWillBeGarbageCollect edFinalized<ScrollingCoordinator> {
54 WTF_MAKE_NONCOPYABLE(ScrollingCoordinator); 54 WTF_MAKE_NONCOPYABLE(ScrollingCoordinator);
55 WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED(ScrollingCoordinator);
55 public: 56 public:
56 static PassOwnPtrWillBeRawPtr<ScrollingCoordinator> create(Page*); 57 static PassOwnPtrWillBeRawPtr<ScrollingCoordinator> create(Page*);
57 58
58 ~ScrollingCoordinator(); 59 ~ScrollingCoordinator();
59 DECLARE_TRACE(); 60 DECLARE_TRACE();
60 61
61 void willBeDestroyed(); 62 void willBeDestroyed();
62 63
63 // Return whether this scrolling coordinator handles scrolling for the given frame view. 64 // Return whether this scrolling coordinator handles scrolling for the given frame view.
64 bool coordinatesScrollingForFrameView(FrameView*) const; 65 bool coordinatesScrollingForFrameView(FrameView*) const;
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 ScrollbarMap m_verticalScrollbars; 160 ScrollbarMap m_verticalScrollbars;
160 HashSet<const DeprecatedPaintLayer*> m_layersWithTouchRects; 161 HashSet<const DeprecatedPaintLayer*> m_layersWithTouchRects;
161 bool m_wasFrameScrollable; 162 bool m_wasFrameScrollable;
162 163
163 MainThreadScrollingReasons m_lastMainThreadScrollingReasons; 164 MainThreadScrollingReasons m_lastMainThreadScrollingReasons;
164 }; 165 };
165 166
166 } // namespace blink 167 } // namespace blink
167 168
168 #endif // ScrollingCoordinator_h 169 #endif // ScrollingCoordinator_h
OLDNEW
« no previous file with comments | « Source/core/page/scrolling/ScrollingConstraints.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698