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

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

Issue 2040693002: Rename RootScroller class to RootScrollerController. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/page/scrolling/RootScrollerController.cpp
diff --git a/third_party/WebKit/Source/core/page/scrolling/RootScroller.cpp b/third_party/WebKit/Source/core/page/scrolling/RootScrollerController.cpp
similarity index 84%
rename from third_party/WebKit/Source/core/page/scrolling/RootScroller.cpp
rename to third_party/WebKit/Source/core/page/scrolling/RootScrollerController.cpp
index 92115c6e187244cba9c00e290d9d7c6247e89140..66d8e483ee3a738025de0549255a15db1ea63b55 100644
--- a/third_party/WebKit/Source/core/page/scrolling/RootScroller.cpp
+++ b/third_party/WebKit/Source/core/page/scrolling/RootScrollerController.cpp
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "core/page/scrolling/RootScroller.h"
+#include "core/page/scrolling/RootScrollerController.h"
#include "core/dom/Document.h"
#include "core/dom/Element.h"
@@ -73,19 +73,19 @@ bool isValidRootScroller(const Element& element)
} // namespace
-ViewportScrollCallback* RootScroller::createViewportApplyScroll(
+ViewportScrollCallback* RootScrollerController::createViewportApplyScroll(
TopControls& topControls, OverscrollController& overscrollController)
{
return new ViewportScrollCallback(topControls, overscrollController);
}
-RootScroller::RootScroller(Document& document, ViewportScrollCallback* applyScrollCallback)
+RootScrollerController::RootScrollerController(Document& document, ViewportScrollCallback* applyScrollCallback)
: m_document(&document)
, m_viewportApplyScroll(applyScrollCallback)
{
}
-DEFINE_TRACE(RootScroller)
+DEFINE_TRACE(RootScrollerController)
{
visitor->trace(m_document);
visitor->trace(m_viewportApplyScroll);
@@ -93,28 +93,28 @@ DEFINE_TRACE(RootScroller)
visitor->trace(m_effectiveRootScroller);
}
-void RootScroller::set(Element* newRootScroller)
+void RootScrollerController::set(Element* newRootScroller)
{
m_rootScroller = newRootScroller;
updateEffectiveRootScroller();
}
-Element* RootScroller::get() const
+Element* RootScrollerController::get() const
{
return m_rootScroller;
}
-Element* RootScroller::effectiveRootScroller() const
+Element* RootScrollerController::effectiveRootScroller() const
{
return m_effectiveRootScroller;
}
-void RootScroller::didUpdateLayout()
+void RootScrollerController::didUpdateLayout()
{
updateEffectiveRootScroller();
}
-void RootScroller::updateEffectiveRootScroller()
+void RootScrollerController::updateEffectiveRootScroller()
{
bool rootScrollerValid =
m_rootScroller && isValidRootScroller(*m_rootScroller);
@@ -130,7 +130,7 @@ void RootScroller::updateEffectiveRootScroller()
m_effectiveRootScroller = newEffectiveRootScroller;
}
-void RootScroller::moveViewportApplyScroll(Element* target)
+void RootScrollerController::moveViewportApplyScroll(Element* target)
{
if (!m_viewportApplyScroll)
return;
@@ -156,7 +156,7 @@ void RootScroller::moveViewportApplyScroll(Element* target)
m_viewportApplyScroll->setScroller(targetScroller);
}
-Element* RootScroller::defaultEffectiveRootScroller()
+Element* RootScrollerController::defaultEffectiveRootScroller()
{
DCHECK(m_document);
return m_document->documentElement();

Powered by Google App Engine
This is Rietveld 408576698