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

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

Issue 2650343008: Implement Element.scrollIntoView for scroll-behavior: smooth. (Closed)
Patch Set: Add a short comment. Created 3 years, 6 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& GetPointerLockController() const { 171 PointerLockController& GetPointerLockController() const {
171 return *pointer_lock_controller_; 172 return *pointer_lock_controller_;
172 } 173 }
173 ValidationMessageClient& GetValidationMessageClient() const { 174 ValidationMessageClient& GetValidationMessageClient() const {
174 return *validation_message_client_; 175 return *validation_message_client_;
175 } 176 }
176 void SetValidationMessageClient(ValidationMessageClient*); 177 void SetValidationMessageClient(ValidationMessageClient*);
177 178
178 ScrollingCoordinator* GetScrollingCoordinator(); 179 ScrollingCoordinator* GetScrollingCoordinator();
179 180
181 SmoothScrollSequencer* GetSmoothScrollSequencer();
182
180 ClientRectList* NonFastScrollableRects(const LocalFrame*); 183 ClientRectList* NonFastScrollableRects(const LocalFrame*);
181 184
182 Settings& GetSettings() const { return *settings_; } 185 Settings& GetSettings() const { return *settings_; }
183 186
184 UseCounter& GetUseCounter() { return use_counter_; } 187 UseCounter& GetUseCounter() { return use_counter_; }
185 Deprecation& GetDeprecation() { return deprecation_; } 188 Deprecation& GetDeprecation() { return deprecation_; }
186 HostsUsingFeatures& GetHostsUsingFeatures() { return hosts_using_features_; } 189 HostsUsingFeatures& GetHostsUsingFeatures() { return hosts_using_features_; }
187 190
188 PageScaleConstraintsSet& GetPageScaleConstraintsSet(); 191 PageScaleConstraintsSet& GetPageScaleConstraintsSet();
189 const PageScaleConstraintsSet& GetPageScaleConstraintsSet() const; 192 const PageScaleConstraintsSet& GetPageScaleConstraintsSet() const;
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
295 Member<PageAnimator> animator_; 298 Member<PageAnimator> animator_;
296 const Member<AutoscrollController> autoscroll_controller_; 299 const Member<AutoscrollController> autoscroll_controller_;
297 Member<ChromeClient> chrome_client_; 300 Member<ChromeClient> chrome_client_;
298 const Member<DragCaret> drag_caret_; 301 const Member<DragCaret> drag_caret_;
299 const Member<DragController> drag_controller_; 302 const Member<DragController> drag_controller_;
300 const Member<FocusController> focus_controller_; 303 const Member<FocusController> focus_controller_;
301 const Member<ContextMenuController> context_menu_controller_; 304 const Member<ContextMenuController> context_menu_controller_;
302 const std::unique_ptr<PageScaleConstraintsSet> page_scale_constraints_set_; 305 const std::unique_ptr<PageScaleConstraintsSet> page_scale_constraints_set_;
303 const Member<PointerLockController> pointer_lock_controller_; 306 const Member<PointerLockController> pointer_lock_controller_;
304 Member<ScrollingCoordinator> scrolling_coordinator_; 307 Member<ScrollingCoordinator> scrolling_coordinator_;
308 Member<SmoothScrollSequencer> smooth_scroll_sequencer_;
305 const Member<BrowserControls> browser_controls_; 309 const Member<BrowserControls> browser_controls_;
306 const Member<ConsoleMessageStorage> console_message_storage_; 310 const Member<ConsoleMessageStorage> console_message_storage_;
307 const Member<EventHandlerRegistry> event_handler_registry_; 311 const Member<EventHandlerRegistry> event_handler_registry_;
308 const Member<TopDocumentRootScrollerController> 312 const Member<TopDocumentRootScrollerController>
309 global_root_scroller_controller_; 313 global_root_scroller_controller_;
310 const Member<VisualViewport> visual_viewport_; 314 const Member<VisualViewport> visual_viewport_;
311 const Member<OverscrollController> overscroll_controller_; 315 const Member<OverscrollController> overscroll_controller_;
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 subframe_count_; 362 int subframe_count_;
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
« no previous file with comments | « third_party/WebKit/Source/core/layout/ScrollAlignment.cpp ('k') | third_party/WebKit/Source/core/page/Page.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698