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

Unified Diff: third_party/WebKit/Source/core/page/scrolling/ChildViewportScrollCallback.h

Issue 2273163002: Cleanup and refactor RootScrollerController. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed class comment Created 4 years, 4 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/ChildViewportScrollCallback.h
diff --git a/third_party/WebKit/Source/core/page/scrolling/ChildViewportScrollCallback.h b/third_party/WebKit/Source/core/page/scrolling/ChildViewportScrollCallback.h
deleted file mode 100644
index bab9d870382a8b6c29dfdd09d3283c60923d9eff..0000000000000000000000000000000000000000
--- a/third_party/WebKit/Source/core/page/scrolling/ChildViewportScrollCallback.h
+++ /dev/null
@@ -1,42 +0,0 @@
-// Copyright 2016 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.
-
-#ifndef ChildViewportScrollCallback_h
-#define ChildViewportScrollCallback_h
-
-#include "core/page/scrolling/ViewportScrollCallback.h"
-#include "platform/heap/Handle.h"
-
-namespace blink {
-
-class ScrollableArea;
-class ScrollState;
-
-// The ViewportScrollCallback used by non-root Frames, i.e. iframes. This is
-// essentially a no-op implementation that simply scrolls the frame since
-// iframes don't have any additional scrolling actions, unlike the root frame
-// which moves the top controls and provides overscroll glow.
-class ChildViewportScrollCallback : public ViewportScrollCallback {
-public:
- static ChildViewportScrollCallback* create()
- {
- return new ChildViewportScrollCallback();
- }
-
- virtual ~ChildViewportScrollCallback();
-
- void handleEvent(ScrollState*) override;
- void setScroller(ScrollableArea*) override;
-
- DECLARE_VIRTUAL_TRACE();
-
-private:
- ChildViewportScrollCallback();
-
- WeakMember<ScrollableArea> m_scroller;
-};
-
-} // namespace blink
-
-#endif // ChildViewportScrollCallback_h

Powered by Google App Engine
This is Rietveld 408576698