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

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

Issue 1393083003: Implement interest rects for synchronized paint. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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 193 matching lines...) Expand 10 before | Expand all | Expand 10 after
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;
214 String debugName(const GraphicsLayer*) override; 215 String debugName(const GraphicsLayer*) 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);
(...skipping 16 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

Powered by Google App Engine
This is Rietveld 408576698