Chromium Code Reviews| Index: third_party/WebKit/Source/core/page/scrolling/ViewportScrollCallback.h |
| diff --git a/third_party/WebKit/Source/core/page/scrolling/ViewportScrollCallback.h b/third_party/WebKit/Source/core/page/scrolling/ViewportScrollCallback.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..f6c2245663338879e252a6d6eb92269329883ed8 |
| --- /dev/null |
| +++ b/third_party/WebKit/Source/core/page/scrolling/ViewportScrollCallback.h |
| @@ -0,0 +1,41 @@ |
| +// 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 ViewportScrollCallback_h |
| +#define ViewportScrollCallback_h |
| + |
| +#include "core/page/scrolling/ScrollStateCallback.h" |
| +#include "platform/heap/Handle.h" |
| +#include "platform/scroll/ScrollTypes.h" |
| + |
| +namespace blink { |
| + |
| +class Document; |
| +class FloatSize; |
| +class FrameHost; |
| +class Element; |
| +class ScrollableArea; |
| +class ScrollState; |
| + |
| +class ViewportScrollCallback : public ScrollStateCallback { |
| +public: |
| + ViewportScrollCallback(Document&, FrameHost&); |
| + ~ViewportScrollCallback(); |
| + |
| + void handleEvent(ScrollState*) override; |
| + |
| + DECLARE_VIRTUAL_TRACE(); |
| + |
| +private: |
| + bool shouldScrollTopControls(const FloatSize&, ScrollGranularity) const; |
| + ScrollableArea* getRootFrameViewport() const; |
| + |
| + Member<Document> m_document; |
|
tdresser
2016/04/12 13:59:15
Should these be Members or WeakMembers?
bokan
2016/04/12 15:13:53
WeakMembers. Changed and added corresponding null-
|
| + Member<FrameHost> m_frameHost; |
| + |
| +}; |
| + |
| +} // namespace blink |
| + |
| +#endif // ViewportScrollCallback_h |