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

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

Issue 2443753002: Count presence of viewport tag as mobile-friendly
Patch Set: default false Created 4 years, 1 month 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 192 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/dom/ViewportDescription.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