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

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

Issue 23672027: Rename OS(WINDOWS) to OS(WIN) (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 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/inspector/InspectorOverlay.cpp ('k') | Source/core/page/AutoscrollController.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) 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 26 matching lines...) Expand all
37 class FrameView; 37 class FrameView;
38 class Node; 38 class Node;
39 class PlatformMouseEvent; 39 class PlatformMouseEvent;
40 class RenderBox; 40 class RenderBox;
41 class RenderObject; 41 class RenderObject;
42 42
43 enum AutoscrollType { 43 enum AutoscrollType {
44 NoAutoscroll, 44 NoAutoscroll,
45 AutoscrollForDragAndDrop, 45 AutoscrollForDragAndDrop,
46 AutoscrollForSelection, 46 AutoscrollForSelection,
47 #if OS(WINDOWS) 47 #if OS(WIN)
48 AutoscrollForPanCanStop, 48 AutoscrollForPanCanStop,
49 AutoscrollForPan, 49 AutoscrollForPan,
50 #endif 50 #endif
51 }; 51 };
52 52
53 // AutscrollController handels autoscroll and pan scroll for EventHandler. 53 // AutscrollController handels autoscroll and pan scroll for EventHandler.
54 class AutoscrollController { 54 class AutoscrollController {
55 public: 55 public:
56 bool autoscrollInProgress() const; 56 bool autoscrollInProgress() const;
57 bool autoscrollInProgress(const RenderBox*) const; 57 bool autoscrollInProgress(const RenderBox*) const;
58 static PassOwnPtr<AutoscrollController> create(); 58 static PassOwnPtr<AutoscrollController> create();
59 bool panScrollInProgress() const; 59 bool panScrollInProgress() const;
60 void startAutoscrollForSelection(RenderObject*); 60 void startAutoscrollForSelection(RenderObject*);
61 void stopAutoscrollTimer(); 61 void stopAutoscrollTimer();
62 void stopAutoscrollIfNeeded(RenderObject*); 62 void stopAutoscrollIfNeeded(RenderObject*);
63 void updateAutoscrollRenderer(); 63 void updateAutoscrollRenderer();
64 void updateDragAndDrop(Node* targetNode, const IntPoint& eventPosition, doub le eventTime); 64 void updateDragAndDrop(Node* targetNode, const IntPoint& eventPosition, doub le eventTime);
65 #if OS(WINDOWS) 65 #if OS(WIN)
66 void handleMouseReleaseForPanScrolling(Frame*, const PlatformMouseEvent&); 66 void handleMouseReleaseForPanScrolling(Frame*, const PlatformMouseEvent&);
67 void startPanScrolling(RenderBox*, const IntPoint&); 67 void startPanScrolling(RenderBox*, const IntPoint&);
68 #endif 68 #endif
69 69
70 private: 70 private:
71 AutoscrollController(); 71 AutoscrollController();
72 void autoscrollTimerFired(Timer<AutoscrollController>*); 72 void autoscrollTimerFired(Timer<AutoscrollController>*);
73 void startAutoscrollTimer(); 73 void startAutoscrollTimer();
74 #if OS(WINDOWS) 74 #if OS(WIN)
75 void updatePanScrollState(FrameView*, const IntPoint&); 75 void updatePanScrollState(FrameView*, const IntPoint&);
76 #endif 76 #endif
77 77
78 Timer<AutoscrollController> m_autoscrollTimer; 78 Timer<AutoscrollController> m_autoscrollTimer;
79 RenderBox* m_autoscrollRenderer; 79 RenderBox* m_autoscrollRenderer;
80 AutoscrollType m_autoscrollType; 80 AutoscrollType m_autoscrollType;
81 IntPoint m_dragAndDropAutoscrollReferencePosition; 81 IntPoint m_dragAndDropAutoscrollReferencePosition;
82 double m_dragAndDropAutoscrollStartTime; 82 double m_dragAndDropAutoscrollStartTime;
83 #if OS(WINDOWS) 83 #if OS(WIN)
84 IntPoint m_panScrollStartPos; 84 IntPoint m_panScrollStartPos;
85 #endif 85 #endif
86 }; 86 };
87 87
88 } // namespace WebCore 88 } // namespace WebCore
89 89
90 #endif // AutoscrollController_h 90 #endif // AutoscrollController_h
OLDNEW
« no previous file with comments | « Source/core/inspector/InspectorOverlay.cpp ('k') | Source/core/page/AutoscrollController.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698