Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef ViewportScrollCallback_h | |
| 6 #define ViewportScrollCallback_h | |
| 7 | |
| 8 #include "core/page/scrolling/ScrollStateCallback.h" | |
| 9 #include "platform/heap/Handle.h" | |
| 10 #include "platform/scroll/ScrollTypes.h" | |
| 11 | |
| 12 namespace blink { | |
| 13 | |
| 14 class Document; | |
| 15 class FloatSize; | |
| 16 class FrameHost; | |
| 17 class Element; | |
| 18 class ScrollableArea; | |
| 19 class ScrollState; | |
| 20 | |
| 21 class ViewportScrollCallback : public ScrollStateCallback { | |
| 22 public: | |
| 23 ViewportScrollCallback(Document&, FrameHost&); | |
| 24 ~ViewportScrollCallback(); | |
| 25 | |
| 26 void handleEvent(ScrollState*) override; | |
| 27 | |
| 28 DECLARE_VIRTUAL_TRACE(); | |
| 29 | |
| 30 private: | |
| 31 bool shouldScrollTopControls(const FloatSize&, ScrollGranularity) const; | |
| 32 ScrollableArea* getRootFrameViewport() const; | |
| 33 | |
| 34 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-
| |
| 35 Member<FrameHost> m_frameHost; | |
| 36 | |
| 37 }; | |
| 38 | |
| 39 } // namespace blink | |
| 40 | |
| 41 #endif // ViewportScrollCallback_h | |
| OLD | NEW |