| OLD | NEW |
| 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 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 203 double scrollTop(); | 203 double scrollTop(); |
| 204 double clientWidth(); | 204 double clientWidth(); |
| 205 double clientHeight(); | 205 double clientHeight(); |
| 206 double pageScale(); | 206 double pageScale(); |
| 207 | 207 |
| 208 // Used for gathering data on user pinch-zoom statistics. | 208 // Used for gathering data on user pinch-zoom statistics. |
| 209 void userDidChangeScale(); | 209 void userDidChangeScale(); |
| 210 void sendUMAMetrics(); | 210 void sendUMAMetrics(); |
| 211 void startTrackingPinchStats(); | 211 void startTrackingPinchStats(); |
| 212 | 212 |
| 213 // Heuristic-based function for determining if we should disable workarounds | |
| 214 // for viewing websites that are not optimized for mobile devices. | |
| 215 bool shouldDisableDesktopWorkarounds() const; | |
| 216 | |
| 217 private: | 213 private: |
| 218 explicit VisualViewport(FrameHost&); | 214 explicit VisualViewport(FrameHost&); |
| 219 | 215 |
| 220 bool didSetScaleOrLocation(float scale, const FloatPoint& location); | 216 bool didSetScaleOrLocation(float scale, const FloatPoint& location); |
| 221 | 217 |
| 222 bool visualViewportSuppliesScrollbars() const; | 218 bool visualViewportSuppliesScrollbars() const; |
| 223 | 219 |
| 224 void updateStyleAndLayoutIgnorePendingStylesheets(); | 220 void updateStyleAndLayoutIgnorePendingStylesheets(); |
| 225 | 221 |
| 226 void enqueueScrollEvent(); | 222 void enqueueScrollEvent(); |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 265 float m_scale; | 261 float m_scale; |
| 266 IntSize m_size; | 262 IntSize m_size; |
| 267 float m_topControlsAdjustment; | 263 float m_topControlsAdjustment; |
| 268 float m_maxPageScale; | 264 float m_maxPageScale; |
| 269 bool m_trackPinchZoomStatsForPage; | 265 bool m_trackPinchZoomStatsForPage; |
| 270 }; | 266 }; |
| 271 | 267 |
| 272 } // namespace blink | 268 } // namespace blink |
| 273 | 269 |
| 274 #endif // VisualViewport_h | 270 #endif // VisualViewport_h |
| OLD | NEW |