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

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

Issue 1456953003: Revert of Calculate paint invalidation rect for scrollbars (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 168 matching lines...) Expand 10 before | Expand all | Expand 10 after
179 IntPoint minimumScrollPosition() const override; 179 IntPoint minimumScrollPosition() const override;
180 IntPoint maximumScrollPosition() const override; 180 IntPoint maximumScrollPosition() const override;
181 DoublePoint maximumScrollPositionDouble() const override; 181 DoublePoint maximumScrollPositionDouble() const override;
182 int visibleHeight() const override { return visibleRect().height(); } 182 int visibleHeight() const override { return visibleRect().height(); }
183 int visibleWidth() const override { return visibleRect().width(); } 183 int visibleWidth() const override { return visibleRect().width(); }
184 IntSize contentsSize() const override; 184 IntSize contentsSize() const override;
185 bool scrollbarsCanBeActive() const override { return false; } 185 bool scrollbarsCanBeActive() const override { return false; }
186 IntRect scrollableAreaBoundingBox() const override; 186 IntRect scrollableAreaBoundingBox() const override;
187 bool userInputScrollable(ScrollbarOrientation) const override { return true; } 187 bool userInputScrollable(ScrollbarOrientation) const override { return true; }
188 bool shouldPlaceVerticalScrollbarOnLeft() const override { return false; } 188 bool shouldPlaceVerticalScrollbarOnLeft() const override { return false; }
189 void scrollControlWasSetNeedsPaintInvalidation() override { } 189 void invalidateScrollbarRect(Scrollbar*, const IntRect&) override;
190 void invalidateScrollCornerRect(const IntRect&) override { }
190 void setScrollOffset(const IntPoint&, ScrollType) override; 191 void setScrollOffset(const IntPoint&, ScrollType) override;
191 void setScrollOffset(const DoublePoint&, ScrollType) override; 192 void setScrollOffset(const DoublePoint&, ScrollType) override;
192 GraphicsLayer* layerForContainer() const override; 193 GraphicsLayer* layerForContainer() const override;
193 GraphicsLayer* layerForScrolling() const override; 194 GraphicsLayer* layerForScrolling() const override;
194 GraphicsLayer* layerForHorizontalScrollbar() const override; 195 GraphicsLayer* layerForHorizontalScrollbar() const override;
195 GraphicsLayer* layerForVerticalScrollbar() const override; 196 GraphicsLayer* layerForVerticalScrollbar() const override;
196 197
197 // Used for gathering data on user pinch-zoom statistics. 198 // Used for gathering data on user pinch-zoom statistics.
198 void userDidChangeScale(); 199 void userDidChangeScale();
199 void sendUMAMetrics(); 200 void sendUMAMetrics();
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
239 float m_scale; 240 float m_scale;
240 IntSize m_size; 241 IntSize m_size;
241 float m_topControlsAdjustment; 242 float m_topControlsAdjustment;
242 float m_maxPageScale; 243 float m_maxPageScale;
243 bool m_trackPinchZoomStatsForPage; 244 bool m_trackPinchZoomStatsForPage;
244 }; 245 };
245 246
246 } // namespace blink 247 } // namespace blink
247 248
248 #endif // VisualViewport_h 249 #endif // VisualViewport_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698