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

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

Issue 2096783004: Seperate visualviewportchanged event into scroll and resize events (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix crash + tests Created 4 years, 5 months 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 207 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/frame/DOMVisualViewport.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