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

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

Issue 1496693005: Update RootFrameViewport::userScroll to distribute scrolls between viewports. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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 168 matching lines...) Expand 10 before | Expand all | Expand 10 after
179 IntPoint minimumScrollPosition() const override; 179 IntPoint minimumScrollPosition() const override;
180 IntPoint maximumScrollPosition() const override; 180 IntPoint maximumScrollPosition() const override;
181 DoublePoint maximumScrollPositionDouble() const override; 181 DoublePoint maximumScrollPositionDouble() const override;
182 int visibleHeight() const override { return visibleRect().height(); } 182 int visibleHeight() const override { return visibleRect().height(); }
183 int visibleWidth() const override { return visibleRect().width(); } 183 int visibleWidth() const override { return visibleRect().width(); }
184 IntSize contentsSize() const override; 184 IntSize contentsSize() const override;
185 bool scrollbarsCanBeActive() const override { return false; } 185 bool scrollbarsCanBeActive() const override { return false; }
186 IntRect scrollableAreaBoundingBox() const override; 186 IntRect scrollableAreaBoundingBox() const override;
187 bool userInputScrollable(ScrollbarOrientation) const override { return true; } 187 bool userInputScrollable(ScrollbarOrientation) const override { return true; }
188 bool shouldPlaceVerticalScrollbarOnLeft() const override { return false; } 188 bool shouldPlaceVerticalScrollbarOnLeft() const override { return false; }
189 bool scrollAnimatorEnabled() const override;
189 void scrollControlWasSetNeedsPaintInvalidation() override { } 190 void scrollControlWasSetNeedsPaintInvalidation() override { }
190 void setScrollOffset(const IntPoint&, ScrollType) override; 191 void setScrollOffset(const IntPoint&, ScrollType) override;
191 void setScrollOffset(const DoublePoint&, ScrollType) override; 192 void setScrollOffset(const DoublePoint&, ScrollType) override;
192 GraphicsLayer* layerForContainer() const override; 193 GraphicsLayer* layerForContainer() const override;
193 GraphicsLayer* layerForScrolling() const override; 194 GraphicsLayer* layerForScrolling() const override;
194 GraphicsLayer* layerForHorizontalScrollbar() const override; 195 GraphicsLayer* layerForHorizontalScrollbar() const override;
195 GraphicsLayer* layerForVerticalScrollbar() const override; 196 GraphicsLayer* layerForVerticalScrollbar() const override;
196 197
197 // Used for gathering data on user pinch-zoom statistics. 198 // Used for gathering data on user pinch-zoom statistics.
198 void userDidChangeScale(); 199 void userDidChangeScale();
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
240 float m_scale; 241 float m_scale;
241 IntSize m_size; 242 IntSize m_size;
242 float m_topControlsAdjustment; 243 float m_topControlsAdjustment;
243 float m_maxPageScale; 244 float m_maxPageScale;
244 bool m_trackPinchZoomStatsForPage; 245 bool m_trackPinchZoomStatsForPage;
245 }; 246 };
246 247
247 } // namespace blink 248 } // namespace blink
248 249
249 #endif // VisualViewport_h 250 #endif // VisualViewport_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/frame/RootFrameViewport.cpp ('k') | third_party/WebKit/Source/core/frame/VisualViewport.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698