Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 /* | 1 /* |
| 2 Copyright (C) 1997 Martin Jones (mjones@kde.org) | 2 Copyright (C) 1997 Martin Jones (mjones@kde.org) |
| 3 (C) 1998 Waldo Bastian (bastian@kde.org) | 3 (C) 1998 Waldo Bastian (bastian@kde.org) |
| 4 (C) 1998, 1999 Torben Weis (weis@kde.org) | 4 (C) 1998, 1999 Torben Weis (weis@kde.org) |
| 5 (C) 1999 Lars Knoll (knoll@kde.org) | 5 (C) 1999 Lars Knoll (knoll@kde.org) |
| 6 (C) 1999 Antti Koivisto (koivisto@kde.org) | 6 (C) 1999 Antti Koivisto (koivisto@kde.org) |
| 7 Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights | 7 Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights |
| 8 reserved. | 8 reserved. |
| 9 | 9 |
| 10 This library is free software; you can redistribute it and/or | 10 This library is free software; you can redistribute it and/or |
| (...skipping 809 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 820 void applyTransformForTopFrameSpace(TransformState&); | 820 void applyTransformForTopFrameSpace(TransformState&); |
| 821 | 821 |
| 822 // TODO(kenrb): These are temporary methods pending resolution of | 822 // TODO(kenrb): These are temporary methods pending resolution of |
| 823 // https://crbug.com/680606. Animation timelines and hosts for scrolling | 823 // https://crbug.com/680606. Animation timelines and hosts for scrolling |
| 824 // are normally owned by ScrollingCoordinator, but there is only one | 824 // are normally owned by ScrollingCoordinator, but there is only one |
| 825 // of those objects per page. To get around this, we temporarily stash a | 825 // of those objects per page. To get around this, we temporarily stash a |
| 826 // unique timeline and host on each OOPIF FrameView. | 826 // unique timeline and host on each OOPIF FrameView. |
| 827 void setAnimationTimeline(std::unique_ptr<CompositorAnimationTimeline>); | 827 void setAnimationTimeline(std::unique_ptr<CompositorAnimationTimeline>); |
| 828 void setAnimationHost(std::unique_ptr<CompositorAnimationHost>); | 828 void setAnimationHost(std::unique_ptr<CompositorAnimationHost>); |
| 829 | 829 |
| 830 GeometryMapper* geometryMapper(); | |
|
pdr.
2017/02/10 20:51:06
Please add a comment that this returns the root fr
chrishtr
2017/02/10 22:56:36
Done.
| |
| 831 | |
| 830 protected: | 832 protected: |
| 831 // Scroll the content via the compositor. | 833 // Scroll the content via the compositor. |
| 832 bool scrollContentsFastPath(const IntSize& scrollDelta); | 834 bool scrollContentsFastPath(const IntSize& scrollDelta); |
| 833 | 835 |
| 834 // Scroll the content by invalidating everything. | 836 // Scroll the content by invalidating everything. |
| 835 void scrollContentsSlowPath(); | 837 void scrollContentsSlowPath(); |
| 836 | 838 |
| 837 ScrollBehavior scrollBehaviorStyle() const override; | 839 ScrollBehavior scrollBehaviorStyle() const override; |
| 838 | 840 |
| 839 void scrollContentsIfNeeded(); | 841 void scrollContentsIfNeeded(); |
| (...skipping 395 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1235 widget.isFrameView()); | 1237 widget.isFrameView()); |
| 1236 DEFINE_TYPE_CASTS(FrameView, | 1238 DEFINE_TYPE_CASTS(FrameView, |
| 1237 ScrollableArea, | 1239 ScrollableArea, |
| 1238 scrollableArea, | 1240 scrollableArea, |
| 1239 scrollableArea->isFrameView(), | 1241 scrollableArea->isFrameView(), |
| 1240 scrollableArea.isFrameView()); | 1242 scrollableArea.isFrameView()); |
| 1241 | 1243 |
| 1242 } // namespace blink | 1244 } // namespace blink |
| 1243 | 1245 |
| 1244 #endif // FrameView_h | 1246 #endif // FrameView_h |
| OLD | NEW |