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

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

Issue 1428643004: Repaint on interest rect change (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@EnableSyncPaint
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 void paintContents(const GraphicsLayer*, GraphicsContext&, GraphicsLayerPain tingPhase, const IntRect* inClip) const override;
214 void paintContentsIfNeeded(const GraphicsLayer*, GraphicsContext&, GraphicsL ayerPaintingPhase) const override;
215 String debugName(const GraphicsLayer*) override; 214 String debugName(const GraphicsLayer*) override;
216 215
217 void setupScrollbar(WebScrollbar::Orientation); 216 void setupScrollbar(WebScrollbar::Orientation);
218 FloatPoint clampOffsetToBoundaries(const FloatPoint&); 217 FloatPoint clampOffsetToBoundaries(const FloatPoint&);
219 218
220 LocalFrame* mainFrame() const; 219 LocalFrame* mainFrame() const;
221 220
222 FrameHost& frameHost() const 221 FrameHost& frameHost() const
223 { 222 {
224 ASSERT(m_frameHost); 223 ASSERT(m_frameHost);
(...skipping 16 matching lines...) Expand all
241 float m_scale; 240 float m_scale;
242 IntSize m_size; 241 IntSize m_size;
243 float m_topControlsAdjustment; 242 float m_topControlsAdjustment;
244 float m_maxPageScale; 243 float m_maxPageScale;
245 bool m_trackPinchZoomStatsForPage; 244 bool m_trackPinchZoomStatsForPage;
246 }; 245 };
247 246
248 } // namespace blink 247 } // namespace blink
249 248
250 #endif // VisualViewport_h 249 #endif // VisualViewport_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/frame/FrameView.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