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

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

Issue 2383113003: Refactor ScrollableArea::setScrollPosition. (Closed)
Patch Set: Created 4 years, 2 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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 IncludeScrollbarsInRect = ExcludeScrollbars) const override; 67 IncludeScrollbarsInRect = ExcludeScrollbars) const override;
68 bool shouldUseIntegerScrollOffset() const override; 68 bool shouldUseIntegerScrollOffset() const override;
69 LayoutRect visualRectForScrollbarParts() const override { 69 LayoutRect visualRectForScrollbarParts() const override {
70 ASSERT_NOT_REACHED(); 70 ASSERT_NOT_REACHED();
71 return LayoutRect(); 71 return LayoutRect();
72 } 72 }
73 bool isActive() const override; 73 bool isActive() const override;
74 int scrollSize(ScrollbarOrientation) const override; 74 int scrollSize(ScrollbarOrientation) const override;
75 bool isScrollCornerVisible() const override; 75 bool isScrollCornerVisible() const override;
76 IntRect scrollCornerRect() const override; 76 IntRect scrollCornerRect() const override;
77 void setScrollOffset(const DoublePoint&, ScrollType) override; 77 void updateScrollPosition(const DoublePoint&, ScrollType) override;
78 IntPoint scrollPosition() const override; 78 IntPoint scrollPosition() const override;
79 DoublePoint scrollPositionDouble() const override; 79 DoublePoint scrollPositionDouble() const override;
80 IntPoint minimumScrollPosition() const override; 80 IntPoint minimumScrollPosition() const override;
81 IntPoint maximumScrollPosition() const override; 81 IntPoint maximumScrollPosition() const override;
82 DoublePoint maximumScrollPositionDouble() const override; 82 DoublePoint maximumScrollPositionDouble() const override;
83 IntSize contentsSize() const override; 83 IntSize contentsSize() const override;
84 bool scrollbarsCanBeActive() const override; 84 bool scrollbarsCanBeActive() const override;
85 IntRect scrollableAreaBoundingBox() const override; 85 IntRect scrollableAreaBoundingBox() const override;
86 bool userInputScrollable(ScrollbarOrientation) const override; 86 bool userInputScrollable(ScrollbarOrientation) const override;
87 bool shouldPlaceVerticalScrollbarOnLeft() const override; 87 bool shouldPlaceVerticalScrollbarOnLeft() const override;
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 131
132 DEFINE_TYPE_CASTS(RootFrameViewport, 132 DEFINE_TYPE_CASTS(RootFrameViewport,
133 ScrollableArea, 133 ScrollableArea,
134 scrollableArea, 134 scrollableArea,
135 scrollableArea->isRootFrameViewport(), 135 scrollableArea->isRootFrameViewport(),
136 scrollableArea.isRootFrameViewport()); 136 scrollableArea.isRootFrameViewport());
137 137
138 } // namespace blink 138 } // namespace blink
139 139
140 #endif // RootFrameViewport_h 140 #endif // RootFrameViewport_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698