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

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

Issue 1801753002: First programmatic smooth scroll should run on the compositor if it can (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix bot compile error Created 4 years, 9 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 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 bool scrollAnimatorEnabled() const override;
190 void scrollControlWasSetNeedsPaintInvalidation() override { } 190 void scrollControlWasSetNeedsPaintInvalidation() override { }
191 void setScrollOffset(const DoublePoint&, ScrollType) override; 191 void setScrollOffset(const DoublePoint&, ScrollType) override;
192 GraphicsLayer* layerForContainer() const override; 192 GraphicsLayer* layerForContainer() const override;
193 GraphicsLayer* layerForScrolling() const override; 193 GraphicsLayer* layerForScrolling() const override;
194 GraphicsLayer* layerForHorizontalScrollbar() const override; 194 GraphicsLayer* layerForHorizontalScrollbar() const override;
195 GraphicsLayer* layerForVerticalScrollbar() const override; 195 GraphicsLayer* layerForVerticalScrollbar() const override;
196 Widget* getWidget() override; 196 Widget* getWidget() override;
197 CompositorAnimationTimeline* compositorAnimationTimeline() const override;
197 198
198 // Used for gathering data on user pinch-zoom statistics. 199 // Used for gathering data on user pinch-zoom statistics.
199 void userDidChangeScale(); 200 void userDidChangeScale();
200 void sendUMAMetrics(); 201 void sendUMAMetrics();
201 void startTrackingPinchStats(); 202 void startTrackingPinchStats();
202 203
203 // Heuristic-based function for determining if we should disable workarounds 204 // Heuristic-based function for determining if we should disable workarounds
204 // for viewing websites that are not optimized for mobile devices. 205 // for viewing websites that are not optimized for mobile devices.
205 bool shouldDisableDesktopWorkarounds() const; 206 bool shouldDisableDesktopWorkarounds() const;
206 207
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
241 float m_scale; 242 float m_scale;
242 IntSize m_size; 243 IntSize m_size;
243 float m_topControlsAdjustment; 244 float m_topControlsAdjustment;
244 float m_maxPageScale; 245 float m_maxPageScale;
245 bool m_trackPinchZoomStatsForPage; 246 bool m_trackPinchZoomStatsForPage;
246 }; 247 };
247 248
248 } // namespace blink 249 } // namespace blink
249 250
250 #endif // VisualViewport_h 251 #endif // VisualViewport_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/frame/FrameView.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