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

Side by Side Diff: third_party/WebKit/Source/core/frame/VisualViewport.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 /* 1 /*
2 * Copyright (C) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 DoublePoint maximumScrollPositionDouble() const override; 189 DoublePoint maximumScrollPositionDouble() const override;
190 int visibleHeight() const override { return visibleRect().height(); } 190 int visibleHeight() const override { return visibleRect().height(); }
191 int visibleWidth() const override { return visibleRect().width(); } 191 int visibleWidth() const override { return visibleRect().width(); }
192 IntSize contentsSize() const override; 192 IntSize contentsSize() const override;
193 bool scrollbarsCanBeActive() const override { return false; } 193 bool scrollbarsCanBeActive() const override { return false; }
194 IntRect scrollableAreaBoundingBox() const override; 194 IntRect scrollableAreaBoundingBox() const override;
195 bool userInputScrollable(ScrollbarOrientation) const override { return true; } 195 bool userInputScrollable(ScrollbarOrientation) const override { return true; }
196 bool shouldPlaceVerticalScrollbarOnLeft() const override { return false; } 196 bool shouldPlaceVerticalScrollbarOnLeft() const override { return false; }
197 bool scrollAnimatorEnabled() const override; 197 bool scrollAnimatorEnabled() const override;
198 void scrollControlWasSetNeedsPaintInvalidation() override {} 198 void scrollControlWasSetNeedsPaintInvalidation() override {}
199 void setScrollOffset(const DoublePoint&, ScrollType) override; 199 void updateScrollPosition(const DoublePoint&, ScrollType) override;
200 GraphicsLayer* layerForContainer() const override; 200 GraphicsLayer* layerForContainer() const override;
201 GraphicsLayer* layerForScrolling() const override; 201 GraphicsLayer* layerForScrolling() const override;
202 GraphicsLayer* layerForHorizontalScrollbar() const override; 202 GraphicsLayer* layerForHorizontalScrollbar() const override;
203 GraphicsLayer* layerForVerticalScrollbar() const override; 203 GraphicsLayer* layerForVerticalScrollbar() const override;
204 Widget* getWidget() override; 204 Widget* getWidget() override;
205 CompositorAnimationTimeline* compositorAnimationTimeline() const override; 205 CompositorAnimationTimeline* compositorAnimationTimeline() const override;
206 206
207 // Visual Viewport API implementation. 207 // Visual Viewport API implementation.
208 double scrollLeft(); 208 double scrollLeft();
209 double scrollTop(); 209 double scrollTop();
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
272 float m_scale; 272 float m_scale;
273 IntSize m_size; 273 IntSize m_size;
274 float m_topControlsAdjustment; 274 float m_topControlsAdjustment;
275 float m_maxPageScale; 275 float m_maxPageScale;
276 bool m_trackPinchZoomStatsForPage; 276 bool m_trackPinchZoomStatsForPage;
277 }; 277 };
278 278
279 } // namespace blink 279 } // namespace blink
280 280
281 #endif // VisualViewport_h 281 #endif // VisualViewport_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698