Index: third_party/WebKit/Source/core/frame/VisualViewport.h |
diff --git a/third_party/WebKit/Source/core/frame/VisualViewport.h b/third_party/WebKit/Source/core/frame/VisualViewport.h |
index 04208e40e4bbef041e3a44c301fda899345fe018..115616348ed073edea96ec3e1c34e16f8edbe469 100644 |
--- a/third_party/WebKit/Source/core/frame/VisualViewport.h |
+++ b/third_party/WebKit/Source/core/frame/VisualViewport.h |
@@ -195,6 +195,15 @@ public: |
GraphicsLayer* layerForHorizontalScrollbar() const override; |
GraphicsLayer* layerForVerticalScrollbar() const override; |
+ // Used for gathering data on user pinch-zoom statistics. |
+ void userDidChangeScale(); |
+ void sendUMAMetrics(); |
+ void startTrackingPinchStats(); |
+ |
+ // Heuristic-based function for determining if we should disable workarounds |
+ // for viewing websites that are not optimized for mobile devices. |
+ bool shouldDisableDesktopWorkarounds() const; |
+ |
private: |
explicit VisualViewport(FrameHost&); |
@@ -231,6 +240,8 @@ private: |
float m_scale; |
IntSize m_size; |
float m_topControlsAdjustment; |
+ float m_maxPageScale; |
+ bool m_trackPinchZoomStatsForPage; |
}; |
} // namespace blink |