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

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

Issue 1441973003: Use recomputed interest rect only if it changed enough (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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 // Heuristic-based function for determining if we should disable workarounds 203 // Heuristic-based function for determining if we should disable workarounds
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 IntRect paintContents(const GraphicsLayer*, GraphicsContext&, GraphicsLayerP aintingPhase, const IntRect*) const override;
214 String debugName(const GraphicsLayer*) override; 214 String debugName(const GraphicsLayer*) override;
215 215
216 void setupScrollbar(WebScrollbar::Orientation); 216 void setupScrollbar(WebScrollbar::Orientation);
217 FloatPoint clampOffsetToBoundaries(const FloatPoint&); 217 FloatPoint clampOffsetToBoundaries(const FloatPoint&);
218 218
219 LocalFrame* mainFrame() const; 219 LocalFrame* mainFrame() const;
220 220
221 FrameHost& frameHost() const 221 FrameHost& frameHost() const
222 { 222 {
223 ASSERT(m_frameHost); 223 ASSERT(m_frameHost);
(...skipping 16 matching lines...) Expand all
240 float m_scale; 240 float m_scale;
241 IntSize m_size; 241 IntSize m_size;
242 float m_topControlsAdjustment; 242 float m_topControlsAdjustment;
243 float m_maxPageScale; 243 float m_maxPageScale;
244 bool m_trackPinchZoomStatsForPage; 244 bool m_trackPinchZoomStatsForPage;
245 }; 245 };
246 246
247 } // namespace blink 247 } // namespace blink
248 248
249 #endif // VisualViewport_h 249 #endif // VisualViewport_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698