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

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

Issue 2650343008: Implement Element.scrollIntoView for scroll-behavior: smooth. (Closed)
Patch Set: Rebase Created 3 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, 2008, 2009, 2010, 2013 Apple Inc. All rights 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2013 Apple Inc. All rights
3 * reserved. 3 * reserved.
4 * Copyright (C) 2008 Torch Mobile Inc. All rights reserved. 4 * Copyright (C) 2008 Torch Mobile Inc. All rights reserved.
5 * (http://www.torchmobile.com/) 5 * (http://www.torchmobile.com/)
6 * 6 *
7 * This library is free software; you can redistribute it and/or 7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Library General Public 8 * modify it under the terms of the GNU Library General Public
9 * License as published by the Free Software Foundation; either 9 * License as published by the Free Software Foundation; either
10 * version 2 of the License, or (at your option) any later version. 10 * version 2 of the License, or (at your option) any later version.
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 class EventHandlerRegistry; 59 class EventHandlerRegistry;
60 class FocusController; 60 class FocusController;
61 class Frame; 61 class Frame;
62 class OverscrollController; 62 class OverscrollController;
63 struct PageScaleConstraints; 63 struct PageScaleConstraints;
64 class PageScaleConstraintsSet; 64 class PageScaleConstraintsSet;
65 class PluginData; 65 class PluginData;
66 class PointerLockController; 66 class PointerLockController;
67 class ScopedPageSuspender; 67 class ScopedPageSuspender;
68 class ScrollingCoordinator; 68 class ScrollingCoordinator;
69 class SmoothScrollSequencer;
69 class Settings; 70 class Settings;
70 class ConsoleMessageStorage; 71 class ConsoleMessageStorage;
71 class SpellCheckerClient; 72 class SpellCheckerClient;
72 class TopDocumentRootScrollerController; 73 class TopDocumentRootScrollerController;
73 class ValidationMessageClient; 74 class ValidationMessageClient;
74 class VisualViewport; 75 class VisualViewport;
75 class WebLayerTreeView; 76 class WebLayerTreeView;
76 77
77 typedef uint64_t LinkHash; 78 typedef uint64_t LinkHash;
78 79
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
170 PointerLockController& pointerLockController() const { 171 PointerLockController& pointerLockController() const {
171 return *m_pointerLockController; 172 return *m_pointerLockController;
172 } 173 }
173 ValidationMessageClient& validationMessageClient() const { 174 ValidationMessageClient& validationMessageClient() const {
174 return *m_validationMessageClient; 175 return *m_validationMessageClient;
175 } 176 }
176 void setValidationMessageClient(ValidationMessageClient*); 177 void setValidationMessageClient(ValidationMessageClient*);
177 178
178 ScrollingCoordinator* scrollingCoordinator(); 179 ScrollingCoordinator* scrollingCoordinator();
179 180
181 SmoothScrollSequencer* smoothScrollSequencer();
182
180 ClientRectList* nonFastScrollableRects(const LocalFrame*); 183 ClientRectList* nonFastScrollableRects(const LocalFrame*);
181 184
182 Settings& settings() const { return *m_settings; } 185 Settings& settings() const { return *m_settings; }
183 186
184 UseCounter& useCounter() { return m_useCounter; } 187 UseCounter& useCounter() { return m_useCounter; }
185 Deprecation& deprecation() { return m_deprecation; } 188 Deprecation& deprecation() { return m_deprecation; }
186 HostsUsingFeatures& hostsUsingFeatures() { return m_hostsUsingFeatures; } 189 HostsUsingFeatures& hostsUsingFeatures() { return m_hostsUsingFeatures; }
187 190
188 PageScaleConstraintsSet& pageScaleConstraintsSet(); 191 PageScaleConstraintsSet& pageScaleConstraintsSet();
189 const PageScaleConstraintsSet& pageScaleConstraintsSet() const; 192 const PageScaleConstraintsSet& pageScaleConstraintsSet() const;
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
295 Member<PageAnimator> m_animator; 298 Member<PageAnimator> m_animator;
296 const Member<AutoscrollController> m_autoscrollController; 299 const Member<AutoscrollController> m_autoscrollController;
297 Member<ChromeClient> m_chromeClient; 300 Member<ChromeClient> m_chromeClient;
298 const Member<DragCaret> m_dragCaret; 301 const Member<DragCaret> m_dragCaret;
299 const Member<DragController> m_dragController; 302 const Member<DragController> m_dragController;
300 const Member<FocusController> m_focusController; 303 const Member<FocusController> m_focusController;
301 const Member<ContextMenuController> m_contextMenuController; 304 const Member<ContextMenuController> m_contextMenuController;
302 const std::unique_ptr<PageScaleConstraintsSet> m_pageScaleConstraintsSet; 305 const std::unique_ptr<PageScaleConstraintsSet> m_pageScaleConstraintsSet;
303 const Member<PointerLockController> m_pointerLockController; 306 const Member<PointerLockController> m_pointerLockController;
304 Member<ScrollingCoordinator> m_scrollingCoordinator; 307 Member<ScrollingCoordinator> m_scrollingCoordinator;
308 Member<SmoothScrollSequencer> m_smoothScrollSequencer;
305 const Member<BrowserControls> m_browserControls; 309 const Member<BrowserControls> m_browserControls;
306 const Member<ConsoleMessageStorage> m_consoleMessageStorage; 310 const Member<ConsoleMessageStorage> m_consoleMessageStorage;
307 const Member<EventHandlerRegistry> m_eventHandlerRegistry; 311 const Member<EventHandlerRegistry> m_eventHandlerRegistry;
308 const Member<TopDocumentRootScrollerController> 312 const Member<TopDocumentRootScrollerController>
309 m_globalRootScrollerController; 313 m_globalRootScrollerController;
310 const Member<VisualViewport> m_visualViewport; 314 const Member<VisualViewport> m_visualViewport;
311 const Member<OverscrollController> m_overscrollController; 315 const Member<OverscrollController> m_overscrollController;
312 316
313 // Typically, the main frame and Page should both be owned by the embedder, 317 // Typically, the main frame and Page should both be owned by the embedder,
314 // which must call Page::willBeDestroyed() prior to destroying Page. This 318 // which must call Page::willBeDestroyed() prior to destroying Page. This
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
356 #endif 360 #endif
357 361
358 int m_subframeCount; 362 int m_subframeCount;
359 }; 363 };
360 364
361 extern template class CORE_EXTERN_TEMPLATE_EXPORT Supplement<Page>; 365 extern template class CORE_EXTERN_TEMPLATE_EXPORT Supplement<Page>;
362 366
363 } // namespace blink 367 } // namespace blink
364 368
365 #endif // Page_h 369 #endif // Page_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698