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