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

Side by Side Diff: Source/core/page/AutoscrollController.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 | « no previous file | Source/core/page/DOMWindowPagePopup.h » ('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) 2006, 2007, 2009, 2010, 2011 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2007, 2009, 2010, 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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 AutoscrollForDragAndDrop, 46 AutoscrollForDragAndDrop,
47 AutoscrollForSelection, 47 AutoscrollForSelection,
48 #if OS(WIN) 48 #if OS(WIN)
49 AutoscrollForPanCanStop, 49 AutoscrollForPanCanStop,
50 AutoscrollForPan, 50 AutoscrollForPan,
51 #endif 51 #endif
52 }; 52 };
53 53
54 // AutscrollController handels autoscroll and pan scroll for EventHandler. 54 // AutscrollController handels autoscroll and pan scroll for EventHandler.
55 class CORE_EXPORT AutoscrollController final : public NoBaseWillBeGarbageCollect ed<AutoscrollController> { 55 class CORE_EXPORT AutoscrollController final : public NoBaseWillBeGarbageCollect ed<AutoscrollController> {
56 WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED(AutoscrollController);
56 public: 57 public:
57 static PassOwnPtrWillBeRawPtr<AutoscrollController> create(Page&); 58 static PassOwnPtrWillBeRawPtr<AutoscrollController> create(Page&);
58 DECLARE_TRACE(); 59 DECLARE_TRACE();
59 60
60 static const int noPanScrollRadius = 15; 61 static const int noPanScrollRadius = 15;
61 62
62 void animate(double monotonicFrameBeginTime); 63 void animate(double monotonicFrameBeginTime);
63 bool autoscrollInProgress() const; 64 bool autoscrollInProgress() const;
64 bool autoscrollInProgress(const LayoutBox*) const; 65 bool autoscrollInProgress(const LayoutBox*) const;
65 bool panScrollInProgress() const; 66 bool panScrollInProgress() const;
(...skipping 22 matching lines...) Expand all
88 IntPoint m_dragAndDropAutoscrollReferencePosition; 89 IntPoint m_dragAndDropAutoscrollReferencePosition;
89 double m_dragAndDropAutoscrollStartTime; 90 double m_dragAndDropAutoscrollStartTime;
90 #if OS(WIN) 91 #if OS(WIN)
91 IntPoint m_panScrollStartPos; 92 IntPoint m_panScrollStartPos;
92 #endif 93 #endif
93 }; 94 };
94 95
95 } // namespace blink 96 } // namespace blink
96 97
97 #endif // AutoscrollController_h 98 #endif // AutoscrollController_h
OLDNEW
« no previous file with comments | « no previous file | Source/core/page/DOMWindowPagePopup.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698