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 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
210 GraphicsLayer* LayerForHorizontalScrollbar() const override; | 210 GraphicsLayer* LayerForHorizontalScrollbar() const override; |
211 GraphicsLayer* LayerForVerticalScrollbar() const override; | 211 GraphicsLayer* LayerForVerticalScrollbar() const override; |
212 bool ScheduleAnimation() override; | 212 bool ScheduleAnimation() override; |
213 CompositorAnimationHost* GetCompositorAnimationHost() const override; | 213 CompositorAnimationHost* GetCompositorAnimationHost() const override; |
214 CompositorAnimationTimeline* GetCompositorAnimationTimeline() const override; | 214 CompositorAnimationTimeline* GetCompositorAnimationTimeline() const override; |
215 IntRect VisibleContentRect( | 215 IntRect VisibleContentRect( |
216 IncludeScrollbarsInRect = kExcludeScrollbars) const override; | 216 IncludeScrollbarsInRect = kExcludeScrollbars) const override; |
217 RefPtr<WebTaskRunner> GetTimerTaskRunner() const final; | 217 RefPtr<WebTaskRunner> GetTimerTaskRunner() const final; |
218 | 218 |
219 // Visual Viewport API implementation. | 219 // Visual Viewport API implementation. |
220 double ScrollLeft(); | 220 double OffsetLeft(); |
dtapuska
2017/05/24 17:21:40
Should these be const?
bokan
2017/05/24 19:17:14
Done.
| |
221 double ScrollTop(); | 221 double OffsetTop(); |
222 double ClientWidth(); | 222 double Width(); |
223 double ClientHeight(); | 223 double Height(); |
224 double PageScale(); | 224 double ScaleForVisualViewport(); |
225 | 225 |
226 // Used for gathering data on user pinch-zoom statistics. | 226 // Used for gathering data on user pinch-zoom statistics. |
227 void UserDidChangeScale(); | 227 void UserDidChangeScale(); |
228 void SendUMAMetrics(); | 228 void SendUMAMetrics(); |
229 void StartTrackingPinchStats(); | 229 void StartTrackingPinchStats(); |
230 | 230 |
231 // Heuristic-based function for determining if we should disable workarounds | 231 // Heuristic-based function for determining if we should disable workarounds |
232 // for viewing websites that are not optimized for mobile devices. | 232 // for viewing websites that are not optimized for mobile devices. |
233 bool ShouldDisableDesktopWorkarounds() const; | 233 bool ShouldDisableDesktopWorkarounds() const; |
234 | 234 |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
283 float scale_; | 283 float scale_; |
284 IntSize size_; | 284 IntSize size_; |
285 float browser_controls_adjustment_; | 285 float browser_controls_adjustment_; |
286 float max_page_scale_; | 286 float max_page_scale_; |
287 bool track_pinch_zoom_stats_for_page_; | 287 bool track_pinch_zoom_stats_for_page_; |
288 }; | 288 }; |
289 | 289 |
290 } // namespace blink | 290 } // namespace blink |
291 | 291 |
292 #endif // VisualViewport_h | 292 #endif // VisualViewport_h |
OLD | NEW |