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

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

Issue 1774943003: blink: Rename platform/ methods to prefix with get when they collide. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: clash-platform: rebase-yayyyyyyyy Created 4 years, 9 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 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 IntRect viewportToRootFrame(const IntRect&) const; 159 IntRect viewportToRootFrame(const IntRect&) const;
160 FloatRect rootFrameToViewport(const FloatRect&) const; 160 FloatRect rootFrameToViewport(const FloatRect&) const;
161 IntRect rootFrameToViewport(const IntRect&) const; 161 IntRect rootFrameToViewport(const IntRect&) const;
162 162
163 FloatPoint viewportToRootFrame(const FloatPoint&) const; 163 FloatPoint viewportToRootFrame(const FloatPoint&) const;
164 FloatPoint rootFrameToViewport(const FloatPoint&) const; 164 FloatPoint rootFrameToViewport(const FloatPoint&) const;
165 IntPoint viewportToRootFrame(const IntPoint&) const; 165 IntPoint viewportToRootFrame(const IntPoint&) const;
166 IntPoint rootFrameToViewport(const IntPoint&) const; 166 IntPoint rootFrameToViewport(const IntPoint&) const;
167 167
168 // ScrollableArea implementation 168 // ScrollableArea implementation
169 HostWindow* hostWindow() const override; 169 HostWindow* getHostWindow() const override;
170 DoubleRect visibleContentRectDouble(IncludeScrollbarsInRect = ExcludeScrollb ars) const override; 170 DoubleRect visibleContentRectDouble(IncludeScrollbarsInRect = ExcludeScrollb ars) const override;
171 IntRect visibleContentRect(IncludeScrollbarsInRect = ExcludeScrollbars) cons t override; 171 IntRect visibleContentRect(IncludeScrollbarsInRect = ExcludeScrollbars) cons t override;
172 bool shouldUseIntegerScrollOffset() const override; 172 bool shouldUseIntegerScrollOffset() const override;
173 bool isActive() const override { return false; } 173 bool isActive() const override { return false; }
174 int scrollSize(ScrollbarOrientation) const override; 174 int scrollSize(ScrollbarOrientation) const override;
175 bool isScrollCornerVisible() const override { return false; } 175 bool isScrollCornerVisible() const override { return false; }
176 IntRect scrollCornerRect() const override { return IntRect(); } 176 IntRect scrollCornerRect() const override { return IntRect(); }
177 IntPoint scrollPosition() const override { return flooredIntPoint(m_offset); } 177 IntPoint scrollPosition() const override { return flooredIntPoint(m_offset); }
178 DoublePoint scrollPositionDouble() const override { return m_offset; } 178 DoublePoint scrollPositionDouble() const override { return m_offset; }
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 bool scrollAnimatorEnabled() const override; 189 bool scrollAnimatorEnabled() const override;
190 void scrollControlWasSetNeedsPaintInvalidation() override { } 190 void scrollControlWasSetNeedsPaintInvalidation() override { }
191 void setScrollOffset(const DoublePoint&, ScrollType) override; 191 void setScrollOffset(const DoublePoint&, ScrollType) override;
192 GraphicsLayer* layerForContainer() const override; 192 GraphicsLayer* layerForContainer() const override;
193 GraphicsLayer* layerForScrolling() const override; 193 GraphicsLayer* layerForScrolling() const override;
194 GraphicsLayer* layerForHorizontalScrollbar() const override; 194 GraphicsLayer* layerForHorizontalScrollbar() const override;
195 GraphicsLayer* layerForVerticalScrollbar() const override; 195 GraphicsLayer* layerForVerticalScrollbar() const override;
196 Widget* widget() override; 196 Widget* getWidget() override;
197 197
198 // Used for gathering data on user pinch-zoom statistics. 198 // Used for gathering data on user pinch-zoom statistics.
199 void userDidChangeScale(); 199 void userDidChangeScale();
200 void sendUMAMetrics(); 200 void sendUMAMetrics();
201 void startTrackingPinchStats(); 201 void startTrackingPinchStats();
202 202
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
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
241 float m_scale; 241 float m_scale;
242 IntSize m_size; 242 IntSize m_size;
243 float m_topControlsAdjustment; 243 float m_topControlsAdjustment;
244 float m_maxPageScale; 244 float m_maxPageScale;
245 bool m_trackPinchZoomStatsForPage; 245 bool m_trackPinchZoomStatsForPage;
246 }; 246 };
247 247
248 } // namespace blink 248 } // namespace blink
249 249
250 #endif // VisualViewport_h 250 #endif // VisualViewport_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/frame/RootFrameViewport.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