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

Side by Side Diff: third_party/WebKit/Source/core/page/scrolling/RootScrollerController.cpp

Issue 2069713002: Make all gesture scrolls use customization path internally (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase + Fix test Created 4 years, 5 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 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "core/page/scrolling/RootScrollerController.h" 5 #include "core/page/scrolling/RootScrollerController.h"
6 6
7 #include "core/dom/Document.h" 7 #include "core/dom/Document.h"
8 #include "core/dom/Element.h" 8 #include "core/dom/Element.h"
9 #include "core/frame/FrameHost.h" 9 #include "core/frame/FrameHost.h"
10 #include "core/frame/FrameView.h" 10 #include "core/frame/FrameView.h"
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 67
68 if (!fillsViewport(element)) 68 if (!fillsViewport(element))
69 return false; 69 return false;
70 70
71 return true; 71 return true;
72 } 72 }
73 73
74 } // namespace 74 } // namespace
75 75
76 ViewportScrollCallback* RootScrollerController::createViewportApplyScroll( 76 ViewportScrollCallback* RootScrollerController::createViewportApplyScroll(
77 TopControls& topControls, OverscrollController& overscrollController) 77 TopControls* topControls, OverscrollController* overscrollController)
78 { 78 {
79 return new ViewportScrollCallback(topControls, overscrollController); 79 return new ViewportScrollCallback(topControls, overscrollController);
80 } 80 }
81 81
82 RootScrollerController::RootScrollerController(Document& document, ViewportScrol lCallback* applyScrollCallback) 82 RootScrollerController::RootScrollerController(Document& document, ViewportScrol lCallback* applyScrollCallback)
83 : m_document(&document) 83 : m_document(&document)
84 , m_viewportApplyScroll(applyScrollCallback) 84 , m_viewportApplyScroll(applyScrollCallback)
85 { 85 {
86 } 86 }
87 87
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 m_viewportApplyScroll->setScroller(targetScroller); 156 m_viewportApplyScroll->setScroller(targetScroller);
157 } 157 }
158 158
159 Element* RootScrollerController::defaultEffectiveRootScroller() 159 Element* RootScrollerController::defaultEffectiveRootScroller()
160 { 160 {
161 DCHECK(m_document); 161 DCHECK(m_document);
162 return m_document->documentElement(); 162 return m_document->documentElement();
163 } 163 }
164 164
165 } // namespace blink 165 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698