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

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

Issue 1686483002: Oilpan: Remove most WillBe types from the code base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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) 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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 NoAutoscroll, 45 NoAutoscroll,
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 GarbageCollected<Autoscrol lController> {
56 USING_FAST_MALLOC_WILL_BE_REMOVED(AutoscrollController);
57 public: 56 public:
58 static PassOwnPtrWillBeRawPtr<AutoscrollController> create(Page&); 57 static RawPtr<AutoscrollController> create(Page&);
59 DECLARE_TRACE(); 58 DECLARE_TRACE();
60 59
61 static const int noPanScrollRadius = 15; 60 static const int noPanScrollRadius = 15;
62 61
63 void animate(double monotonicFrameBeginTime); 62 void animate(double monotonicFrameBeginTime);
64 bool autoscrollInProgress() const; 63 bool autoscrollInProgress() const;
65 bool autoscrollInProgress(const LayoutBox*) const; 64 bool autoscrollInProgress(const LayoutBox*) const;
66 bool panScrollInProgress() const; 65 bool panScrollInProgress() const;
67 void startAutoscrollForSelection(LayoutObject*); 66 void startAutoscrollForSelection(LayoutObject*);
68 void stopAutoscroll(); 67 void stopAutoscroll();
69 void stopAutoscrollIfNeeded(LayoutObject*); 68 void stopAutoscrollIfNeeded(LayoutObject*);
70 void updateAutoscrollLayoutObject(); 69 void updateAutoscrollLayoutObject();
71 void updateDragAndDrop(Node* targetNode, const IntPoint& eventPosition, doub le eventTime); 70 void updateDragAndDrop(Node* targetNode, const IntPoint& eventPosition, doub le eventTime);
72 #if OS(WIN) 71 #if OS(WIN)
73 void handleMouseReleaseForPanScrolling(LocalFrame*, const PlatformMouseEvent &); 72 void handleMouseReleaseForPanScrolling(LocalFrame*, const PlatformMouseEvent &);
74 void startPanScrolling(LayoutBox*, const IntPoint&); 73 void startPanScrolling(LayoutBox*, const IntPoint&);
75 #endif 74 #endif
76 75
77 private: 76 private:
78 explicit AutoscrollController(Page&); 77 explicit AutoscrollController(Page&);
79 78
80 void startAutoscroll(); 79 void startAutoscroll();
81 80
82 #if OS(WIN) 81 #if OS(WIN)
83 void updatePanScrollState(FrameView*, const IntPoint& lastKnownMousePosition ); 82 void updatePanScrollState(FrameView*, const IntPoint& lastKnownMousePosition );
84 #endif 83 #endif
85 84
86 RawPtrWillBeMember<Page> m_page; 85 Member<Page> m_page;
87 LayoutBox* m_autoscrollLayoutObject; 86 LayoutBox* m_autoscrollLayoutObject;
88 LayoutBox* m_pressedLayoutObject; 87 LayoutBox* m_pressedLayoutObject;
89 AutoscrollType m_autoscrollType; 88 AutoscrollType m_autoscrollType;
90 IntPoint m_dragAndDropAutoscrollReferencePosition; 89 IntPoint m_dragAndDropAutoscrollReferencePosition;
91 double m_dragAndDropAutoscrollStartTime; 90 double m_dragAndDropAutoscrollStartTime;
92 #if OS(WIN) 91 #if OS(WIN)
93 IntPoint m_panScrollStartPos; 92 IntPoint m_panScrollStartPos;
94 #endif 93 #endif
95 }; 94 };
96 95
97 } // namespace blink 96 } // namespace blink
98 97
99 #endif // AutoscrollController_h 98 #endif // AutoscrollController_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698