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 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
204 // for viewing websites that are not optimized for mobile devices. | 204 // for viewing websites that are not optimized for mobile devices. |
205 bool shouldDisableDesktopWorkarounds() const; | 205 bool shouldDisableDesktopWorkarounds() const; |
206 | 206 |
207 private: | 207 private: |
208 explicit VisualViewport(FrameHost&); | 208 explicit VisualViewport(FrameHost&); |
209 | 209 |
210 bool visualViewportSuppliesScrollbars() const; | 210 bool visualViewportSuppliesScrollbars() const; |
211 | 211 |
212 // GraphicsLayerClient implementation. | 212 // GraphicsLayerClient implementation. |
213 void paintContents(const GraphicsLayer*, GraphicsContext&, GraphicsLayerPain
tingPhase, const IntRect& inClip) const override; | 213 void paintContents(const GraphicsLayer*, GraphicsContext&, GraphicsLayerPain
tingPhase, const IntRect& inClip) const override; |
| 214 void paintContentsIfNeeded(const GraphicsLayer*, GraphicsContext&, GraphicsL
ayerPaintingPhase) const override; |
214 String debugName(const GraphicsLayer*) override; | 215 String debugName(const GraphicsLayer*) override; |
215 | 216 |
216 void setupScrollbar(WebScrollbar::Orientation); | 217 void setupScrollbar(WebScrollbar::Orientation); |
217 FloatPoint clampOffsetToBoundaries(const FloatPoint&); | 218 FloatPoint clampOffsetToBoundaries(const FloatPoint&); |
218 | 219 |
219 LocalFrame* mainFrame() const; | 220 LocalFrame* mainFrame() const; |
220 | 221 |
221 FrameHost& frameHost() const | 222 FrameHost& frameHost() const |
222 { | 223 { |
223 ASSERT(m_frameHost); | 224 ASSERT(m_frameHost); |
(...skipping 16 matching lines...) Expand all Loading... |
240 float m_scale; | 241 float m_scale; |
241 IntSize m_size; | 242 IntSize m_size; |
242 float m_topControlsAdjustment; | 243 float m_topControlsAdjustment; |
243 float m_maxPageScale; | 244 float m_maxPageScale; |
244 bool m_trackPinchZoomStatsForPage; | 245 bool m_trackPinchZoomStatsForPage; |
245 }; | 246 }; |
246 | 247 |
247 } // namespace blink | 248 } // namespace blink |
248 | 249 |
249 #endif // VisualViewport_h | 250 #endif // VisualViewport_h |
OLD | NEW |