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

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

Issue 2101393002: Make visualViewport.scrollTop/Left readonly. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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 185 matching lines...) Expand 10 before | Expand all | Expand 10 after
196 GraphicsLayer* layerForContainer() const override; 196 GraphicsLayer* layerForContainer() const override;
197 GraphicsLayer* layerForScrolling() const override; 197 GraphicsLayer* layerForScrolling() const override;
198 GraphicsLayer* layerForHorizontalScrollbar() const override; 198 GraphicsLayer* layerForHorizontalScrollbar() const override;
199 GraphicsLayer* layerForVerticalScrollbar() const override; 199 GraphicsLayer* layerForVerticalScrollbar() const override;
200 Widget* getWidget() override; 200 Widget* getWidget() override;
201 CompositorAnimationTimeline* compositorAnimationTimeline() const override; 201 CompositorAnimationTimeline* compositorAnimationTimeline() const override;
202 202
203 // Visual Viewport API implementation. 203 // Visual Viewport API implementation.
204 double scrollLeft(); 204 double scrollLeft();
205 double scrollTop(); 205 double scrollTop();
206 void setScrollLeft(double x);
207 void setScrollTop(double y);
208 double clientWidth(); 206 double clientWidth();
209 double clientHeight(); 207 double clientHeight();
210 double pageScale(); 208 double pageScale();
211 209
212 // Used for gathering data on user pinch-zoom statistics. 210 // Used for gathering data on user pinch-zoom statistics.
213 void userDidChangeScale(); 211 void userDidChangeScale();
214 void sendUMAMetrics(); 212 void sendUMAMetrics();
215 void startTrackingPinchStats(); 213 void startTrackingPinchStats();
216 214
217 // Heuristic-based function for determining if we should disable workarounds 215 // Heuristic-based function for determining if we should disable workarounds
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
261 float m_scale; 259 float m_scale;
262 IntSize m_size; 260 IntSize m_size;
263 float m_topControlsAdjustment; 261 float m_topControlsAdjustment;
264 float m_maxPageScale; 262 float m_maxPageScale;
265 bool m_trackPinchZoomStatsForPage; 263 bool m_trackPinchZoomStatsForPage;
266 }; 264 };
267 265
268 } // namespace blink 266 } // namespace blink
269 267
270 #endif // VisualViewport_h 268 #endif // VisualViewport_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/frame/DOMVisualViewport.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