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 208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
219 | 219 |
220 // Heuristic-based function for determining if we should disable workarounds | 220 // Heuristic-based function for determining if we should disable workarounds |
221 // for viewing websites that are not optimized for mobile devices. | 221 // for viewing websites that are not optimized for mobile devices. |
222 bool shouldDisableDesktopWorkarounds() const; | 222 bool shouldDisableDesktopWorkarounds() const; |
223 | 223 |
224 private: | 224 private: |
225 explicit VisualViewport(FrameHost&); | 225 explicit VisualViewport(FrameHost&); |
226 | 226 |
227 bool visualViewportSuppliesScrollbars() const; | 227 bool visualViewportSuppliesScrollbars() const; |
228 | 228 |
229 void updateLayoutIgnorePendingStylesheets(); | 229 void updateStyleAndLayoutIgnorePendingStylesheets(); |
230 | 230 |
231 void enqueueChangedEvent(); | 231 void enqueueChangedEvent(); |
232 | 232 |
233 // GraphicsLayerClient implementation. | 233 // GraphicsLayerClient implementation. |
234 bool needsRepaint(const GraphicsLayer&) const { ASSERT_NOT_REACHED(); return
true; } | 234 bool needsRepaint(const GraphicsLayer&) const { ASSERT_NOT_REACHED(); return
true; } |
235 IntRect computeInterestRect(const GraphicsLayer*, const IntRect&) const; | 235 IntRect computeInterestRect(const GraphicsLayer*, const IntRect&) const; |
236 void paintContents(const GraphicsLayer*, GraphicsContext&, GraphicsLayerPain
tingPhase, const IntRect&) const override; | 236 void paintContents(const GraphicsLayer*, GraphicsContext&, GraphicsLayerPain
tingPhase, const IntRect&) const override; |
237 String debugName(const GraphicsLayer*) const override; | 237 String debugName(const GraphicsLayer*) const override; |
238 | 238 |
239 void setupScrollbar(WebScrollbar::Orientation); | 239 void setupScrollbar(WebScrollbar::Orientation); |
(...skipping 23 matching lines...) Expand all Loading... |
263 float m_scale; | 263 float m_scale; |
264 IntSize m_size; | 264 IntSize m_size; |
265 float m_topControlsAdjustment; | 265 float m_topControlsAdjustment; |
266 float m_maxPageScale; | 266 float m_maxPageScale; |
267 bool m_trackPinchZoomStatsForPage; | 267 bool m_trackPinchZoomStatsForPage; |
268 }; | 268 }; |
269 | 269 |
270 } // namespace blink | 270 } // namespace blink |
271 | 271 |
272 #endif // VisualViewport_h | 272 #endif // VisualViewport_h |
OLD | NEW |