OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |