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

Side by Side Diff: Source/core/frame/PinchViewport.h

Issue 1158673006: Replace various ScrollableArea scroll methods with setScrollPosition (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Build fix Created 5 years, 6 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
« no previous file with comments | « Source/core/frame/LocalFrame.cpp ('k') | Source/core/frame/PinchViewport.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 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
175 virtual DoublePoint maximumScrollPositionDouble() const override; 175 virtual DoublePoint maximumScrollPositionDouble() const override;
176 virtual int visibleHeight() const override { return visibleRect().height(); }; 176 virtual int visibleHeight() const override { return visibleRect().height(); };
177 virtual int visibleWidth() const override { return visibleRect().width(); }; 177 virtual int visibleWidth() const override { return visibleRect().width(); };
178 virtual IntSize contentsSize() const override; 178 virtual IntSize contentsSize() const override;
179 virtual bool scrollbarsCanBeActive() const override { return false; } 179 virtual bool scrollbarsCanBeActive() const override { return false; }
180 virtual IntRect scrollableAreaBoundingBox() const override; 180 virtual IntRect scrollableAreaBoundingBox() const override;
181 virtual bool userInputScrollable(ScrollbarOrientation) const override { retu rn true; } 181 virtual bool userInputScrollable(ScrollbarOrientation) const override { retu rn true; }
182 virtual bool shouldPlaceVerticalScrollbarOnLeft() const override { return fa lse; } 182 virtual bool shouldPlaceVerticalScrollbarOnLeft() const override { return fa lse; }
183 virtual void invalidateScrollbarRect(Scrollbar*, const IntRect&) override; 183 virtual void invalidateScrollbarRect(Scrollbar*, const IntRect&) override;
184 virtual void invalidateScrollCornerRect(const IntRect&) override { } 184 virtual void invalidateScrollCornerRect(const IntRect&) override { }
185 virtual void setScrollOffset(const IntPoint&) override; 185 virtual void setScrollOffset(const IntPoint&, ScrollType) override;
186 virtual void setScrollOffset(const DoublePoint&) override; 186 virtual void setScrollOffset(const DoublePoint&, ScrollType) override;
187 virtual GraphicsLayer* layerForContainer() const override; 187 virtual GraphicsLayer* layerForContainer() const override;
188 virtual GraphicsLayer* layerForScrolling() const override; 188 virtual GraphicsLayer* layerForScrolling() const override;
189 virtual GraphicsLayer* layerForHorizontalScrollbar() const override; 189 virtual GraphicsLayer* layerForHorizontalScrollbar() const override;
190 virtual GraphicsLayer* layerForVerticalScrollbar() const override; 190 virtual GraphicsLayer* layerForVerticalScrollbar() const override;
191 191
192 private: 192 private:
193 explicit PinchViewport(FrameHost&); 193 explicit PinchViewport(FrameHost&);
194 194
195 // GraphicsLayerClient implementation. 195 // GraphicsLayerClient implementation.
196 virtual void paintContents(const GraphicsLayer*, GraphicsContext&, GraphicsL ayerPaintingPhase, const IntRect& inClip) override; 196 virtual void paintContents(const GraphicsLayer*, GraphicsContext&, GraphicsL ayerPaintingPhase, const IntRect& inClip) override;
(...skipping 26 matching lines...) Expand all
223 // Offset of the pinch viewport from the main frame's origin, in CSS pixels. 223 // Offset of the pinch viewport from the main frame's origin, in CSS pixels.
224 FloatPoint m_offset; 224 FloatPoint m_offset;
225 float m_scale; 225 float m_scale;
226 IntSize m_size; 226 IntSize m_size;
227 float m_topControlsAdjustment; 227 float m_topControlsAdjustment;
228 }; 228 };
229 229
230 } // namespace blink 230 } // namespace blink
231 231
232 #endif // PinchViewport_h 232 #endif // PinchViewport_h
OLDNEW
« no previous file with comments | « Source/core/frame/LocalFrame.cpp ('k') | Source/core/frame/PinchViewport.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698