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

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: Fix release builds 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/frame/VisualViewport.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 computeInterestRect(const GraphicsLayer*, const IntRect&) const;
214 String debugName(const GraphicsLayer*) override; 214 void paintContents(const GraphicsLayer*, GraphicsContext&, GraphicsLayerPain tingPhase, const IntRect&) const override;
215 String debugName(const GraphicsLayer*) const 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);
224 return *m_frameHost; 225 return *m_frameHost;
(...skipping 15 matching lines...) Expand all
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
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/frame/VisualViewport.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698