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

Side by Side Diff: Source/core/frame/RootFrameViewport.h

Issue 1056983004: OverscrollGlow for mainThread-{BLINK CHANGES} (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: addressed review comments of bokan Created 5 years, 6 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
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef RootFrameViewport_h 5 #ifndef RootFrameViewport_h
6 #define RootFrameViewport_h 6 #define RootFrameViewport_h
7 7
8 #include "core/CoreExport.h" 8 #include "core/CoreExport.h"
9 #include "platform/scroll/ScrollableArea.h" 9 #include "platform/scroll/ScrollableArea.h"
10 10
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 bool scrollbarsCanBeActive() const override; 52 bool scrollbarsCanBeActive() const override;
53 IntRect scrollableAreaBoundingBox() const override; 53 IntRect scrollableAreaBoundingBox() const override;
54 bool userInputScrollable(ScrollbarOrientation) const override; 54 bool userInputScrollable(ScrollbarOrientation) const override;
55 bool shouldPlaceVerticalScrollbarOnLeft() const override; 55 bool shouldPlaceVerticalScrollbarOnLeft() const override;
56 void invalidateScrollbarRect(Scrollbar*, const IntRect&) override; 56 void invalidateScrollbarRect(Scrollbar*, const IntRect&) override;
57 void invalidateScrollCornerRect(const IntRect&) override; 57 void invalidateScrollCornerRect(const IntRect&) override;
58 GraphicsLayer* layerForContainer() const override; 58 GraphicsLayer* layerForContainer() const override;
59 GraphicsLayer* layerForScrolling() const override; 59 GraphicsLayer* layerForScrolling() const override;
60 GraphicsLayer* layerForHorizontalScrollbar() const override; 60 GraphicsLayer* layerForHorizontalScrollbar() const override;
61 GraphicsLayer* layerForVerticalScrollbar() const override; 61 GraphicsLayer* layerForVerticalScrollbar() const override;
62 bool userScroll(ScrollDirectionPhysical, ScrollGranularity, float delta = 1) override; 62 ScrollResultOneDimensional userScroll(ScrollDirectionPhysical, ScrollGranula rity, float delta = 1) override;
63 bool scrollAnimatorEnabled() const override; 63 bool scrollAnimatorEnabled() const override;
64 HostWindow* hostWindow() const override; 64 HostWindow* hostWindow() const override;
65 void serviceScrollAnimations(double) override; 65 void serviceScrollAnimations(double) override;
66 // TODO(bokan): This method should be removed. It should be replaced by 66 // TODO(bokan): This method should be removed. It should be replaced by
67 // making EventHandler::handleWheelEvent unpack the WheelEvent and make a 67 // making EventHandler::handleWheelEvent unpack the WheelEvent and make a
68 // call to this class' scroll method. 68 // call to this class' scroll method.
69 ScrollResult handleWheel(const PlatformWheelEvent&) override; 69 ScrollResult handleWheel(const PlatformWheelEvent&) override;
70 70
71 private: 71 private:
72 RootFrameViewport(ScrollableArea& visualViewport, ScrollableArea& layoutView port); 72 RootFrameViewport(ScrollableArea& visualViewport, ScrollableArea& layoutView port);
73 73
74 DoublePoint scrollOffsetFromScrollAnimators() const; 74 DoublePoint scrollOffsetFromScrollAnimators() const;
75 75
76 // If either of the layout or visual viewports are scrolled explicitly (i.e. not 76 // If either of the layout or visual viewports are scrolled explicitly (i.e. not
77 // through this class), their updated offset will not be reflected in this c lass' 77 // through this class), their updated offset will not be reflected in this c lass'
78 // animator so use this method to pull updated values when necessary. 78 // animator so use this method to pull updated values when necessary.
79 void updateScrollAnimator(); 79 void updateScrollAnimator();
80 80
81 ScrollableArea& visualViewport() const { return m_visualViewport; } 81 ScrollableArea& visualViewport() const { return m_visualViewport; }
82 ScrollableArea& layoutViewport() const { return m_layoutViewport; } 82 ScrollableArea& layoutViewport() const { return m_layoutViewport; }
83 83
84 ScrollableArea& m_visualViewport; 84 ScrollableArea& m_visualViewport;
85 ScrollableArea& m_layoutViewport; 85 ScrollableArea& m_layoutViewport;
86 }; 86 };
87 87
88 } // namespace blink 88 } // namespace blink
89 89
90 #endif // RootFrameViewport_h 90 #endif // RootFrameViewport_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698