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

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

Issue 46353003: Switch AutoscrollController to use animation system instead of timer (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@gclient
Patch Set: addresses review feedback Created 7 years, 1 month 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/FocusController.cpp ('k') | Source/core/page/Page.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, 2008, 2009, 2010, 2013 Apple Inc. All rights reserv ed. 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2013 Apple Inc. All rights reserv ed.
3 * Copyright (C) 2008 Torch Mobile Inc. All rights reserved. (http://www.torchmo bile.com/) 3 * Copyright (C) 2008 Torch Mobile Inc. All rights reserved. (http://www.torchmo bile.com/)
4 * 4 *
5 * This library is free software; you can redistribute it and/or 5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public 6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either 7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version. 8 * version 2 of the License, or (at your option) any later version.
9 * 9 *
10 * This library is distributed in the hope that it will be useful, 10 * This library is distributed in the hope that it will be useful,
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 if (!m_group) 132 if (!m_group)
133 setGroupType(PrivatePageGroup); 133 setGroupType(PrivatePageGroup);
134 return *m_group; 134 return *m_group;
135 } 135 }
136 136
137 void incrementSubframeCount() { ++m_subframeCount; } 137 void incrementSubframeCount() { ++m_subframeCount; }
138 void decrementSubframeCount() { ASSERT(m_subframeCount); --m_subframeCount; } 138 void decrementSubframeCount() { ASSERT(m_subframeCount); --m_subframeCount; }
139 int subframeCount() const { checkSubframeCountConsistency(); return m_subfra meCount; } 139 int subframeCount() const { checkSubframeCountConsistency(); return m_subfra meCount; }
140 140
141 Chrome& chrome() const { return *m_chrome; } 141 Chrome& chrome() const { return *m_chrome; }
142 AutoscrollController& autoscrollController() const { return *m_autoscrollCon troller; }
142 DragCaretController& dragCaretController() const { return *m_dragCaretContro ller; } 143 DragCaretController& dragCaretController() const { return *m_dragCaretContro ller; }
143 DragController& dragController() const { return *m_dragController; } 144 DragController& dragController() const { return *m_dragController; }
144 FocusController& focusController() const { return *m_focusController; } 145 FocusController& focusController() const { return *m_focusController; }
145 ContextMenuController& contextMenuController() const { return *m_contextMenu Controller; } 146 ContextMenuController& contextMenuController() const { return *m_contextMenu Controller; }
146 InspectorController& inspectorController() const { return *m_inspectorContro ller; } 147 InspectorController& inspectorController() const { return *m_inspectorContro ller; }
147 PointerLockController& pointerLockController() const { return *m_pointerLock Controller; } 148 PointerLockController& pointerLockController() const { return *m_pointerLock Controller; }
148 ValidationMessageClient* validationMessageClient() const { return m_validati onMessageClient; } 149 ValidationMessageClient* validationMessageClient() const { return m_validati onMessageClient; }
149 void setValidationMessageClient(ValidationMessageClient* client) { m_validat ionMessageClient = client; } 150 void setValidationMessageClient(ValidationMessageClient* client) { m_validat ionMessageClient = client; }
150 SharedWorkerRepositoryClient* sharedWorkerRepositoryClient() { return m_shar edWorkerRepositoryClient; } 151 SharedWorkerRepositoryClient* sharedWorkerRepositoryClient() { return m_shar edWorkerRepositoryClient; }
151 void setSharedWorkerRepositoryClient(SharedWorkerRepositoryClient* client) { m_sharedWorkerRepositoryClient = client; } 152 void setSharedWorkerRepositoryClient(SharedWorkerRepositoryClient* client) { m_sharedWorkerRepositoryClient = client; }
152 153
153 bool autoscrollInProgress() const;
154 bool autoscrollInProgress(const RenderBox*) const;
155 bool panScrollInProgress() const;
156 void startAutoscrollForSelection(RenderObject*);
157 void stopAutoscrollIfNeeded(RenderObject*);
158 void stopAutoscrollTimer();
159 void updateAutoscrollRenderer();
160 void updateDragAndDrop(Node* targetNode, const IntPoint& eventPosition, doub le eventTime);
161 #if OS(WIN)
162 void handleMouseReleaseForPanScrolling(Frame*, const PlatformMouseEvent&);
163 void startPanScrolling(RenderBox*, const IntPoint&);
164 #endif
165
166 ScrollingCoordinator* scrollingCoordinator(); 154 ScrollingCoordinator* scrollingCoordinator();
167 155
168 String mainThreadScrollingReasonsAsText(); 156 String mainThreadScrollingReasonsAsText();
169 PassRefPtr<ClientRectList> nonFastScrollableRects(const Frame*); 157 PassRefPtr<ClientRectList> nonFastScrollableRects(const Frame*);
170 158
171 Settings& settings() const { return *m_settings; } 159 Settings& settings() const { return *m_settings; }
172 ProgressTracker& progress() const { return *m_progress; } 160 ProgressTracker& progress() const { return *m_progress; }
173 BackForwardClient& backForward() const { return *m_backForwardClient; } 161 BackForwardClient& backForward() const { return *m_backForwardClient; }
174 162
175 UseCounter& useCounter() { return m_useCounter; } 163 UseCounter& useCounter() { return m_useCounter; }
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
307 #endif 295 #endif
308 296
309 const OwnPtr<PageConsole> m_console; 297 const OwnPtr<PageConsole> m_console;
310 298
311 HashSet<MultisamplingChangedObserver*> m_multisamplingChangedObservers; 299 HashSet<MultisamplingChangedObserver*> m_multisamplingChangedObservers;
312 }; 300 };
313 301
314 } // namespace WebCore 302 } // namespace WebCore
315 303
316 #endif // Page_h 304 #endif // Page_h
OLDNEW
« no previous file with comments | « Source/core/page/FocusController.cpp ('k') | Source/core/page/Page.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698