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

Side by Side Diff: third_party/WebKit/Source/core/page/scrolling/ViewportScrollCallback.h

Issue 1840113005: Move viewport actions into an ApplyScroll callback. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase over my own changes Created 4 years, 8 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 unified diff | Download patch
OLDNEW
(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 WeakMember<Document> m_document;
35 WeakMember<FrameHost> m_frameHost;
36
37 };
38
39 } // namespace blink
40
41 #endif // ViewportScrollCallback_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698