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

Unified Diff: Source/core/page/scrolling/ScrollCustomizationCallbacks.cpp

Issue 1239993005: Revert of Expose scroll customization for touch to JS (behind REF). (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/page/scrolling/ScrollCustomizationCallbacks.h ('k') | Source/core/page/scrolling/ScrollState.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/page/scrolling/ScrollCustomizationCallbacks.cpp
diff --git a/Source/core/page/scrolling/ScrollCustomizationCallbacks.cpp b/Source/core/page/scrolling/ScrollCustomizationCallbacks.cpp
deleted file mode 100644
index cd9d41fc80fa5876b92ca6343dd8b973ed132180..0000000000000000000000000000000000000000
--- a/Source/core/page/scrolling/ScrollCustomizationCallbacks.cpp
+++ /dev/null
@@ -1,46 +0,0 @@
-// Copyright 2015 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "config.h"
-#include "core/page/scrolling/ScrollCustomizationCallbacks.h"
-
-#include "core/page/scrolling/ScrollStateCallback.h"
-
-namespace blink {
-
-void ScrollCustomizationCallbacks::setDistributeScroll(Element* element, ScrollStateCallback* scrollStateCallback)
-{
- m_distributeScrollCallbacks.set(element, scrollStateCallback);
-}
-
-ScrollStateCallback* ScrollCustomizationCallbacks::getDistributeScroll(Element* element)
-{
- auto it = m_distributeScrollCallbacks.find(element);
- if (it == m_distributeScrollCallbacks.end())
- return nullptr;
- return it->value.get();
-}
-
-void ScrollCustomizationCallbacks::setApplyScroll(Element* element, ScrollStateCallback* scrollStateCallback)
-{
- m_applyScrollCallbacks.set(element, scrollStateCallback);
-}
-
-ScrollStateCallback* ScrollCustomizationCallbacks::getApplyScroll(Element* element)
-{
- auto it = m_applyScrollCallbacks.find(element);
- if (it == m_applyScrollCallbacks.end())
- return nullptr;
- return it->value.get();
-}
-
-#if !ENABLE(OILPAN)
-void ScrollCustomizationCallbacks::removeCallbacksForElement(Element* element)
-{
- m_applyScrollCallbacks.remove(element);
- m_distributeScrollCallbacks.remove(element);
-}
-#endif
-
-} // namespace blink
« no previous file with comments | « Source/core/page/scrolling/ScrollCustomizationCallbacks.h ('k') | Source/core/page/scrolling/ScrollState.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698